-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpolyfills.bf3c031cb03720ef.js
1 lines (1 loc) · 34.2 KB
/
polyfills.bf3c031cb03720ef.js
1
"use strict";(self.webpackChunkmaterial_angular_io=self.webpackChunkmaterial_angular_io||[]).push([[3461],{2523:(fe,le,rt)=>{rt(6935);const be=":";Error;const He=function(s,...c){if(He.translate){const h=He.translate(s,c);s=h[0],c=h[1]}let u=et(s[0],s.raw[0]);for(let h=1;h<s.length;h++)u+=c[h-1]+et(s[h],s.raw[h]);return u},Tt=":";function et(s,c){return c.charAt(0)===Tt?s.substring(function ge(s,c){for(let u=1,h=1;u<s.length;u++,h++)if("\\"===c[h])h++;else if(s[u]===be)return u;throw new Error(`Unterminated $localize metadata block in "${c}".`)}(s,c)+1):s}globalThis.$localize=He},6935:()=>{const fe=globalThis;function le(t){return(fe.__Zone_symbol_prefix||"__zone_symbol__")+t}const be=Object.getOwnPropertyDescriptor,Ge=Object.defineProperty,Ae=Object.getPrototypeOf,yt=Object.create,xe=Array.prototype.slice,st="addEventListener",Fe="removeEventListener",it=le(st),We=le(Fe),Ee="true",me="false",Ne=le("");function qe(t,r){return Zone.current.wrap(t,r)}function Xe(t,r,l,n,a){return Zone.current.scheduleMacroTask(t,r,l,n,a)}const B=le,Ze=typeof window<"u",we=Ze?window:void 0,te=Ze&&we||globalThis,ct="removeAttribute";function je(t,r){for(let l=t.length-1;l>=0;l--)"function"==typeof t[l]&&(t[l]=qe(t[l],r+"_"+l));return t}function Pe(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const at=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Ce=!("nw"in te)&&typeof te.process<"u"&&"[object process]"===te.process.toString(),Ke=!Ce&&!at&&!(!Ze||!we.HTMLElement),Je=typeof te.process<"u"&&"[object process]"===te.process.toString()&&!at&&!(!Ze||!we.HTMLElement),$e={},lt=function(t){if(!(t=t||te.event))return;let r=$e[t.type];r||(r=$e[t.type]=B("ON_PROPERTY"+t.type));const l=this||t.target||te,n=l[r];let a;return Ke&&l===we&&"error"===t.type?(a=n&&n.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===a&&t.preventDefault()):(a=n&&n.apply(this,arguments),null!=a&&!a&&t.preventDefault()),a};function ut(t,r,l){let n=be(t,r);if(!n&&l&&be(l,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;const a=B("on"+r+"patched");if(t.hasOwnProperty(a)&&t[a])return;delete n.writable,delete n.value;const d=n.get,y=n.set,k=r.slice(2);let w=$e[k];w||(w=$e[k]=B("ON_PROPERTY"+k)),n.set=function(L){let v=this;!v&&t===te&&(v=te),v&&("function"==typeof v[w]&&v.removeEventListener(k,lt),y&&y.call(v,null),v[w]=L,"function"==typeof L&&v.addEventListener(k,lt,!1))},n.get=function(){let L=this;if(!L&&t===te&&(L=te),!L)return null;const v=L[w];if(v)return v;if(d){let H=d.call(this);if(H)return n.set.call(this,H),"function"==typeof L[ct]&&L.removeAttribute(r),H}return null},Ge(t,r,n),t[a]=!0}function ft(t,r,l){if(r)for(let n=0;n<r.length;n++)ut(t,"on"+r[n],l);else{const n=[];for(const a in t)"on"==a.slice(0,2)&&n.push(a);for(let a=0;a<n.length;a++)ut(t,n[a],l)}}const he=B("originalInstance");function Oe(t){const r=te[t];if(!r)return;te[B(t)]=r,te[t]=function(){const a=je(arguments,t);switch(a.length){case 0:this[he]=new r;break;case 1:this[he]=new r(a[0]);break;case 2:this[he]=new r(a[0],a[1]);break;case 3:this[he]=new r(a[0],a[1],a[2]);break;case 4:this[he]=new r(a[0],a[1],a[2],a[3]);break;default:throw new Error("Arg list too long.")}},ye(te[t],r);const l=new r(function(){});let n;for(n in l)"XMLHttpRequest"===t&&"responseBlob"===n||function(a){"function"==typeof l[a]?te[t].prototype[a]=function(){return this[he][a].apply(this[he],arguments)}:Ge(te[t].prototype,a,{set:function(d){"function"==typeof d?(this[he][a]=qe(d,t+"."+a),ye(this[he][a],d)):this[he][a]=d},get:function(){return this[he][a]}})}(n);for(n in r)"prototype"!==n&&r.hasOwnProperty(n)&&(te[t][n]=r[n])}function ge(t,r,l){let n=t;for(;n&&!n.hasOwnProperty(r);)n=Ae(n);!n&&t[r]&&(n=t);const a=B(r);let d=null;if(n&&(!(d=n[a])||!n.hasOwnProperty(a))&&(d=n[a]=n[r],Pe(n&&be(n,r)))){const k=l(d,a,r);n[r]=function(){return k(this,arguments)},ye(n[r],d)}return d}function kt(t,r,l){let n=null;function a(d){const y=d.data;return y.args[y.cbIdx]=function(){d.invoke.apply(this,arguments)},n.apply(y.target,y.args),d}n=ge(t,r,d=>function(y,k){const w=l(y,k);return w.cbIdx>=0&&"function"==typeof k[w.cbIdx]?Xe(w.name,k[w.cbIdx],w,a):d.apply(y,k)})}function ye(t,r){t[B("OriginalDelegate")]=r}let ht=!1,Qe=!1;function dt(){if(ht)return Qe;ht=!0;try{const t=we.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(Qe=!0)}catch{}return Qe}let Re=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Re=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Re=!1}const Rt={useG:!0},de={},_t={},He=new RegExp("^"+Ne+"(\\w+)(true|false)$"),Tt=B("propagationStopped");function et(t,r){const l=(r?r(t):t)+me,n=(r?r(t):t)+Ee,a=Ne+l,d=Ne+n;de[t]={},de[t][me]=a,de[t][Ee]=d}function s(t,r,l,n){const a=n&&n.add||st,d=n&&n.rm||Fe,y=n&&n.listeners||"eventListeners",k=n&&n.rmAll||"removeAllListeners",w=B(a),L="."+a+":",v="prependListener",H="."+v+":",O=function(I,g,q){if(I.isRemoved)return;const Q=I.callback;let oe;"object"==typeof Q&&Q.handleEvent&&(I.callback=b=>Q.handleEvent(b),I.originalDelegate=Q);try{I.invoke(I,g,[q])}catch(b){oe=b}const X=I.options;return X&&"object"==typeof X&&X.once&&g[d].call(g,q.type,I.originalDelegate?I.originalDelegate:I.callback,X),oe};function z(I,g,q){if(!(g=g||t.event))return;const Q=I||g.target||t,oe=Q[de[g.type][q?Ee:me]];if(oe){const X=[];if(1===oe.length){const b=O(oe[0],Q,g);b&&X.push(b)}else{const b=oe.slice();for(let Y=0;Y<b.length&&(!g||!0!==g[Tt]);Y++){const $=O(b[Y],Q,g);$&&X.push($)}}if(1===X.length)throw X[0];for(let b=0;b<X.length;b++){const Y=X[b];r.nativeScheduleMicroTask(()=>{throw Y})}}}const J=function(I){return z(this,I,!1)},G=function(I){return z(this,I,!0)};function pe(I,g){if(!I)return!1;let q=!0;g&&void 0!==g.useG&&(q=g.useG);const Q=g&&g.vh;let oe=!0;g&&void 0!==g.chkDup&&(oe=g.chkDup);let X=!1;g&&void 0!==g.rt&&(X=g.rt);let b=I;for(;b&&!b.hasOwnProperty(a);)b=Ae(b);if(!b&&I[a]&&(b=I),!b||b[w])return!1;const Y=g&&g.eventNameToString,$={},D=b[w]=b[a],S=b[B(d)]=b[d],x=b[B(y)]=b[y],ue=b[B(k)]=b[k];let ee;g&&g.prepend&&(ee=b[B(g.prepend)]=b[g.prepend]);const se=q?function(i){if(!$.isExisting)return D.call($.target,$.eventName,$.capture?G:J,$.options)}:function(i){return D.call($.target,$.eventName,i.invoke,$.options)},U=q?function(i){if(!i.isRemoved){const f=de[i.eventName];let T;f&&(T=f[i.capture?Ee:me]);const C=T&&i.target[T];if(C)for(let M=0;M<C.length;M++)if(C[M]===i){C.splice(M,1),i.isRemoved=!0,0===C.length&&(i.allRemoved=!0,i.target[T]=null);break}}if(i.allRemoved)return S.call(i.target,i.eventName,i.capture?G:J,i.options)}:function(i){return S.call(i.target,i.eventName,i.invoke,i.options)},nt=g&&g.diff?g.diff:function(i,f){const T=typeof f;return"function"===T&&i.callback===f||"object"===T&&i.originalDelegate===f},Le=Zone[B("UNPATCHED_EVENTS")],mt=t[B("PASSIVE_EVENTS")],_=function(i,f,T,C,M=!1,R=!1){return function(){const N=this||t;let A=arguments[0];g&&g.transferEventName&&(A=g.transferEventName(A));let V=arguments[1];if(!V)return i.apply(this,arguments);if(Ce&&"uncaughtException"===A)return i.apply(this,arguments);let K=!1;if("function"!=typeof V){if(!V.handleEvent)return i.apply(this,arguments);K=!0}if(Q&&!Q(i,V,N,arguments))return;const ce=Re&&!!mt&&-1!==mt.indexOf(A),Te=function j(i,f){return!Re&&"object"==typeof i&&i?!!i.capture:Re&&f?"boolean"==typeof i?{capture:i,passive:!0}:i?"object"==typeof i&&!1!==i.passive?{...i,passive:!0}:i:{passive:!0}:i}(arguments[2],ce),Ve=Te?.signal;if(Ve?.aborted)return;if(Le)for(let ve=0;ve<Le.length;ve++)if(A===Le[ve])return ce?i.call(N,A,V,Te):i.apply(this,arguments);const bt=!!Te&&("boolean"==typeof Te||Te.capture),St=!(!Te||"object"!=typeof Te)&&Te.once,Dt=Zone.current;let wt=de[A];wt||(et(A,Y),wt=de[A]);const It=wt[bt?Ee:me];let pt,ze=N[It],Ct=!1;if(ze){if(Ct=!0,oe)for(let ve=0;ve<ze.length;ve++)if(nt(ze[ve],V))return}else ze=N[It]=[];const Nt=N.constructor.name,Ot=_t[Nt];Ot&&(pt=Ot[A]),pt||(pt=Nt+f+(Y?Y(A):A)),$.options=Te,St&&($.options.once=!1),$.target=N,$.capture=bt,$.eventName=A,$.isExisting=Ct;const Me=q?Rt:void 0;Me&&(Me.taskData=$),Ve&&($.options.signal=void 0);const ke=Dt.scheduleEventTask(pt,V,Me,T,C);if(Ve){$.options.signal=Ve;const ve=()=>ke.zone.cancelTask(ke);i.call(Ve,"abort",ve,{once:!0}),Me&&(Me.removeAbortListener=()=>Ve.removeEventListener("abort",ve))}return $.target=null,Me&&(Me.taskData=null),St&&(Te.once=!0),!Re&&"boolean"==typeof ke.options||(ke.options=Te),ke.target=N,ke.capture=bt,ke.eventName=A,K&&(ke.originalDelegate=V),R?ze.unshift(ke):ze.push(ke),M?N:void 0}};return b[a]=_(D,L,se,U,X),ee&&(b[v]=_(ee,H,function(i){return ee.call($.target,$.eventName,i.invoke,$.options)},U,X,!0)),b[d]=function(){const i=this||t;let f=arguments[0];g&&g.transferEventName&&(f=g.transferEventName(f));const T=arguments[2],C=!!T&&("boolean"==typeof T||T.capture),M=arguments[1];if(!M)return S.apply(this,arguments);if(Q&&!Q(S,M,i,arguments))return;const R=de[f];let N;R&&(N=R[C?Ee:me]);const A=N&&i[N];if(A)for(let V=0;V<A.length;V++){const K=A[V];if(nt(K,M)){A.splice(V,1),K.isRemoved=!0,0!==A.length||(K.allRemoved=!0,i[N]=null,C||"string"!=typeof f)||(i[Ne+"ON_PROPERTY"+f]=null);const ce=K.data;return ce?.removeAbortListener&&(ce.removeAbortListener(),ce.removeAbortListener=null),K.zone.cancelTask(K),X?i:void 0}}return S.apply(this,arguments)},b[y]=function(){const i=this||t;let f=arguments[0];g&&g.transferEventName&&(f=g.transferEventName(f));const T=[],C=c(i,Y?Y(f):f);for(let M=0;M<C.length;M++){const R=C[M];T.push(R.originalDelegate?R.originalDelegate:R.callback)}return T},b[k]=function(){const i=this||t;let f=arguments[0];if(f){g&&g.transferEventName&&(f=g.transferEventName(f));const T=de[f];if(T){const R=i[T[me]],N=i[T[Ee]];if(R){const A=R.slice();for(let V=0;V<A.length;V++){const K=A[V];this[d].call(this,f,K.originalDelegate?K.originalDelegate:K.callback,K.options)}}if(N){const A=N.slice();for(let V=0;V<A.length;V++){const K=A[V];this[d].call(this,f,K.originalDelegate?K.originalDelegate:K.callback,K.options)}}}}else{const T=Object.keys(i);for(let C=0;C<T.length;C++){const R=He.exec(T[C]);let N=R&&R[1];N&&"removeListener"!==N&&this[k].call(this,N)}this[k].call(this,"removeListener")}if(X)return this},ye(b[a],D),ye(b[d],S),ue&&ye(b[k],ue),x&&ye(b[y],x),!0}let re=[];for(let I=0;I<l.length;I++)re[I]=pe(l[I],n);return re}function c(t,r){if(!r){const d=[];for(let y in t){const k=He.exec(y);let w=k&&k[1];if(w&&(!r||w===r)){const L=t[y];if(L)for(let v=0;v<L.length;v++)d.push(L[v])}}return d}let l=de[r];l||(et(r),l=de[r]);const n=t[l[me]],a=t[l[Ee]];return n?a?n.concat(a):n.slice():a?a.slice():[]}function u(t,r){const l=t.Event;l&&l.prototype&&r.patchMethod(l.prototype,"stopImmediatePropagation",n=>function(a,d){a[Tt]=!0,n&&n.apply(a,d)})}const E=B("zoneTask");function m(t,r,l,n){let a=null,d=null;l+=n;const y={};function k(L){const v=L.data;return v.args[0]=function(){return L.invoke.apply(this,arguments)},v.handleId=a.apply(t,v.args),L}function w(L){return d.call(t,L.data.handleId)}a=ge(t,r+=n,L=>function(v,H){if("function"==typeof H[0]){const O={isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?H[1]||0:void 0,args:H},z=H[0];H[0]=function(){try{return z.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[E]=null))}};const J=Xe(r,H[0],O,k,w);if(!J)return J;const G=J.data.handleId;return"number"==typeof G?y[G]=J:G&&(G[E]=J),G&&G.ref&&G.unref&&"function"==typeof G.ref&&"function"==typeof G.unref&&(J.ref=G.ref.bind(G),J.unref=G.unref.bind(G)),"number"==typeof G||G?G:J}return L.apply(t,H)}),d=ge(t,l,L=>function(v,H){const O=H[0];let z;"number"==typeof O?z=y[O]:(z=O&&O[E],z||(z=O)),z&&"string"==typeof z.type?"notScheduled"!==z.state&&(z.cancelFn&&z.data.isPeriodic||0===z.runCount)&&("number"==typeof O?delete y[O]:O&&(O[E]=null),z.zone.cancelTask(z)):L.apply(t,H)})}function ie(t,r,l){if(!l||0===l.length)return r;const n=l.filter(d=>d.target===t);if(!n||0===n.length)return r;const a=n[0].ignoreProperties;return r.filter(d=>-1===a.indexOf(d))}function Se(t,r,l,n){t&&ft(t,ie(t,r,l),n)}function Ie(t){return Object.getOwnPropertyNames(t).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function ne(t,r,l,n,a){const d=Zone.__symbol__(n);if(r[d])return;const y=r[d]=r[n];r[n]=function(k,w,L){return w&&w.prototype&&a.forEach(function(v){const H=`${l}.${n}::`+v,O=w.prototype;try{if(O.hasOwnProperty(v)){const z=t.ObjectGetOwnPropertyDescriptor(O,v);z&&z.value?(z.value=t.wrapWithCurrentZone(z.value,H),t._redefineProperty(w.prototype,v,z)):O[v]&&(O[v]=t.wrapWithCurrentZone(O[v],H))}else O[v]&&(O[v]=t.wrapWithCurrentZone(O[v],H))}catch{}}),y.call(r,k,w,L)},t.attachOriginToPatched(r[n],y)}const gt=function ot(){const t=globalThis,r=!0===t[le("forceDuplicateZoneCheck")];if(t.Zone&&(r||"function"!=typeof t.Zone.__symbol__))throw new Error("Zone already loaded.");return t.Zone??=function rt(){const t=fe.performance;function r(j){t&&t.mark&&t.mark(j)}function l(j,p){t&&t.measure&&t.measure(j,p)}r("Zone");let n=(()=>{class j{static#e=this.__symbol__=le;static assertZonePatched(){if(fe.Promise!==$.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 e=j.current;for(;e.parent;)e=e.parent;return e}static get current(){return S.zone}static get currentTask(){return x}static __load_patch(e,o,P=!1){if($.hasOwnProperty(e)){const Z=!0===fe[le("forceDuplicateZoneCheck")];if(!P&&Z)throw Error("Already loaded patch: "+e)}else if(!fe["__Zone_disable_"+e]){const Z="Zone:"+e;r(Z),$[e]=o(fe,j,D),l(Z,Z)}}get parent(){return this._parent}get name(){return this._name}constructor(e,o){this._parent=e,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,o)}get(e){const o=this.getZoneWith(e);if(o)return o._properties[e]}getZoneWith(e){let o=this;for(;o;){if(o._properties.hasOwnProperty(e))return o;o=o._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,o){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const P=this._zoneDelegate.intercept(this,e,o),Z=this;return function(){return Z.runGuarded(P,this,arguments,o)}}run(e,o,P,Z){S={parent:S,zone:this};try{return this._zoneDelegate.invoke(this,e,o,P,Z)}finally{S=S.parent}}runGuarded(e,o=null,P,Z){S={parent:S,zone:this};try{try{return this._zoneDelegate.invoke(this,e,o,P,Z)}catch(se){if(this._zoneDelegate.handleError(this,se))throw se}}finally{S=S.parent}}runTask(e,o,P){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||pe).name+"; Execution: "+this.name+")");if(e.state===re&&(e.type===Y||e.type===b))return;const Z=e.state!=q;Z&&e._transitionTo(q,g),e.runCount++;const se=x;x=e,S={parent:S,zone:this};try{e.type==b&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,o,P)}catch(U){if(this._zoneDelegate.handleError(this,U))throw U}}finally{e.state!==re&&e.state!==oe&&(e.type==Y||e.data&&e.data.isPeriodic?Z&&e._transitionTo(g,q):(e.runCount=0,this._updateTaskCount(e,-1),Z&&e._transitionTo(re,q,re))),S=S.parent,x=se}}scheduleTask(e){if(e.zone&&e.zone!==this){let P=this;for(;P;){if(P===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);P=P.parent}}e._transitionTo(I,re);const o=[];e._zoneDelegates=o,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(P){throw e._transitionTo(oe,I,re),this._zoneDelegate.handleError(this,P),P}return e._zoneDelegates===o&&this._updateTaskCount(e,1),e.state==I&&e._transitionTo(g,I),e}scheduleMicroTask(e,o,P,Z){return this.scheduleTask(new y(X,e,o,P,Z,void 0))}scheduleMacroTask(e,o,P,Z,se){return this.scheduleTask(new y(b,e,o,P,Z,se))}scheduleEventTask(e,o,P,Z,se){return this.scheduleTask(new y(Y,e,o,P,Z,se))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||pe).name+"; Execution: "+this.name+")");if(e.state===g||e.state===q){e._transitionTo(Q,g,q);try{this._zoneDelegate.cancelTask(this,e)}catch(o){throw e._transitionTo(oe,Q),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(e,-1),e._transitionTo(re,Q),e.runCount=0,e}}_updateTaskCount(e,o){const P=e._zoneDelegates;-1==o&&(e._zoneDelegates=null);for(let Z=0;Z<P.length;Z++)P[Z]._updateTaskCount(e.type,o)}}return j})();const a={name:"",onHasTask:(j,p,e,o)=>j.hasTask(e,o),onScheduleTask:(j,p,e,o)=>j.scheduleTask(e,o),onInvokeTask:(j,p,e,o,P,Z)=>j.invokeTask(e,o,P,Z),onCancelTask:(j,p,e,o)=>j.cancelTask(e,o)};class d{get zone(){return this._zone}constructor(p,e,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=p,this._parentDelegate=e,this._forkZS=o&&(o&&o.onFork?o:e._forkZS),this._forkDlgt=o&&(o.onFork?e:e._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:e._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:e._interceptZS),this._interceptDlgt=o&&(o.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:e._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:e._invokeZS),this._invokeDlgt=o&&(o.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:e._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:e._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:e._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:e._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:e._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:e._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:e._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:e._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const P=o&&o.onHasTask;(P||e&&e._hasTaskZS)&&(this._hasTaskZS=P?o:a,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this._zone))}fork(p,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,p,e):new n(p,e)}intercept(p,e,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,p,e,o):e}invoke(p,e,o,P,Z){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,p,e,o,P,Z):e.apply(o,P)}handleError(p,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,p,e)}scheduleTask(p,e){let o=e;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,p,e),o||(o=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=X)throw new Error("Task is missing scheduleFn.");J(e)}return o}invokeTask(p,e,o,P){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,p,e,o,P):e.callback.apply(o,P)}cancelTask(p,e){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,p,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");o=e.cancelFn(e)}return o}hasTask(p,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,p,e)}catch(o){this.handleError(p,o)}}_updateTaskCount(p,e){const o=this._taskCounts,P=o[p],Z=o[p]=P+e;if(Z<0)throw new Error("More tasks executed then were scheduled.");0!=P&&0!=Z||this.hasTask(this._zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:p})}}class y{constructor(p,e,o,P,Z,se){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=p,this.source=e,this.data=P,this.scheduleFn=Z,this.cancelFn=se,!o)throw new Error("callback is not defined");this.callback=o;const U=this;this.invoke=p===Y&&P&&P.useG?y.invokeTask:function(){return y.invokeTask.call(fe,U,this,arguments)}}static invokeTask(p,e,o){p||(p=this),ue++;try{return p.runCount++,p.zone.runTask(p,e,o)}finally{1==ue&&G(),ue--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(re,I)}_transitionTo(p,e,o){if(this._state!==e&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${p}', expecting state '${e}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=p,p==re&&(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 k=le("setTimeout"),w=le("Promise"),L=le("then");let O,v=[],H=!1;function z(j){if(O||fe[w]&&(O=fe[w].resolve(0)),O){let p=O[L];p||(p=O.then),p.call(O,j)}else fe[k](j,0)}function J(j){0===ue&&0===v.length&&z(G),j&&v.push(j)}function G(){if(!H){for(H=!0;v.length;){const j=v;v=[];for(let p=0;p<j.length;p++){const e=j[p];try{e.zone.runTask(e,null,null)}catch(o){D.onUnhandledError(o)}}}D.microtaskDrainDone(),H=!1}}const pe={name:"NO ZONE"},re="notScheduled",I="scheduling",g="scheduled",q="running",Q="canceling",oe="unknown",X="microTask",b="macroTask",Y="eventTask",$={},D={symbol:le,currentZoneFrame:()=>S,onUnhandledError:ee,microtaskDrainDone:ee,scheduleMicroTask:J,showUncaughtError:()=>!n[le("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:ee,patchMethod:()=>ee,bindArguments:()=>[],patchThen:()=>ee,patchMacroTask:()=>ee,patchEventPrototype:()=>ee,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>ee,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>ee,wrapWithCurrentZone:()=>ee,filterProperties:()=>[],attachOriginToPatched:()=>ee,_redefineProperty:()=>ee,patchCallbacks:()=>ee,nativeScheduleMicroTask:z};let S={parent:null,zone:new n(null,null)},x=null,ue=0;function ee(){}return l("Zone","Zone"),n}(),t.Zone}();(function vt(t){(function _e(t){t.__load_patch("ZoneAwarePromise",(r,l,n)=>{const a=Object.getOwnPropertyDescriptor,d=Object.defineProperty,k=n.symbol,w=[],L=!1!==r[k("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=k("Promise"),H=k("then"),O="__creationTrace__";n.onUnhandledError=_=>{if(n.showUncaughtError()){const i=_&&_.rejection;i?console.error("Unhandled Promise rejection:",i instanceof Error?i.message:i,"; Zone:",_.zone.name,"; Task:",_.task&&_.task.source,"; Value:",i,i instanceof Error?i.stack:void 0):console.error(_)}},n.microtaskDrainDone=()=>{for(;w.length;){const _=w.shift();try{_.zone.runGuarded(()=>{throw _.throwOriginal?_.rejection:_})}catch(i){J(i)}}};const z=k("unhandledPromiseRejectionHandler");function J(_){n.onUnhandledError(_);try{const i=l[z];"function"==typeof i&&i.call(this,_)}catch{}}function G(_){return _&&_.then}function pe(_){return _}function re(_){return U.reject(_)}const I=k("state"),g=k("value"),q=k("finally"),Q=k("parentPromiseValue"),oe=k("parentPromiseState"),X="Promise.then",b=null,Y=!0,$=!1,D=0;function S(_,i){return f=>{try{j(_,i,f)}catch(T){j(_,!1,T)}}}const x=function(){let _=!1;return function(f){return function(){_||(_=!0,f.apply(null,arguments))}}},ue="Promise resolved with itself",ee=k("currentTaskTrace");function j(_,i,f){const T=x();if(_===f)throw new TypeError(ue);if(_[I]===b){let C=null;try{("object"==typeof f||"function"==typeof f)&&(C=f&&f.then)}catch(M){return T(()=>{j(_,!1,M)})(),_}if(i!==$&&f instanceof U&&f.hasOwnProperty(I)&&f.hasOwnProperty(g)&&f[I]!==b)e(f),j(_,f[I],f[g]);else if(i!==$&&"function"==typeof C)try{C.call(f,T(S(_,i)),T(S(_,!1)))}catch(M){T(()=>{j(_,!1,M)})()}else{_[I]=i;const M=_[g];if(_[g]=f,_[q]===q&&i===Y&&(_[I]=_[oe],_[g]=_[Q]),i===$&&f instanceof Error){const R=l.currentTask&&l.currentTask.data&&l.currentTask.data[O];R&&d(f,ee,{configurable:!0,enumerable:!1,writable:!0,value:R})}for(let R=0;R<M.length;)o(_,M[R++],M[R++],M[R++],M[R++]);if(0==M.length&&i==$){_[I]=D;let R=f;try{throw new Error("Uncaught (in promise): "+function y(_){return _&&_.toString===Object.prototype.toString?(_.constructor&&_.constructor.name||"")+": "+JSON.stringify(_):_?_.toString():Object.prototype.toString.call(_)}(f)+(f&&f.stack?"\n"+f.stack:""))}catch(N){R=N}L&&(R.throwOriginal=!0),R.rejection=f,R.promise=_,R.zone=l.current,R.task=l.currentTask,w.push(R),n.scheduleMicroTask()}}}return _}const p=k("rejectionHandledHandler");function e(_){if(_[I]===D){try{const i=l[p];i&&"function"==typeof i&&i.call(this,{rejection:_[g],promise:_})}catch{}_[I]=$;for(let i=0;i<w.length;i++)_===w[i].promise&&w.splice(i,1)}}function o(_,i,f,T,C){e(_);const M=_[I],R=M?"function"==typeof T?T:pe:"function"==typeof C?C:re;i.scheduleMicroTask(X,()=>{try{const N=_[g],A=!!f&&q===f[q];A&&(f[Q]=N,f[oe]=M);const V=i.run(R,void 0,A&&R!==re&&R!==pe?[]:[N]);j(f,!0,V)}catch(N){j(f,!1,N)}},f)}const Z=function(){},se=r.AggregateError;class U{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(i){return i instanceof U?i:j(new this(null),Y,i)}static reject(i){return j(new this(null),$,i)}static withResolvers(){const i={};return i.promise=new U((f,T)=>{i.resolve=f,i.reject=T}),i}static any(i){if(!i||"function"!=typeof i[Symbol.iterator])return Promise.reject(new se([],"All promises were rejected"));const f=[];let T=0;try{for(let R of i)T++,f.push(U.resolve(R))}catch{return Promise.reject(new se([],"All promises were rejected"))}if(0===T)return Promise.reject(new se([],"All promises were rejected"));let C=!1;const M=[];return new U((R,N)=>{for(let A=0;A<f.length;A++)f[A].then(V=>{C||(C=!0,R(V))},V=>{M.push(V),T--,0===T&&(C=!0,N(new se(M,"All promises were rejected")))})})}static race(i){let f,T,C=new this((N,A)=>{f=N,T=A});function M(N){f(N)}function R(N){T(N)}for(let N of i)G(N)||(N=this.resolve(N)),N.then(M,R);return C}static all(i){return U.allWithCallback(i)}static allSettled(i){return(this&&this.prototype instanceof U?this:U).allWithCallback(i,{thenCallback:T=>({status:"fulfilled",value:T}),errorCallback:T=>({status:"rejected",reason:T})})}static allWithCallback(i,f){let T,C,M=new this((V,K)=>{T=V,C=K}),R=2,N=0;const A=[];for(let V of i){G(V)||(V=this.resolve(V));const K=N;try{V.then(ce=>{A[K]=f?f.thenCallback(ce):ce,R--,0===R&&T(A)},ce=>{f?(A[K]=f.errorCallback(ce),R--,0===R&&T(A)):C(ce)})}catch(ce){C(ce)}R++,N++}return R-=2,0===R&&T(A),M}constructor(i){const f=this;if(!(f instanceof U))throw new Error("Must be an instanceof Promise.");f[I]=b,f[g]=[];try{const T=x();i&&i(T(S(f,Y)),T(S(f,$)))}catch(T){j(f,!1,T)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return U}then(i,f){let T=this.constructor?.[Symbol.species];(!T||"function"!=typeof T)&&(T=this.constructor||U);const C=new T(Z),M=l.current;return this[I]==b?this[g].push(M,C,i,f):o(this,M,C,i,f),C}catch(i){return this.then(null,i)}finally(i){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=U);const T=new f(Z);T[q]=q;const C=l.current;return this[I]==b?this[g].push(C,T,i,i):o(this,C,T,i,i),T}}U.resolve=U.resolve,U.reject=U.reject,U.race=U.race,U.all=U.all;const Et=r[v]=r.Promise;r.Promise=U;const nt=k("thenPatched");function Le(_){const i=_.prototype,f=a(i,"then");if(f&&(!1===f.writable||!f.configurable))return;const T=i.then;i[H]=T,_.prototype.then=function(C,M){return new U((N,A)=>{T.call(this,N,A)}).then(C,M)},_[nt]=!0}return n.patchThen=Le,Et&&(Le(Et),ge(r,"fetch",_=>function mt(_){return function(i,f){let T=_.apply(i,f);if(T instanceof U)return T;let C=T.constructor;return C[nt]||Le(C),T}}(_))),Promise[l.__symbol__("uncaughtPromiseErrors")]=w,U})})(t),function Ue(t){t.__load_patch("toString",r=>{const l=Function.prototype.toString,n=B("OriginalDelegate"),a=B("Promise"),d=B("Error"),y=function(){if("function"==typeof this){const v=this[n];if(v)return"function"==typeof v?l.call(v):Object.prototype.toString.call(v);if(this===Promise){const H=r[a];if(H)return l.call(H)}if(this===Error){const H=r[d];if(H)return l.call(H)}}return l.call(this)};y[n]=l,Function.prototype.toString=y;const k=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":k.call(this)}})}(t),function De(t){t.__load_patch("util",(r,l,n)=>{const a=Ie(r);n.patchOnProperties=ft,n.patchMethod=ge,n.bindArguments=je,n.patchMacroTask=kt;const d=l.__symbol__("BLACK_LISTED_EVENTS"),y=l.__symbol__("UNPATCHED_EVENTS");r[y]&&(r[d]=r[y]),r[d]&&(l[d]=l[y]=r[d]),n.patchEventPrototype=u,n.patchEventTarget=s,n.isIEOrEdge=dt,n.ObjectDefineProperty=Ge,n.ObjectGetOwnPropertyDescriptor=be,n.ObjectCreate=yt,n.ArraySlice=xe,n.patchClass=Oe,n.wrapWithCurrentZone=qe,n.filterProperties=ie,n.attachOriginToPatched=ye,n._redefineProperty=Object.defineProperty,n.patchCallbacks=ne,n.getGlobalObjects=()=>({globalSources:_t,zoneSymbolEventNames:de,eventNames:a,isBrowser:Ke,isMix:Je,isNode:Ce,TRUE_STR:Ee,FALSE_STR:me,ZONE_SYMBOL_PREFIX:Ne,ADD_EVENT_LISTENER_STR:st,REMOVE_EVENT_LISTENER_STR:Fe})})}(t)})(gt),function tt(t){t.__load_patch("legacy",r=>{const l=r[t.__symbol__("legacyPatch")];l&&l()}),t.__load_patch("timers",r=>{const l="set",n="clear";m(r,l,n,"Timeout"),m(r,l,n,"Interval"),m(r,l,n,"Immediate")}),t.__load_patch("requestAnimationFrame",r=>{m(r,"request","cancel","AnimationFrame"),m(r,"mozRequest","mozCancel","AnimationFrame"),m(r,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(r,l)=>{const n=["alert","prompt","confirm"];for(let a=0;a<n.length;a++)ge(r,n[a],(y,k,w)=>function(L,v){return l.current.run(y,r,v,w)})}),t.__load_patch("EventTarget",(r,l,n)=>{(function F(t,r){r.patchEventPrototype(t,r)})(r,n),function W(t,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:l,zoneSymbolEventNames:n,TRUE_STR:a,FALSE_STR:d,ZONE_SYMBOL_PREFIX:y}=r.getGlobalObjects();for(let w=0;w<l.length;w++){const L=l[w],O=y+(L+d),z=y+(L+a);n[L]={},n[L][d]=O,n[L][a]=z}const k=t.EventTarget;k&&k.prototype&&r.patchEventTarget(t,r,[k&&k.prototype])}(r,n);const a=r.XMLHttpRequestEventTarget;a&&a.prototype&&n.patchEventTarget(r,n,[a.prototype])}),t.__load_patch("MutationObserver",(r,l,n)=>{Oe("MutationObserver"),Oe("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(r,l,n)=>{Oe("IntersectionObserver")}),t.__load_patch("FileReader",(r,l,n)=>{Oe("FileReader")}),t.__load_patch("on_property",(r,l,n)=>{!function Be(t,r){if(Ce&&!Je||Zone[t.symbol("patchEvents")])return;const l=r.__Zone_ignore_on_properties;let n=[];if(Ke){const a=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const d=function Pt(){try{const t=we.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:a,ignoreProperties:["error"]}]:[];Se(a,Ie(a),l&&l.concat(d),Ae(a))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a<n.length;a++){const d=r[n[a]];d&&d.prototype&&Se(d.prototype,Ie(d.prototype),l)}}(n,r)}),t.__load_patch("customElements",(r,l,n)=>{!function ae(t,r){const{isBrowser:l,isMix:n}=r.getGlobalObjects();(l||n)&&t.customElements&&"customElements"in t&&r.patchCallbacks(r,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(r,n)}),t.__load_patch("XHR",(r,l)=>{!function L(v){const H=v.XMLHttpRequest;if(!H)return;const O=H.prototype;let J=O[it],G=O[We];if(!J){const D=v.XMLHttpRequestEventTarget;if(D){const S=D.prototype;J=S[it],G=S[We]}}const pe="readystatechange",re="scheduled";function I(D){const S=D.data,x=S.target;x[y]=!1,x[w]=!1;const ue=x[d];J||(J=x[it],G=x[We]),ue&&G.call(x,pe,ue);const ee=x[d]=()=>{if(x.readyState===x.DONE)if(!S.aborted&&x[y]&&D.state===re){const p=x[l.__symbol__("loadfalse")];if(0!==x.status&&p&&p.length>0){const e=D.invoke;D.invoke=function(){const o=x[l.__symbol__("loadfalse")];for(let P=0;P<o.length;P++)o[P]===D&&o.splice(P,1);!S.aborted&&D.state===re&&e.call(D)},p.push(D)}else D.invoke()}else!S.aborted&&!1===x[y]&&(x[w]=!0)};return J.call(x,pe,ee),x[n]||(x[n]=D),Y.apply(x,S.args),x[y]=!0,D}function g(){}function q(D){const S=D.data;return S.aborted=!0,$.apply(S.target,S.args)}const Q=ge(O,"open",()=>function(D,S){return D[a]=0==S[2],D[k]=S[1],Q.apply(D,S)}),X=B("fetchTaskAborting"),b=B("fetchTaskScheduling"),Y=ge(O,"send",()=>function(D,S){if(!0===l.current[b]||D[a])return Y.apply(D,S);{const x={target:D,url:D[k],isPeriodic:!1,args:S,aborted:!1},ue=Xe("XMLHttpRequest.send",g,x,I,q);D&&!0===D[w]&&!x.aborted&&ue.state===re&&ue.invoke()}}),$=ge(O,"abort",()=>function(D,S){const x=function z(D){return D[n]}(D);if(x&&"string"==typeof x.type){if(null==x.cancelFn||x.data&&x.data.aborted)return;x.zone.cancelTask(x)}else if(!0===l.current[X])return $.apply(D,S)})}(r);const n=B("xhrTask"),a=B("xhrSync"),d=B("xhrListener"),y=B("xhrScheduled"),k=B("xhrURL"),w=B("xhrErrorBeforeScheduled")}),t.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&function Ye(t,r){const l=t.constructor.name;for(let n=0;n<r.length;n++){const a=r[n],d=t[a];if(d){if(!Pe(be(t,a)))continue;t[a]=(k=>{const w=function(){return k.apply(this,je(arguments,l+"."+a))};return ye(w,k),w})(d)}}}(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(r,l)=>{function n(a){return function(d){c(r,a).forEach(k=>{const w=r.PromiseRejectionEvent;if(w){const L=new w(a,{promise:d.promise,reason:d.rejection});k.invoke(L)}})}}r.PromiseRejectionEvent&&(l[B("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),l[B("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(r,l,n)=>{!function h(t,r){r.patchMethod(t,"queueMicrotask",l=>function(n,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}(r,n)})}(gt)}},fe=>{fe(fe.s=2523)}]);