!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?e(exports):"function"==typeofdefine&&define.amd?define(["exports"],e):e((t="undefined"!=typeofglobalThis?globalThis:t||self).window=t.window||{})}(this,(function(t){"use strict";functione(t){return(e="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft})(t)}functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functionn(t,e){for(vari=0;i<e.length;i++){varn=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}functiono(t,e,i){returne&&n(t.prototype,e),i&&n(t,i),t}functionr(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){returnt.__proto__||Object.getPrototypeOf(t)})(t)}functions(t,e){return(s=Object.setPrototypeOf||function(t,e){returnt.__proto__=e,t})(t,e)}functiona(t){if(void0===t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returnt}functionh(t,e){return!e||"object"!=typeofe&&"function"!=typeofe?a(t):e}functionc(t){vare=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnBoolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();returnfunction(){vari,n=r(t);if(e){varo=r(this).constructor;i=Reflect.construct(n,arguments,o)}elsei=n.apply(this,arguments);returnh(this,i)}}functionl(t,e){returnfunction(t){if(Array.isArray(t))returnt}(t)||function(t,e){vari=null==t?null:"undefined"!=typeofSymbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;varn,o,r=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(r.push(n.value),!e||r.length!==e);s=!0);}catch(t){a=!0,o=t}finally{try{s||null==i.return||i.return()}finally{if(a)throwo}}returnr}(t,e)||d(t,e)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionu(t){returnfunction(t){if(Array.isArray(t))returnf(t)}(t)||function(t){if("undefined"!=typeofSymbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])returnArray.from(t)}(t)||d(t)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functiond(t,e){if(t){if("string"==typeoft)returnf(t,e);vari=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?f(t,e):void0}}functionf(t,e){(null==e||e>t.length)&&(e=t.length);for(vari=0,n=newArray(e);i<e;i++)n[i]=t[i];returnn}functionp(t,e){vari="undefined"!=typeofSymbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=d(t))||e&&t&&"number"==typeoft.length){i&&(t=i);varn=0,o=function(){};return{s:o,n:function(){returnn>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throwt},f:o}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}varr,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){vart=i.next();returns=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throwr}}}}varv=function(t){return"object"===e(t)&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t)},g=functiont(){for(vari=!1,n=arguments.length,o=newArray(n),r=0;r<n;r++)o[r]=arguments[r];"boolean"==typeofo[0]&&(i=o.shift());vars=o[0];if(!s||"object"!==e(s))thrownewError("extendee must be an object");for(vara=o.slice(1),h=a.length,c=0;c<h;c++){varl=a[c];for(varuinl)if(l.hasOwnProperty(u)){vard=l[u];if(i&&(Array.isArray(d)||v(d))){varf=Array