System.register([],function(b){"use strict";return{execute:function(){varP=typeofglobalThis<"u"?globalThis:typeofwindow<"u"?window:typeofglobal<"u"?global:typeofself<"u"?self:{};functionO(i){returni&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}varc={exports:{}};(function(i){(function(l,u){i.exports?i.exports=u():l.prefix=u(l)})(P,function(l){varu=function(e){for(vart=1,m=arguments.length,n;t<m;t++)for(ninarguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);returne},T={template:"[%t] %l:",levelFormatter:function(e){returne.toUpperCase()},nameFormatter:function(e){returne||"root"},timestampFormatter:function(e){returne.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void0},d,o={},j=function(e){if(!e||!e.getLogger)thrownewTypeError("Argument is not a root logger");d=e},k=function(e,t){if(!e||!e.setLevel)thrownewTypeError("Argument is not a logger");varm=e.methodFactory,n=e.name||"",A=o[n]||o[""]||T;functionC(y,D,s){varL=m(y,D,s),a=o[s]||o[""],M=a.template.indexOf("%t")!==-1,S=a.template.indexOf("%l")!==-1,_=a.template.indexOf("%n")!==-1;returnfunction(){for(varr="",g=arguments.length,f=Array(g),v=0;v<g;v++)f[v]=arguments[v];if(n||!o[s]){varx=a.timestampFormatter(newDate),w=a.levelFormatter(y),F=a.nameFormatter(s);a.format?r+=a.format(w,F,x):(r+=a.template,M&&(r=r.replace(/%t/,x)),S&&(r=r.replace(/%l/,w)),_&&(r=r.replace(/%n/,F))),f.length&&typeoff[0]=="string"?f[0]=r+" "+f[0]:f.unshift(r)}L.apply(void0,f)}}returno[n]||(e.methodFactory=C),t=t||{},t.template&&(t.format=void0),o[n]=u({},A,t),e.setLevel(e.getLevel()),d||e.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),e},p={reg:j,apply:k},h;returnl&&(h=l.prefix,p.noConflict=function(){returnl.prefix===p&&(l.prefix=h),p}),p})})(c);varE=c.exports,$=b("default",O(E))}}});
System.register([],function(E){"use strict";return{execute:function(){varI=typeofglobalThis<"u"?globalThis:typeofwindow<"u"?window:typeofglobal<"u"?global:typeofself<"u"?self:{};functionT(f){returnf&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}vary={exports:{}};/*! loglevel - v1.8.1 - https://github.com/pimterry/loglevel - (c) 2022 Tim Perry - licensed MIT */(function(f){(function(u,i){f.exports?f.exports=i():u.log=i()})(I,function(){varu=function(){},i="undefined",m=typeofwindow!==i&&typeofwindow.navigator!==i&&/Trident\/|MSIE /.test(window.navigator.userAgent),g=["trace","debug","info","warn","error"];functionw(n,t){varr=n[t];if(typeofr.bind=="function")returnr.bind(n);try{returnFunction.prototype.bind.call(r,n)}catch{returnfunction(){returnFunction.prototype.apply.apply(r,[n,arguments])}}}functionF(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}functionR(n){returnn==="debug"&&(n="log"),typeofconsole===i?!1:n==="trace"&&m?F:console[n]!==void0?w(console,n):console.log!==void0?w(console,"log"):u}functionv(n,t){for(varr=0;r<g.length;r++){varo=g[r];this[o]=r<n?u:this.methodFactory(o,n,t)}this.log=this.debug}functionS(n,t,r){returnfunction(){typeofconsole!==i&&(v.call(this,t,r),this[n].apply(this,arguments))}}functionA(n,t,r){returnR(n)||S.apply(this,arguments)}functionh(n,t,r){varo=this,L;t=t??"WARN";varl="loglevel";typeofn=="string"?l+=":"+n:typeofn=="symbol"&&(l=void0);functionM(e){varc=(g[e]||"silent").toUpperCase();if(!(typeofwindow===i||!l)){try{window.localStorage[l]=c;return}catch{}try{window.document.cookie=encodeURIComponent(l)+"="+c+";"}catch{}}}functionb(){vare;if(!(typeofwindow===i||!l)){try{e=window.localStorage[l]}catch{}if(typeofe===i)try{varc=window.document.cookie,a=c.indexOf(encodeURIComponent(l)+"=");a!==-1&&(e=/^([^;]+)/.exec(c.slice(a))[1])}catch{}returno.levels[e]===void0&&(e=void0),e}}functionx(){if(!(typeofwindow===i||!l)){try{window.localStorage.removeItem(l);return}catch{}try{window.document.cookie=encodeURIComponent(l)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}o.name=n,o.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},o.methodFactory=r||A,o.getLevel=function(){returnL},o.setLevel=function(e,c){if(typeofe=="string"&&o.levels[e.toUpperCase()]!==void0&&(e=o.levels[e.toUpperCase()]),typeofe=="number"&&e>=0&&e<=o.levels.SILENT){if(L=e,c!==!1&&M(e),v.call(o,e,n),typeofconsole===i&&e<o.levels.SILENT)return"No console available for logging"}elsethrow"log.setLevel() called with invalid level: "+e},o.setDefaultLevel=function(e){t=e,b()||o.setLevel(e,!1)},o.resetLevel=function(){o.setLevel(t,!1),x()},o.enableAll=function(e){o.setLevel(o.levels.TRACE,e)},o.disableAll=function(e){o.setLevel(o.levels.SILENT,e)};varp=b();p==null&&(p=t),o.setLevel(p,!1)}vars=newh,d={};s.getLogger=function(t){if(typeoft!="symbol"&&typeoft!="string"||t==="")thrownewTypeError("You must supply a name when creating a logger.");varr=d[t];returnr||(r=d[t]=newh(t,s.getLevel(),s.methodFactory)),r};varU=typeofwindow!==i?window.log:void0;returns.noConflict=function(){returntypeofwindow!==i&&window.log===s&&(window.log=U),s},s.getLoggers=function(){returnd},s.default=s,s})})(y);varC=y.exports,O=E("default",T(C))}}});
System.register([],function(){"use strict";return{execute:function(){functionv(o){if(typeofo!="string")thrownewTypeError("Path must be a string. Received "+JSON.stringify(o))}functionm(o,e){for(varr="",i=0,l=-1,f=0,n,t=0;t<=o.length;++t){if(t<o.length)n=o.charCodeAt(t);else{if(n===47)break;n=47}if(n===47){if(!(l===t-1||f===1))if(l!==t-1&&f===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){vars=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",i=0):(r=r.slice(0,s),i=r.length-1-r.lastIndexOf("/")),l=t,f=0;continue}}elseif(r.length===2||r.length===1){r="",i=0,l=t,f=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}elser.length>0?r+="/"+o.slice(l+1,t):r=o.slice(l+1,t),i=t-l-1;l=t,f=0}elsen===46&&f!==-1?++f:f=-1}returnr}functionC(o,e){varr=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");returnr?r===e.root?r+i:r+o+i:i}varg={resolve:function(){for(vare="",r=!1,i,l=arguments.length-1;l>=-1&&!r;l--){varf;l>=0?f=arguments[l]:(i===void0&&(i=process.cwd()),f=i),v(f),f.length!==0&&(e=f+"/"+e,r=f.charCodeAt(0)===47)}returne=m(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(v(e),e.length===0)return".";varr=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;returne=m(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){returnv(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(vare,r=0;r<arguments.length;++r){vari=arguments[r];v(i),i.length>0&&(e===void0?e=i:e+="/"+i)}returne===void0?".":g.normalize(e)},relative:function(e,r){if(v(e),v(r),e===r||(e=g.resolve(e),r=g.resolve(r),e===r))return"";for(vari=1;i<e.length&&e.charCodeAt(i)===47;++i);for(varl=e.length,f=l-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(vart=r.length,s=t-n,c=f<s?f:s,u=-1,a=0;a<=c;++a){if(a===c){if(s>c){if(r.charCodeAt(n+a)===47)returnr.slice(n+a+1);if(a===0)returnr.slice(n+a)}elsef>c&&(e.charCodeAt(i+a)===47?u=a:a===0&&(u=0));break}varA=e.charCodeAt(i+a),b=r.charCodeAt(n+a);if(A!==b)break;A===47&&(u=a)}vard="";for(a=i+u+1;a<=l;++a)(a===l||e.charCodeAt(a)===47)&&(d.length===0?d+="..":d+="/..");returnd.length>0?d+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){returne},dirname:function(e){if(v(e),e.length===0)return".";for(varr=e.charCodeAt(0),i=r===47,l=-1,f=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!f){l=n;break}}elsef=!1;returnl===-1?i?"/":".":i&&l===1?"//":e.slice(0,l)},basename:function(e,r){if(r!==void0&&typeofr!="string")thrownewTypeError('"ext" argument must be a string');v(e);vari=0,l=-1,f=!0,n;if(r!==void0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";vart=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){varc=e.charCodeAt(n);if(c===47){if(!f){i=n+1;break}}elses===-1&&(f=!1,s=n+1),t>=0&&(c===r.charCodeAt(t)?--t===-1&&(l=n):(t=-1,l=s))}returni===l?l=s:l===-1&&(l=e.length),e.slice(i,l)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!f){i=n+1;break}}elsel===-1&&(f=!1,l=n+1);returnl===-1?"":e.slice(i,l)}},extname:function(e){v(e);for(varr=-1,i=0,l=-1,f=!0,n=0,t=e.length-1;t>=0;--t){vars=e.charCodeAt(t);if(s===47){if(!f){i=t+1;break}continue}l===-1&&(f=!1,l=t+1),s===46?r===-1?r=t:n!==1&&(n=1):r!==-1&&(n=-1)}returnr===-1||l===-1||n===0||n===1&&r===l-1&&r===i+1?"":e.slice(r,l)},format:function(e){if(e===null||typeofe!="object")thrownewTypeError('The "pathObject" argument must be of type Object. Received type '+typeofe);returnC("/",e)},parse:function(e){v(e);varr={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)returnr;vari=e.charCodeAt(0),l=i===47,f;l?(r.root="/",f=1):f=0;for(varn=-1,t=0,s=-1,c=!0,u=e.length-1,a=0;u>=f;--u){if(i=e.charCodeAt(u),i===47){if(!c){t=u+1;break}continue}s===-1&&(c=!1,s=u+1),i===46?n===-1?n=u:a!==1&&(a=1):n!==-1&&(a=-1)}returnn===-1||s===-1||a===0||a===1&&n===s-1&&n===t+1?s!==-1&&(t===0&&l?r.base=r.name=e.slice(1,s):r.base=r.name=e.slice(t,s)):(t===0&&l?(r.name=e.slice(1,n),r.base=e.slice(1,s)):(r.name=e.slice(t,n),r.base=e.slice(t,s)),r.ext=e.slice(n,s)),t>0?r.dir=e.slice(0,t-1):l&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};g.posix=g,module.exports=g}}});
System.register([],function(C){"use strict";return{execute:function(){functionb(s){returns&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}functionc(s){if(typeofs!="string")thrownewTypeError("Path must be a string. Received "+JSON.stringify(s))}functionm(s,e){for(varr="",i=0,t=-1,f=0,n,l=0;l<=s.length;++l){if(l<s.length)n=s.charCodeAt(l);else{if(n===47)break;n=47}if(n===47){if(!(t===l-1||f===1))if(t!==l-1&&f===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){vara=r.lastIndexOf("/");if(a!==r.length-1){a===-1?(r="",i=0):(r=r.slice(0,a),i=r.length-1-r.lastIndexOf("/")),t=l,f=0;continue}}elseif(r.length===2||r.length===1){r="",i=0,t=l,f=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}elser.length>0?r+="/"+s.slice(t+1,l):r=s.slice(t+1,l),i=l-t-1;t=l,f=0}elsen===46&&f!==-1?++f:f=-1}returnr}functionh(s,e){varr=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");returnr?r===e.root?r+i:r+s+i:i}varg={resolve:function(){for(vare="",r=!1,i,t=arguments.length-1;t>=-1&&!r;t--){varf;t>=0?f=arguments[t]:(i===void0&&(i=process.cwd()),f=i),c(f),f.length!==0&&(e=f+"/"+e,r=f.charCodeAt(0)===47)}returne=m(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(c(e),e.length===0)return".";varr=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;returne=m(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){returnc(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(vare,r=0;r<arguments.length;++r){vari=arguments[r];c(i),i.length>0&&(e===void0?e=i:e+="/"+i)}returne===void0?".":g.normalize(e)},relative:function(e,r){if(c(e),c(r),e===r||(e=g.resolve(e),r=g.resolve(r),e===r))return"";for(vari=1;i<e.length&&e.charCodeAt(i)===47;++i);for(vart=e.length,f=t-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(varl=r.length,a=l-n,v=f<a?f:a,u=-1,o=0;o<=v;++o){if(o===v){if(a>v){if(r.charCodeAt(n+o)===47)returnr.slice(n+o+1);if(o===0)returnr.slice(n+o)}elsef>v&&(e.charCodeAt(i+o)===47?u=o:o===0&&(u=0));break}varA=e.charCodeAt(i+o),k=r.charCodeAt(n+o);if(A!==k)break;A===47&&(u=o)}vard="";for(o=i+u+1;o<=t;++o)(o===t||e.charCodeAt(o)===47)&&(d.length===0?d+="..":d+="/..");returnd.length>0?d+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){returne},dirname:function(e){if(c(e),e.length===0)return".";for(varr=e.charCodeAt(0),i=r===47,t=-1,f=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!f){t=n;break}}elsef=!1;returnt===-1?i?"/":".":i&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void0&&typeofr!="string")thrownewTypeError('"ext" argument must be a string');c(e);vari=0,t=-1,f=!0,n;if(r!==void0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";varl=r.length-1,a=-1;for(n=e.length-1;n>=0;--n){varv=e.charCodeAt(n);if(v===47){if(!f){i=n+1;break}}elsea===-1&&(f=!1,a=n+1),l>=0&&(v===r.charCodeAt(l)?--l===-1&&(t=n):(l=-1,t=a))}returni===t?t=a:t===-1&&(t=e.length),e.slice(i,t)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!f){i=n+1;break}}elset===-1&&(f=!1,t=n+1);returnt===-1?"":e.slice(i,t)}},extname:function(e){c(e);for(varr=-1,i=0,t=-1,f=!0,n=0,l=e.length-1;l>=0;--l){vara=e.charCodeAt(l);if(a===47){if(!f){i=l+1;break}continue}t===-1&&(f=!1,t=l+1),a===46?r===-1?r=l:n!==1&&(n=1):r!==-1&&(n=-1)}returnr===-1||t===-1||n===0||n===1&&r===t-1&&r===i+1?"":e.slice(r,t)},format:function(e){if(e===null||typeofe!="object")thrownewTypeError('The "pathObject" argument must be of type Object. Received type '+typeofe);returnh("/",e)},parse:function(e){c(e);varr={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)returnr;vari=e.charCodeAt(0),t=i===47,f;t?(r.root="/",f=1):f=0;for(varn=-1,l=0,a=-1,v=!0,u=e.length-1,o=0;u>=f;--u){if(i=e.charCodeAt(u),i===47){if(!v){l=u+1;break}continue}a===-1&&(v=!1,a=u+1),i===46?n===-1?n=u:o!==1&&(o=1):n!==-1&&(o=-1)}returnn===-1||a===-1||o===0||o===1&&n===a-1&&n===l+1?a!==-1&&(l===0&&t?r.base=r.name=e.slice(1,a):r.base=r.name=e.slice(l,a)):(l===0&&t?(r.name=e.slice(1,n),r.base=e.slice(1,a)):(r.name=e.slice(l,n),r.base=e.slice(l,a)),r.ext=e.slice(n,a)),l>0?r.dir=e.slice(0,l-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};g.posix=g;vary=g,w=C("default",b(y))}}});
System.register([],(function(t){"use strict";return{execute:function(){functionn(t){if(tinstanceofArray)t&&t.length>0&&t.splice(0,t.length);elseif(tinstanceofObject&&t)for(varnint)Object.prototype.hasOwnProperty.call(t,n)&&deletet[n]}t({ascSort:function(t,n){returnt.sort((function(t,e){varr=n?t[n]:t,o=n?e[n]:e;returnr>o?1:r<o?-1:0}))},clearAll:n,clearCookie:function(t,n){j(t,"",-1,n)},createUUID:function(){return"".concat(g()+g(),"-").concat(g(),"-").concat(g(),"-").concat(g(),"-").concat(g()).concat(g()).concat(g())},descSort:function(t,n){returnt.sort((function(t,e){varr=n?t[n]:t,o=n?e[n]:e;returnr<o?1:r>o?-1:0}))},formatHttpParams:x,generateOrderValue:function(t){return100*(t+1)},getCookie:function(t){varn=newRegExp("(^| )".concat(t,"=([^;]*)(;|$)")),e=document.cookie.match(n);if(e&&e.length>1)returnunescape(e[2]);returnnull},getQueryVariable:function(t,n){void0===n&&(n=location.search);n.startsWith("?")&&(n=n.substring(1));for(vare=n.split("&"),r=0;r<e.length;r++){varo=e[r].split("=");if(o[0]==t)returno[1]}return!1},isArray:h,isAsync:f,isBoolean:function(t){return"boolean"===d(t)},isFunc:s,isMap:y,isNilOrEmpty:function(t){if(w(t)||O(t))return!0;return!1},isNumber:function(t){return"number"===d(t)},isObject:p,isPromise:l,isSet:m,isString:b,isWeakMap:function(t){return"weakmap"===d(t)},notNilEmpty:function(t){if(!w(t)&&!O(t))return!0;return!1},setCookie:j,setUrlQuery:function(t,n){vare=x(n);t=t.endsWith("?")||-1!==t.indexOf("?")&&t.endsWith("&")?"".concat(t).concat(e):-1===t.indexOf("?")||t.endsWith("&")?"".concat(t,"?").concat(e):"".concat(t,"&").concat(e);returnt},typeOf:d});vare=function(t,n){returne=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,n){t.__proto__=n}||function(t,n){for(vareinn)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},e(t,n)};functionr(t,n,e,r){returnnew(e||(e=Promise))((function(o,i){functionc(t){try{u(r.next(t))}catch(t){i(t)}}functiona(t){try{u(r.throw(t))}catch(t){i(t)}}functionu(t){varn;t.done?o(t.value):(n=t.value,ninstanceofe?n:newe((function(t){t(n)}))).then(c,a)}u((r=r.apply(t,n||[])).next())}))}functiono(t,n){vare,r,o,i,c={label:0,sent:function(){if(1&o[0])throwo[1];returno[1]},trys:[],ops:[]};returni={next:a(0),throw:a(1),return:a(2)},"function"==typeofSymbol&&(i[Symbol.iterator]=function(){returnthis}),i;functiona(a){returnfunction(u){returnfunction(a){if(e)thrownewTypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(c=0)),c;)try{if(e=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)returno;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case0:case1:o=a;break;case4:returnc.label++,{value:a[1],done:!1};case5:c.label++,r=a[1],a=[0];continue;case7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=n.call(t,c)}catch(t){a=[6,t],r=0}finally{e=o=0}if(5&a[0])throwa[1];return{value:a[0]?a[1]:void0,done:!0}}([a,u])}}}functioni(t,n){vare="function"==typeofSymbol&&t[Symbol.iterator];if(!e)returnt;varr,o,i=e.call(t),c=[];try{for(;(void0===n||n-->0)&&!(r=i.next()).done;)c.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throwo.error}}returnc}functionc(t,n,e){if(e||2===arguments.length)for(varr,o=0,i=n.length;o<i;o++)!r&&oinn||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);returnt.concat(r||Array.prototype.slice.call(n))}vara=function(){functiont(){this.map=newMap,this.maxListeners=100}returnt.prototype.setMaxListeners=function(t){this.maxListeners=t},t.prototype.getSize=function(t){returnthis.map.has(t)?this.map.get(t).length:0},t.prototype.addListener=function(t,n){if(ninstanceofFunction){this.map.has(t)||this.map.set(t,[]);vare=this.map.get(t);if(!(e.length<this.maxListeners))thrownewError("事件监听已达最大上限[".concat(this.maxListeners,"],无法新增监听!"));e.push(n)}},t.prototype.removeListener=function(t,n){if(this.map.has(t)){vare=this.map.get(t);if(e.length>0)for(varr=0;r<e.length;r++){if(e[r]===n){e.splice(r,1);break}}}},t.prototype.emit=function(t){for(varn=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];if(this.map.has(t)){varr=this.map.get(t);r.forEach((function(t){t.apply(void0,c([],i(n),!1))}))}},t.prototype.asyncEmit=function(t){for(varn=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];returnr(this,void0,void0,(function(){vare,r;returno(this,(function(o){returnthis.map.has(t)?(e=this.map.get(t),r=e.map((function(t){returnt.apply(void0,c([],i(n),!1))})),[2,Promise.all(r)]):[2,[]]}))}))},t.prototype.reset=function(){this.map.forEach((function(t){n(t)})),this.map.clear()},t}(),u=(t("QXEvent",function(){functiont(t){this.e=newa,this.e.setMaxListeners(t||300)}returnt.prototype.getSize=function(t){returnthis.e.getSize(t)},t.prototype.on=function(t,n){this.e.addListener(t,n)},t.prototype.off=function(t,n){this.e.removeListener(t,n)},t.prototype.emit=function(t){for(varn,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];(n=this.e).emit.apply(n,c([t],i(e),!1))},t.prototype.asyncEmit=function(t){for(varn,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return(n=this.e).asyncEmit.apply(n,c([t],i(e),!1))},t.prototype.reset=function(){this.e.reset()},t}()),Object.prototype.toString);functions(t){return"function"===d(t)}functionf(t){return"[object AsyncFunction]"===u.call(t)}functionl(t){return"[object Promise]"===u.call(t)}functionp(t){return"object"===d(t)}functionh(t){return"array"===d(t)}functiony(t){return"map"===d(t)}functionm(t){return"set"===d(t)}functionb(t){return"string"===d(t)}varv={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object","[object Set]":"set","[object Map]":"map","[object WeakMap]":"weakmap"};functiond(t){returnv[u.call(t)]}functiong(){return(65536*(1+Math.random())|0).toString(16).substring(1)}functionj(t,n,e,r,o){void0===e&&(e=0),void0===r&&(r=!1),void0===o&&(o="/");vari="";if(r){if(!/^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/.test(location.hostname)){varc=location.hostname;c.indexOf(".")!==c.lastIndexOf(".")&&(i=";domain=".concat(c.substring(c.indexOf("."),c.length)))}}if(0!==e){vara=24*e*60*60*1e3,u=newDate((newDate).getTime()+a);document.cookie="".concat(t,"=").concat(escape(n),";path=").concat(o,";expires=").concat(u.toUTCString()).concat(i)}elsedocument.cookie="".concat(t,"=").concat(escape(n),";path=").concat(o).concat(i)}functionw(t){returnnull==t}functionO(t){if(h(t)||b(t))return0===t.length;if(p(t)){for(varnint)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}returny(t)||m(t)?0===t.size:null==t}functionx(t){varn={},e=[];returnObject.assign(n,t),Object.keys(n).forEach((function(t){varr=n[t];rinstanceofArray||rinstanceofObject?e.push("".concat(t,"=").concat(encodeURIComponent(JSON.stringify(r)))):e.push("".concat(t,"=").concat(encodeURIComponent(r)))})),e.join("&")}varS=t("SyncSeriesHook",function(){functiont(){this.items=[]}returnObject.defineProperty(t.prototype,"size",{get:function(){returnthis.items.length},enumerable:!1,configurable:!0}),t.prototype.callSync=function(t){for(varn=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];for(varr,o=t||Object.create({}),a=0;a<this.items.length;a++){varu=this.items[a];if(u.fn&&(r=u.fn.apply(u,c([o],i(n),!1))),null===r){console.warn("因".concat(u.fn?u.fn.name:null,"方法返回值为「null」,钩子中断执行。"),u);break}}returno},t.prototype.tap=function(t){if(t&&s(t)){varn={mode:"sync"};n.fn=t,this.items.push(n)}},t.prototype.removeTap=function(t){if(t)for(varn=0;n<this.items.length;n++){t===this.items[n].fn&&this.items.splice(n,1)}},t.prototype.clear=function(){this.items=[]},t}());t("AsyncSeriesHook",function(t){functionn(){returnnull!==t&&t.apply(this,arguments)||this}returnfunction(t,n){if("function"!=typeofn&&null!==n)thrownewTypeError("Class extends value "+String(n)+" is not a constructor or null");functionr(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,newr)}(n,t),n.prototype.call=function(t){for(varn=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];returnr(this,void0,void0,(function(){vare,r,a,u;returno(this,(function(o){switch(o.label){case0:e=t||Object.create({}),a=0,o.label=1;case1:returna<this.items.length?(u=this.items[a]).fn?"promise"!==u.mode?[3,4]:l(r=u.fn.apply(u,c([e],i(n),!1)))?[4,r]:[3,3]:[3,5]:[3,7];case2:r=o.sent(),o.label=3;case3:return[3,5];case4:r=u.fn.apply(u,c([e],i(n),!1)),o.label=5;case5:if(null===r)returnconsole.warn("因".concat(u.fn?u.fn.name:null,"方法返回值为「null」,钩子中断执行。"),u),[3,7];o.label=6;case6:returna++,[3,1];case7:return[2,e]}}))}))},n.prototype.tapPromise=function(t){if(t&&(s(t)||f(t))){varn={mode:"promise"};n.fn=t,this.items.push(n)}},n.prototype.removeTapPromise=function(t){this.removeTap(t)},n}(S))}}}));