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