-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpolyfills.449fb8b5d525f2d5.js
1 lines (1 loc) · 34.5 KB
/
polyfills.449fb8b5d525f2d5.js
1
"use strict";(self.webpackChunkmaterial_angular_io=self.webpackChunkmaterial_angular_io||[]).push([[6429],{5565:(Zt,Kn,Zn)=>{Zn(7181);class Mg extends Error{constructor(e){super(`No translation found for ${Ql(e)}.`),this.parsedMessage=e,this.type="MissingTranslationError"}}const jo=function(s,...e){if(jo.translate){const n=jo.translate(s,e);s=n[0],e=n[1]}let t=Jl(s[0],s.raw[0]);for(let n=1;n<s.length;n++)t+=e[n-1]+Jl(s[n],s.raw[n]);return t};function Jl(s,e){return":"===e.charAt(0)?s.substring(function Xl(s,e){for(let t=1,n=1;t<s.length;t++,n++)if("\\"===e[n])n++;else if(":"===s[t])return t;throw new Error(`Unterminated $localize metadata block in "${e}".`)}(s,e)+1):s}(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)().$localize=jo},7181:()=>{!function(d){const v=d.performance;function T(x){v&&v.mark&&v.mark(x)}function _(x,W){v&&v.measure&&v.measure(x,W)}T("Zone");const C=d.__Zone_symbol_prefix||"__zone_symbol__";function b(x){return C+x}const R=!0===d[b("forceDuplicateZoneCheck")];if(d.Zone){if(R||"function"!=typeof d.Zone.__symbol__)throw new Error("Zone already loaded.");return d.Zone}let U=(()=>{class x{constructor(h,g){this._parent=h,this._name=g?g.name||"unnamed":"<root>",this._properties=g&&g.properties||{},this._zoneDelegate=new F(this,this._parent&&this._parent._zoneDelegate,g)}static assertZonePatched(){if(d.Promise!==xt.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let h=x.current;for(;h.parent;)h=h.parent;return h}static get current(){return Ne.zone}static get currentTask(){return vt}static __load_patch(h,g,L=!1){if(xt.hasOwnProperty(h)){if(!L&&R)throw Error("Already loaded patch: "+h)}else if(!d["__Zone_disable_"+h]){const J="Zone:"+h;T(J),xt[h]=g(d,x,Ie),_(J,J)}}get parent(){return this._parent}get name(){return this._name}get(h){const g=this.getZoneWith(h);if(g)return g._properties[h]}getZoneWith(h){let g=this;for(;g;){if(g._properties.hasOwnProperty(h))return g;g=g._parent}return null}fork(h){if(!h)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,h)}wrap(h,g){if("function"!=typeof h)throw new Error("Expecting function got: "+h);const L=this._zoneDelegate.intercept(this,h,g),J=this;return function(){return J.runGuarded(L,this,arguments,g)}}run(h,g,L,J){Ne={parent:Ne,zone:this};try{return this._zoneDelegate.invoke(this,h,g,L,J)}finally{Ne=Ne.parent}}runGuarded(h,g=null,L,J){Ne={parent:Ne,zone:this};try{try{return this._zoneDelegate.invoke(this,h,g,L,J)}catch(Re){if(this._zoneDelegate.handleError(this,Re))throw Re}}finally{Ne=Ne.parent}}runTask(h,g,L){if(h.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(h.zone||be).name+"; Execution: "+this.name+")");if(h.state===Ee&&(h.type===ze||h.type===j))return;const J=h.state!=M;J&&h._transitionTo(M,oe),h.runCount++;const Re=vt;vt=h,Ne={parent:Ne,zone:this};try{h.type==j&&h.data&&!h.data.isPeriodic&&(h.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,h,g,L)}catch(S){if(this._zoneDelegate.handleError(this,S))throw S}}finally{h.state!==Ee&&h.state!==$&&(h.type==ze||h.data&&h.data.isPeriodic?J&&h._transitionTo(oe,M):(h.runCount=0,this._updateTaskCount(h,-1),J&&h._transitionTo(Ee,M,Ee))),Ne=Ne.parent,vt=Re}}scheduleTask(h){if(h.zone&&h.zone!==this){let L=this;for(;L;){if(L===h.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${h.zone.name}`);L=L.parent}}h._transitionTo(Q,Ee);const g=[];h._zoneDelegates=g,h._zone=this;try{h=this._zoneDelegate.scheduleTask(this,h)}catch(L){throw h._transitionTo($,Q,Ee),this._zoneDelegate.handleError(this,L),L}return h._zoneDelegates===g&&this._updateTaskCount(h,1),h.state==Q&&h._transitionTo(oe,Q),h}scheduleMicroTask(h,g,L,J){return this.scheduleTask(new K(se,h,g,L,J,void 0))}scheduleMacroTask(h,g,L,J,Re){return this.scheduleTask(new K(j,h,g,L,J,Re))}scheduleEventTask(h,g,L,J,Re){return this.scheduleTask(new K(ze,h,g,L,J,Re))}cancelTask(h){if(h.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(h.zone||be).name+"; Execution: "+this.name+")");if(h.state===oe||h.state===M){h._transitionTo(Ae,oe,M);try{this._zoneDelegate.cancelTask(this,h)}catch(g){throw h._transitionTo($,Ae),this._zoneDelegate.handleError(this,g),g}return this._updateTaskCount(h,-1),h._transitionTo(Ee,Ae),h.runCount=0,h}}_updateTaskCount(h,g){const L=h._zoneDelegates;-1==g&&(h._zoneDelegates=null);for(let J=0;J<L.length;J++)L[J]._updateTaskCount(h.type,g)}}return x.__symbol__=b,x})();const ee={name:"",onHasTask:(x,W,h,g)=>x.hasTask(h,g),onScheduleTask:(x,W,h,g)=>x.scheduleTask(h,g),onInvokeTask:(x,W,h,g,L,J)=>x.invokeTask(h,g,L,J),onCancelTask:(x,W,h,g)=>x.cancelTask(h,g)};class F{constructor(W,h,g){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=W,this._parentDelegate=h,this._forkZS=g&&(g&&g.onFork?g:h._forkZS),this._forkDlgt=g&&(g.onFork?h:h._forkDlgt),this._forkCurrZone=g&&(g.onFork?this.zone:h._forkCurrZone),this._interceptZS=g&&(g.onIntercept?g:h._interceptZS),this._interceptDlgt=g&&(g.onIntercept?h:h._interceptDlgt),this._interceptCurrZone=g&&(g.onIntercept?this.zone:h._interceptCurrZone),this._invokeZS=g&&(g.onInvoke?g:h._invokeZS),this._invokeDlgt=g&&(g.onInvoke?h:h._invokeDlgt),this._invokeCurrZone=g&&(g.onInvoke?this.zone:h._invokeCurrZone),this._handleErrorZS=g&&(g.onHandleError?g:h._handleErrorZS),this._handleErrorDlgt=g&&(g.onHandleError?h:h._handleErrorDlgt),this._handleErrorCurrZone=g&&(g.onHandleError?this.zone:h._handleErrorCurrZone),this._scheduleTaskZS=g&&(g.onScheduleTask?g:h._scheduleTaskZS),this._scheduleTaskDlgt=g&&(g.onScheduleTask?h:h._scheduleTaskDlgt),this._scheduleTaskCurrZone=g&&(g.onScheduleTask?this.zone:h._scheduleTaskCurrZone),this._invokeTaskZS=g&&(g.onInvokeTask?g:h._invokeTaskZS),this._invokeTaskDlgt=g&&(g.onInvokeTask?h:h._invokeTaskDlgt),this._invokeTaskCurrZone=g&&(g.onInvokeTask?this.zone:h._invokeTaskCurrZone),this._cancelTaskZS=g&&(g.onCancelTask?g:h._cancelTaskZS),this._cancelTaskDlgt=g&&(g.onCancelTask?h:h._cancelTaskDlgt),this._cancelTaskCurrZone=g&&(g.onCancelTask?this.zone:h._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const L=g&&g.onHasTask;(L||h&&h._hasTaskZS)&&(this._hasTaskZS=L?g:ee,this._hasTaskDlgt=h,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=W,g.onScheduleTask||(this._scheduleTaskZS=ee,this._scheduleTaskDlgt=h,this._scheduleTaskCurrZone=this.zone),g.onInvokeTask||(this._invokeTaskZS=ee,this._invokeTaskDlgt=h,this._invokeTaskCurrZone=this.zone),g.onCancelTask||(this._cancelTaskZS=ee,this._cancelTaskDlgt=h,this._cancelTaskCurrZone=this.zone))}fork(W,h){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,W,h):new U(W,h)}intercept(W,h,g){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,W,h,g):h}invoke(W,h,g,L,J){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,W,h,g,L,J):h.apply(g,L)}handleError(W,h){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,W,h)}scheduleTask(W,h){let g=h;if(this._scheduleTaskZS)this._hasTaskZS&&g._zoneDelegates.push(this._hasTaskDlgtOwner),g=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,W,h),g||(g=h);else if(h.scheduleFn)h.scheduleFn(h);else{if(h.type!=se)throw new Error("Task is missing scheduleFn.");ne(h)}return g}invokeTask(W,h,g,L){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,W,h,g,L):h.callback.apply(g,L)}cancelTask(W,h){let g;if(this._cancelTaskZS)g=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,W,h);else{if(!h.cancelFn)throw Error("Task is not cancelable");g=h.cancelFn(h)}return g}hasTask(W,h){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,W,h)}catch(g){this.handleError(W,g)}}_updateTaskCount(W,h){const g=this._taskCounts,L=g[W],J=g[W]=L+h;if(J<0)throw new Error("More tasks executed then were scheduled.");0!=L&&0!=J||this.hasTask(this.zone,{microTask:g.microTask>0,macroTask:g.macroTask>0,eventTask:g.eventTask>0,change:W})}}class K{constructor(W,h,g,L,J,Re){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=W,this.source=h,this.data=L,this.scheduleFn=J,this.cancelFn=Re,!g)throw new Error("callback is not defined");this.callback=g;const S=this;this.invoke=W===ze&&L&&L.useG?K.invokeTask:function(){return K.invokeTask.call(d,S,this,arguments)}}static invokeTask(W,h,g){W||(W=this),Pe++;try{return W.runCount++,W.zone.runTask(W,h,g)}finally{1==Pe&&G(),Pe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Ee,Q)}_transitionTo(W,h,g){if(this._state!==h&&this._state!==g)throw new Error(`${this.type} '${this.source}': can not transition to '${W}', expecting state '${h}'${g?" or '"+g+"'":""}, was '${this._state}'.`);this._state=W,W==Ee&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const ge=b("setTimeout"),pe=b("Promise"),le=b("then");let Ge,we=[],Te=!1;function Fe(x){if(Ge||d[pe]&&(Ge=d[pe].resolve(0)),Ge){let W=Ge[le];W||(W=Ge.then),W.call(Ge,x)}else d[ge](x,0)}function ne(x){0===Pe&&0===we.length&&Fe(G),x&&we.push(x)}function G(){if(!Te){for(Te=!0;we.length;){const x=we;we=[];for(let W=0;W<x.length;W++){const h=x[W];try{h.zone.runTask(h,null,null)}catch(g){Ie.onUnhandledError(g)}}}Ie.microtaskDrainDone(),Te=!1}}const be={name:"NO ZONE"},Ee="notScheduled",Q="scheduling",oe="scheduled",M="running",Ae="canceling",$="unknown",se="microTask",j="macroTask",ze="eventTask",xt={},Ie={symbol:b,currentZoneFrame:()=>Ne,onUnhandledError:ve,microtaskDrainDone:ve,scheduleMicroTask:ne,showUncaughtError:()=>!U[b("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:ve,patchMethod:()=>ve,bindArguments:()=>[],patchThen:()=>ve,patchMacroTask:()=>ve,patchEventPrototype:()=>ve,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>ve,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>ve,wrapWithCurrentZone:()=>ve,filterProperties:()=>[],attachOriginToPatched:()=>ve,_redefineProperty:()=>ve,patchCallbacks:()=>ve,nativeScheduleMicroTask:Fe};let Ne={parent:null,zone:new U(null,null)},vt=null,Pe=0;function ve(){}_("Zone","Zone"),d.Zone=U}(typeof window<"u"&&window||typeof self<"u"&&self||global);const Zt=Object.getOwnPropertyDescriptor,Kn=Object.defineProperty,Zn=Object.getPrototypeOf,ir=Object.create,He=Array.prototype.slice,nt="addEventListener",In="removeEventListener",Dn=Zone.__symbol__(nt),ms=Zone.__symbol__(In),wt="true",mt="false",te=Zone.__symbol__("");function Xn(d,v){return Zone.current.wrap(d,v)}function fn(d,v,T,_,C){return Zone.current.scheduleMacroTask(d,v,T,_,C)}const _e=Zone.__symbol__,Nn=typeof window<"u",st=Nn?window:void 0,Be=Nn&&st||"object"==typeof self&&self||global;function gs(d,v){for(let T=d.length-1;T>=0;T--)"function"==typeof d[T]&&(d[T]=Xn(d[T],v+"_"+T));return d}function Ve(d){return!d||!1!==d.writable&&!("function"==typeof d.get&&typeof d.set>"u")}const lt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,mn=!("nw"in Be)&&typeof Be.process<"u"&&"[object process]"==={}.toString.call(Be.process),Pn=!mn&&!lt&&!(!Nn||!st.HTMLElement),or=typeof Be.process<"u"&&"[object process]"==={}.toString.call(Be.process)&&!lt&&!(!Nn||!st.HTMLElement),ue={},Ye=function(d){if(!(d=d||Be.event))return;let v=ue[d.type];v||(v=ue[d.type]=_e("ON_PROPERTY"+d.type));const T=this||d.target||Be,_=T[v];let C;if(Pn&&T===st&&"error"===d.type){const b=d;C=_&&_.call(this,b.message,b.filename,b.lineno,b.colno,b.error),!0===C&&d.preventDefault()}else C=_&&_.apply(this,arguments),null!=C&&!C&&d.preventDefault();return C};function ar(d,v,T){let _=Zt(d,v);if(!_&&T&&Zt(T,v)&&(_={enumerable:!0,configurable:!0}),!_||!_.configurable)return;const C=_e("on"+v+"patched");if(d.hasOwnProperty(C)&&d[C])return;delete _.writable,delete _.value;const b=_.get,R=_.set,U=v.slice(2);let ee=ue[U];ee||(ee=ue[U]=_e("ON_PROPERTY"+U)),_.set=function(F){let K=this;!K&&d===Be&&(K=Be),K&&("function"==typeof K[ee]&&K.removeEventListener(U,Ye),R&&R.call(K,null),K[ee]=F,"function"==typeof F&&K.addEventListener(U,Ye,!1))},_.get=function(){let F=this;if(!F&&d===Be&&(F=Be),!F)return null;const K=F[ee];if(K)return K;if(b){let ge=b.call(this);if(ge)return _.set.call(this,ge),"function"==typeof F.removeAttribute&&F.removeAttribute(v),ge}return null},Kn(d,v,_),d[C]=!0}function ur(d,v,T){if(v)for(let _=0;_<v.length;_++)ar(d,"on"+v[_],T);else{const _=[];for(const C in d)"on"==C.slice(0,2)&&_.push(C);for(let C=0;C<_.length;C++)ar(d,_[C],T)}}const gt=_e("originalInstance");function Ot(d){const v=Be[d];if(!v)return;Be[_e(d)]=v,Be[d]=function(){const C=gs(arguments,d);switch(C.length){case 0:this[gt]=new v;break;case 1:this[gt]=new v(C[0]);break;case 2:this[gt]=new v(C[0],C[1]);break;case 3:this[gt]=new v(C[0],C[1],C[2]);break;case 4:this[gt]=new v(C[0],C[1],C[2],C[3]);break;default:throw new Error("Arg list too long.")}},Nt(Be[d],v);const T=new v(function(){});let _;for(_ in T)"XMLHttpRequest"===d&&"responseBlob"===_||function(C){"function"==typeof T[C]?Be[d].prototype[C]=function(){return this[gt][C].apply(this[gt],arguments)}:Kn(Be[d].prototype,C,{set:function(b){"function"==typeof b?(this[gt][C]=Xn(b,d+"."+C),Nt(this[gt][C],b)):this[gt][C]=b},get:function(){return this[gt][C]}})}(_);for(_ in v)"prototype"!==_&&v.hasOwnProperty(_)&&(Be[d][_]=v[_])}function $t(d,v,T){let _=d;for(;_&&!_.hasOwnProperty(v);)_=Zn(_);!_&&d[v]&&(_=d);const C=_e(v);let b=null;if(_&&(!(b=_[C])||!_.hasOwnProperty(C))&&(b=_[C]=_[v],Ve(_&&Zt(_,v)))){const U=T(b,C,v);_[v]=function(){return U(this,arguments)},Nt(_[v],b)}return b}function pi(d,v,T){let _=null;function C(b){const R=b.data;return R.args[R.cbIdx]=function(){b.invoke.apply(this,arguments)},_.apply(R.target,R.args),b}_=$t(d,v,b=>function(R,U){const ee=T(R,U);return ee.cbIdx>=0&&"function"==typeof U[ee.cbIdx]?fn(ee.name,U[ee.cbIdx],ee,C):b.apply(R,U)})}function Nt(d,v){d[_e("OriginalDelegate")]=v}let lr=!1,vs=!1;function hi(){if(lr)return vs;lr=!0;try{const d=st.navigator.userAgent;(-1!==d.indexOf("MSIE ")||-1!==d.indexOf("Trident/")||-1!==d.indexOf("Edge/"))&&(vs=!0)}catch{}return vs}Zone.__load_patch("ZoneAwarePromise",(d,v,T)=>{const _=Object.getOwnPropertyDescriptor,C=Object.defineProperty,R=T.symbol,U=[],ee=!0===d[R("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],F=R("Promise"),K=R("then");T.onUnhandledError=S=>{if(T.showUncaughtError()){const D=S&&S.rejection;D?console.error("Unhandled Promise rejection:",D instanceof Error?D.message:D,"; Zone:",S.zone.name,"; Task:",S.task&&S.task.source,"; Value:",D,D instanceof Error?D.stack:void 0):console.error(S)}},T.microtaskDrainDone=()=>{for(;U.length;){const S=U.shift();try{S.zone.runGuarded(()=>{throw S.throwOriginal?S.rejection:S})}catch(D){le(D)}}};const pe=R("unhandledPromiseRejectionHandler");function le(S){T.onUnhandledError(S);try{const D=v[pe];"function"==typeof D&&D.call(this,S)}catch{}}function we(S){return S&&S.then}function Te(S){return S}function Ge(S){return h.reject(S)}const Fe=R("state"),ne=R("value"),G=R("finally"),be=R("parentPromiseValue"),Ee=R("parentPromiseState"),oe=null,M=!0,Ae=!1;function se(S,D){return w=>{try{Ie(S,D,w)}catch(N){Ie(S,!1,N)}}}const j=function(){let S=!1;return function(w){return function(){S||(S=!0,w.apply(null,arguments))}}},xt=R("currentTaskTrace");function Ie(S,D,w){const N=j();if(S===w)throw new TypeError("Promise resolved with itself");if(S[Fe]===oe){let q=null;try{("object"==typeof w||"function"==typeof w)&&(q=w&&w.then)}catch(X){return N(()=>{Ie(S,!1,X)})(),S}if(D!==Ae&&w instanceof h&&w.hasOwnProperty(Fe)&&w.hasOwnProperty(ne)&&w[Fe]!==oe)vt(w),Ie(S,w[Fe],w[ne]);else if(D!==Ae&&"function"==typeof q)try{q.call(w,N(se(S,D)),N(se(S,!1)))}catch(X){N(()=>{Ie(S,!1,X)})()}else{S[Fe]=D;const X=S[ne];if(S[ne]=w,S[G]===G&&D===M&&(S[Fe]=S[Ee],S[ne]=S[be]),D===Ae&&w instanceof Error){const V=v.currentTask&&v.currentTask.data&&v.currentTask.data.__creationTrace__;V&&C(w,xt,{configurable:!0,enumerable:!1,writable:!0,value:V})}for(let V=0;V<X.length;)Pe(S,X[V++],X[V++],X[V++],X[V++]);if(0==X.length&&D==Ae){S[Fe]=0;let V=w;try{throw new Error("Uncaught (in promise): "+function b(S){return S&&S.toString===Object.prototype.toString?(S.constructor&&S.constructor.name||"")+": "+JSON.stringify(S):S?S.toString():Object.prototype.toString.call(S)}(w)+(w&&w.stack?"\n"+w.stack:""))}catch(Y){V=Y}ee&&(V.throwOriginal=!0),V.rejection=w,V.promise=S,V.zone=v.current,V.task=v.currentTask,U.push(V),T.scheduleMicroTask()}}}return S}const Ne=R("rejectionHandledHandler");function vt(S){if(0===S[Fe]){try{const D=v[Ne];D&&"function"==typeof D&&D.call(this,{rejection:S[ne],promise:S})}catch{}S[Fe]=Ae;for(let D=0;D<U.length;D++)S===U[D].promise&&U.splice(D,1)}}function Pe(S,D,w,N,q){vt(S);const X=S[Fe],V=X?"function"==typeof N?N:Te:"function"==typeof q?q:Ge;D.scheduleMicroTask("Promise.then",()=>{try{const Y=S[ne],re=!!w&&G===w[G];re&&(w[be]=Y,w[Ee]=X);const ie=D.run(V,void 0,re&&V!==Ge&&V!==Te?[]:[Y]);Ie(w,!0,ie)}catch(Y){Ie(w,!1,Y)}},w)}const x=function(){},W=d.AggregateError;class h{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(D){return Ie(new this(null),M,D)}static reject(D){return Ie(new this(null),Ae,D)}static any(D){if(!D||"function"!=typeof D[Symbol.iterator])return Promise.reject(new W([],"All promises were rejected"));const w=[];let N=0;try{for(let V of D)N++,w.push(h.resolve(V))}catch{return Promise.reject(new W([],"All promises were rejected"))}if(0===N)return Promise.reject(new W([],"All promises were rejected"));let q=!1;const X=[];return new h((V,Y)=>{for(let re=0;re<w.length;re++)w[re].then(ie=>{q||(q=!0,V(ie))},ie=>{X.push(ie),N--,0===N&&(q=!0,Y(new W(X,"All promises were rejected")))})})}static race(D){let w,N,q=new this((Y,re)=>{w=Y,N=re});function X(Y){w(Y)}function V(Y){N(Y)}for(let Y of D)we(Y)||(Y=this.resolve(Y)),Y.then(X,V);return q}static all(D){return h.allWithCallback(D)}static allSettled(D){return(this&&this.prototype instanceof h?this:h).allWithCallback(D,{thenCallback:N=>({status:"fulfilled",value:N}),errorCallback:N=>({status:"rejected",reason:N})})}static allWithCallback(D,w){let N,q,X=new this((ie,Se)=>{N=ie,q=Se}),V=2,Y=0;const re=[];for(let ie of D){we(ie)||(ie=this.resolve(ie));const Se=Y;try{ie.then(xe=>{re[Se]=w?w.thenCallback(xe):xe,V--,0===V&&N(re)},xe=>{w?(re[Se]=w.errorCallback(xe),V--,0===V&&N(re)):q(xe)})}catch(xe){q(xe)}V++,Y++}return V-=2,0===V&&N(re),X}constructor(D){const w=this;if(!(w instanceof h))throw new Error("Must be an instanceof Promise.");w[Fe]=oe,w[ne]=[];try{const N=j();D&&D(N(se(w,M)),N(se(w,Ae)))}catch(N){Ie(w,!1,N)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return h}then(D,w){var N;let q=null===(N=this.constructor)||void 0===N?void 0:N[Symbol.species];(!q||"function"!=typeof q)&&(q=this.constructor||h);const X=new q(x),V=v.current;return this[Fe]==oe?this[ne].push(V,X,D,w):Pe(this,V,X,D,w),X}catch(D){return this.then(null,D)}finally(D){var w;let N=null===(w=this.constructor)||void 0===w?void 0:w[Symbol.species];(!N||"function"!=typeof N)&&(N=h);const q=new N(x);q[G]=G;const X=v.current;return this[Fe]==oe?this[ne].push(X,q,D,D):Pe(this,X,q,D,D),q}}h.resolve=h.resolve,h.reject=h.reject,h.race=h.race,h.all=h.all;const g=d[F]=d.Promise;d.Promise=h;const L=R("thenPatched");function J(S){const D=S.prototype,w=_(D,"then");if(w&&(!1===w.writable||!w.configurable))return;const N=D.then;D[K]=N,S.prototype.then=function(q,X){return new h((Y,re)=>{N.call(this,Y,re)}).then(q,X)},S[L]=!0}return T.patchThen=J,g&&(J(g),$t(d,"fetch",S=>function Re(S){return function(D,w){let N=S.apply(D,w);if(N instanceof h)return N;let q=N.constructor;return q[L]||J(q),N}}(S))),Promise[v.__symbol__("uncaughtPromiseErrors")]=U,h}),Zone.__load_patch("toString",d=>{const v=Function.prototype.toString,T=_e("OriginalDelegate"),_=_e("Promise"),C=_e("Error"),b=function(){if("function"==typeof this){const F=this[T];if(F)return"function"==typeof F?v.call(F):Object.prototype.toString.call(F);if(this===Promise){const K=d[_];if(K)return v.call(K)}if(this===Error){const K=d[C];if(K)return v.call(K)}}return v.call(this)};b[T]=v,Function.prototype.toString=b;const R=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":R.call(this)}});let Pt=!1;if(typeof window<"u")try{const d=Object.defineProperty({},"passive",{get:function(){Pt=!0}});window.addEventListener("test",d,d),window.removeEventListener("test",d,d)}catch{Pt=!1}const Wo={useG:!0},tt={},Es={},pr=new RegExp("^"+te+"(\\w+)(true|false)$"),Xt=_e("propagationStopped");function hr(d,v){const T=(v?v(d):d)+mt,_=(v?v(d):d)+wt,C=te+T,b=te+_;tt[d]={},tt[d][mt]=C,tt[d][wt]=b}function di(d,v,T,_){const C=_&&_.add||nt,b=_&&_.rm||In,R=_&&_.listeners||"eventListeners",U=_&&_.rmAll||"removeAllListeners",ee=_e(C),F="."+C+":",pe=function(ne,G,be){if(ne.isRemoved)return;const Ee=ne.callback;let Q;"object"==typeof Ee&&Ee.handleEvent&&(ne.callback=M=>Ee.handleEvent(M),ne.originalDelegate=Ee);try{ne.invoke(ne,G,[be])}catch(M){Q=M}const oe=ne.options;return oe&&"object"==typeof oe&&oe.once&&G[b].call(G,be.type,ne.originalDelegate?ne.originalDelegate:ne.callback,oe),Q};function le(ne,G,be){if(!(G=G||d.event))return;const Ee=ne||G.target||d,Q=Ee[tt[G.type][be?wt:mt]];if(Q){const oe=[];if(1===Q.length){const M=pe(Q[0],Ee,G);M&&oe.push(M)}else{const M=Q.slice();for(let Ae=0;Ae<M.length&&(!G||!0!==G[Xt]);Ae++){const $=pe(M[Ae],Ee,G);$&&oe.push($)}}if(1===oe.length)throw oe[0];for(let M=0;M<oe.length;M++){const Ae=oe[M];v.nativeScheduleMicroTask(()=>{throw Ae})}}}const we=function(ne){return le(this,ne,!1)},Te=function(ne){return le(this,ne,!0)};function Ge(ne,G){if(!ne)return!1;let be=!0;G&&void 0!==G.useG&&(be=G.useG);const Ee=G&&G.vh;let Q=!0;G&&void 0!==G.chkDup&&(Q=G.chkDup);let oe=!1;G&&void 0!==G.rt&&(oe=G.rt);let M=ne;for(;M&&!M.hasOwnProperty(C);)M=Zn(M);if(!M&&ne[C]&&(M=ne),!M||M[ee])return!1;const Ae=G&&G.eventNameToString,$={},se=M[ee]=M[C],j=M[_e(b)]=M[b],ze=M[_e(R)]=M[R],xt=M[_e(U)]=M[U];let Ie;function Ne(w,N){return!Pt&&"object"==typeof w&&w?!!w.capture:Pt&&N?"boolean"==typeof w?{capture:w,passive:!0}:w?"object"==typeof w&&!1!==w.passive?Object.assign(Object.assign({},w),{passive:!0}):w:{passive:!0}:w}G&&G.prepend&&(Ie=M[_e(G.prepend)]=M[G.prepend]);const h=be?function(w){if(!$.isExisting)return se.call($.target,$.eventName,$.capture?Te:we,$.options)}:function(w){return se.call($.target,$.eventName,w.invoke,$.options)},g=be?function(w){if(!w.isRemoved){const N=tt[w.eventName];let q;N&&(q=N[w.capture?wt:mt]);const X=q&&w.target[q];if(X)for(let V=0;V<X.length;V++)if(X[V]===w){X.splice(V,1),w.isRemoved=!0,0===X.length&&(w.allRemoved=!0,w.target[q]=null);break}}if(w.allRemoved)return j.call(w.target,w.eventName,w.capture?Te:we,w.options)}:function(w){return j.call(w.target,w.eventName,w.invoke,w.options)},J=G&&G.diff?G.diff:function(w,N){const q=typeof N;return"function"===q&&w.callback===N||"object"===q&&w.originalDelegate===N},Re=Zone[_e("UNPATCHED_EVENTS")],S=d[_e("PASSIVE_EVENTS")],D=function(w,N,q,X,V=!1,Y=!1){return function(){const re=this||d;let ie=arguments[0];G&&G.transferEventName&&(ie=G.transferEventName(ie));let Se=arguments[1];if(!Se)return w.apply(this,arguments);if(mn&&"uncaughtException"===ie)return w.apply(this,arguments);let xe=!1;if("function"!=typeof Se){if(!Se.handleEvent)return w.apply(this,arguments);xe=!0}if(Ee&&!Ee(w,Se,re,arguments))return;const Vt=Pt&&!!S&&-1!==S.indexOf(ie),Et=Ne(arguments[2],Vt);if(Re)for(let rt=0;rt<Re.length;rt++)if(ie===Re[rt])return Vt?w.call(re,ie,Se,Et):w.apply(this,arguments);const Ss=!!Et&&("boolean"==typeof Et||Et.capture),ws=!(!Et||"object"!=typeof Et)&&Et.once,Yn=Zone.current;let xs=tt[ie];xs||(hr(ie,Ae),xs=tt[ie]);const mr=xs[Ss?wt:mt];let Ht,qt=re[mr],Ts=!1;if(qt){if(Ts=!0,Q)for(let rt=0;rt<qt.length;rt++)if(J(qt[rt],Se))return}else qt=re[mr]=[];const gr=re.constructor.name,Rn=Es[gr];Rn&&(Ht=Rn[ie]),Ht||(Ht=gr+N+(Ae?Ae(ie):ie)),$.options=Et,ws&&($.options.once=!1),$.target=re,$.capture=Ss,$.eventName=ie,$.isExisting=Ts;const Ut=be?Wo:void 0;Ut&&(Ut.taskData=$);const Oe=Yn.scheduleEventTask(Ht,Se,Ut,q,X);return $.target=null,Ut&&(Ut.taskData=null),ws&&(Et.once=!0),!Pt&&"boolean"==typeof Oe.options||(Oe.options=Et),Oe.target=re,Oe.capture=Ss,Oe.eventName=ie,xe&&(Oe.originalDelegate=Se),Y?qt.unshift(Oe):qt.push(Oe),V?re:void 0}};return M[C]=D(se,F,h,g,oe),Ie&&(M.prependListener=D(Ie,".prependListener:",function(w){return Ie.call($.target,$.eventName,w.invoke,$.options)},g,oe,!0)),M[b]=function(){const w=this||d;let N=arguments[0];G&&G.transferEventName&&(N=G.transferEventName(N));const q=arguments[2],X=!!q&&("boolean"==typeof q||q.capture),V=arguments[1];if(!V)return j.apply(this,arguments);if(Ee&&!Ee(j,V,w,arguments))return;const Y=tt[N];let re;Y&&(re=Y[X?wt:mt]);const ie=re&&w[re];if(ie)for(let Se=0;Se<ie.length;Se++){const xe=ie[Se];if(J(xe,V))return ie.splice(Se,1),xe.isRemoved=!0,0===ie.length&&(xe.allRemoved=!0,w[re]=null,"string"==typeof N)&&(w[te+"ON_PROPERTY"+N]=null),xe.zone.cancelTask(xe),oe?w:void 0}return j.apply(this,arguments)},M[R]=function(){const w=this||d;let N=arguments[0];G&&G.transferEventName&&(N=G.transferEventName(N));const q=[],X=Yt(w,Ae?Ae(N):N);for(let V=0;V<X.length;V++){const Y=X[V];q.push(Y.originalDelegate?Y.originalDelegate:Y.callback)}return q},M[U]=function(){const w=this||d;let N=arguments[0];if(N){G&&G.transferEventName&&(N=G.transferEventName(N));const q=tt[N];if(q){const Y=w[q[mt]],re=w[q[wt]];if(Y){const ie=Y.slice();for(let Se=0;Se<ie.length;Se++){const xe=ie[Se];this[b].call(this,N,xe.originalDelegate?xe.originalDelegate:xe.callback,xe.options)}}if(re){const ie=re.slice();for(let Se=0;Se<ie.length;Se++){const xe=ie[Se];this[b].call(this,N,xe.originalDelegate?xe.originalDelegate:xe.callback,xe.options)}}}}else{const q=Object.keys(w);for(let X=0;X<q.length;X++){const Y=pr.exec(q[X]);let re=Y&&Y[1];re&&"removeListener"!==re&&this[U].call(this,re)}this[U].call(this,"removeListener")}if(oe)return this},Nt(M[C],se),Nt(M[b],j),xt&&Nt(M[U],xt),ze&&Nt(M[R],ze),!0}let Fe=[];for(let ne=0;ne<T.length;ne++)Fe[ne]=Ge(T[ne],_);return Fe}function Yt(d,v){if(!v){const b=[];for(let R in d){const U=pr.exec(R);let ee=U&&U[1];if(ee&&(!v||ee===v)){const F=d[R];if(F)for(let K=0;K<F.length;K++)b.push(F[K])}}return b}let T=tt[v];T||(hr(v),T=tt[v]);const _=d[T[mt]],C=d[T[wt]];return _?C?_.concat(C):_.slice():C?C.slice():[]}function dr(d,v){const T=d.Event;T&&T.prototype&&v.patchMethod(T.prototype,"stopImmediatePropagation",_=>function(C,b){C[Xt]=!0,_&&_.apply(C,b)})}function fi(d,v,T,_,C){const b=Zone.__symbol__(_);if(v[b])return;const R=v[b]=v[_];v[_]=function(U,ee,F){return ee&&ee.prototype&&C.forEach(function(K){const ge=`${T}.${_}::`+K,pe=ee.prototype;try{if(pe.hasOwnProperty(K)){const le=d.ObjectGetOwnPropertyDescriptor(pe,K);le&&le.value?(le.value=d.wrapWithCurrentZone(le.value,ge),d._redefineProperty(ee.prototype,K,le)):pe[K]&&(pe[K]=d.wrapWithCurrentZone(pe[K],ge))}else pe[K]&&(pe[K]=d.wrapWithCurrentZone(pe[K],ge))}catch{}}),R.call(v,U,ee,F)},d.attachOriginToPatched(v[_],R)}function ys(d,v,T){if(!T||0===T.length)return v;const _=T.filter(b=>b.target===d);if(!_||0===_.length)return v;const C=_[0].ignoreProperties;return v.filter(b=>-1===C.indexOf(b))}function _s(d,v,T,_){d&&ur(d,ys(d,v,T),_)}function kn(d){return Object.getOwnPropertyNames(d).filter(v=>v.startsWith("on")&&v.length>2).map(v=>v.substring(2))}Zone.__load_patch("util",(d,v,T)=>{const _=kn(d);T.patchOnProperties=ur,T.patchMethod=$t,T.bindArguments=gs,T.patchMacroTask=pi;const C=v.__symbol__("BLACK_LISTED_EVENTS"),b=v.__symbol__("UNPATCHED_EVENTS");d[b]&&(d[C]=d[b]),d[C]&&(v[C]=v[b]=d[C]),T.patchEventPrototype=dr,T.patchEventTarget=di,T.isIEOrEdge=hi,T.ObjectDefineProperty=Kn,T.ObjectGetOwnPropertyDescriptor=Zt,T.ObjectCreate=ir,T.ArraySlice=He,T.patchClass=Ot,T.wrapWithCurrentZone=Xn,T.filterProperties=ys,T.attachOriginToPatched=Nt,T._redefineProperty=Object.defineProperty,T.patchCallbacks=fi,T.getGlobalObjects=()=>({globalSources:Es,zoneSymbolEventNames:tt,eventNames:_,isBrowser:Pn,isMix:or,isNode:mn,TRUE_STR:wt,FALSE_STR:mt,ZONE_SYMBOL_PREFIX:te,ADD_EVENT_LISTENER_STR:nt,REMOVE_EVENT_LISTENER_STR:In})});const Ln=_e("zoneTask");function gn(d,v,T,_){let C=null,b=null;T+=_;const R={};function U(F){const K=F.data;return K.args[0]=function(){return F.invoke.apply(this,arguments)},K.handleId=C.apply(d,K.args),F}function ee(F){return b.call(d,F.data.handleId)}C=$t(d,v+=_,F=>function(K,ge){if("function"==typeof ge[0]){const pe={isPeriodic:"Interval"===_,delay:"Timeout"===_||"Interval"===_?ge[1]||0:void 0,args:ge},le=ge[0];ge[0]=function(){try{return le.apply(this,arguments)}finally{pe.isPeriodic||("number"==typeof pe.handleId?delete R[pe.handleId]:pe.handleId&&(pe.handleId[Ln]=null))}};const we=fn(v,ge[0],pe,U,ee);if(!we)return we;const Te=we.data.handleId;return"number"==typeof Te?R[Te]=we:Te&&(Te[Ln]=we),Te&&Te.ref&&Te.unref&&"function"==typeof Te.ref&&"function"==typeof Te.unref&&(we.ref=Te.ref.bind(Te),we.unref=Te.unref.bind(Te)),"number"==typeof Te||Te?Te:we}return F.apply(d,ge)}),b=$t(d,T,F=>function(K,ge){const pe=ge[0];let le;"number"==typeof pe?le=R[pe]:(le=pe&&pe[Ln],le||(le=pe)),le&&"string"==typeof le.type?"notScheduled"!==le.state&&(le.cancelFn&&le.data.isPeriodic||0===le.runCount)&&("number"==typeof pe?delete R[pe]:pe&&(pe[Ln]=null),le.zone.cancelTask(le)):F.apply(d,ge)})}Zone.__load_patch("legacy",d=>{const v=d[Zone.__symbol__("legacyPatch")];v&&v()}),Zone.__load_patch("queueMicrotask",(d,v,T)=>{T.patchMethod(d,"queueMicrotask",_=>function(C,b){v.current.scheduleMicroTask("queueMicrotask",b[0])})}),Zone.__load_patch("timers",d=>{const v="set",T="clear";gn(d,v,T,"Timeout"),gn(d,v,T,"Interval"),gn(d,v,T,"Immediate")}),Zone.__load_patch("requestAnimationFrame",d=>{gn(d,"request","cancel","AnimationFrame"),gn(d,"mozRequest","mozCancel","AnimationFrame"),gn(d,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(d,v)=>{const T=["alert","prompt","confirm"];for(let _=0;_<T.length;_++)$t(d,T[_],(b,R,U)=>function(ee,F){return v.current.run(b,d,F,U)})}),Zone.__load_patch("EventTarget",(d,v,T)=>{(function vi(d,v){v.patchEventPrototype(d,v)})(d,T),function gi(d,v){if(Zone[v.symbol("patchEventTarget")])return;const{eventNames:T,zoneSymbolEventNames:_,TRUE_STR:C,FALSE_STR:b,ZONE_SYMBOL_PREFIX:R}=v.getGlobalObjects();for(let ee=0;ee<T.length;ee++){const F=T[ee],pe=R+(F+b),le=R+(F+C);_[F]={},_[F][b]=pe,_[F][C]=le}const U=d.EventTarget;U&&U.prototype&&v.patchEventTarget(d,v,[U&&U.prototype])}(d,T);const _=d.XMLHttpRequestEventTarget;_&&_.prototype&&T.patchEventTarget(d,T,[_.prototype])}),Zone.__load_patch("MutationObserver",(d,v,T)=>{Ot("MutationObserver"),Ot("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(d,v,T)=>{Ot("IntersectionObserver")}),Zone.__load_patch("FileReader",(d,v,T)=>{Ot("FileReader")}),Zone.__load_patch("on_property",(d,v,T)=>{!function fr(d,v){if(mn&&!or||Zone[d.symbol("patchEvents")])return;const T=v.__Zone_ignore_on_properties;let _=[];if(Pn){const C=window;_=_.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const b=function cr(){try{const d=st.navigator.userAgent;if(-1!==d.indexOf("MSIE ")||-1!==d.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:C,ignoreProperties:["error"]}]:[];_s(C,kn(C),T&&T.concat(b),Zn(C))}_=_.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let C=0;C<_.length;C++){const b=v[_[C]];b&&b.prototype&&_s(b.prototype,kn(b.prototype),T)}}(T,d)}),Zone.__load_patch("customElements",(d,v,T)=>{!function mi(d,v){const{isBrowser:T,isMix:_}=v.getGlobalObjects();(T||_)&&d.customElements&&"customElements"in d&&v.patchCallbacks(v,d.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(d,T)}),Zone.__load_patch("XHR",(d,v)=>{!function ee(F){const K=F.XMLHttpRequest;if(!K)return;const ge=K.prototype;let le=ge[Dn],we=ge[ms];if(!le){const $=F.XMLHttpRequestEventTarget;if($){const se=$.prototype;le=se[Dn],we=se[ms]}}const Te="readystatechange",Ge="scheduled";function Fe($){const se=$.data,j=se.target;j[b]=!1,j[U]=!1;const ze=j[C];le||(le=j[Dn],we=j[ms]),ze&&we.call(j,Te,ze);const xt=j[C]=()=>{if(j.readyState===j.DONE)if(!se.aborted&&j[b]&&$.state===Ge){const Ne=j[v.__symbol__("loadfalse")];if(0!==j.status&&Ne&&Ne.length>0){const vt=$.invoke;$.invoke=function(){const Pe=j[v.__symbol__("loadfalse")];for(let ve=0;ve<Pe.length;ve++)Pe[ve]===$&&Pe.splice(ve,1);!se.aborted&&$.state===Ge&&vt.call($)},Ne.push($)}else $.invoke()}else!se.aborted&&!1===j[b]&&(j[U]=!0)};return le.call(j,Te,xt),j[T]||(j[T]=$),M.apply(j,se.args),j[b]=!0,$}function ne(){}function G($){const se=$.data;return se.aborted=!0,Ae.apply(se.target,se.args)}const be=$t(ge,"open",()=>function($,se){return $[_]=0==se[2],$[R]=se[1],be.apply($,se)}),Q=_e("fetchTaskAborting"),oe=_e("fetchTaskScheduling"),M=$t(ge,"send",()=>function($,se){if(!0===v.current[oe]||$[_])return M.apply($,se);{const j={target:$,url:$[R],isPeriodic:!1,args:se,aborted:!1},ze=fn("XMLHttpRequest.send",ne,j,Fe,G);$&&!0===$[U]&&!j.aborted&&ze.state===Ge&&ze.invoke()}}),Ae=$t(ge,"abort",()=>function($,se){const j=function pe($){return $[T]}($);if(j&&"string"==typeof j.type){if(null==j.cancelFn||j.data&&j.data.aborted)return;j.zone.cancelTask(j)}else if(!0===v.current[Q])return Ae.apply($,se)})}(d);const T=_e("xhrTask"),_=_e("xhrSync"),C=_e("xhrListener"),b=_e("xhrScheduled"),R=_e("xhrURL"),U=_e("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",d=>{d.navigator&&d.navigator.geolocation&&function ci(d,v){const T=d.constructor.name;for(let _=0;_<v.length;_++){const C=v[_],b=d[C];if(b){if(!Ve(Zt(d,C)))continue;d[C]=(U=>{const ee=function(){return U.apply(this,gs(arguments,T+"."+C))};return Nt(ee,U),ee})(b)}}}(d.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(d,v)=>{function T(_){return function(C){Yt(d,_).forEach(R=>{const U=d.PromiseRejectionEvent;if(U){const ee=new U(_,{promise:C.promise,reason:C.rejection});R.invoke(ee)}})}}d.PromiseRejectionEvent&&(v[_e("unhandledPromiseRejectionHandler")]=T("unhandledrejection"),v[_e("rejectionHandledHandler")]=T("rejectionhandled"))})}},Zt=>{Zt(Zt.s=5565)}]);