'use strict'; /** * @license Angular * (c) 2010-2026 Google LLC. https://angular.dev/ * License: MIT */(function(g,f){if(typeof define=="function"&&define.amd){define(["timers","crypto","events","fs"],function(_d_0,_d_1,_d_2,_d_3){var d={"timers": _d_0,"crypto": _d_1,"events": _d_2,"fs": _d_3},r=function(m){if(m in d) return d[m];if(typeof require=="function") return require(m);throw new Error("Cannot find module '"+m+"'")};return f(r)})}else if(typeof exports=="object" && typeof module<"u"){module.exports=f(require)}else{var gN={"timers":"timers","crypto":"crypto","events":"events","fs":"fs"},gReq=function(r){var mod = r in gN ? g[gN[r]] : g[r]; return mod };var m=f(gReq);for(var i in m) g[i]=m[i]}}(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : this,function(require){var exports={};var __exports=exports;var module={exports}; "use strict";(function(ve,de){if(typeof define=="function"&&define.amd)define(["timers","crypto","events","fs"],function(ye,ge,Fe,ze){var me={timers:ye,crypto:ge,events:Fe,fs:ze},Ae=function(ke){if(ke in me)return me[ke];if(typeof require=="function")return require(ke);throw new Error("Cannot find module '"+ke+"'")};return de(Ae)});else if(typeof exports=="object"&&typeof module<"u")module.exports=de(require);else{var Re={timers:"timers",crypto:"crypto",events:"events",fs:"fs"},Ce=function(ye){var ge=ye in Re?ve[Re[ye]]:ve[ye];return ge},Ie=de(Ce);for(var Ne in Ie)ve[Ne]=Ie[Ne]}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:exports,function(ve){var de={},Re=de,Ce={exports:de},Ie=Object.defineProperty,Ne=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,me=function(r,i,u){return i in r?Ie(r,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):r[i]=u},Ae=function(r,i){for(var u in i||(i={}))Fe.call(i,u)&&me(r,u,i[u]);if(ge)for(var a=0,l=ge(i);a",this._properties=t&&t.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,t)}return v.assertZonePatched=function(){if(le.Promise!==D.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.)")},Object.defineProperty(v,"root",{get:function(){for(var n=v.current;n.parent;)n=n.parent;return n},enumerable:!1,configurable:!0}),Object.defineProperty(v,"current",{get:function(){return x.zone},enumerable:!1,configurable:!0}),Object.defineProperty(v,"currentTask",{get:function(){return ae},enumerable:!1,configurable:!0}),v.__load_patch=function(n,t,o){if(o===void 0&&(o=!1),D.hasOwnProperty(n)){var E=le[te("forceDuplicateZoneCheck")]===!0;if(!o&&E)throw Error("Already loaded patch: "+n)}else if(!le["__Zone_disable_"+n]){var A="Zone:"+n;i(A),D[n]=t(le,v,$),u(A,A)}},Object.defineProperty(v.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),v.prototype.get=function(n){var t=this.getZoneWith(n);if(t)return t._properties[n]},v.prototype.getZoneWith=function(n){for(var t=this;t;){if(t._properties.hasOwnProperty(n))return t;t=t._parent}return null},v.prototype.fork=function(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)},v.prototype.wrap=function(n,t){if(typeof n!="function")throw new Error("Expecting function got: "+n);var o=this._zoneDelegate.intercept(this,n,t),E=this;return function(){return E.runGuarded(o,this,arguments,t)}},v.prototype.run=function(n,t,o,E){x={parent:x,zone:this};try{return this._zoneDelegate.invoke(this,n,t,o,E)}finally{x=x.parent}},v.prototype.runGuarded=function(n,t,o,E){t===void 0&&(t=null),x={parent:x,zone:this};try{try{return this._zoneDelegate.invoke(this,n,t,o,E)}catch(A){if(this._zoneDelegate.handleError(this,A))throw A}}finally{x=x.parent}},v.prototype.runTask=function(n,t,o){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||oe).name+"; Execution: "+this.name+")");var E=n,A=n.type,F=n.data,se=F===void 0?{}:F,Ee=se.isPeriodic,he=Ee===void 0?!1:Ee,Te=se.isRefreshable,ce=Te===void 0?!1:Te;if(!(n.state===N&&(A===G||A===k))){var s=n.state!=B;s&&E._transitionTo(B,_);var f=ae;ae=E,x={parent:x,zone:this};try{A==k&&n.data&&!he&&!ce&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,E,t,o)}catch(T){if(this._zoneDelegate.handleError(this,T))throw T}}finally{var e=n.state;if(e!==N&&e!==U)if(A==G||he||ce&&e===Z)s&&E._transitionTo(_,B,Z);else{var h=E._zoneDelegates;this._updateTaskCount(E,-1),s&&E._transitionTo(N,B,N),ce&&(E._zoneDelegates=h)}x=x.parent,ae=f}}},v.prototype.scheduleTask=function(n){if(n.zone&&n.zone!==this)for(var t=this;t;){if(t===n.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(n.zone.name));t=t.parent}n._transitionTo(Z,N);var o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(E){throw n._transitionTo(U,Z,N),this._zoneDelegate.handleError(this,E),E}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==Z&&n._transitionTo(_,Z),n},v.prototype.scheduleMicroTask=function(n,t,o,E){return this.scheduleTask(new p(j,n,t,o,E,void 0))},v.prototype.scheduleMacroTask=function(n,t,o,E,A){return this.scheduleTask(new p(k,n,t,o,E,A))},v.prototype.scheduleEventTask=function(n,t,o,E,A){return this.scheduleTask(new p(G,n,t,o,E,A))},v.prototype.cancelTask=function(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||oe).name+"; Execution: "+this.name+")");if(!(n.state!==_&&n.state!==B)){n._transitionTo(z,_,B);try{this._zoneDelegate.cancelTask(this,n)}catch(t){throw n._transitionTo(U,z),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(n,-1),n._transitionTo(N,z),n.runCount=-1,n}},v.prototype._updateTaskCount=function(n,t){var o=n._zoneDelegates;t==-1&&(n._zoneDelegates=null);for(var E=0;E0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:n};this.hasTask(this._zone,F)}},v}(),p=function(){function v(n,t,o,E,A,F){if(b(this,"type"),b(this,"source"),b(this,"invoke"),b(this,"callback"),b(this,"data"),b(this,"scheduleFn"),b(this,"cancelFn"),b(this,"_zone",null),b(this,"runCount",0),b(this,"_zoneDelegates",null),b(this,"_state","notScheduled"),this.type=n,this.source=t,this.data=E,this.scheduleFn=A,this.cancelFn=F,!o)throw new Error("callback is not defined");this.callback=o;var se=this;n===G&&E&&E.useG?this.invoke=v.invokeTask:this.invoke=function(){return v.invokeTask.call(le,se,this,arguments)}}return v.invokeTask=function(n,t,o){n||(n=this),fe++;try{return n.runCount++,n.zone.runTask(n,t,o)}finally{fe==1&&K(),fe--}},Object.defineProperty(v.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),v.prototype.cancelScheduleRequest=function(){this._transitionTo(N,Z)},v.prototype._transitionTo=function(n,t,o){if(this._state===t||this._state===o)this._state=n,n==N&&(this._zoneDelegates=null);else throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(n,"', expecting state '").concat(t,"'").concat(o?" or '"+o+"'":"",", was '").concat(this._state,"'."))},v.prototype.toString=function(){return this.data&&typeof this.data.handleId!="undefined"?this.data.handleId.toString():Object.prototype.toString.call(this)},v.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},v}(),y=te("setTimeout"),C=te("Promise"),S=te("then"),m=[],M=!1,L;function ee(v){if(L||le[C]&&(L=le[C].resolve(0)),L){var n=L[S];n||(n=L.then),n.call(L,v)}else le[y](v,0)}function I(v){fe===0&&m.length===0&&ee(K),v&&m.push(v)}function K(){if(!M){for(M=!0;m.length;){var v=m;m=[];for(var n=0;n=0;u--)typeof r[u]=="function"&&(r[u]=pr(r[u],i+"_"+u));return r}function Er(r){return r?r.writable===!1?!1:!(typeof r.get=="function"&&typeof r.set=="undefined"):!0}var Ke=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope,Xe=!("nw"in ne)&&typeof ne.process!="undefined"&&ne.process.toString()==="[object process]",gr=!Xe&&!Ke&&!!(Le&&je.HTMLElement),$e=typeof ne.process!="undefined"&&ne.process.toString()==="[object process]"&&!Ke&&!!(Le&&je.HTMLElement),Ve={},mr=Q("enable_beforeunload"),qe=function(r){if(r=r||ne.event,!!r){var i=Ve[r.type];i||(i=Ve[r.type]=Q("ON_PROPERTY"+r.type));var u=this||r.target||ne,a=u[i],l;if(gr&&u===je&&r.type==="error"){var c=r;l=a&&a.call(this,c.message,c.filename,c.lineno,c.colno,c.error),l===!0&&r.preventDefault()}else l=a&&a.apply(this,arguments),r.type==="beforeunload"&&ne[mr]&&typeof l=="string"?r.returnValue=l:l!=null&&!l&&r.preventDefault();return l}};function er(r,i,u){var a=Ue(r,i);if(!a&&u){var l=Ue(u,i);l&&(a={enumerable:!0,configurable:!0})}if(!(!a||!a.configurable)){var c=Q("on"+i+"patched");if(!(r.hasOwnProperty(c)&&r[c])){delete a.writable,delete a.value;var d=a.get,p=a.set,y=i.slice(2),C=Ve[y];C||(C=Ve[y]=Q("ON_PROPERTY"+y)),a.set=function(S){var m=this;if(!m&&r===ne&&(m=ne),!!m){var M=m[C];typeof M=="function"&&m.removeEventListener(y,qe),p==null||p.call(m,null),m[C]=S,typeof S=="function"&&m.addEventListener(y,qe,!1)}},a.get=function(){var S=this;if(!S&&r===ne&&(S=ne),!S)return null;var m=S[C];if(m)return m;if(d){var M=d.call(this);if(M)return a.set.call(this,M),typeof S[Tr]=="function"&&S.removeAttribute(i),M}return null},dr(r,i,a),r[c]=!0}}}function kr(r,i,u){if(i)for(var a=0;a=0&&typeof p[y.cbIdx]=="function"?Qe(y.name,p[y.cbIdx],y,l):c.apply(d,p)}})}function Pr(r,i,u){var a=null;function l(c){var d=c.data;return d.args[d.cbIdx]=function(){c.invoke.apply(this,arguments)},a.apply(d.target,d.args),c}a=be(r,i,function(c){return function(d,p){var y=u(d,p);return y.cbIdx>=0&&typeof p[y.cbIdx]=="function"?Zone.current.scheduleMicroTask(y.name,p[y.cbIdx],y,l):c.apply(d,p)}})}function Oe(r,i){r[Q("OriginalDelegate")]=i}function tr(r){return typeof r=="function"}function nr(r){return typeof r=="number"}function Sr(r){r.__load_patch("ZoneAwarePromise",function(i,u,a){var l=Object.getOwnPropertyDescriptor,c=Object.defineProperty;function d(s){if(s&&s.toString===Object.prototype.toString){var f=s.constructor&&s.constructor.name;return(f||"")+": "+JSON.stringify(s)}return s?s.toString():Object.prototype.toString.call(s)}var p=a.symbol,y=[],C=i[p("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,S=p("Promise"),m=p("then"),M="__creationTrace__";a.onUnhandledError=function(s){if(a.showUncaughtError()){var f=s&&s.rejection;f?console.error("Unhandled Promise rejection:",f instanceof Error?f.message:f,"; Zone:",s.zone.name,"; Task:",s.task&&s.task.source,"; Value:",f,f instanceof Error?f.stack:void 0):console.error(s)}},a.microtaskDrainDone=function(){for(var s=function(){var f=y.shift();try{f.zone.runGuarded(function(){throw f.throwOriginal?f.rejection:f})}catch(e){ee(e)}};y.length;)s()};var L=p("unhandledPromiseRejectionHandler");function ee(s){a.onUnhandledError(s);try{var f=u[L];typeof f=="function"&&f.call(this,s)}catch(e){}}function I(s){return s&&typeof s.then=="function"}function K(s){return s}function oe(s){return F.reject(s)}var N=p("state"),Z=p("value"),_=p("finally"),B=p("parentPromiseValue"),z=p("parentPromiseState"),U="Promise.then",j=null,k=!0,G=!1,D=0;function $(s,f){return function(e){try{V(s,f,e)}catch(h){V(s,!1,h)}}}var x=function(){var s=!1;return function(e){return function(){s||(s=!0,e.apply(null,arguments))}}},ae="Promise resolved with itself",fe=p("currentTaskTrace");function V(s,f,e){var h=x();if(s===e)throw new TypeError(ae);if(s[N]===j){var T=null;try{(typeof e=="object"||typeof e=="function")&&(T=e&&e.then)}catch(P){return h(function(){V(s,!1,P)})(),s}if(f!==G&&e instanceof F&&e.hasOwnProperty(N)&&e.hasOwnProperty(Z)&&e[N]!==j)n(e),V(s,e[N],e[Z]);else if(f!==G&&typeof T=="function")try{T.call(e,h($(s,f)),h($(s,!1)))}catch(P){h(function(){V(s,!1,P)})()}else{s[N]=f;var g=s[Z];if(s[Z]=e,s[_]===_&&f===k&&(s[N]=s[z],s[Z]=s[B]),f===G&&e instanceof Error){var O=u.currentTask&&u.currentTask.data&&u.currentTask.data[M];O&&c(e,fe,{configurable:!0,enumerable:!1,writable:!0,value:O})}for(var R=0;R0?S.length-1:-1,target:C}})});var p=(l=c.realpath)==null?void 0:l[a.symbol("OriginalDelegate")];p!=null&&p.native&&(c.realpath.native=p.native,Ge(c.realpath,"native",function(y,C){return{args:C,target:y,cbIdx:C.length>0?C.length-1:-1,name:"fs.realpath.native"}}))}})}function Lr(r){r.__load_patch("node_util",function(i,u,a){a.patchOnProperties=kr,a.patchMethod=be,a.bindArguments=yr,a.patchMacroTask=Ge,wr(!0)})}var Pe="set",Se="clear";function jr(r){Lr(r),Ar(r),Mr(r),r.__load_patch("node_timers",function(i,u){var a=!1;try{var l=ve("timers"),c=i.setTimeout===l.setTimeout;if(!c&&!$e){var d=l.setTimeout;l.setTimeout=function(){return a=!0,d.apply(this,arguments)};var p=i.setTimeout(function(){},100);clearTimeout(p),l.setTimeout=d}we(l,Pe,Se,"Timeout"),we(l,Pe,Se,"Interval"),we(l,Pe,Se,"Immediate")}catch(y){}$e||(a?(i[u.__symbol__("setTimeout")]=i.setTimeout,i[u.__symbol__("setInterval")]=i.setInterval,i[u.__symbol__("setImmediate")]=i.setImmediate):(we(i,Pe,Se,"Timeout"),we(i,Pe,Se,"Interval"),we(i,Pe,Se,"Immediate")))}),r.__load_patch("nextTick",function(){Pr(process,"nextTick",function(i,u){return{name:"process.nextTick",args:u,cbIdx:u.length>0&&typeof u[0]=="function"?0:-1,target:process}})}),r.__load_patch("handleUnhandledPromiseRejection",function(i,u,a){u[a.symbol("unhandledPromiseRejectionHandler")]=l("unhandledRejection"),u[a.symbol("rejectionHandledHandler")]=l("rejectionHandled");function l(c){return function(d){var p=ar(process,c);p.forEach(function(y){c==="unhandledRejection"?y.invoke(d.rejection,d.promise):c==="rejectionHandled"&&y.invoke(d.promise)})}}}),r.__load_patch("crypto",function(){var i;try{i=ve("crypto")}catch(a){}if(i){var u=["randomBytes","pbkdf2"];u.forEach(function(a){Ge(i,a,function(l,c){return{name:"crypto."+a,args:c,cbIdx:c.length>0&&typeof c[c.length-1]=="function"?c.length-1:-1,target:i}})})}}),r.__load_patch("console",function(i,u){var a=["dir","log","info","error","warn","assert","debug","timeEnd","trace"];a.forEach(function(l){var c=console[u.__symbol__(l)]=console[l];c&&(console[l]=function(){var d=_r.call(arguments);return u.current===u.root?c.apply(this,d):u.root.run(c,this,d)})})}),r.__load_patch("queueMicrotask",function(i,u,a){Nr(i,a)})}function Vr(){var r=Or();return jr(r),Sr(r),Zr(r),r}return Vr(),Re!=de&&(Ce.exports=de),Ce.exports}); if(__exports != exports)module.exports = exports;return module.exports}));