kollapsminoriteten/wp-content/plugins/jetpack/_inc/build/instant-search/jp-search-ie11-polyfill-pay...

1 line
188 KiB
JavaScript
Raw Normal View History

2021-09-07 21:40:48 +02:00
!function(){var t={26841:function(t,r,e){var n,o;void 0===(o="function"==typeof(n=function(){"use strict";function t(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function r(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function e(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function n(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&i(t,r)}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,r){return(i=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,r){return!r||"object"!=typeof r&&"function"!=typeof r?a(t):r}function c(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=o(t);if(r){var i=o(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return u(this,e)}}function s(t,r,e){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,r,e){var n=function(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=o(t)););return t}(t,r);if(n){var i=Object.getOwnPropertyDescriptor(n,r);return i.get?i.get.call(e):i.value}})(t,r,e||t)}var f=function(){function r(){t(this,r),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return e(r,[{key:"addEventListener",value:function(t,r,e){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push({callback:r,options:e})}},{key:"removeEventListener",value:function(t,r){if(t in this.listeners)for(var e=this.listeners[t],n=0,o=e.length;n<o;n++)if(e[n].callback===r)return void e.splice(n,1)}},{key:"dispatchEvent",value:function(t){if(t.type in this.listeners){for(var r=this.listeners[t.type].slice(),e=0,n=r.length;e<n;e++){var o=r[e];try{o.callback.call(this,t)}catch(t){Promise.resolve().then((function(){throw t}))}o.options&&o.options.once&&this.removeEventListener(t.type,o.callback)}return!t.defaultPrevented}}}]),r}(),l=function(r){n(u,r);var i=c(u);function u(){var r;return t(this,u),(r=i.call(this)).listeners||f.call(a(r)),Object.defineProperty(a(r),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(r),"onabort",{value:null,writable:!0,configurable:!0}),r}return e(u,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),s(o(u.prototype),"dispatchEvent",this).call(this,t)}}]),u}(f),h=function(){function r(){t(this,r),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return e(r,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(r){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),r}();function p(t){return t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof t.Request&&!t.Request.prototype.hasOwnProperty("signal")||!t.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(h.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(t){if(p(t))if(t.fetch){var r=function(t){"function"==typeof t&&(t={fetch:t});var r=