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