ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشسdggרות הל555ה התafhgfh
במסgרות ה gh//شی הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותהתנדaghhhhו12ין יעל, המעציfghfghfע
/
www-data
/
sites
/
naresh-newwordpress
/
wp-content
/
plugins
/
hummingbird-performance
/
admin
/
assets
/
js
/
Upload FileeE
HOME
!function(){var e,t={4640:function(e,t,r){"use strict";var n=r(7294),o=r(3935),i=r(5697),s=r.n(i);var a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,c="URLSearchParams"in a,u="Symbol"in a&&"iterator"in Symbol,l="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),p="FormData"in a,f="ArrayBuffer"in a;if(f)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(e){return e&&d.indexOf(Object.prototype.toString.call(e))>-1};function y(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function b(e){return"string"!=typeof e&&(e=String(e)),e}function m(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return u&&(t[Symbol.iterator]=function(){return t}),t}function v(e){this.map={},e instanceof v?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function w(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function E(e){var t=new FileReader,r=w(t);return t.readAsArrayBuffer(e),r}function S(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function O(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:l&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:p&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:c&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():f&&l&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=S(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f&&(ArrayBuffer.prototype.isPrototypeOf(e)||h(e))?this._bodyArrayBuffer=S(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=g(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(E)}),this.text=function(){var e,t,r,n=g(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=w(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(e,t){e=y(e),t=b(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},v.prototype.delete=function(e){delete this.map[y(e)]},v.prototype.get=function(e){return e=y(e),this.has(e)?this.map[e]:null},v.prototype.has=function(e){return this.map.hasOwnProperty(y(e))},v.prototype.set=function(e,t){this.map[y(e)]=b(t)},v.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},v.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),m(e)},v.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),m(e)},v.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),m(e)},u&&(v.prototype[Symbol.iterator]=v.prototype.entries);var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function j(e,t){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof j){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new v(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new v(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),x.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new v(t.headers),this.url=t.url||"",this._initBody(e)}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})},O.call(j.prototype),O.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:0,statusText:""});return e.type="error",e};var P=[301,302,303,307,308];k.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})};var C=a.DOMException;try{new C}catch(e){(C=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),C.prototype.constructor=C}function T(e,t){return new Promise((function(r,n){var o=new j(e,t);if(o.signal&&o.signal.aborted)return n(new C("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}i.onload=function(){var e,t,n={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new v,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new k(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new C("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(l?i.responseType="blob":f&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof v?o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){i.setRequestHeader(e,b(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==N(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===N(i)?i:String(i)),n)}var o,i}T.polyfill=!0,a.fetch||(a.fetch=T,a.Headers=v,a.Request=j,a.Response=k);var A=["get","post","put","delete"],I=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),A.forEach((function(e){t[e]=t._setupAjaxAPI(e)}))}var t,r,n;return t=e,r=[{key:"_setupAjaxAPI",value:function(e){return"get"===e&&(e="post"),function(){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={credentials:"same-origin",method:e,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=wphb_react_"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/")+"&_wpnonce="+wphb.nonces.HBFetchNonce+"&data="+JSON.stringify(t)};return T(ajaxurl,r).then((function(e){return e.json().then((function(t){return e.ok?t.data:Promise.reject(t.data)}))}))}}}],r&&R(t.prototype,r),n&&R(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),B=n.createContext(),F=r(4184),D=r.n(F);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==U(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===U(i)?i:String(i)),n)}var o,i}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=z(e);if(t){var o=z(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(s,e);var t,r,o,i=W(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return t=s,(r=[{key:"render",value:function(){var e="sui-actions-"+this.props.type;return n.createElement("div",{className:e},this.props.content)}}])&&L(t.prototype,r),o&&L(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);function q(e){var t=e.elements,r=e.header,o=e.extraClasses,i=Object.values(t).map((function(e,t){return n.createElement("div",{className:"table-row",key:t},n.createElement("div",{className:"wphb-caching-summary-item-type"},e.label),!window.lodash.includes(o,"two-columns")&&n.createElement("div",{className:"wphb-caching-summary-item-expiry"},e.expiry),n.createElement("div",null,e.details))}));return n.createElement("div",{className:D()("wphb-border-frame",o)},r&&n.createElement("div",{className:"table-header"},n.createElement("div",{className:"wphb-caching-summary-heading-type"},r[0]),!window.lodash.includes(o,"two-columns")&&n.createElement("div",{className:"wphb-caching-summary-heading-expiry"},r[2]),n.createElement("div",{className:"wphb-caching-summary-heading-status"},r[1])),i)}function G(e){var t=e.classes;return n.createElement("span",{className:t,"aria-hidden":"true"})}var X=wp.i18n.__;function J(e){var t=e.loading,r=e.text,o=X("Fetching latest data...","wphb");return r&&(o=r),n.createElement("div",{className:D()("wphb-loading-overlay",{"wphb-loading":t})},n.createElement(G,{classes:"sui-icon-loader sui-loading"}),n.createElement("p",null,o))}function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function $(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==Y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Y(i)?i:String(i)),n)}var o,i}function V(e,t){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},V(e,t)}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=K(e);if(t){var o=K(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}var Z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(s,e);var t,r,o,i=Q(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return t=s,o=[{key:"boxHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return n.createElement(n.Fragment,null,(e||t)&&n.createElement("h3",{className:"sui-box-title"},t&&n.createElement(G,{classes:"sui-icon-"+t})," "+e),r)}}],(r=[{key:"renderContent",value:function(){var e,t=s.boxHeader(this.props.title,this.props.icon,this.props.headerActions);return e=this.props.stickyType?["sui-box","sui-box-header",this.props.boxClass]:["sui-box-header"],n.createElement(n.Fragment,null,n.createElement(J,{loading:this.props.loading,text:this.props.loadingText}),!this.props.hideHeader&&n.createElement("div",{className:D()(e)},t),(!this.props.stickyType||this.props.showFilters)&&this.props.content&&n.createElement("div",{className:D()("sui-box-body",this.props.boxBodyClass)},this.props.content),(!this.props.stickyType||this.props.showFilters)&&this.props.footerActions&&n.createElement("div",{className:"sui-box-footer"},this.props.footerActions))}},{key:"render",value:function(){var e=this.renderContent();return this.props.stickyType?n.createElement(n.Fragment,null,e):n.createElement("div",{className:D()("sui-box",this.props.boxClass)},e)}}])&&$(t.prototype,r),o&&$(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);Z.propTypes={boxClass:s().oneOfType([s().string,s().array]),boxBodyClass:s().oneOfType([s().string,s().array]),title:s().string,icon:s().string,hideHeader:s().bool,headerActions:s().element,content:s().element,footerActions:s().element,loading:s().bool,loadingText:s().string,stickyType:s().bool,showFilters:s().bool};var ee=["text","url","classes","id","icon","target","disabled","onClick","type"];function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}function re(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ne(e){var t,r=e.text,o=e.url,i=void 0===o?"#":o,s=e.classes,a=e.id,c=e.icon,u=e.target,l=e.disabled,p=void 0!==l&&l,f=e.onClick,d=e.type,h=void 0===d?"link":d,y=re(e,ee);return c&&(c=n.createElement("span",{className:c,"aria-hidden":"true"})),"button"===h?n.createElement("button",te({className:D()(s),id:a,disabled:p,onClick:f},y),!window.lodash.includes(s,"sui-button-icon-right")&&c,r,window.lodash.includes(s,"sui-button-icon-right")&&c):("blank"!==u&&"_blank"!==u||(u="_blank",t="noopener noreferrer"),n.createElement("a",te({className:D()(s),href:i,id:a,target:u,rel:t,disabled:p,onClick:f},y),!window.lodash.includes(s,"sui-button-icon-right")&&c,r,window.lodash.includes(s,"sui-button-icon-right")&&c))}function oe(e){var t=e.message,r=e.classes,o=e.content,i=D()("sui-notice",r);return n.createElement("div",{className:i},n.createElement("div",{className:"sui-notice-content"},n.createElement("div",{className:"sui-notice-message"},n.createElement(G,{classes:"sui-notice-icon sui-icon-info sui-md"}),t&&n.createElement("p",null,t),o&&n.createElement("p",null,o))))}function ie(e){var t=e.value,r=e.type;if(0===t&&"success"===r)return n.createElement("span",{className:"sui-icon-check-tick sui-lg sui-success","aria-hidden":"true"});var o="sui-tag sui-tag-"+r;return n.createElement("span",{className:o},t)}function se(e){var t=e.text,r=e.classes,o=e.children;return n.createElement("span",{className:D()("sui-tooltip",r),"data-tooltip":t},o)}function ae(e){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}function ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==ae(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===ae(i)?i:String(i)),n)}var o,i}function ue(e,t){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ue(e,t)}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=pe(e);if(t){var o=pe(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(e)}ie.defaultProps={value:0,type:"success"};var fe=wp.i18n,de=fe.__,he=fe.sprintf,ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ue(e,t)}(s,e);var t,r,o,i=le(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return t=s,r=[{key:"getStatus",value:function(e){var t;arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(t=n.createElement(ie,null));var r=this.getFailedItems(e);return 0<r&&(t=n.createElement(ie,{value:r,type:"warning"})),t}},{key:"getFailedItems",value:function(e){var t=this,r=Object.entries(e).filter((function(e){return!e[1]||t.props.data.recommended[e[0].toLowerCase()].value>e[1]})).length;return 0<r&&this.props.cloudflare.isSetup&&r++,r}},{key:"checkExternalProblems",value:function(){if(!this.props.loading&&(!this.props.data.htaccessWritable||this.props.data.htaccessWritten)){var e=Object.values(this.props.status).filter((function(e){return!e||"privacy"===e}));if(4!==Object.keys(this.props.status).length||0<e){var t=n.createElement(n.Fragment,null,n.createElement("p",null,de("Browser Caching is not working properly:","wphb")),n.createElement("p",null,de('Your server may not have the "expires" module enabled (mod_expires for Apache, ngx_http_headers_module for NGINX). Another plugin may be interfering with the configuration. If re-checking and restarting does not resolve, please check with your host or',"wphb")," ",n.createElement(ne,{text:de("open a support ticket.","wphb"),url:this.props.link.support.forum,target:"blank"})));return n.createElement(oe,{content:t,classes:"sui-notice-error"})}}}},{key:"showCloudflareNotice",value:function(){if(!this.props.loading&&!this.props.cloudflare.isSetup&&"dismiss"!==this.props.cloudflare.notice){var e=this.props.cloudflare.isConnected?de("We’ve detected you’re using Cloudflare! Connect your account to control your settings via Hummingbird.","wphb"):de("Using CloudFlare? Connect your account to control your settings via Hummingbird. CloudFlare is a Content Delivery Network (CDN) that sends traffic through its global network to automatically optimize the delivery of your site so your visitors can browse your site at top speeds. There is a free plan and we recommend using it.","wphb"),t=n.createElement(ne,{text:de("Enable integration","wphb"),classes:["sui-button","sui-button-blue"],onClick:this.props.onCloudflareClick});return n.createElement("div",{className:"sui-box-settings-row sui-upsell-row cf-dash-notice sui-no-padding-top"},!this.props.data.isWhiteLabeled&&n.createElement("img",{className:"sui-image sui-upsell-image",alt:de("Connect your account to Cloudflare","wphb"),src:this.props.link.wphbDirUrl+"admin/assets/image/graphic-hb-cf-sell.png",srcSet:this.props.link.wphbDirUrl+"admin/assets/image/graphic-hb-cf-sell.png 1x, "+this.props.link.wphbDirUrl+"admin/assets/image/graphic-hb-cf-sell@2x.png 2x"}),this.props.data.isWhiteLabeled?n.createElement(oe,{message:e,content:t,classes:"sui-notice-grey"}):n.createElement("div",{className:"sui-upsell-notice"},n.createElement("p",null,e,n.createElement("span",null,t,n.createElement(ne,{text:de("Learn More","wphb"),url:"https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#browser-cache",target:"blank"})))))}}},{key:"getContent",value:function(){var e=this,t=this.getFailedItems(this.props.status),r="sui-notice-warning",o=he(de("%d of your cache types don’t meet the recommended expiry period of 1 year. Configure browser caching below.","wphb"),t);0===t&&(r="sui-notice-success",o=de("All of your cache types meet the recommended expiry period of 1 year. Great work!","wphb"),!1===this.props.data.htaccessWritten&&(o=de("All of your cache types meet the recommended expiry period of 1 year. Your hosting has automatically pre-configured browser caching for you and no further actions are required.","wphb")));var i=Object.entries(this.props.status).map((function(t){var r=t[0].toLowerCase(),o=r,i="warning";"javascript"===o?o="js":"images"===o&&(o="img"),t[1]>=e.props.data.recommended[r].value&&(i="success");var s=he(de("The recommended value for this file type is at least %s.","wphb"),e.props.data.recommended[r].label);return{label:n.createElement(n.Fragment,null,n.createElement("span",{className:D()("wphb-filename-extension","wphb-filename-extension-"+r)},o),n.createElement("span",{className:"wphb-filename-extension-label"},t[0])),expiry:n.createElement(se,{text:s,classes:"sui-tooltip-constrained"},n.createElement(ie,{value:e.props.data.recommended[r].label,type:"disabled"})),details:n.createElement(ie,{value:e.props.human[t[0]],type:i})}}));if(this.props.cloudflare.isSetup){var s={label:n.createElement(n.Fragment,null,n.createElement(se,{text:this.props.data.cacheTypes.cloudflare,classes:D()("sui-tooltip-constrained","wphb-filename-extension","wphb-filename-extension-other")},"oth"),n.createElement("span",{className:"wphb-filename-extension-label"},"Cloudflare")),expiry:i[0].expiry,details:i[0].details};window.lodash.assign(i,{4:s})}var a=this.props.cloudflare.isSetup||"dismiss"===this.props.cloudflare.notice?"":"sui-box-body";return n.createElement(n.Fragment,null,n.createElement("div",{className:a},this.checkExternalProblems(),n.createElement("p",null,de("Store temporary data on your visitors devices so that they don’t have to download assets twice if they don’t have to. This results in a much faster second time round page load speed.","wphb")),n.createElement(oe,{message:o,classes:r}),n.createElement(q,{header:[de("File type","wphb"),de("Current expiry","wphb"),de("Recommended expiry","wphb")],elements:i})),!this.props.cloudflare.isAuthed&&this.showCloudflareNotice())}},{key:"getFooter",value:function(){return this.props.cloudflare.isAuthed||this.props.cloudflare.isSetup?n.createElement(n.Fragment,null,n.createElement(ne,{type:"button",classes:["sui-button"],text:de("Clear Cache","wphb"),onClick:this.props.clearCache}),n.createElement("div",{className:"sui-actions-right"},n.createElement(ne,{classes:["sui-button","sui-button-ghost"],icon:"sui-icon-power-on-off",text:de("Disconnect","wphb"),onClick:this.props.disconnectCloudflare}))):null}},{key:"render",value:function(){var e=this.getStatus(this.props.status),t=n.createElement(n.Fragment,null,n.createElement(ne,{text:de("Re-check status","wphb"),onClick:this.props.onUpdate,classes:["sui-button","sui-button-ghost"],icon:"sui-icon-update"}),n.createElement(ne,{text:de("Configure","wphb"),onClick:this.props.onShowWizard,classes:["sui-button","sui-tooltip","sui-tooltip-constrained","sui-tooltip-top-right"],"data-tooltip":de("Adjust your server type again and select the relevant rules.","wphb")})),r=n.createElement(n.Fragment,null,e&&n.createElement(H,{type:"left",content:e}),n.createElement(H,{type:"right",content:t})),o=this.props.cloudflare.isSetup||"dismiss"===this.props.cloudflare.notice?"":"sui-upsell-items";return n.createElement(Z,{boxBodyClass:[o],loading:this.props.loading,title:de("Status","wphb"),headerActions:r,content:this.getContent(),footerActions:this.getFooter()})}}],r&&ce(t.prototype,r),o&&ce(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component),be=ye,me=wp.i18n.__;function ve(e){var t=e.currentStep,r=[{number:1,title:me("Server Type","wphb")},{number:2,title:me("Set Expiry","wphb")},{number:3,title:me("Add Rules","wphb")}],o=me("This stage is already completed.","wphb"),i=function(e){return e>t?"wizard-bar-step":e===t?"wizard-bar-step current":"wizard-bar-step sui-tooltip done"};return n.createElement("div",{className:"sui-sidenav"},n.createElement("span",{className:"wizard-bar-subtitle"},me("Setup","wphb")),n.createElement("div",{className:"wizard-bar-title"},n.createElement("h4",null,me("Browser Caching","wphb"))),n.createElement("div",{className:"wizard-steps-container"},n.createElement("svg",{className:"svg-mobile",focusable:"false","aria-hidden":"true"},n.createElement("line",{x1:"0",x2:"50%",stroke:1!==t?"#1ABC9C":"#E6E6E6"}),n.createElement("line",{x1:"50%",x2:"100%",stroke:3===t?"#1ABC9C":"#E6E6E6"})),n.createElement("ul",null,r.map((function(e){return n.createElement(n.Fragment,{key:e.number},n.createElement("li",{className:i(e.number),"data-tooltip":o},n.createElement("div",{className:"wizard-bar-step-number"},function(e){return t>e?n.createElement(G,{classes:"sui-icon-check"}):e}(e.number)),e.title),3!==e.number&&n.createElement("svg",{className:"svg-desktop",focusable:"false","aria-hidden":"true"},n.createElement("line",{y1:"0",y2:"40px",stroke:e.number<t?"#1ABC9C":"#E6E6E6"})))})))))}function ge(e){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ge(e)}function we(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==ge(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===ge(i)?i:String(i)),n)}var o,i}function Ee(e,t){return Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ee(e,t)}function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Oe(e);if(t){var o=Oe(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}var xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ee(e,t)}(s,e);var t,r,o,i=Se(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return t=s,(r=[{key:"componentDidMount",value:function(){this.props.sideTabs||SUI.tabs()}},{key:"render",value:function(){var e=this,t=Object.values(this.props.menu).map((function(e){var t=void 0!==e.checked&&e.checked;return n.createElement(ne,{text:e.title,id:e.id+"-tab",classes:D()("sui-tab-item",{active:t}),type:"button",role:"tab","aria-controls":e.id+"-tab-content","aria-selected":t,tabIndex:t?"0":"-1",key:e.id,onClick:e.onClick})})),r=Object.values(this.props.tabs).map((function(t,r){var o=void 0!==t.active&&t.active,i=D()({"sui-tab-content":!e.props.sideTabs},{"sui-tab-boxed":e.props.sideTabs},{active:o});return n.createElement("div",{role:"tabpanel",tabIndex:"0",id:t.id+"-tab-content",className:i,"aria-labelledby":t.id+"-tab",hidden:!o,key:r},t.description&&n.createElement("div",{className:"sui-description sui-margin-bottom"},t.description),t.content)}));return n.createElement("div",{className:D()({"sui-tabs":!this.props.sideTabs},{"sui-tabs-flushed":this.props.flushed},{"sui-side-tabs":this.props.sideTabs},this.props.className)},n.createElement("div",{role:"tablist",className:"sui-tabs-menu"},t),!window.lodash.isEmpty(this.props.tabs)&&n.createElement("div",{className:"sui-tabs-content"},r))}}])&&we(t.prototype,r),o&&we(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function _e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==je(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===je(i)?i:String(i)),n)}var o,i}function ke(e,t){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ke(e,t)}function Pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ce(e);if(t){var o=Ce(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Ce(e){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ce(e)}xe.defaultProps={tabs:{}};var Te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ke(e,t)}(s,e);var t,r,o,i=Pe(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return t=s,(r=[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$el.SUIselect2({minimumResultsForSearch:-1}),this.$el.on("change",this.props.onChange)}},{key:"render",value:function(){var e,t=this,r=this.props.items.map((function(e,t){return n.createElement("option",{value:e[0],key:t},e[1])})),o=void 0===this.props.classes?"250":null;return n.createElement("div",{className:D()("sui-form-field",{"sui-input-md":"250"===o})},n.createElement("label",{htmlFor:this.props.selectId,id:this.props.selectId+"-label",className:"sui-label"},this.props.label),n.createElement("select",{onChange:this.props.onChange,value:this.props.selected,className:D()("sui-select",this.props.classes),"data-width":o,name:this.props.selectId,id:this.props.selectId,multiple:this.props.multiple,"data-placeholder":null!==(e=this.props.placeholder)&&void 0!==e?e:"","aria-labelledby":this.props.selectId+"-label","aria-describedby":this.props.description?this.props.selectId+"-description":"",ref:function(e){return t.el=e}},this.props.placeholder&&n.createElement("option",null),r),this.props.description&&n.createElement("span",{id:this.props.selectId+"-description",className:"sui-description"},this.props.description))}}])&&_e(t.prototype,r),o&&_e(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);function Ne(e){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function Re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==Ne(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Ne(i)?i:String(i)),n)}var o,i}function Ae(e,t){return Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ae(e,t)}function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Be(e);if(t){var o=Be(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Be(e){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Be(e)}Te.defaultProps={selectId:"",label:"",items:[],selected:"",multiple:!1};var Fe=wp.i18n,De=Fe.__,Ue=Fe.sprintf,Le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ae(e,t)}(s,e);var t,r,o,i=Ie(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=["Apache","NGINX","IIS","Cloudflare","Open LiteSpeed"];return(t=i.call(this,e)).props.cloudflare.isAuthed||t.props.cloudflare.isAuthed.isSetup||r.splice(3,1),t.state={servers:r},t}return t=s,(r=[{key:"getStep",value:function(e){return{1:{title:De("Choose Server Type","wphb"),description:De("Choose your server type. If you don’t know this, please contact your hosting provider.","wphb")},2:{title:De("Set Expiry Time","wphb"),description:De("Please choose your desired expiry time. Google recommends a minimum of 1 year as a good benchmark.","wphb")},3:{title:De("Add Rules","wphb"),description:"apache"===this.props.server?De("Hummingbird can automatically apply browser caching rules for Apache servers by writing to your .htaccess file.","wphb"):De("Please follow the steps below to apply the rules yourself:","wphb")}}[e]}},{key:"getStepOne",value:function(){var e=this,t=this.state.servers.map((function(t,r){var o=t.toLowerCase();"open litespeed"===o&&(o="litespeed");var i="server-"+o;return n.createElement("li",{key:r},n.createElement("label",{htmlFor:i,className:"sui-box-selector"},n.createElement("input",{id:i,type:"radio",checked:o===e.props.server,onChange:function(){return e.props.onServerChange(o)}}),n.createElement("span",null,t)))})),r=Ue(De("We've automatically detected your server type is %s. If this is incorrect, manually select your server type to generate the relevant rules and instructions.","wphb"),"nginx"===this.props.data.detectedServer?"NGINX":"Apache / LiteSpeed");return n.createElement(n.Fragment,null,n.createElement("div",{className:"sui-box-selectors sui-box-selectors-col-3"},n.createElement("ul",null,t)),("apache"===this.props.server||"litespeed"===this.props.server||"nginx"===this.props.server)&&n.createElement(oe,{message:r}))}},{key:"getStepTwo",value:function(){var e,t=this,r=[{title:De("All file types","wphb"),id:"expiry-all",checked:!0},{title:De("Individual file types","wphb"),id:"expiry-single"}];e="cloudflare"===this.props.server?Object.entries(this.props.data.frequenciesCF):Object.entries(this.props.data.frequencies);var o=n.createElement(Te,{selectId:"set-expiry-all",label:De("JavaScript, CSS, Media, Images","wphb"),items:e,selected:"cloudflare"===this.props.server?this.props.status.CSS.toString():this.props.expires.CSS,onChange:this.props.onExpiryChange});if("cloudflare"===this.props.server)return n.createElement("div",{className:"sui-border-frame"},o);var i=[{id:"expiry-all",content:o,active:!0},{id:"expiry-single",content:Object.entries(this.props.human).map((function(r,o){return n.createElement(Te,{selectId:"set-expiry-"+r[0].toLowerCase(),label:r[0],items:e,key:o,selected:t.props.status[r[0]].toString(),onChange:t.props.onExpiryChange})}))}];return n.createElement(xe,{menu:r,tabs:i,className:"sui-side-tabs wphb-file-types-tabs"})}},{key:"render",value:function(){var e=Ue(De("Step %d/3","wphb"),this.props.currentStep);return n.createElement("div",{className:"wizard-steps-content-wrapper"},n.createElement("div",{className:"wizard-steps-content"},n.createElement("span",{className:"step-indicator"},e),n.createElement("h2",null,this.getStep(this.props.currentStep).title),n.createElement("p",{className:"sui-description"},this.getStep(this.props.currentStep).description),this.props.applyingRules&&n.createElement("p",{className:"sui-description wphb-loading-text"},n.createElement(G,{classes:"sui-icon-loader sui-loading sui-md"}),De("Applying rules","wphb")),1===this.props.currentStep&&!this.props.applyingRules&&this.getStepOne(),2===this.props.currentStep&&!this.props.applyingRules&&this.getStepTwo(),3===this.props.currentStep&&!this.props.applyingRules&&this.props.snippet))}}])&&Re(t.prototype,r),o&&Re(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component),Me=wp.i18n.__;function We(e){var t=e.isMember,r=e.chatLink,o=e.forumLink,i=e.noFormatting,s=void 0!==i&&i,a=n.createElement(n.Fragment,null,Me("Still having trouble?","wphb")," ",n.createElement(ne,{url:t?r:o,target:"blank",text:Me(t?"Start a live chat.":"Open a support ticket.","wphb")}));return s?a:n.createElement("p",{className:"sui-description"},a)}function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function He(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==ze(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===ze(i)?i:String(i)),n)}var o,i}function qe(e,t){return qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qe(e,t)}function Ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Xe(e);if(t){var o=Xe(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}var Je=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qe(e,t)}(s,e);var t,r,o,i=Ge(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return t=s,(r=[{key:"componentDidMount",value:function(){this.initSUI()}},{key:"componentDidUpdate",value:function(){this.initSUI()}},{key:"initSUI",value:function(){var e=document.querySelector("pre.sui-code-snippet");e&&SUI.suiCodeSnippet(e)}},{key:"render",value:function(){return n.createElement("pre",{className:"sui-code-snippet"},this.props.code)}}])&&He(t.prototype,r),o&&He(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);function Ye(e){var t=e.list.map((function(e,t){return n.createElement("li",{key:t},e)}));return n.createElement("ol",{className:"wphb-ordered-list"},t)}function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function Ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==$e(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==$e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===$e(i)?i:String(i)),n)}var o,i}function Qe(e,t){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qe(e,t)}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ze(e);if(t){var o=Ze(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===$e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Ze(e){return Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ze(e)}Je.propTypes={code:s().string};var et=wp.i18n.__,tt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qe(e,t)}(s,e);var t,r,o,i=Ke(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return t=s,r=[{key:"renderApacheTab",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[n.createElement(n.Fragment,{key:"1"},et("Manually configure the Cache-Control header for browser caching in your WebAdmin Console following the Open LiteSpeed guide","wphb")," ",n.createElement(ne,{url:"https://openlitespeed.org/kb/how-to-set-up-custom-headers/",target:"_blank",text:et("here","wphb")}),"."),et("Set Expires by Type to 31536000 (1 year) to meet Google’s recommended benchmark.","wphb")],r=[n.createElement(n.Fragment,{key:"1"},et("Copy the generated code into your .htaccess file & save your changes.","wphb"),n.createElement(Je,{code:this.props.snippets.apache})),et(e?"Restart/reload LiteSpeed":"Restart/reload Apache","wphb")];return n.createElement(n.Fragment,null,e&&n.createElement(n.Fragment,null,n.createElement(Ye,{list:t}),n.createElement("p",{className:"sui-description sui-margin-top"},et("Alternatively, browser cache can be configured via an .htaccess file. Follow the steps below to add browser caching to your LiteSpeed server:","wphb"))),n.createElement(Ye,{list:r}),n.createElement("p",{className:"sui-description sui-margin-top"},n.createElement("strong",null,et("Troubleshooting","wphb"))),n.createElement("p",{className:"sui-description"},et("If adding the rules to your .htaccess doesn't work and you have access to vhosts.conf or httpd.conf try to find the line that starts with <Directory> - add the code above into that section and save the file.","wphb")),n.createElement("p",{className:"sui-description"},et("If you don't know where those files are, or you aren't able to reload the web server, you would need to consult with your hosting provider or a system administrator who has access to change the configuration of your server","wphb")),n.createElement(We,{isMember:this.context.isMember,forumLink:this.context.links.support.forum,chatLink:this.context.links.support.chat}))}},{key:"renderNginxTab",value:function(){var e=[n.createElement(n.Fragment,{key:"1"},et("Copy the generated code into your nginx.conf usually located at /etc/nginx/nginx.conf or /usr/local/nginx/conf/nginx.conf","wphb"),n.createElement(Je,{code:this.props.snippets.nginx})),et("Add the code above to the http or inside server section in the file.","wphb"),et("Reload/restart NGINX.","wphb")];return n.createElement(n.Fragment,null,n.createElement(Ye,{list:e}),n.createElement("p",{className:"sui-description sui-margin-top"},n.createElement("strong",null,et("Troubleshooting","wphb"))),n.createElement("p",{className:"sui-description"},et("If you do not have access to your NGINX config files you will need to contact your hosting provider to make these changes.","wphb")),n.createElement(We,{isMember:this.context.isMember,forumLink:this.context.links.support.forum,chatLink:this.context.links.support.chat}))}},{key:"renderIisTab",value:function(){return n.createElement(n.Fragment,null,n.createElement("p",{className:"sui-description"},et("For IIS 7 servers and above,","wphb")," ",n.createElement(ne,{url:"https://technet.microsoft.com/en-us/library/cc732475(v=ws.10).aspx",target:"blank",text:et("visit Microsoft TechNet","wphb")})))}},{key:"render",value:function(){return n.createElement("div",{className:"wphb-server-instructions"},"apache"===this.props.currentServer&&this.renderApacheTab(),"nginx"===this.props.currentServer&&this.renderNginxTab(),"iis"===this.props.currentServer&&this.renderIisTab(),"litespeed"===this.props.currentServer&&this.renderApacheTab(!0))}}],r&&Ve(t.prototype,r),o&&Ve(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);function rt(e){var t=e.text,r=e.classes,o=e.icon,i=e.onClick,s=e.loading,a=void 0!==s&&s,c=e.loadingText;return n.createElement("button",{className:D()("sui-button",r,{"sui-button-onload-text":a&&c},{"sui-button-onload":a&&!c}),onClick:i,"aria-live":"polite"},c&&n.createElement("span",{className:"sui-button-text-default"},o&&n.createElement("span",{className:o,"aria-hidden":"true"}),t),!c&&n.createElement("span",{className:"sui-loading-text"},t),!c&&n.createElement(G,{classes:"sui-icon-loader sui-loading"}),c&&n.createElement("span",{className:"sui-button-text-onload"},n.createElement(G,{classes:"sui-icon-loader sui-loading"}),c))}function nt(e){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(e)}function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==nt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===nt(i)?i:String(i)),n)}var o,i}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},it(e,t)}function st(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ct(e);if(t){var o=ct(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return at(e)}(this,r)}}function at(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}tt.contextType=B;var ut=wp.i18n.__,lt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&it(e,t)}(s,e);var t,r,o,i=st(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r="cloudflare"===(t=i.call(this,e)).props.detectedServer?2:1;return t.state={loading:!1,step:r,server:t.props.detectedServer},t.onServerChange=t.onServerChange.bind(at(t)),t}return t=s,(r=[{key:"componentDidUpdate",value:function(e,t){var r=this;3!==t.step&&3===this.state.step&&!1!==this.state.loading&&this.props.saveExpiryRules(this.state.server).then((function(e){"apache"!==r.state.server&&"litespeed"!==r.state.server&&"cloudflare"!==r.state.server||void 0===e.htaccessUpdated||!0!==e.htaccessUpdated?r.setState({loading:!1,step:3}):location.reload()}))}},{key:"setStep",value:function(e){var t=1;"next"===e&&2===(t=this.state.step+1)&&"iis"===this.state.server&&(t=3),"prev"===e&&this.state.step>1&&2==(t=this.state.step-1)&&"iis"===this.state.server&&(t=1),this.setState({loading:3===t,step:t})}},{key:"onServerChange",value:function(e){this.setState({server:e})}},{key:"getContent",value:function(){return n.createElement("div",{className:"sui-row-with-sidenav"},n.createElement(ve,{currentStep:this.state.step}),n.createElement(Le,{applyingRules:this.state.loading,currentStep:this.state.step,data:this.props.data,status:this.props.status,expires:this.props.expires,human:this.props.human,onServerChange:this.onServerChange,onExpiryChange:this.props.onExpiryChange,server:this.state.server,cloudflare:this.props.cloudflare,snippet:n.createElement(tt,{currentServer:this.state.server,snippets:this.props.snippets})}))}},{key:"getFooter",value:function(){var e=this;return n.createElement(n.Fragment,null,n.createElement(ne,{type:"button",classes:["sui-button","sui-button-ghost"],icon:"sui-icon-logout",text:ut("Quit Setup","wphb"),onClick:this.props.onHideWizard,disabled:this.state.loading}),this.state.step>1&&n.createElement(ne,{type:"button",classes:["sui-button","sui-button-ghost"],icon:"sui-icon-arrow-left",text:ut("Previous","wphb"),onClick:function(){return e.setStep("prev")},disabled:this.state.loading}),n.createElement("div",{className:"sui-actions-right"},this.state.step<3&&n.createElement(ne,{type:"button",classes:["sui-button","sui-button-blue","sui-button-icon-right"],icon:"sui-icon-arrow-right",text:ut("Next","wphb"),onClick:function(){return e.setStep("next")},disabled:this.state.loading}),3===this.state.step&&n.createElement(rt,{classes:["sui-button","sui-button-blue"],text:ut("Check Status","wphb"),onClick:this.props.onRecheckStatus,loading:this.state.loading,loadingText:ut("Applying...","wphb")})))}},{key:"render",value:function(){return n.createElement(Z,{loading:this.props.loading,content:this.getContent(),hideHeader:!0,boxBodyClass:"sui-no-padding",footerActions:this.getFooter()})}}])&&ot(t.prototype,r),o&&ot(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);function pt(e){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pt(e)}function ft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==pt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===pt(i)?i:String(i)),n)}var o,i}function dt(e,t){return dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dt(e,t)}function ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=bt(e);if(t){var o=bt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===pt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yt(e)}(this,r)}}function yt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}var mt,vt=wp.i18n.__,gt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dt(e,t)}(s,e);var t,r,o,i=ht(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=i.call(this,e)).state={api:new I,isMember:t.props.wphbData.isMember,links:t.props.wphbData.links,loading:!0,detectedServer:t.props.wphbData.module.detectedServer,cloudflare:{isAuthed:!1,isConnected:!1,isSetup:!1,notice:!1},status:{CSS:!1,Images:!1,JavaScript:!1,Media:!1},expires:{CSS:!1,Images:!1,JavaScript:!1,Media:!1},snippets:t.props.wphbData.module.snippets,human:{},showWizard:!1},t.updateStatus=t.updateStatus.bind(yt(t)),t.showWizard=t.showWizard.bind(yt(t)),t.hideWizard=t.hideWizard.bind(yt(t)),t.setExpiry=t.setExpiry.bind(yt(t)),t.saveExpiryRules=t.saveExpiryRules.bind(yt(t)),t.clearCache=t.clearCache.bind(yt(t)),t.disconnectCloudflare=t.disconnectCloudflare.bind(yt(t)),t}return t=s,r=[{key:"browserCachingStatus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"get";this.state.api.post("browser_caching_status",t).then((function(t){e.setState({loading:!1,cloudflare:{isAuthed:t.cloudflareAuthed,isConnected:t.usingCloudflare,isSetup:t.cloudflareSetUp,notice:t.cloudflareNotice},detectedServer:t.detectedServer,status:t.status,expires:t.expires,human:t.human})})).catch((function(e){return window.console.log(e)}))}},{key:"componentDidMount",value:function(){this.browserCachingStatus()}},{key:"updateStatus",value:function(){this.setState({loading:!0}),this.browserCachingStatus("refresh")}},{key:"showWizard",value:function(){this.setState({showWizard:!0})}},{key:"hideWizard",value:function(){this.setState({showWizard:!1})}},{key:"setExpiry",value:function(e){var t,r,n,o;if("set-expiry-all"===e.target.id){if(t=e.target.value,r=e.target.value,n=e.target.value,o=e.target.value,!this.state.cloudflare.isAuthed&&!this.state.cloudflare.isSetup){var i=new Event("change");document.getElementById("set-expiry-css").value=e.target.value,document.getElementById("set-expiry-css").dispatchEvent(i),document.getElementById("set-expiry-images").value=e.target.value,document.getElementById("set-expiry-images").dispatchEvent(i),document.getElementById("set-expiry-javascript").value=e.target.value,document.getElementById("set-expiry-javascript").dispatchEvent(i),document.getElementById("set-expiry-media").value=e.target.value,document.getElementById("set-expiry-media").dispatchEvent(i)}}else t=document.getElementById("set-expiry-css").value,r=document.getElementById("set-expiry-images").value,n=document.getElementById("set-expiry-javascript").value,o=document.getElementById("set-expiry-media").value;this.setState({expires:{CSS:t,Images:r,JavaScript:n,Media:o}})}},{key:"saveExpiryRules",value:function(e){var t=this,r={server:e,expires:this.state.expires};return this.state.api.post("update_expiry",r).then((function(r){return t.setState({snippets:r.snippets}),"apache"!==e&&"litespeed"!==e||void 0===r.status||t.setState({status:r.status,human:r.human}),r})).catch((function(e){return window.console.log(e)}))}},{key:"handleCloudflareClick",value:function(){window.SUI.openModal("cloudflare-connect","wrap-wphb-browser-caching","cloudflare-email",!1,!1)}},{key:"clearCache",value:function(){var e=this;return this.setState({loading:!0}),this.state.api.post("clear_cache").then((function(){var t;e.setState({loading:!1}),WPHB_Admin.notices.show((t="successCloudflarePurge",wphb.strings[t]||""))})).catch((function(e){return window.console.log(e)}))}},{key:"disconnectCloudflare",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("cloudflare_disconnect").then((function(){e.browserCachingStatus("refresh"),WPHB_Admin.notices.show(vt("Cloudflare was disconnected successfully.","wphb"))})).catch((function(e){return window.console.log(e)}))}},{key:"render",value:function(){return n.createElement(B.Provider,{value:this.state},this.state.showWizard&&n.createElement(lt,{loading:this.state.loading,detectedServer:this.state.detectedServer,data:this.props.wphbData.module,status:this.state.status,human:this.state.human,expires:this.state.expires,onHideWizard:this.hideWizard,onRecheckStatus:this.updateStatus,onExpiryChange:this.setExpiry,saveExpiryRules:this.saveExpiryRules,snippets:this.state.snippets,cloudflare:this.state.cloudflare}),!this.state.showWizard&&n.createElement(be,{data:this.props.wphbData.module,link:this.state.links,loading:this.state.loading,onUpdate:this.updateStatus,onShowWizard:this.showWizard,status:this.state.status,human:this.state.human,cloudflare:this.state.cloudflare,onCloudflareClick:this.handleCloudflareClick,clearCache:this.clearCache,disconnectCloudflare:this.disconnectCloudflare}))}}],r&&ft(t.prototype,r),o&&ft(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);gt.propTypes={wphbData:s().object},mt=function(){var e=document.getElementById("wrap-wphb-browser-caching");e&&o.render(n.createElement(gt,{wphbData:window.wphbReact}),e)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",mt):mt())},4184:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var s=o.apply(null,r);s&&e.push(s)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},7418:function(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))r.call(i,u)&&(a[u]=i[u]);if(t){s=t(i);for(var l=0;l<s.length;l++)n.call(i,s[l])&&(a[s[l]]=i[s[l]])}}return a}},2703:function(e,t,r){"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5697:function(e,t,r){e.exports=r(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},53:function(e,t){"use strict";var r,n,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,c=a.now();t.unstable_now=function(){return a.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,l=null,p=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(p,0))},n=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,b=null,m=-1,v=5,g=0;t.unstable_shouldYield=function(){return t.unstable_now()>=g},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();g=e+v;try{b(!0,e)?E.postMessage(null):(y=!1,b=null)}catch(e){throw E.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,E.postMessage(null))},n=function(e,r){m=f((function(){e(t.unstable_now())}),r)},o=function(){d(m),m=-1}}function S(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,o=e[n];if(!(void 0!==o&&0<j(o,t)))break e;e[n]=t,e[r]=o,r=n}}function O(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var i=2*(n+1)-1,s=e[i],a=i+1,c=e[a];if(void 0!==s&&0>j(s,r))void 0!==c&&0>j(c,s)?(e[n]=c,e[a]=r,n=a):(e[n]=s,e[i]=r,n=i);else{if(!(void 0!==c&&0>j(c,r)))break e;e[n]=c,e[a]=r,n=a}}}return t}return null}function j(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var _=[],k=[],P=1,C=null,T=3,N=!1,R=!1,A=!1;function I(e){for(var t=O(k);null!==t;){if(null===t.callback)x(k);else{if(!(t.startTime<=e))break;x(k),t.sortIndex=t.expirationTime,S(_,t)}t=O(k)}}function B(e){if(A=!1,I(e),!R)if(null!==O(_))R=!0,r(F);else{var t=O(k);null!==t&&n(B,t.startTime-e)}}function F(e,r){R=!1,A&&(A=!1,o()),N=!0;var i=T;try{for(I(r),C=O(_);null!==C&&(!(C.expirationTime>r)||e&&!t.unstable_shouldYield());){var s=C.callback;if("function"==typeof s){C.callback=null,T=C.priorityLevel;var a=s(C.expirationTime<=r);r=t.unstable_now(),"function"==typeof a?C.callback=a:C===O(_)&&x(_),I(r)}else x(_);C=O(_)}if(null!==C)var c=!0;else{var u=O(k);null!==u&&n(B,u.startTime-r),c=!1}return c}finally{C=null,T=i,N=!1}}var D=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||N||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return O(_)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var r=T;T=t;try{return e()}finally{T=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=T;T=e;try{return t()}finally{T=r}},t.unstable_scheduleCallback=function(e,i,s){var a=t.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?a+s:a:s=a,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:P++,callback:i,priorityLevel:e,startTime:s,expirationTime:c=s+c,sortIndex:-1},s>a?(e.sortIndex=s,S(k,e),null===O(_)&&e===O(k)&&(A?o():A=!0,n(B,s-a))):(e.sortIndex=c,S(_,e),R||N||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var r=T;T=t;try{return e.apply(this,arguments)}finally{T=r}}}},3840:function(e,t,r){"use strict";e.exports=r(53)}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=function(t,r,o,i){if(!r){var s=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],i=e[l][2];for(var a=!0,c=0;c<r.length;c++)(!1&i||s>=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(a=!1,i<s&&(s=i));if(a){e.splice(l--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={803:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,s=r[0],a=r[1],c=r[2],u=0;if(s.some((function(t){return 0!==e[t]}))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var l=c(n)}for(t&&t(r);u<s.length;u++)i=s[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(l)},r=self.webpackChunkwp_hummingbird=self.webpackChunkwp_hummingbird||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var o=n.O(void 0,[282],(function(){return n(4640)}));o=n.O(o)}(); //# sourceMappingURL=wphb-react-caching.min.js.map