File manager - Edit - /home/vblioqus/unfreezetiktok.com/wp-content/plugins/hummingbird-performance/admin/assets/js/wphb-global.min.js
Back
!function(){var t={294:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},346:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},361:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},392:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},659:function(t,e,n){var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[c]=n:delete t[c]),o}},695:function(t,e,n){var r=n(8096),o=n(2428),i=n(6449),a=n(3656),c=n(361),u=n(7167),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),l=!n&&o(t),f=!n&&!l&&a(t),d=!n&&!l&&!f&&u(t),p=n||l||f||d,h=p?r(t.length,String):[],v=h.length;for(var b in t)!e&&!s.call(t,b)||p&&("length"==b||f&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||c(b,v))||h.push(b);return h}},999:function(t,e,n){var r=n(9302),o=n(6800);t.exports=function(t){return r(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,c=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(n[0],n[1],c)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,a)}return e})}},1033:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},1597:function(t,e,n){"use strict";n.r(e);var r=n(9620);window.wphbMixPanel={optIn:function(){wphb.mixpanel.enabled=!0},deactivate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.track("plugin_deactivate",{reason:t,feedback:e})},trackHBUpsell:function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"hb_upsell_triggered";this.track(o,{Feature:t,Location:e,"User Action":n,"UTM Link":r})},enableFeature:function(t){this.track("plugin_feature_activate",{feature:t})},trackEoUpsell:function(t,e){var n="delayjs"===t?"js_delay_upsell":"critical_css_upsell";this.track(n,{"Modal Action":"direct_cta",Location:e})},getUpdateType:function(t){return"activate"===t?"plugin_feature_activate":"deactivate"===t?"plugin_feature_deactivate":""},trackDelayJSEvent:function(t){"activate"===t.update_type&&this.enableFeature("JS Delay"),"deactivate"===t.update_type&&this.disableFeature("JS Delay"),this.track("js_delay_updated",t)},trackFontOptimizationEvent:function(t,e){"activate"===t&&this.enableFeature(e),"deactivate"===t&&this.disableFeature(e)},trackCriticalCSSEvent:function(t){"activate"===t.update_type&&this.enableFeature("Critical Css"),"deactivate"===t.update_type&&this.disableFeature("Critical Css"),this.track("critical_css_updated",t)},trackAOUpdated:function(t){this.track("ao_updated",t)},trackGutenbergEvent:function(t){this.track("critical_css_gutenberg",{feature:t}),"revert"===t&&this.track("critical_css_cache_purge",{location:"gutenberg"})},trackPageCachingSettings:function(t,e,n,r,o){var i="local_page_cache"===e?"Page Caching":e;"activate"===t&&this.enableFeature(i),"deactivate"===t&&this.disableFeature(i),this.track("page_caching_updated",{update_type:t,Method:e,Location:n,modified_settings:r,preload_homepage:o})},trackProUpsell:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"submenu";this.track(t,{Location:n,"User Action":e})},disableFeature:function(t){this.track("plugin_feature_deactivate",{feature:t})},track:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];void 0!==wphb.mixpanel&&(wphb.mixpanel.enabled||n)&&r.A.mixpanel.trackMixpanelEvent(t,e)}}},1791:function(t,e,n){var r=n(6547),o=n(3360);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var c=-1,u=e.length;++c<u;){var s=e[c],l=i?i(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),a?o(n,s,l):r(n,s,l)}return n}},1811:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},1873:function(t,e,n){var r=n(9325).Symbol;t.exports=r},1882:function(t,e,n){var r=n(2552),o=n(3805);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},2428:function(t,e,n){var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},2552:function(t,e,n){var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},2865:function(t,e,n){var r=n(9570),o=n(1811)(r);t.exports=o},3243:function(t,e,n){var r=n(6110),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},3360:function(t,e,n){var r=n(3243);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},3488:function(t){t.exports=function(t){return t}},3650:function(t,e,n){var r=n(4335)(Object.keys,Object);t.exports=r},3656:function(t,e,n){t=n.nmd(t);var r=n(9325),o=n(9935),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},3805:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},4335:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4840:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},4894:function(t,e,n){var r=n(1882),o=n(294);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4901:function(t,e,n){var r=n(2552),o=n(294),i=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},5083:function(t,e,n){var r=n(1882),o=n(7296),i=n(3805),a=n(7473),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?d:c).test(a(t))}},5288:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},5481:function(t,e,n){var r=n(9325)["__core-js_shared__"];t.exports=r},5527:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},5950:function(t,e,n){var r=n(695),o=n(8984),i=n(4894);t.exports=function(t){return i(t)?r(t):o(t)}},6009:function(t,e,n){t=n.nmd(t);var r=n(4840),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},6110:function(t,e,n){var r=n(5083),o=n(392);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},6139:function(t,e,n){var r=n(6547),o=n(1791),i=n(999),a=n(4894),c=n(5527),u=n(5950),s=Object.prototype.hasOwnProperty,l=i(function(t,e){if(c(e)||a(e))o(e,u(e),t);else for(var n in e)s.call(e,n)&&r(t,n,e[n])});t.exports=l},6449:function(t){var e=Array.isArray;t.exports=e},6547:function(t,e,n){var r=n(3360),o=n(5288),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},6757:function(t,e,n){var r=n(1033),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=n(u),r(t,this,s)}}},6800:function(t,e,n){var r=n(5288),o=n(4894),i=n(361),a=n(3805);t.exports=function(t,e,n){if(!a(n))return!1;var c=typeof e;return!!("number"==c?o(n)&&i(e,n.length):"string"==c&&e in n)&&r(n[e],t)}},6964:function(t,e,n){t.exports=function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=0,i=void 0,a=void 0,c=function(t,e){m[o]=t,m[o+1]=e,2===(o+=2)&&(a?a(w):x())};function u(t){a=t}function s(t){c=t}var l="undefined"!=typeof window?window:void 0,f=l||{},d=f.MutationObserver||f.WebKitMutationObserver,p="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function v(){return function(){return process.nextTick(w)}}function b(){return void 0!==i?function(){i(w)}:y()}function _(){var t=0,e=new d(w),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function g(){var t=new MessageChannel;return t.port1.onmessage=w,function(){return t.port2.postMessage(0)}}function y(){var t=setTimeout;return function(){return t(w,1)}}var m=new Array(1e3);function w(){for(var t=0;t<o;t+=2)(0,m[t])(m[t+1]),m[t]=void 0,m[t+1]=void 0;o=0}function S(){try{var t=Function("return this")().require("vertx");return i=t.runOnLoop||t.runOnContext,b()}catch(t){return y()}}var x=void 0;function k(t,e){var n=this,r=new this.constructor(j);void 0===r[P]&&W(r);var o=n._state;if(o){var i=arguments[o-1];c(function(){return $(o,r,i,n._result)})}else N(n,r,t,e);return r}function O(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(j);return D(n,t),n}x=p?v():d?_():h?g():void 0===l?S():y();var P=Math.random().toString(36).substring(2);function j(){}var T=void 0,C=1,A=2;function E(){return new TypeError("You cannot resolve a promise with itself")}function F(){return new TypeError("A promises callback cannot return that same promise.")}function M(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function L(t,e,n){c(function(t){var r=!1,o=M(n,e,function(n){r||(r=!0,e!==n?D(t,n):G(t,n))},function(e){r||(r=!0,U(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,U(t,o))},t)}function q(t,e){e._state===C?G(t,e._result):e._state===A?U(t,e._result):N(e,void 0,function(e){return D(t,e)},function(e){return U(t,e)})}function I(t,n,r){n.constructor===t.constructor&&r===k&&n.constructor.resolve===O?q(t,n):void 0===r?G(t,n):e(r)?L(t,n,r):G(t,n)}function D(e,n){if(e===n)U(e,E());else if(t(n)){var r=void 0;try{r=n.then}catch(t){return void U(e,t)}I(e,n,r)}else G(e,n)}function B(t){t._onerror&&t._onerror(t._result),R(t)}function G(t,e){t._state===T&&(t._result=e,t._state=C,0!==t._subscribers.length&&c(R,t))}function U(t,e){t._state===T&&(t._state=A,t._result=e,c(B,t))}function N(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+C]=n,o[i+A]=r,0===i&&t._state&&c(R,t)}function R(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?$(n,r,o,i):o(i);t._subscribers.length=0}}function $(t,n,r,o){var i=e(r),a=void 0,c=void 0,u=!0;if(i){try{a=r(o)}catch(t){u=!1,c=t}if(n===a)return void U(n,F())}else a=o;n._state!==T||(i&&u?D(n,a):!1===u?U(n,c):t===C?G(n,a):t===A&&U(n,a))}function H(t,e){try{e(function(e){D(t,e)},function(e){U(t,e)})}catch(e){U(t,e)}}var Q=0;function J(){return Q++}function W(t){t[P]=Q++,t._state=void 0,t._result=void 0,t._subscribers=[]}function z(){return new Error("Array Methods must be provided an Array")}var Y=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(j),this.promise[P]||W(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?G(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&G(this.promise,this._result))):U(this.promise,z())}return t.prototype._enumerate=function(t){for(var e=0;this._state===T&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===O){var o=void 0,i=void 0,a=!1;try{o=t.then}catch(t){a=!0,i=t}if(o===k&&t._state!==T)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===et){var c=new n(j);a?U(c,i):I(c,t,o),this._willSettleAt(c,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===T&&(this._remaining--,t===A?U(r,n):this._result[e]=n),0===this._remaining&&G(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;N(t,void 0,function(t){return n._settledAt(C,e,t)},function(t){return n._settledAt(A,e,t)})},t}();function V(t){return new Y(this,t).promise}function K(t){var e=this;return r(t)?new e(function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}):new e(function(t,e){return e(new TypeError("You must pass an array to race."))})}function X(t){var e=new this(j);return U(e,t),e}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function tt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var et=function(){function t(e){this[P]=J(),this._result=this._state=void 0,this._subscribers=[],j!==e&&("function"!=typeof e&&Z(),this instanceof t?H(this,e):tt())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):n.then(t,t)},t}();function nt(){var t=void 0;if(void 0!==n.g)t=n.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=et}return et.prototype.then=k,et.all=V,et.race=K,et.resolve=O,et.reject=X,et._setScheduler=u,et._setAsap=s,et._asap=c,et.polyfill=nt,et.Promise=et,et}()},7167:function(t,e,n){var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,c=a?o(a):r;t.exports=c},7296:function(t,e,n){var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},7301:function(t){t.exports=function(t){return function(e){return t(e)}}},7334:function(t){t.exports=function(t){return function(){return t}}},7473:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7534:function(t,e,n){var r=n(2552),o=n(346);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},8096:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},8984:function(t,e,n){var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},9302:function(t,e,n){var r=n(3488),o=n(6757),i=n(2865);t.exports=function(t,e){return i(o(t,e,r),t+"")}},9325:function(t,e,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},9350:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9570:function(t,e,n){var r=n(7334),o=n(3243),i=n(3488),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},9620:function(t,e,n){"use strict";var r=n(6139),o=n.n(r);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var a=new function(){var t=ajaxurl,e=wphb.nonces.HBFetchNonce,r="wphb_",a="wphb_pro_";function c(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={url:t,method:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",cache:!1};return o instanceof FormData?(o.append("nonce",e),o.append("action",r),a.contentType=!1,a.processData=!1):(o.nonce=e,o.action=r),a.data=o,new(0,n(6964).Promise)(function(t,e){jQuery.ajax(a).done(t).fail(e)}).then(function(t){return function(t){"object"!==i(t)&&(t=JSON.parse(t));if(t.success)return t.data;var e=t.data||{},n=new Error(e.message||"Error trying to fetch response from server");throw n.response=t,n}(t)})}var u={caching:{saveSettings:function(t,e){return c(r+t+"_save_settings",{data:e},"POST").then(function(t){return t})},saveFastCGISettings:function(t){return c(r+"fast_cgi_save_settings",{data:t},"POST").then(function(t){return t})},clearCache:function(t){return c(r+"clear_module_cache",{module:t},"POST").then(function(t){return t})},clearCacheForPost:function(t){return c(r+"gutenberg_clear_post_cache",{postId:t},"POST")},redisSaveSettings:function(t,e,n,o){return c(r+"redis_save_settings",{host:t,port:e,password:n,db:o},"POST")},redisObjectCache:function(t){return c(r+"redis_toggle_object_cache",{value:t},"POST")},clearCacheBatch:function(t,e){return c(r+"clear_network_cache",{sites:t,offset:e},"POST")},disableFastCGI:function(){return c(r+"disable_fast_cgi",{},"POST").then(function(t){return t})},switchCacheMethod:function(t){return c(r+"switch_cache_method",{method:t},"POST").then(function(t){return t})}},cloudflare:{connect:function(t,e,n,o){return c(r+"cloudflare_connect",{email:t,key:e,token:n,zone:o},"POST").then(function(t){return t})}},minification:{toggleCDN:function(t){return c(r+"minification_toggle_cdn",{value:t},"POST")},toggleLog:function(t){return c(r+"minification_toggle_log",{value:t},"POST")},toggleView:function(t,e){return c(r+"minification_toggle_view",{value:t,hide:e},"POST").then(function(t){return t})},startCheck:function(){return c(r+"minification_start_check",{},"POST")},checkStep:function(t){return c(r+"minification_check_step",{step:t},"POST").then(function(t){return t})},finishCheck:function(){return c(r+"minification_finish_scan",{},"POST").then(function(t){return t})},cancelScan:function(){return c(r+"minification_cancel_scan",{},"POST")},saveCriticalCss:function(t){return c(r+"minification_save_extra_optimization_data",{form:t},"POST").then(function(t){return t})},updateAssetPath:function(t){return c(r+"minification_update_asset_path",{value:t},"POST")},saveNetworkSettings:function(t){return c(r+"minification_update_network_settings",{settings:t},"POST")},updateExcludeList:function(t){return c(r+"minification_save_exclude_list",{data:t},"POST")},clearCriticalCssFiles:function(){return c(r+"clear_critical_css_files",{},"POST").then(function(t){return t})},createCSSForPost:function(t){return c(r+"gutenberg_create_css_file",{postId:t},"POST")},reCreateCSSForPost:function(t){return c(r+"gutenberg_recreate_css_file",{postId:t},"POST")},revertCSSForPost:function(t){return c(r+"gutenberg_revert_css_file",{postId:t},"POST")},getCriticalStatusForSinglePost:function(t){return c(r+"gutenberg_get_critical_status_for_single_post",{postId:t},"POST")},getCriticalStatusForQueue:function(){return c(r+"get_critical_status_for_queue",{},"POST")},toggleDelayJs:function(t){return c(r+"react_minify_toggle_delay_js",{data:t},"POST")},toggleCriticalCss:function(t){return c(r+"react_minify_toggle_critical_css",{data:t},"POST")},resetExclusions:function(t,e){return c(r+"reset_exclusions",{value:t,type:e},"POST")}},performance:{savePerformanceTestSettings:function(t){return c(r+"performance_save_settings",{data:t},"POST")}},advanced:{saveSettings:function(t,e){return c(r+"advanced_save_settings",{data:t,form:e},"POST").then(function(t){return t})},deleteSelectedData:function(t){return c(r+"advanced_db_delete_data",{data:t},"POST").then(function(t){return t})},clearOrphanedBatch:function(t){return c(r+"advanced_purge_orphaned",{rows:t},"POST")}},settings:{saveSettings:function(t){return c(r+"admin_settings_save_settings",{form_data:t},"POST").then(function(t){return t})},importSettings:function(t){return c(r+"admin_settings_import_settings",t,"POST").then(function(t){return t})},exportSettings:function(){var n=r+"admin_settings_export_settings";window.location=t+"?action="+n+"&nonce="+e}},common:{dismissNotice:function(t){return c(r+"notice_dismiss",{id:t,SubAction:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""},"POST")},clearLogs:function(t){return c(r+"logger_clear",{module:t},"POST").then(function(t){return t})},call:function(t){return c(t,{},"POST").then(function(t){return t})},callWithParams:function(t,e){return c(t,{data:e},"POST").then(function(t){return t})},clearCaches:function(t){return c(r+"clear_caches",{modules:t},"POST").then(function(t){return t})}},mixpanel:{trackMixpanelEvent:function(t,e){return c(r+"analytics_track_event",{event:t,properties:e},"POST")}},notifications:{resendConfirmationEmail:function(t,e){return c(a+"resend_confirmation",{name:t,email:e},"POST").then(function(t){return t})},sendConfirmationEmail:function(t,e){return c(a+"send_confirmation",{name:t,email:e},"POST").then(function(t){return t})},disable:function(t,e){return c(a+"disable_notification",{id:t,type:e},"POST")},enable:function(t){return c(a+"enable_notification",{settings:t,update:arguments.length>1&&void 0!==arguments[1]&&arguments[1]},"POST").then(function(t){return t})},getAvatar:function(t){return c(a+"get_avatar",{email:t},"POST").then(function(t){return t})},getUsers:function(t){return c(a+"search_users",{exclude:t},"POST").then(function(t){return t})}}};o()(this,u)};e.A=a},9935:function(t){t.exports=function(){return!1}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,r(o.key),o)}}function r(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}var o,i=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.modalId="wphb-deactivation-survey-modal",this.modal=document.getElementById(this.modalId),this.deactivatePluginLink=document.querySelector('a[id^="deactivate-hummingbird-pro"], a[id^="deactivate-hummingbird-performance"]'),this.reason="not_set",this.requestedAssistance="na",this.modalAction="close",this.userMessageField=null},n=[{key:"init",value:function(){this.modal&&this.deactivatePluginLink&&this.setupSurveyModal()}},{key:"setupSurveyModal",value:function(){var t=this;this.deactivatePluginLink.addEventListener("click",function(e){e.preventDefault(),t.showModal(),t.setupSurveyForm()})}},{key:"setupSurveyForm",value:function(){this.setupRequestAssistanceLink(),this.setupRadioChange(),this.setupButton(".wphb-deactivate-without-feedback-button","skip"),this.setupButton(".wphb-submit-feedback-deactivate-button","submit"),this.trackDeactivation()}},{key:"setupRequestAssistanceLink",value:function(){var t=this,e=this.modal.querySelector("#wphb-support-link");e&&(this.requestedAssistance="no",e.addEventListener("click",function(){t.requestedAssistance="yes"}))}},{key:"setupRadioChange",value:function(){var t=this;this.userMessageField=document.getElementById("wphb-deactivation-feedback-field"),this.userMessageField&&this.modal.querySelectorAll('input[type="radio"]').forEach(function(e){e.addEventListener("change",function(){t.reason=e.value,t.toggleUserMessageField(e.parentElement)})})}},{key:"setupButton",value:function(t,e){var n=this,r=this.modal.querySelector(t);r&&r.addEventListener("click",function(t){t.target.classList.add("sui-button-onload"),n.modalAction=e,n.closeModal(),wphb.mixpanel.enabled||"skip"!==e||n.redirectToDeactivateLink()},{once:!0})}},{key:"handleEvent",value:function(t,e,n){var r=this.modal.querySelector(t);r&&r.addEventListener(e,n)}},{key:"toggleUserMessageField",value:function(t){var e;if(this.userMessageField&&null!==(e=t.dataset)&&void 0!==e&&e.placeholder){var n=this.userMessageField.querySelector("textarea");n.placeholder=t.dataset.placeholder,t.after(this.userMessageField),this.userMessageField.classList.remove("sui-hidden"),n.focus()}}},{key:"showModal",value:function(){var t;null===(t=window.SUI)||void 0===t||t.openModal(this.modalId,"wpbody-content",void 0,!0,!1,!0)}},{key:"closeModal",value:function(){var t;null===(t=window.SUI)||void 0===t||t.closeModal(!0)}},{key:"trackDeactivation",value:function(){var t=this;this.modal.addEventListener("afterClose",function(){if(t.shouldTrack()){var e=t.userMessageField.querySelector("textarea").value,n={Reason:t.reason,Message:e,"Modal Action":t.modalAction,"Requested Assistance":t.requestedAssistance,"Tracking Status":wphb.mixpanel.enabled?"opted_in":"opted_out"};jQuery.ajax({url:wphbGlobal.ajaxurl,method:"POST",data:{nonce:wphbGlobal.nonce,action:"wphb_track_deactivation",event:"Deactivation Survey",properties:n}}).done(function(){t.shouldDeactivatePlugin()&&t.redirectToDeactivateLink()})}},{once:!0})}},{key:"shouldTrack",value:function(){return wphb.mixpanel.enabled||this.isSubmitAction()}},{key:"isSubmitAction",value:function(){return"submit"===this.modalAction}},{key:"shouldDeactivatePlugin",value:function(){return"skip"===this.modalAction||this.isSubmitAction()}},{key:"redirectToDeactivateLink",value:function(){window.location.href=this.deactivatePluginLink.href}}],n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();o={init:function(){this.registerUpsellClick(),this.registerClearAllCache(),this.registerClearNetworkCache(),this.registerClearCacheFromNotice(),this.registerClearCloudflare(),this.registerSafeModeActions(),this.registerSwitchCriticalCSS(),this.registerDeactivationSurvey(),this.registerCopyText(),this.registerPublishSafeModeChanges()},registerCopyText:function(){var t=document.getElementById("wphb-copy-test-link");t&&t.addEventListener("click",function(){navigator.clipboard.writeText(wphbGlobal.previewLink).then(function(){var e=t.innerText,n=wphbGlobal.copyText;t.innerText=n,t.disabled=!0,setTimeout(function(){t.innerText=e,t.disabled=!1},2e3)})})},registerPublishSafeModeChanges:function(){var t=document.getElementById("wphb-publish-safe-mode-changes");t&&t.addEventListener("click",function(){t.disabled=!0,t.textContent=wphbGlobal.publishing,jQuery.ajax({url:wphbGlobal.ajaxurl,method:"POST",data:{nonce:wphbGlobal.nonce,action:"wphb_publish_safe_mode"}}).done(function(){window.location.href=wphbGlobal.hb_dashboard_url+"&wphb_safemode_published=1"})});var e=document.querySelector(".safe-mode-dashboard-notice .wphb-dismiss");e&&e.addEventListener("click",function(t){t.preventDefault();var n=e.closest(".safe-mode-dashboard-notice");n&&(n.style.display="none")})},registerDeactivationSurvey:function(){(document.querySelector('a[id^="deactivate-hummingbird-pro"]')||document.querySelector('a[id^="deactivate-hummingbird-performance"]'))&&(new i).init()},registerSwitchCriticalCSS:function(){var t=document.getElementById("wphb-switch-critical-from-legacy");t&&t.addEventListener("click",function(){return jQuery.ajax({url:wphbGlobal.ajaxurl,method:"POST",data:{nonce:wphbGlobal.nonce,action:"wphb_switch_to_critical_css_from_legacy"}}).done(function(){window.location.href=wphbGlobal.minify_url+"&view=tools"})})},clearCache:function(t){jQuery.ajax({url:wphbGlobal.ajaxurl,method:"POST",data:{nonce:wphbGlobal.nonce,action:"wphb_clear_caches",modules:[t]}}).done(function(){location.reload()})},registerClearAllCache:function(){var t=document.getElementById("wp-admin-bar-wphb-clear-all-cache");t&&t.addEventListener("click",function(){this.post("wphb_global_clear_cache&all_clear=1")}.bind(this))},registerUpsellClick:function(){var t=document.querySelector('#toplevel_page_wphb a[href^="https://wpmudev.com"]');t&&"undefined"!=typeof wphb&&wphb.mixpanel.enabled&&(wphbGlobal.is_hb_page||n(1597),t.addEventListener("click",function(t){window.wphbMixPanel.trackHBUpsell("pro_general","submenu","cta_clicked",t.currentTarget.href,"hb_pro_upsell")}))},registerClearNetworkCache:function(){var t=document.querySelector("#wp-admin-bar-wphb-clear-cache-network-wide > a");t&&t.addEventListener("click",function(){void 0!==window.WPHB_Admin?window.SUI.openModal("ccnw-modal","wpbody","ccnw-clear-now"):window.location.href="/wp-admin/network/admin.php?page=wphb-caching&update=open-ccnw"})},registerClearCacheFromNotice:function(){var t=this,e=document.getElementById("wp-admin-notice-wphb-clear-cache");e&&e.addEventListener("click",function(){return t.post("wphb_global_clear_cache")})},registerClearCloudflare:function(){var t=this,e=document.querySelector("#wp-admin-bar-wphb-clear-cloudflare > a");e&&e.addEventListener("click",function(){return t.post("wphb_front_clear_cloudflare")})},copyTextToClipboard:function(t){var e=document.createElement("textarea");e.value=t,e.style.top="0",e.style.left="0",e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(t){console.error("Oops, unable to copy",t)}document.body.removeChild(e)},registerSafeModeActions:function(){var t=this,e=document.getElementById("wphb-ao-safe-mode-save");e&&e.addEventListener("click",function(){e.disabled=!0,t.request("wphb_react_minify_publish_safe_mode").then(function(){window.location.href=wphbGlobal.minify_url+"&safe_mode_status=published"})});var n=document.getElementById("wphb-ao-safe-mode-copy");n&&n.addEventListener("click",function(e){e.preventDefault(),t.copyTextToClipboard(window.location.href);var r="wphb-ao-safe-mode-copy-success";n.classList.add(r),setTimeout(function(){n.classList.remove(r)},3e3)})},post:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.request(t).then(function(r){n&&"function"==typeof n&&n(r),e&&location.reload(t)})},request:function(t){return new Promise(function(e){var n=new XMLHttpRequest;n.open("POST",wphbGlobal.ajaxurl+"?action="+t+"&_ajax_nonce="+wphbGlobal.nonce),n.onload=function(){200===n.status&&e()},n.send()})}},document.addEventListener("DOMContentLoaded",function(){o.init()}),window.WPHBGlobal=o}()}(); //# sourceMappingURL=wphb-global.min.js.map
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0.19 |
proxy
|
phpinfo
|
Settings