@piserve-tech/octa-file-upload-webcomponent 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # FileUpload
2
+
3
+ This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.8.
4
+
5
+ ## Development server
6
+
7
+ Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
8
+
9
+ ## Code scaffolding
10
+
11
+ Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12
+
13
+ ## Build
14
+
15
+ Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16
+
17
+ ## Running unit tests
18
+
19
+ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20
+
21
+ ## Running end-to-end tests
22
+
23
+ Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24
+
25
+ ## Further help
26
+
27
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
package/copy-assets.js ADDED
@@ -0,0 +1,47 @@
1
+ // Script to copy assets for web component distribution
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+
5
+ function copyRecursiveSync(src, dest) {
6
+ if (!fs.existsSync(src)) return;
7
+ const stats = fs.statSync(src);
8
+ if (stats.isDirectory()) {
9
+ if (!fs.existsSync(dest)) fs.mkdirSync(dest, { recursive: true });
10
+ fs.readdirSync(src).forEach(child => {
11
+ copyRecursiveSync(path.join(src, child), path.join(dest, child));
12
+ });
13
+ } else {
14
+ fs.copyFileSync(src, dest);
15
+ }
16
+ }
17
+
18
+
19
+ // Determine source: local dist or node_modules
20
+ let srcAssets, srcBundleJs, srcBundleCss;
21
+ if (fs.existsSync(path.join(__dirname, 'dist', 'assets'))) {
22
+ srcAssets = path.join(__dirname, 'dist', 'assets');
23
+ srcBundleJs = path.join(__dirname, 'dist', 'bundle.js');
24
+ srcBundleCss = path.join(__dirname, 'dist', 'bundle.css');
25
+ } else {
26
+ srcAssets = path.join(__dirname, 'node_modules', '@piserve-tech', 'octa-file-upload-webcomponent', 'dist', 'assets');
27
+ srcBundleJs = path.join(__dirname, 'node_modules', '@piserve-tech', 'octa-file-upload-webcomponent', 'dist', 'bundle.js');
28
+ srcBundleCss = path.join(__dirname, 'node_modules', '@piserve-tech', 'octa-file-upload-webcomponent', 'dist', 'bundle.css');
29
+ }
30
+ const destAssets = path.join(process.cwd(), 'src', 'assets', 'octa-file-upload-webcomponent');
31
+
32
+ copyRecursiveSync(srcAssets, destAssets);
33
+
34
+ // Also copy bundle.js and bundle.css
35
+ const destBundleJs = path.join(destAssets, 'bundle.js');
36
+ const destBundleCss = path.join(destAssets, 'bundle.css');
37
+
38
+ if (fs.existsSync(srcBundleJs)) {
39
+ fs.copyFileSync(srcBundleJs, destBundleJs);
40
+ console.log('bundle.js copied to src/assets/octa-file-upload-webcomponent');
41
+ }
42
+ if (fs.existsSync(srcBundleCss)) {
43
+ fs.copyFileSync(srcBundleCss, destBundleCss);
44
+ console.log('bundle.css copied to src/assets/octa-file-upload-webcomponent');
45
+ }
46
+
47
+ console.log('Assets and bundles copied to src/assets/octa-file-upload-webcomponent');
File without changes
package/dist/bundle.js ADDED
@@ -0,0 +1,3 @@
1
+ (()=>{"use strict";var e,i={},p={};function n(e){var l=p[e];if(void 0!==l)return l.exports;var r=p[e]={exports:{}};return i[e](r,r.exports,n),r.exports}n.m=i,e=[],n.O=(l,r,c,o)=>{if(!r){var t=1/0;for(a=0;a<e.length;a++){for(var[r,c,o]=e[a],s=!0,f=0;f<r.length;f++)(!1&o||t>=o)&&Object.keys(n.O).every(b=>n.O[b](r[f]))?r.splice(f--,1):(s=!1,o<t&&(t=o));if(s){e.splice(a--,1);var u=c();void 0!==u&&(l=u)}}return l}o=o||0;for(var a=e.length;a>0&&e[a-1][2]>o;a--)e[a]=e[a-1];e[a]=[r,c,o]},n.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={666:0};n.O.j=c=>0===e[c];var l=(c,o)=>{var f,u,[a,t,s]=o,_=0;if(a.some(d=>0!==e[d])){for(f in t)n.o(t,f)&&(n.m[f]=t[f]);if(s)var v=s(n)}for(c&&c(o);_<a.length;_++)n.o(e,u=a[_])&&e[u]&&e[u][0](),e[u]=0;return n.O(v)},r=self.webpackChunkocta_file_upload_webcomponent=self.webpackChunkocta_file_upload_webcomponent||[];r.forEach(l.bind(null,0)),r.push=l.bind(null,r.push.bind(r))})()})();
2
+ "use strict";(self.webpackChunkocta_file_upload_webcomponent=self.webpackChunkocta_file_upload_webcomponent||[]).push([[429],{332:()=>{!function(e){const n=e.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class L{static#e=this.__symbol__=a;static assertZonePatched(){if(e.Promise!==oe.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 t=L.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=E;C&&t._transitionTo(E,A),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(A,E):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(A,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new p(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new p(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new p(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===A||t.state===E){t._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;C<k.length;C++)k[C]._updateTaskCount(t.type,r)}}return L})();const b={name:"",onHasTask:(L,T,t,r)=>L.hasTask(t,r),onScheduleTask:(L,T,t,r)=>L.scheduleTask(t,r),onInvokeTask:(L,T,t,r,k,C)=>L.invokeTask(t,r,k,C),onCancelTask:(L,T,t,r)=>L.cancelTask(t,r)};class v{constructor(T,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(T,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,t):new d(T,t)}intercept(T,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,t,r):t}invoke(T,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,t,r,k,C):t.apply(r,k)}handleError(T,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,t)}scheduleTask(T,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(T,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,t,r,k):t.callback.apply(r,k)}cancelTask(T,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(T,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,t)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,t){const r=this._taskCounts,k=r[T],C=r[T]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class p{constructor(T,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(e,l,this,arguments)}}static invokeTask(T,t,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(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 M=a("setTimeout"),O=a("Promise"),N=a("then");let K,B=[],H=!1;function q(L){if(K||e[O]&&(K=e[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,L)}else e[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;T<L.length;T++){const t=L[T];try{t.zone.runTask(t,null,null)}catch(r){z.onUnhandledError(r)}}}z.microtaskDrainDone(),H=!1}}const J={name:"NO ZONE"},x="notScheduled",X="scheduling",A="scheduled",E="running",G="canceling",h="unknown",I="microTask",w="macroTask",Q="eventTask",oe={},z={symbol:a,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,pe=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,Ze="addEventListener",De="removeEventListener",Oe=Zone.__symbol__(Ze),Ne=Zone.__symbol__(De),ie="true",ce="false",me=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const j=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,Y=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Ve(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!we&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Fe&&!(!be||!_e.HTMLElement),Pe={},Ue=function(e){if(!(e=e||Y.event))return;let n=Pe[e.type];n||(n=Pe[e.type]=j("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===e.type?(c=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function We(e,n,i){let o=ue(e,n);if(!o&&i&&ue(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=Pe[d];b||(b=Pe[d]=j("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&e===Y&&(p=Y),p&&("function"==typeof p[b]&&p.removeEventListener(d,Ue),y&&y.call(p,null),p[b]=v,"function"==typeof v&&p.addEventListener(d,Ue,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const p=v[b];if(p)return p;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},pe(e,n,o),e[c]=!0}function qe(e,n,i){if(n)for(let o=0;o<n.length;o++)We(e,"on"+n[o],i);else{const o=[];for(const c in e)"on"==c.slice(0,2)&&o.push(c);for(let c=0;c<o.length;c++)We(e,o[c],i)}}const ne=j("originalInstance");function ge(e){const n=Y[e];if(!n)return;Y[j(e)]=n,Y[e]=function(){const c=Le(arguments,e);switch(c.length){case 0:this[ne]=new n;break;case 1:this[ne]=new n(c[0]);break;case 2:this[ne]=new n(c[0],c[1]);break;case 3:this[ne]=new n(c[0],c[1],c[2]);break;case 4:this[ne]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},le(Y[e],n);const i=new n(function(){});let o;for(o in i)"XMLHttpRequest"===e&&"responseBlob"===o||function(c){"function"==typeof i[c]?Y[e].prototype[c]=function(){return this[ne][c].apply(this[ne],arguments)}:pe(Y[e].prototype,c,{set:function(a){"function"==typeof a?(this[ne][c]=Ie(a,e+"."+c),le(this[ne][c],a)):this[ne][c]=a},get:function(){return this[ne][c]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&(Y[e][o]=n[o])}function ae(e,n,i){let o=e;for(;o&&!o.hasOwnProperty(n);)o=ve(o);!o&&e[n]&&(o=e);const c=j(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Ve(o&&ue(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},le(o[n],a)}return a}function lt(e,n,i){let o=null;function c(a){const y=a.data;return y.args[y.cbIdx]=function(){a.invoke.apply(this,arguments)},o.apply(y.target,y.args),a}o=ae(e,n,a=>function(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Me(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function le(e,n){e[j("OriginalDelegate")]=n}let Xe=!1,je=!1;function ft(){if(Xe)return je;Xe=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),p=y("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const O=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[O];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function K(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",A=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError(Q);if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(P){return f(()=>{z(l,!1,P)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(P){f(()=>{z(l,!1,P)})()}else{l[q]=u;const P=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[J]),u===G&&s instanceof Error){const m=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];m&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m<P.length;)ee(l,P[m++],P[m++],P[m++],P[m++]);if(0==P.length&&u==G){l[q]=h;let m=s;try{throw new Error("Uncaught (in promise): "+function a(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(S){m=S}b&&(m.throwOriginal=!0),m.rejection=s,m.promise=l,m.zone=n.current,m.task=n.currentTask,d.push(m),i.scheduleMicroTask()}}}return l}const U=y("rejectionHandledHandler");function re(l){if(l[q]===h){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch{}l[q]=G;for(let u=0;u<d.length;u++)l===d[u].promise&&d.splice(u,1)}}function ee(l,u,s,f,g){re(l);const P=l[q],m=P?"function"==typeof f?f:H:"function"==typeof g?g:K;u.scheduleMicroTask(X,()=>{try{const S=l[R],Z=!!s&&_===s[_];Z&&(s[J]=S,s[x]=P);const D=u.run(m,void 0,Z&&m!==K&&m!==H?[]:[S]);z(s,!0,D)}catch(S){z(s,!1,S)}},s)}const L=function(){},T=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let m of u)f++,s.push(t.resolve(m))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const P=[];return new t((m,S)=>{for(let Z=0;Z<s.length;Z++)s[Z].then(D=>{g||(g=!0,m(D))},D=>{P.push(D),f--,0===f&&(g=!0,S(new T(P,"All promises were rejected")))})})}static race(u){let s,f,g=new this((S,Z)=>{s=S,f=Z});function P(S){s(S)}function m(S){f(S)}for(let S of u)B(S)||(S=this.resolve(S)),S.then(P,m);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,P=new this((D,V)=>{f=D,g=V}),m=2,S=0;const Z=[];for(let D of u){B(D)||(D=this.resolve(D));const V=S;try{D.then(F=>{Z[V]=s?s.thenCallback(F):F,m--,0===m&&f(Z)},F=>{s?(Z[V]=s.errorCallback(F),m--,0===m&&f(Z)):g(F)})}catch(F){g(F)}m++,S++}return m-=2,0===m&&f(Z),P}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=w();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||t);const g=new f(L),P=n.current;return this[q]==A?this[R].push(P,g,u,s):ee(this,P,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=t);const f=new s(L);f[_]=_;const g=n.current;return this[q]==A?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[p]=f,l.prototype.then=function(g,P){return new t((S,Z)=>{f.call(this,S,Z)}).then(g,P)},l[k]=!0}return i.patchThen=C,r&&(C(r),ae(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=e[o];if(p)return n.call(p)}if(this===Error){const p=e[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let Ee=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+me+"(\\w+)(true|false)$"),$e=j("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ce,o=(n?n(e):e)+ie,c=me+i,a=me+o;te[e]={},te[e][ce]=c,te[e][ie]=a}function dt(e,n,i,o){const c=o&&o.add||Ze,a=o&&o.rm||De,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=j(c),v="."+c+":",p="prependListener",M="."+p+":",O=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,J){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][J?ie:ce]];if(X){const A=[];if(1===X.length){const E=O(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G<E.length&&(!_||!0!==_[$e]);G++){const h=O(E[G],x,_);h&&A.push(h)}}if(1===A.length)throw A[0];for(let E=0;E<A.length;E++){const G=A[E];n.nativeScheduleMicroTask(()=>{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=ve(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],w=E[j(a)]=E[a],Q=E[j(y)]=E[y],oe=E[j(d)]=E[d];let z;_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const t=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ie:ce]);const P=g&&s.target[g];if(P)for(let m=0;m<P.length;m++)if(P[m]===s){P.splice(m,1),s.isRemoved=!0,0===P.length&&(s.allRemoved=!0,s.target[g]=null);break}}if(s.allRemoved)return w.call(s.target,s.eventName,s.capture?H:B,s.options)}:function(s){return w.call(s.target,s.eventName,s.invoke,s.options)},C=_&&_.diff?_.diff:function(s,f){const g=typeof f;return"function"===g&&s.callback===f||"object"===g&&s.originalDelegate===f},$=Zone[j("UNPATCHED_EVENTS")],l=e[j("PASSIVE_EVENTS")],u=function(s,f,g,P,m=!1,S=!1){return function(){const Z=this||e;let D=arguments[0];_&&_.transferEventName&&(D=_.transferEventName(D));let V=arguments[1];if(!V)return s.apply(this,arguments);if(we&&"uncaughtException"===D)return s.apply(this,arguments);let F=!1;if("function"!=typeof V){if(!V.handleEvent)return s.apply(this,arguments);F=!0}if(x&&!x(s,V,Z,arguments))return;const fe=Ee&&!!l&&-1!==l.indexOf(D),se=function U(s,f){return!Ee&&"object"==typeof s&&s?!!s.capture:Ee&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?{...s,passive:!0}:s:{passive:!0}:s}(arguments[2],fe);if($)for(let de=0;de<$.length;de++)if(D===$[de])return fe?s.call(Z,D,V,se):s.apply(this,arguments);const xe=!!se&&("boolean"==typeof se||se.capture),tt=!(!se||"object"!=typeof se)&&se.once,kt=Zone.current;let Ge=te[D];Ge||(Je(D,G),Ge=te[D]);const nt=Ge[xe?ie:ce];let Ce,ye=Z[nt],rt=!1;if(ye){if(rt=!0,X)for(let de=0;de<ye.length;de++)if(C(ye[de],V))return}else ye=Z[nt]=[];const ot=Z.constructor.name,st=ze[ot];st&&(Ce=st[D]),Ce||(Ce=ot+f+(G?G(D):D)),h.options=se,tt&&(h.options.once=!1),h.target=Z,h.capture=xe,h.eventName=D,h.isExisting=rt;const ke=J?ht:void 0;ke&&(ke.taskData=h);const he=kt.scheduleEventTask(Ce,V,ke,g,P);return h.target=null,ke&&(ke.taskData=null),tt&&(se.once=!0),!Ee&&"boolean"==typeof he.options||(he.options=se),he.target=Z,he.capture=xe,he.eventName=D,F&&(he.originalDelegate=V),S?ye.unshift(he):ye.push(he),m?Z:void 0}};return E[c]=u(I,v,t,r,A),z&&(E[p]=u(z,M,function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,A,!0)),E[a]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],P=!!g&&("boolean"==typeof g||g.capture),m=arguments[1];if(!m)return w.apply(this,arguments);if(x&&!x(w,m,s,arguments))return;const S=te[f];let Z;S&&(Z=S[P?ie:ce]);const D=Z&&s[Z];if(D)for(let V=0;V<D.length;V++){const F=D[V];if(C(F,m))return D.splice(V,1),F.isRemoved=!0,0===D.length&&(F.allRemoved=!0,s[Z]=null,"string"==typeof f)&&(s[me+"ON_PROPERTY"+f]=null),F.zone.cancelTask(F),A?s:void 0}return w.apply(this,arguments)},E[y]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],P=Ke(s,G?G(f):f);for(let m=0;m<P.length;m++){const S=P[m];g.push(S.originalDelegate?S.originalDelegate:S.callback)}return g},E[d]=function(){const s=this||e;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=te[f];if(g){const S=s[g[ce]],Z=s[g[ie]];if(S){const D=S.slice();for(let V=0;V<D.length;V++){const F=D[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(Z){const D=Z.slice();for(let V=0;V<D.length;V++){const F=D[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const g=Object.keys(s);for(let P=0;P<g.length;P++){const S=Ye.exec(g[P]);let Z=S&&S[1];Z&&"removeListener"!==Z&&this[d].call(this,Z)}this[d].call(this,"removeListener")}if(A)return this},le(E[c],I),le(E[a],w),oe&&le(E[d],oe),Q&&le(E[y],Q),!0}let q=[];for(let R=0;R<i.length;R++)q[R]=K(i[R],o);return q}function Ke(e,n){if(!n){const a=[];for(let y in e){const d=Ye.exec(y);let b=d&&d[1];if(b&&(!n||b===n)){const v=e[y];if(v)for(let p=0;p<v.length;p++)a.push(v[p])}}return a}let i=te[n];i||(Je(n),i=te[n]);const o=e[i[ce]],c=e[i[ie]];return o?c?o.concat(c):o.slice():c?c.slice():[]}function _t(e,n){const i=e.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",o=>function(c,a){c[$e]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(p){const M=`${i}.${o}::`+p,O=b.prototype;try{if(O.hasOwnProperty(p)){const N=e.ObjectGetOwnPropertyDescriptor(O,p);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,M),e._redefineProperty(b.prototype,p,N)):O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],M))}else O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],M))}catch{}}),y.call(n,d,b,v)},e.attachOriginToPatched(n[o],y)}function Qe(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function et(e,n,i,o){e&&qe(e,Qe(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=qe,i.patchMethod=ae,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=pe,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Se,i.ArraySlice=it,i.patchClass=ge,i.wrapWithCurrentZone=Ie,i.filterProperties=Qe,i.attachOriginToPatched=le,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Be,isNode:we,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:De})});const Re=j("zoneTask");function Te(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(e,p.args),v}function b(v){return a.call(e,v.data.handleId)}c=ae(e,n+=o,v=>function(p,M){if("function"==typeof M[0]){const O={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[Re]=null))}};const B=Me(n,M[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Re]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,M)}),a=ae(e,i,v=>function(p,M){const O=M[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Re],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete y[O]:O&&(O[Re]=null),N.zone.cancelTask(N)):v.apply(e,M)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",i="clear";Te(e,n,i,"Timeout"),Te(e,n,i,"Interval"),Te(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Te(e,"request","cancel","AnimationFrame"),Te(e,"mozRequest","mozCancel","AnimationFrame"),Te(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)ae(e,i[o],(a,y,d)=>function(b,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,i),function mt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b<i.length;b++){const v=i[b],O=y+(v+a),N=y+(v+c);o[v]={},o[v][a]=O,o[v][c]=N}const d=e.EventTarget;d&&d.prototype&&n.patchEventTarget(e,n,[d&&d.prototype])}(e,i);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&i.patchEventTarget(e,i,[o.prototype])}),Zone.__load_patch("MutationObserver",(e,n,i)=>{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Be||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];et(c,He(c),i&&i.concat(a),ve(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<o.length;c++){const a=n[o[c]];a&&a.prototype&&et(a.prototype,He(a.prototype),i)}}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function pt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const p=v.XMLHttpRequest;if(!p)return;const M=p.prototype;let N=M[Oe],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Oe],B=I[Ne]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Oe],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===K){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;W<ee.length;W++)ee[W]===h&&ee.splice(W,1);!I.aborted&&h.state===K&&re.call(h)},U.push(h)}else h.invoke()}else!I.aborted&&!1===w[a]&&(w[d]=!0)};return N.call(w,H,oe),w[i]||(w[i]=h),E.apply(w,I.args),w[a]=!0,h}function R(){}function _(h){const I=h.data;return I.aborted=!0,G.apply(I.target,I.args)}const J=ae(M,"open",()=>function(h,I){return h[o]=0==I[2],h[y]=I[1],J.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=ae(M,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===K&&Q.invoke()}}),G=ae(M,"abort",()=>function(h,I){const w=function O(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),y=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o<n.length;o++){const c=n[o],a=e[c];if(a){if(!Ve(ue(e,c)))continue;e[c]=(d=>{const b=function(){return d.apply(this,Le(arguments,i+"."+c))};return le(b,d),b})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Ke(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(e,i)})}},ue=>{ue(ue.s=332)}]);
3
+ "use strict";(self.webpackChunkocta_file_upload_webcomponent=self.webpackChunkocta_file_upload_webcomponent||[]).push([[179],{933:()=>{function re(e){return"function"==typeof e}function Ao(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const No=Ao(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Dr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class ht{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(re(r))try{r()}catch(i){t=i instanceof No?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{nl(i)}catch(s){t=t??[],s instanceof No?t=[...t,...s.errors]:t.push(s)}}if(t)throw new No(t)}}add(t){var n;if(t&&t!==this)if(this.closed)nl(t);else{if(t instanceof ht){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Dr(n,t)}remove(t){const{_finalizers:n}=this;n&&Dr(n,t),t instanceof ht&&t._removeParent(this)}}ht.EMPTY=(()=>{const e=new ht;return e.closed=!0,e})();const el=ht.EMPTY;function tl(e){return e instanceof ht||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function nl(e){re(e)?e():e.unsubscribe()}const nn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},xo={setTimeout(e,t,...n){const{delegate:r}=xo;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=xo;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function rl(e){xo.setTimeout(()=>{const{onUnhandledError:t}=nn;if(!t)throw e;t(e)})}function ol(){}const yv=Es("C",void 0,void 0);function Es(e,t,n){return{kind:e,value:t,error:n}}let rn=null;function Oo(e){if(nn.useDeprecatedSynchronousErrorHandling){const t=!rn;if(t&&(rn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=rn;if(rn=null,n)throw r}}else e()}class Is extends ht{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,tl(t)&&t.add(this)):this.destination=Iv}static create(t,n,r){return new _r(t,n,r)}next(t){this.isStopped?bs(function Dv(e){return Es("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?bs(function vv(e){return Es("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?bs(yv,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const wv=Function.prototype.bind;function Ms(e,t){return wv.call(e,t)}class Cv{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Fo(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Fo(r)}else Fo(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Fo(n)}}}class _r extends Is{constructor(t,n,r){let o;if(super(),re(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&nn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ms(t.next,i),error:t.error&&Ms(t.error,i),complete:t.complete&&Ms(t.complete,i)}):o=t}this.destination=new Cv(o)}}function Fo(e){nn.useDeprecatedSynchronousErrorHandling?function _v(e){nn.useDeprecatedSynchronousErrorHandling&&rn&&(rn.errorThrown=!0,rn.error=e)}(e):rl(e)}function bs(e,t){const{onStoppedNotification:n}=nn;n&&xo.setTimeout(()=>n(e,t))}const Iv={closed:!0,next:ol,error:function Ev(e){throw e},complete:ol},Ss="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ts(e){return e}let Fe=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function bv(e){return e&&e instanceof Is||function Mv(e){return e&&re(e.next)&&re(e.error)&&re(e.complete)}(e)&&tl(e)}(n)?n:new _r(n,r,o);return Oo(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=sl(r))((o,i)=>{const s=new _r({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Ss](){return this}pipe(...n){return function il(e){return 0===e.length?Ts:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=sl(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function sl(e){var t;return null!==(t=e??nn.Promise)&&void 0!==t?t:Promise}const Sv=Ao(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let wr=(()=>{class e extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new al(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Sv}next(n){Oo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Oo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Oo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?el:(this.currentObservers=null,i.push(n),new ht(()=>{this.currentObservers=null,Dr(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Fe;return n.source=this,n}}return e.create=(t,n)=>new al(t,n),e})();class al extends wr{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:el}}function on(e){return t=>{if(function Tv(e){return re(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function sn(e,t,n,r,o){return new Av(e,t,n,r,o)}class Av extends Is{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ul(e,t){return on((n,r)=>{let o=0;n.subscribe(sn(r,i=>{r.next(e.call(t,i,o++))}))})}function $t(e){return this instanceof $t?(this.v=e,this):new $t(e)}function fl(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Os(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const hl=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function pl(e){return re(e?.then)}function gl(e){return re(e[Ss])}function ml(e){return Symbol.asyncIterator&&re(e?.[Symbol.asyncIterator])}function yl(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const vl=function Kv(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Dl(e){return re(e?.[vl])}function _l(e){return function dl(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof $t?Promise.resolve(f.value.v).then(c,l):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield $t(n.read());if(o)return yield $t(void 0);yield yield $t(r)}}finally{n.releaseLock()}})}function wl(e){return re(e?.getReader)}function bt(e){if(e instanceof Fe)return e;if(null!=e){if(gl(e))return function Xv(e){return new Fe(t=>{const n=e[Ss]();if(re(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(hl(e))return function Jv(e){return new Fe(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(pl(e))return function eD(e){return new Fe(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,rl)})}(e);if(ml(e))return Cl(e);if(Dl(e))return function tD(e){return new Fe(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(wl(e))return function nD(e){return Cl(_l(e))}(e)}throw yl(e)}function Cl(e){return new Fe(t=>{(function rD(e,t){var n,r,o,i;return function cl(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=fl(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Ut(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function El(e,t,n=1/0){return re(t)?El((r,o)=>ul((i,s)=>t(r,i,o,s))(bt(e(r,o))),n):("number"==typeof t&&(n=t),on((r,o)=>function oD(e,t,n,r,o,i,s,a){const u=[];let c=0,l=0,d=!1;const f=()=>{d&&!u.length&&!c&&t.complete()},h=g=>c<r?p(g):u.push(g),p=g=>{i&&t.next(g),c++;let v=!1;bt(n(g,l++)).subscribe(sn(t,D=>{o?.(D),i?h(D):t.next(D)},()=>{v=!0},void 0,()=>{if(v)try{for(c--;u.length&&c<r;){const D=u.shift();s?Ut(t,s,()=>p(D)):p(D)}f()}catch(D){t.error(D)}}))};return e.subscribe(sn(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const Il=new Fe(e=>e.complete());function Fs(e){return e[e.length-1]}function Ml(e){return function aD(e){return e&&re(e.schedule)}(Fs(e))?e.pop():void 0}function bl(e,t=0){return on((n,r)=>{n.subscribe(sn(r,o=>Ut(r,e,()=>r.next(o),t),()=>Ut(r,e,()=>r.complete(),t),o=>Ut(r,e,()=>r.error(o),t)))})}function Sl(e,t=0){return on((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Tl(e,t){if(!e)throw new Error("Iterable cannot be null");return new Fe(n=>{Ut(n,t,()=>{const r=e[Symbol.asyncIterator]();Ut(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Al(e,t){return t?function pD(e,t){if(null!=e){if(gl(e))return function cD(e,t){return bt(e).pipe(Sl(t),bl(t))}(e,t);if(hl(e))return function dD(e,t){return new Fe(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(pl(e))return function lD(e,t){return bt(e).pipe(Sl(t),bl(t))}(e,t);if(ml(e))return Tl(e,t);if(Dl(e))return function fD(e,t){return new Fe(n=>{let r;return Ut(n,t,()=>{r=e[vl](),Ut(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>re(r?.return)&&r.return()})}(e,t);if(wl(e))return function hD(e,t){return Tl(_l(e),t)}(e,t)}throw yl(e)}(e,t):bt(e)}function Nl(...e){const t=Ml(e),n=function uD(e,t){return"number"==typeof Fs(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?bt(r[0]):function iD(e=1/0){return El(Ts,e)}(n)(Al(r,t)):Il}class gD extends wr{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function xl(e={}){const{connector:t=(()=>new wr),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,l=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return on((g,v)=>{c++,!d&&!l&&f();const D=u=u??t();v.add(()=>{c--,0===c&&!d&&!l&&(a=Ps(p,o))}),D.subscribe(v),!s&&c>0&&(s=new _r({next:m=>D.next(m),error:m=>{d=!0,f(),a=Ps(h,n,m),D.error(m)},complete:()=>{l=!0,f(),a=Ps(h,r),D.complete()}}),bt(g).subscribe(s))})(i)}}function Ps(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new _r({next:()=>{r.unsubscribe(),e()}});return bt(t(...n)).subscribe(r)}function Ol(e,t){return on((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(sn(r,u=>{o?.unsubscribe();let c=0;const l=i++;bt(e(u,l)).subscribe(o=sn(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function vD(e,t){return e===t}function U(e){for(let t in e)if(e[t]===U)return t;throw Error("Could not find renamed property on target object.")}function fe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(fe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Rs(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const DD=U({__forward_ref__:U});function ks(e){return e.__forward_ref__=ks,e.toString=function(){return fe(this())},e}function b(e){return function Ls(e){return"function"==typeof e&&e.hasOwnProperty(DD)&&e.__forward_ref__===ks}(e)?e():e}function js(e){return e&&!!e.\u0275providers}const Fl="https://g.co/ng/security#xss";class w extends Error{constructor(t,n){super(function Ro(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function T(e){return"string"==typeof e?e:null==e?"":String(e)}function Vs(e,t){throw new w(-201,!1)}function Ke(e,t){null==e&&function E(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function z(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function zt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ko(e){return Pl(e,jo)||Pl(e,Rl)}function Pl(e,t){return e.hasOwnProperty(t)?e[t]:null}function Lo(e){return e&&(e.hasOwnProperty(Bs)||e.hasOwnProperty(bD))?e[Bs]:null}const jo=U({\u0275prov:U}),Bs=U({\u0275inj:U}),Rl=U({ngInjectableDef:U}),bD=U({ngInjectorDef:U});var R=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(R||{});let Hs;function Pe(e){const t=Hs;return Hs=e,t}function Ll(e,t,n){const r=ko(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&R.Optional?null:void 0!==t?t:void Vs(fe(e))}const q=globalThis;class S{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=z({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Cr={},qs="__NG_DI_FLAG__",Vo="ngTempTokenPath",AD=/\n/gm,Vl="__source";let Cn;function Gt(e){const t=Cn;return Cn=e,t}function OD(e,t=R.Default){if(void 0===Cn)throw new w(-203,!1);return null===Cn?Ll(e,void 0,t):Cn.get(e,t&R.Optional?null:void 0,t)}function k(e,t=R.Default){return(function kl(){return Hs}()||OD)(b(e),t)}function W(e,t=R.Default){return k(e,Bo(t))}function Bo(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ws(e){const t=[];for(let n=0;n<e.length;n++){const r=b(e[n]);if(Array.isArray(r)){if(0===r.length)throw new w(900,!1);let o,i=R.Default;for(let s=0;s<r.length;s++){const a=r[s],u=FD(a);"number"==typeof u?-1===u?o=a.token:i|=u:o=a}t.push(k(o,i))}else t.push(k(r))}return t}function Er(e,t){return e[qs]=t,e.prototype[qs]=t,e}function FD(e){return e[qs]}function St(e){return{toString:e}.toString()}var Ho=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Ho||{}),it=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(it||{});const pt={},V=[],$o=U({\u0275cmp:U}),Zs=U({\u0275dir:U}),Qs=U({\u0275pipe:U}),Hl=U({\u0275mod:U}),Tt=U({\u0275fac:U}),Ir=U({__NG_ELEMENT_ID__:U}),$l=U({__NG_ENV_ID__:U});function Ul(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function Ys(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];Gl(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function zl(e){return 3===e||4===e||6===e}function Gl(e){return 64===e.charCodeAt(0)}function Mr(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||ql(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function ql(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}const Wl="ng-template";function kD(e,t,n){let r=0,o=!0;for(;r<e.length;){let i=e[r++];if("string"==typeof i&&o){const s=e[r++];if(n&&"class"===i&&-1!==Ul(s.toLowerCase(),t,0))return!0}else{if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}"number"==typeof i&&(o=!1)}}return!1}function Zl(e){return 4===e.type&&e.value!==Wl}function LD(e,t,n){return t===(4!==e.type||n?e.value:Wl)}function jD(e,t,n){let r=4;const o=e.attrs||[],i=function HD(e){for(let t=0;t<e.length;t++)if(zl(e[t]))return t;return e.length}(o);let s=!1;for(let a=0;a<t.length;a++){const u=t[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!LD(e,u,n)||""===u&&1===t.length){if(st(r))return!1;s=!0}}else{const c=8&r?u:t[++a];if(8&r&&null!==e.attrs){if(!kD(e.attrs,c,n)){if(st(r))return!1;s=!0}continue}const d=VD(8&r?"class":u,o,Zl(e),n);if(-1===d){if(st(r))return!1;s=!0;continue}if(""!==c){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Ul(h,c,0)||2&r&&c!==f){if(st(r))return!1;s=!0}}}}else{if(!s&&!st(r)&&!st(u))return!1;if(s&&st(u))continue;s=!1,r=u|1&r}}return st(r)||s}function st(e){return 0==(1&e)}function VD(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function $D(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Ql(e,t,n=!1){for(let r=0;r<t.length;r++)if(jD(e,t[r],n))return!0;return!1}function Yl(e,t){return e?":not("+t.trim()+")":t}function zD(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!st(s)&&(t+=Yl(i,o),o=""),r=s,i=i||!st(r);n++}return""!==o&&(t+=Yl(i,o)),t}function Kl(e){return St(()=>{const t=Jl(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ho.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||it.Emulated,styles:e.styles||V,_:null,schemas:e.schemas||null,tView:null,id:""};ed(n);const r=e.dependencies;return n.directiveDefs=Uo(r,!1),n.pipeDefs=Uo(r,!0),n.id=function XD(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function ZD(e){return L(e)||ge(e)}function QD(e){return null!==e}function un(e){return St(()=>({type:e.type,bootstrap:e.bootstrap||V,declarations:e.declarations||V,imports:e.imports||V,exports:e.exports||V,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Xl(e,t){if(null==e)return pt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function Ue(e){return St(()=>{const t=Jl(e);return ed(t),t})}function L(e){return e[$o]||null}function ge(e){return e[Zs]||null}function Ce(e){return e[Qs]||null}function Jl(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||pt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||V,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Xl(e.inputs,t),outputs:Xl(e.outputs)}}function ed(e){e.features?.forEach(t=>t(e))}function Uo(e,t){if(!e)return null;const n=t?Ce:ZD;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(QD)}const oe=0,_=1,x=2,J=3,at=4,Sr=5,De=6,En=7,ue=8,qt=9,In=10,A=11,Tr=12,td=13,Mn=14,ce=15,Ar=16,bn=17,gt=18,Nr=19,nd=20,Wt=21,At=22,xr=23,Or=24,F=25,Ks=1,rd=2,mt=7,Sn=9,me=11;function ke(e){return Array.isArray(e)&&"object"==typeof e[Ks]}function Ee(e){return Array.isArray(e)&&!0===e[Ks]}function Xs(e){return 0!=(4&e.flags)}function cn(e){return e.componentOffset>-1}function Go(e){return 1==(1&e.flags)}function ut(e){return!!e.template}function Js(e){return 0!=(512&e[x])}function ln(e,t){return e.hasOwnProperty(Tt)?e[Tt]:null}let ye=null,qo=!1;function Xe(e){const t=ye;return ye=e,t}const sd={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function ud(e){if(!Pr(e)||e.dirty){if(!e.producerMustRecompute(e)&&!dd(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function ld(e){e.dirty=!0,function cd(e){if(void 0===e.liveConsumerNode)return;const t=qo;qo=!0;try{for(const n of e.liveConsumerNode)n.dirty||ld(n)}finally{qo=t}}(e),e.consumerMarkedDirty?.(e)}function ta(e){return e&&(e.nextProducerIndex=0),Xe(e)}function na(e,t){if(Xe(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Pr(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Wo(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function dd(e){Tn(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(ud(n),r!==n.version))return!0}return!1}function fd(e){if(Tn(e),Pr(e))for(let t=0;t<e.producerNode.length;t++)Wo(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Wo(e,t){if(function pd(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),Tn(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)Wo(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];Tn(o),o.producerIndexOfThis[r]=t}}function Pr(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Tn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let gd=null;const Dd=()=>{},d_=(()=>({...sd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Dd}))();class _d{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function wd(e){return e.type.prototype.ngOnChanges&&(e.setInput=h_),f_}function f_(){const e=Ed(this),t=e?.current;if(t){const n=e.previous;if(n===pt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function h_(e,t,n,r){const o=this.declaredInputs[n],i=Ed(e)||function p_(e,t){return e[Cd]=t}(e,{previous:pt,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new _d(u&&u.currentValue,t,a===pt),e[r]=t}const Cd="__ngSimpleChanges__";function Ed(e){return e[Cd]||null}const yt=function(e,t,n){},Id="svg";function Z(e){for(;Array.isArray(e);)e=e[oe];return e}function Le(e,t){return Z(t[e.index])}function bd(e,t){return e.data[t]}function Ge(e,t){const n=t[e];return ke(n)?n:n[oe]}function Qt(e,t){return null==t?null:e[t]}function Sd(e){e[bn]=0}function __(e){1024&e[x]||(e[x]|=1024,Ad(e,1))}function Td(e){1024&e[x]&&(e[x]&=-1025,Ad(e,-1))}function Ad(e,t){let n=e[J];if(null===n)return;n[Sr]+=t;let r=n;for(n=n[J];null!==n&&(1===t&&1===r[Sr]||-1===t&&0===r[Sr]);)n[Sr]+=t,r=n,n=n[J]}const I={lFrame:Bd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Od(){return I.bindingsEnabled}function y(){return I.lFrame.lView}function j(){return I.lFrame.tView}function Ie(e){return I.lFrame.contextLView=e,e[ue]}function Me(e){return I.lFrame.contextLView=null,e}function ve(){let e=Fd();for(;null!==e&&64===e.type;)e=e.parent;return e}function Fd(){return I.lFrame.currentTNode}function vt(e,t){const n=I.lFrame;n.currentTNode=e,n.isParent=t}function aa(){return I.lFrame.isParent}function ua(){I.lFrame.isParent=!1}function xn(){return I.lFrame.bindingIndex++}function O_(e,t){const n=I.lFrame;n.bindingIndex=n.bindingRootIndex=e,ca(t)}function ca(e){I.lFrame.currentDirectiveIndex=e}function Ld(){return I.lFrame.currentQueryIndex}function da(e){I.lFrame.currentQueryIndex=e}function P_(e){const t=e[_];return 2===t.type?t.declTNode:1===t.type?e[De]:null}function jd(e,t,n){if(n&R.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&R.Host||(o=P_(i),null===o||(i=i[Mn],10&o.type))););if(null===o)return!1;t=o,e=i}const r=I.lFrame=Vd();return r.currentTNode=t,r.lView=e,!0}function fa(e){const t=Vd(),n=e[_];I.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Vd(){const e=I.lFrame,t=null===e?null:e.child;return null===t?Bd(e):t}function Bd(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Hd(){const e=I.lFrame;return I.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $d=Hd;function ha(){const e=Hd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Se(){return I.lFrame.selectedIndex}function dn(e){I.lFrame.selectedIndex=e}function Yo(){I.lFrame.currentNamespace=Id}let Gd=!0;function Ko(){return Gd}function Yt(e){Gd=e}function Xo(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:c,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),u&&(e.viewHooks??=[]).push(-n,u),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),null!=l&&(e.destroyHooks??=[]).push(n,l)}}function Jo(e,t,n){qd(e,t,3,n)}function ei(e,t,n,r){(3&e[x])===n&&qd(e,t,n,r)}function pa(e,t){let n=e[x];(3&n)===t&&(n&=8191,n+=1,e[x]=n)}function qd(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let u=void 0!==r?65535&e[bn]:0;u<s;u++)if("number"==typeof t[u+1]){if(a=t[u],null!=r&&a>=r)break}else t[u]<0&&(e[bn]+=65536),(a<i||-1==i)&&(B_(e,n,t,u),e[bn]=(4294901760&e[bn])+u+2),u++}function Wd(e,t){yt(4,e,t);const n=Xe(null);try{t.call(e)}finally{Xe(n),yt(5,e,t)}}function B_(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[x]>>13<e[bn]>>16&&(3&e[x])===t&&(e[x]+=8192,Wd(a,i)):Wd(a,i)}const On=-1;class kr{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ma(e){return e!==On}function Lr(e){return 32767&e}function jr(e,t){let n=function z_(e){return e>>16}(e),r=t;for(;n>0;)r=r[Mn],n--;return r}let ya=!0;function ti(e){const t=ya;return ya=e,t}const Zd=255,Qd=5;let G_=0;const Dt={};function ni(e,t){const n=Yd(e,t);if(-1!==n)return n;const r=t[_];r.firstCreatePass&&(e.injectorIndex=t.length,va(r.data,e),va(t,null),va(r.blueprint,null));const o=ri(e,t),i=e.injectorIndex;if(ma(o)){const s=Lr(o),a=jr(o,t),u=a[_].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function va(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Yd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ri(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=rf(o),null===r)return On;if(n++,o=o[Mn],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return On}function Da(e,t,n){!function q_(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ir)&&(r=n[Ir]),null==r&&(r=n[Ir]=G_++);const o=r&Zd;t.data[e+(o>>Qd)]|=1<<o}(e,t,n)}function Kd(e,t,n){if(n&R.Optional||void 0!==e)return e;Vs()}function Xd(e,t,n,r){if(n&R.Optional&&void 0===r&&(r=null),!(n&(R.Self|R.Host))){const o=e[qt],i=Pe(void 0);try{return o?o.get(t,r,n&R.Optional):Ll(t,r,n&R.Optional)}finally{Pe(i)}}return Kd(r,0,n)}function Jd(e,t,n,r=R.Default,o){if(null!==e){if(2048&t[x]&&!(r&R.Self)){const s=function J_(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&2048&s[x]&&!(512&s[x]);){const a=ef(i,s,n,r|R.Self,Dt);if(a!==Dt)return a;let u=i.parent;if(!u){const c=s[nd];if(c){const l=c.get(n,Dt,r);if(l!==Dt)return l}u=rf(s),s=s[Mn]}i=u}return o}(e,t,n,r,Dt);if(s!==Dt)return s}const i=ef(e,t,n,r,Dt);if(i!==Dt)return i}return Xd(t,n,r,o)}function ef(e,t,n,r,o){const i=function Q_(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ir)?e[Ir]:void 0;return"number"==typeof t?t>=0?t&Zd:K_:t}(n);if("function"==typeof i){if(!jd(t,e,r))return r&R.Host?Kd(o,0,r):Xd(t,n,r,o);try{let s;if(s=i(r),null!=s||r&R.Optional)return s;Vs()}finally{$d()}}else if("number"==typeof i){let s=null,a=Yd(e,t),u=On,c=r&R.Host?t[ce][De]:null;for((-1===a||r&R.SkipSelf)&&(u=-1===a?ri(e,t):t[a+8],u!==On&&nf(r,!1)?(s=t[_],a=Lr(u),t=jr(u,t)):a=-1);-1!==a;){const l=t[_];if(tf(i,a,l.data)){const d=Z_(a,t,n,s,r,c);if(d!==Dt)return d}u=t[a+8],u!==On&&nf(r,t[_].data[a+8]===c)&&tf(i,a,t)?(s=l,a=Lr(u),t=jr(u,t)):a=-1}}return o}function Z_(e,t,n,r,o,i){const s=t[_],a=s.data[e+8],l=oi(a,s,n,null==r?cn(a)&&ya:r!=s&&0!=(3&a.type),o&R.Host&&i===a);return null!==l?fn(t,s,l,a):Dt}function oi(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,l=i>>20,f=o?a+l:e.directiveEnd;for(let h=r?a:a+l;h<f;h++){const p=s[h];if(h<u&&n===p||h>=u&&p.type===n)return h}if(o){const h=s[u];if(h&&ut(h)&&h.type===n)return u}return null}function fn(e,t,n,r){let o=e[n];const i=t.data;if(function H_(e){return e instanceof kr}(o)){const s=o;s.resolving&&function _D(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,`Circular dependency in DI detected for ${e}${n}`)}(function $(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():T(e)}(i[n]));const a=ti(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Pe(s.injectImpl):null;jd(e,r,R.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function V_(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=wd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==c&&Pe(c),ti(a),s.resolving=!1,$d()}}return o}function tf(e,t,n){return!!(n[t+(e>>Qd)]&1<<e)}function nf(e,t){return!(e&R.Self||e&R.Host&&t)}class Te{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Jd(this._tNode,this._lView,t,Bo(r),n)}}function K_(){return new Te(ve(),y())}function rf(e){const t=e[_],n=t.type;return 2===n?t.declTNode:1===n?e[De]:null}const Pn="__parameters__";function kn(e,t,n){return St(()=>{const r=function Ca(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,c,l){const d=u.hasOwnProperty(Pn)?u[Pn]:Object.defineProperty(u,Pn,{value:[]})[Pn];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function jn(e,t){e.forEach(n=>Array.isArray(n)?jn(n,t):t(n))}function sf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ii(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Ma=Er(kn("Optional"),8),ba=Er(kn("SkipSelf"),4);function di(e){return 128==(128&e.flags)}var Kt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Kt||{});const Sw=/^>|^->|<!--|-->|--!>|<!-$/g,Tw=/(<|>)/g,Aw="\u200b$1\u200b";const Na=new Map;let Nw=0;const Oa="__ngContext__";function _e(e,t){ke(t)?(e[Oa]=t[Nr],function Ow(e){Na.set(e[Nr],e)}(t)):e[Oa]=t}let Fa;function Pa(e,t){return Fa(e,t)}function zr(e){const t=e[J];return Ee(t)?t[J]:t}function Sf(e){return Af(e[Tr])}function Tf(e){return Af(e[at])}function Af(e){for(;null!==e&&!Ee(e);)e=e[at];return e}function $n(e,t,n,r,o){if(null!=r){let i,s=!1;Ee(r)?i=r:ke(r)&&(s=!0,r=r[oe]);const a=Z(r);0===e&&null!==n?null==o?Ff(t,n,a):hn(t,n,a,o||null,!0):1===e&&null!==n?hn(t,n,a,o||null,!0):2===e?function vi(e,t,n){const r=mi(e,t);r&&function Kw(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function eC(e,t,n,r,o){const i=n[mt];i!==Z(n)&&$n(t,e,r,i,o);for(let a=me;a<n.length;a++){const u=n[a];qr(u[_],u,e,t,r,i)}}(t,e,i,n,o)}}function Ra(e,t){return e.createComment(function Df(e){return e.replace(Sw,t=>t.replace(Tw,Aw))}(t))}function pi(e,t,n){return e.createElement(t,n)}function xf(e,t){const n=e[Sn],r=n.indexOf(t);Td(t),n.splice(r,1)}function gi(e,t){if(e.length<=me)return;const n=me+t,r=e[n];if(r){const o=r[Ar];null!==o&&o!==e&&xf(o,r),t>0&&(e[n-1][at]=r[at]);const i=ii(e,me+t);!function Uw(e,t){qr(e,t,t[A],2,null,null),t[oe]=null,t[De]=null}(r[_],r);const s=i[gt];null!==s&&s.detachView(i[_]),r[J]=null,r[at]=null,r[x]&=-129}return r}function ka(e,t){if(!(256&t[x])){const n=t[A];t[xr]&&fd(t[xr]),t[Or]&&fd(t[Or]),n.destroyNode&&qr(e,t,n,3,null,null),function qw(e){let t=e[Tr];if(!t)return La(e[_],e);for(;t;){let n=null;if(ke(t))n=t[Tr];else{const r=t[me];r&&(n=r)}if(!n){for(;t&&!t[at]&&t!==e;)ke(t)&&La(t[_],t),t=t[J];null===t&&(t=e),ke(t)&&La(t[_],t),n=t&&t[at]}t=n}}(t)}}function La(e,t){if(!(256&t[x])){t[x]&=-129,t[x]|=256,function Yw(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof kr)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],u=i[s+1];yt(4,a,u);try{u.call(a)}finally{yt(5,a,u)}}else{yt(4,o,i);try{i.call(o)}finally{yt(5,o,i)}}}}}(e,t),function Qw(e,t){const n=e.cleanup,r=t[En];if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[En]=null);const o=t[Wt];if(null!==o){t[Wt]=null;for(let i=0;i<o.length;i++)(0,o[i])()}}(e,t),1===t[_].type&&t[A].destroy();const n=t[Ar];if(null!==n&&Ee(t[J])){n!==t[J]&&xf(n,t);const r=t[gt];null!==r&&r.detachView(e)}!function Fw(e){Na.delete(e[Nr])}(t)}}function ja(e,t,n){return function Of(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[oe];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===it.None||i===it.Emulated)return null}return Le(r,n)}}(e,t.parent,n)}function hn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Ff(e,t,n){e.appendChild(t,n)}function Pf(e,t,n,r,o){null!==r?hn(e,t,n,r,o):Ff(e,t,n)}function mi(e,t){return e.parentNode(t)}let Va,Ua,Lf=function kf(e,t,n){return 40&e.type?Le(e,n):null};function yi(e,t,n,r){const o=ja(e,r,t),i=t[A],a=function Rf(e,t,n){return Lf(e,t,n)}(r.parent||t[De],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u<n.length;u++)Pf(i,o,n[u],a,!1);else Pf(i,o,n,a,!1);void 0!==Va&&Va(i,r,t,n,o)}function Gr(e,t){if(null!==t){const n=t.type;if(3&n)return Le(t,e);if(4&n)return Ba(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Gr(e,r);{const o=e[t.index];return Ee(o)?Ba(-1,o):Z(o)}}if(32&n)return Pa(t,e)()||Z(e[t.index]);{const r=Vf(e,t);return null!==r?Array.isArray(r)?r[0]:Gr(zr(e[ce]),r):Gr(e,t.next)}}return null}function Vf(e,t){return null!==t?e[ce][De].projection[t.projection]:null}function Ba(e,t){const n=me+e+1;if(n<t.length){const r=t[n],o=r[_].firstChild;if(null!==o)return Gr(r,o)}return t[mt]}function Ha(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],u=n.type;if(s&&0===t&&(a&&_e(Z(a),r),n.flags|=2),32!=(32&n.flags))if(8&u)Ha(e,t,n.child,r,o,i,!1),$n(t,e,o,a,i);else if(32&u){const c=Pa(n,r);let l;for(;l=c();)$n(t,e,o,l,i);$n(t,e,o,a,i)}else 16&u?Hf(e,t,r,n,o,i):$n(t,e,o,a,i);n=s?n.projectionNext:n.next}}function qr(e,t,n,r,o,i){Ha(n,r,e.firstChild,t,o,i,!1)}function Hf(e,t,n,r,o,i){const s=n[ce],u=s[De].projection[r.projection];if(Array.isArray(u))for(let c=0;c<u.length;c++)$n(t,e,o,u[c],i);else{let c=u;const l=s[J];di(r)&&(c.flags|=128),Ha(e,t,c,l,o,i,!0)}}function $f(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Uf(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&Ys(e,t,r),null!==o&&$f(e,t,o),null!==i&&function nC(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}class Wf{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Fl})`}}const mC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Gn=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Gn||{});function Qr(e){const t=function Yr(){const e=y();return e&&e[In].sanitizer}();return t?t.sanitize(Gn.URL,e)||"":function Wr(e,t){const n=function fC(e){return e instanceof Wf&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Fl})`)}return n===t}(e,"URL")?function Xt(e){return e instanceof Wf?e.changingThisBreaksApplicationSecurity:e}(e):function Ga(e){return(e=String(e)).match(mC)?e:"unsafe:"+e}(T(e))}const Ci=new S("ENVIRONMENT_INITIALIZER"),th=new S("INJECTOR",-1),nh=new S("INJECTOR_DEF_TYPES");class Qa{get(t,n=Cr){if(n===Cr){const r=new Error(`NullInjectorError: No provider for ${fe(t)}!`);throw r.name="NullInjectorError",r}return n}}function NC(...e){return{\u0275providers:oh(0,e),\u0275fromNgModule:!0}}function oh(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return jn(t,s=>{const a=s;Ei(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&ih(o,i),n}function ih(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:o}=e[n];Ya(o,i=>{t(i,r)})}}function Ei(e,t,n,r){if(!(e=b(e)))return!1;let o=null,i=Lo(e);const s=!i&&L(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=Lo(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of u)Ei(c,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let c;r.add(o);try{jn(i.imports,l=>{Ei(l,t,n,r)&&(c||=[],c.push(l))})}finally{}void 0!==c&&ih(c,t)}if(!a){const c=ln(o)||(()=>new o);t({provide:o,useFactory:c,deps:V},o),t({provide:nh,useValue:o,multi:!0},o),t({provide:Ci,useValue:()=>k(o),multi:!0},o)}const u=i.providers;if(null!=u&&!a){const c=e;Ya(u,l=>{t(l,c)})}}}return o!==e&&void 0!==e.providers}function Ya(e,t){for(let n of e)js(n)&&(n=n.\u0275providers),Array.isArray(n)?Ya(n,t):t(n)}const xC=U({provide:String,useValue:U});function Ka(e){return null!==e&&"object"==typeof e&&xC in e}function pn(e){return"function"==typeof e}const Xa=new S("Set Injector scope."),Ii={},FC={};let Ja;function Mi(){return void 0===Ja&&(Ja=new Qa),Ja}class Ft{}class qn extends Ft{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,tu(t,s=>this.processProvider(s)),this.records.set(th,Wn(void 0,this)),o.has("environment")&&this.records.set(Ft,Wn(void 0,this));const i=this.records.get(Xa);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(nh.multi,V,R.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Gt(this),r=Pe(void 0);try{return t()}finally{Gt(n),Pe(r)}}get(t,n=Cr,r=R.Default){if(this.assertNotDestroyed(),t.hasOwnProperty($l))return t[$l](this);r=Bo(r);const i=Gt(this),s=Pe(void 0);try{if(!(r&R.SkipSelf)){let u=this.records.get(t);if(void 0===u){const c=function jC(e){return"function"==typeof e||"object"==typeof e&&e instanceof S}(t)&&ko(t);u=c&&this.injectableDefInScope(c)?Wn(eu(t),Ii):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u)}return(r&R.Self?Mi():this.parent).get(t,n=r&R.Optional&&n===Cr?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[Vo]=a[Vo]||[]).unshift(fe(t)),i)throw a;return function PD(e,t,n,r){const o=e[Vo];throw t[Vl]&&o.unshift(t[Vl]),e.message=function RD(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=fe(t);if(Array.isArray(t))o=t.map(fe).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):fe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(AD,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Vo]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{Pe(s),Gt(i)}}resolveInjectorInitializers(){const t=Gt(this),n=Pe(void 0);try{const o=this.get(Ci.multi,V,R.Self);for(const i of o)i()}finally{Gt(t),Pe(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(fe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){let n=pn(t=b(t))?t:b(t&&t.provide);const r=function RC(e){return Ka(e)?Wn(void 0,e.useValue):Wn(function uh(e,t,n){let r;if(pn(e)){const o=b(e);return ln(o)||eu(o)}if(Ka(e))r=()=>b(e.useValue);else if(function ah(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ws(e.deps||[]));else if(function sh(e){return!(!e||!e.useExisting)}(e))r=()=>k(b(e.useExisting));else{const o=b(e&&(e.useClass||e.provide));if(!function kC(e){return!!e.deps}(e))return ln(o)||eu(o);r=()=>new o(...Ws(e.deps))}return r}(e),Ii)}(t);if(pn(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Wn(void 0,Ii,!0),o.factory=()=>Ws(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ii&&(n.value=FC,n.value=n.factory()),"object"==typeof n.value&&n.value&&function LC(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=b(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function eu(e){const t=ko(e),n=null!==t?t.factory:ln(e);if(null!==n)return n;if(e instanceof S)throw new w(204,!1);if(e instanceof Function)return function PC(e){const t=e.length;if(t>0)throw function Hr(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new w(204,!1);const n=function MD(e){return e&&(e[jo]||e[Rl])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new w(204,!1)}function Wn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function tu(e,t){for(const n of e)Array.isArray(n)?tu(n,t):n&&js(n)?tu(n.\u0275providers,t):t(n)}const bi=new S("AppId",{providedIn:"root",factory:()=>VC}),VC="ng",ch=new S("Platform Initializer"),Zn=new S("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),lh=new S("CSP nonce",{providedIn:"root",factory:()=>function zn(){if(void 0!==Ua)return Ua;if(typeof document<"u")return document;throw new w(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let dh=(e,t,n)=>null;function cu(e,t,n=!1){return dh(e,t,n)}class QC{}class ph{}class KC{resolveComponentFactory(t){throw function YC(e){const t=Error(`No component factory found for ${fe(e)}.`);return t.ngComponent=e,t}(t)}}let Kn=(()=>{class e{static#e=this.NULL=new KC}return e})();function XC(){return Xn(ve(),y())}function Xn(e,t){return new gn(Le(e,t))}let gn=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=XC}return e})();function JC(e){return e instanceof gn?e.nativeElement:e}class mh{}let yh=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function eE(){const e=y(),n=Ge(ve().index,e);return(ke(n)?n:e)[A]}()}return e})(),tE=(()=>{class e{static#e=this.\u0275prov=z({token:e,providedIn:"root",factory:()=>null})}return e})();class Oi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const nE=new Oi("16.2.12"),fu={};function wh(e,t=null,n=null,r){const o=Ch(e,t,n,r);return o.resolveInjectorInitializers(),o}function Ch(e,t=null,n=null,r,o=new Set){const i=[n||V,NC(e)];return r=r||("object"==typeof e?void 0:fe(e)),new qn(i,t||Mi(),r||null,o)}let et=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Cr;static#t=this.NULL=new Qa;static create(n,r){if(Array.isArray(n))return wh({name:""},r,n,"");{const o=n.name??"";return wh({name:o},n.parent,n.providers,o)}}static#n=this.\u0275prov=z({token:e,providedIn:"any",factory:()=>k(th)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function pu(e){return e.ngOriginalError}class Pt{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&pu(t);for(;n&&pu(n);)n=pu(n);return n||null}}function mu(e){return t=>{setTimeout(e,void 0,t)}}const Ae=class cE extends wr{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=mu(i),o&&(o=mu(o)),s&&(s=mu(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof ht&&t.add(a),a}};function Ih(...e){}class ne{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ae(!1),this.onMicrotaskEmpty=new Ae(!1),this.onStable=new Ae(!1),this.onError=new Ae(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function lE(){const e="function"==typeof q.requestAnimationFrame;let t=q[e?"requestAnimationFrame":"setTimeout"],n=q[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function hE(e){const t=()=>{!function fE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(q,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,vu(e),e.isCheckStableRunning=!0,yu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),vu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(function gE(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return n.invokeTask(o,i,s,a);try{return Mh(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),bh(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Mh(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),bh(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,vu(e),yu(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ne.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(ne.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,dE,Ih,Ih);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const dE={};function yu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function vu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Mh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bh(e){e._nesting--,yu(e)}class pE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ae,this.onMicrotaskEmpty=new Ae,this.onStable=new Ae,this.onError=new Ae}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const Sh=new S("",{providedIn:"root",factory:Th});function Th(){const e=W(ne);let t=!0;return Nl(new Fe(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new Fe(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ne.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(xl()))}let Du=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=z({token:e,providedIn:"root",factory:()=>new e})}return e})();function Jr(e){for(;e;){e[x]|=64;const t=zr(e);if(Js(e)&&!t)return e;e=t}return null}const Fh=new S("",{providedIn:"root",factory:()=>!1});let Pi=null;function Lh(e,t){return e[t]??Bh()}function jh(e,t){const n=Bh();n.producerNode?.length&&(e[t]=Pi,n.lView=e,Pi=Vh())}const ME={...sd,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Jr(e.lView)},lView:null};function Vh(){return Object.create(ME)}function Bh(){return Pi??=Vh(),Pi}const N={};function ie(e){Hh(j(),y(),Se()+e,!1)}function Hh(e,t,n,r){if(!r)if(3==(3&t[x])){const i=e.preOrderCheckHooks;null!==i&&Jo(t,i,n)}else{const i=e.preOrderHooks;null!==i&&ei(t,i,0,n)}dn(n)}function O(e,t=R.Default){const n=y();return null===n?k(e,t):Jd(ve(),n,b(e),t)}function Ri(e,t,n,r,o,i,s,a,u,c,l){const d=t.blueprint.slice();return d[oe]=o,d[x]=140|r,(null!==c||e&&2048&e[x])&&(d[x]|=2048),Sd(d),d[J]=d[Mn]=e,d[ue]=n,d[In]=s||e&&e[In],d[A]=a||e&&e[A],d[qt]=u||e&&e[qt]||null,d[De]=i,d[Nr]=function xw(){return Nw++}(),d[At]=l,d[nd]=c,d[ce]=2==t.type?e[ce]:d,d}function tr(e,t,n,r,o){let i=e.data[t];if(null===i)i=function _u(e,t,n,r,o){const i=Fd(),s=aa(),u=e.data[t]=function PE(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Nn(){return null!==I.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=u),null!==i&&(s?null==i.child&&null!==u.parent&&(i.child=u):null===i.next&&(i.next=u,u.prev=i)),u}(e,t,n,r,o),function x_(){return I.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Rr(){const e=I.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return vt(i,!0),i}function eo(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function $h(e,t,n,r,o){const i=Lh(t,xr),s=Se(),a=2&r;try{dn(-1),a&&t.length>F&&Hh(e,t,F,!1),yt(a?2:0,o);const c=a?i:null,l=ta(c);try{null!==c&&(c.dirty=!1),n(r,o)}finally{na(c,l)}}finally{a&&null===t[xr]&&jh(t,xr),dn(s),yt(a?3:1,o)}}function wu(e,t,n){if(Xs(t)){const r=Xe(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{Xe(r)}}}function Cu(e,t,n){Od()&&(function HE(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;cn(n)&&function ZE(e,t,n){const r=Le(t,e),o=Uh(n);let s=16;n.signals?s=4096:n.onPush&&(s=64);const a=ki(e,Ri(e,o,null,s,r,t,null,e[In].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=a}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||ni(n,t),_e(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const u=e.data[a],c=fn(t,e,a,n);_e(c,t),null!==s&&QE(0,a-o,c,u,0,s),ut(u)&&(Ge(n.index,t)[ue]=fn(t,e,a,n))}}(e,t,n,Le(n,t)),64==(64&n.flags)&&Zh(e,t,n))}function Eu(e,t,n=Le){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function Uh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Iu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Iu(e,t,n,r,o,i,s,a,u,c,l){const d=F+r,f=d+o,h=function TE(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:N);return n}(d,f),p="function"==typeof c?c():c;return h[_]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:p,incompleteFirstPass:!1,ssrId:l}}let zh=e=>null;function Gh(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?qh(n,t,o,i):r.hasOwnProperty(o)&&qh(n,t,r[o],i)}return n}function qh(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function Mu(e,t,n,r){if(Od()){const o=null===r?null:{"":-1},i=function UE(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i<n.length;i++){const s=n[i];if(Ql(t,s.selectors,!1))if(r||(r=[]),ut(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s),bu(e,t,a.length)}else r.unshift(s),bu(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return null===r?null:[r,o]}(e,n);let s,a;null===i?s=a=null:[s,a]=i,null!==s&&Wh(e,t,n,s,o,a),o&&function zE(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new w(-301,!1);r.push(t[o],i)}}}(n,r,o)}n.mergedAttrs=Mr(n.mergedAttrs,n.attrs)}function Wh(e,t,n,r,o,i){for(let c=0;c<r.length;c++)Da(ni(n,t),e,r[c].type);!function qE(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let c=0;c<r.length;c++){const l=r[c];l.providersResolver&&l.providersResolver(l)}let s=!1,a=!1,u=eo(e,t,r.length,null);for(let c=0;c<r.length;c++){const l=r[c];n.mergedAttrs=Mr(n.mergedAttrs,l.hostAttrs),WE(e,n,t,u,l),GE(u,l,o),null!==l.contentQueries&&(n.flags|=4),(null!==l.hostBindings||null!==l.hostAttrs||0!==l.hostVars)&&(n.flags|=64);const d=l.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),u++}!function RE(e,t,n){const o=t.directiveEnd,i=e.data,s=t.attrs,a=[];let u=null,c=null;for(let l=t.directiveStart;l<o;l++){const d=i[l],f=n?n.get(d):null,p=f?f.outputs:null;u=Gh(d.inputs,l,u,f?f.inputs:null),c=Gh(d.outputs,l,c,p);const g=null===u||null===s||Zl(t)?null:YE(u,l,s);a.push(g)}null!==u&&(u.hasOwnProperty("class")&&(t.flags|=8),u.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=u,t.outputs=c}(e,n,i)}function Zh(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function F_(){return I.lFrame.currentDirectiveIndex}();try{dn(i);for(let a=r;a<o;a++){const u=e.data[a],c=t[a];ca(a),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&$E(u,c)}}finally{dn(-1),ca(s)}}function $E(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function bu(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function GE(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ut(t)&&(n[""]=e)}}function WE(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=ln(o.type)),s=new kr(i,ut(o),O);e.blueprint[r]=s,n[r]=s,function VE(e,t,n,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function BE(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,eo(e,n,o.hostVars,N),o)}function QE(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a<s.length;)Qh(r,n,s[a++],s[a++],s[a++])}function Qh(e,t,n,r,o){const i=Xe(null);try{const s=e.inputTransforms;null!==s&&s.hasOwnProperty(r)&&(o=s[r].call(t,o)),null!==e.setInput?e.setInput(t,o,n,r):t[r]=o}finally{Xe(i)}}function YE(e,t,n){let r=null,o=0;for(;o<n.length;){const i=n[o];if(0!==i)if(5!==i){if("number"==typeof i)break;if(e.hasOwnProperty(i)){null===r&&(r=[]);const s=e[i];for(let a=0;a<s.length;a+=2)if(s[a]===t){r.push(i,s[a+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function Yh(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null,null]}function Kh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r+1];if(-1!==i){const s=e.data[i];da(n[r]),s.contentQueries(2,t[i],i)}}}function ki(e,t){return e[Tr]?e[td][at]=t:e[Tr]=t,e[td]=t,t}function Tu(e,t,n){da(0);const r=Xe(null);try{t(e,n)}finally{Xe(r)}}function Xh(e){return e[En]||(e[En]=[])}function Jh(e){return e.cleanup||(e.cleanup=[])}function tp(e,t){const n=e[qt],r=n?n.get(Pt,null):null;r&&r.handleError(t)}function Au(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++];Qh(e.data[s],t[s],r,a,o)}}function kt(e,t,n){const r=function Qo(e,t){return Z(t[e])}(t,e);!function Nf(e,t,n){e.setValue(t,n)}(e[A],r,n)}function KE(e,t){const n=Ge(t,e),r=n[_];!function XE(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[oe];null!==o&&null===n[At]&&(n[At]=cu(o,n[qt])),Nu(r,n,n[ue])}function Nu(e,t,n){fa(t);try{const r=e.viewQuery;null!==r&&Tu(1,r,n);const o=e.template;null!==o&&$h(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Kh(e,t),e.staticViewQueries&&Tu(2,e.viewQuery,n);const i=e.components;null!==i&&function JE(e,t){for(let n=0;n<t.length;n++)KE(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[x]&=-5,ha()}}let np=(()=>{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=function l_(e,t,n){const r=Object.create(d_);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const o=s=>{r.cleanupFn=s};return r.ref={notify:()=>ld(r),run:()=>{if(r.dirty=!1,r.hasRun&&!dd(r))return;r.hasRun=!0;const s=ta(r);try{r.cleanupFn(),r.cleanupFn=Dd,r.fn(o)}finally{na(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(n,c=>{this.all.has(c)&&this.queue.set(c,i)},o);let a;this.all.add(s),s.notify();const u=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(u),{destroy:u}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=z({token:e,providedIn:"root",factory:()=>new e})}return e})();function Li(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=Rs(o,a):2==i&&(r=Rs(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function to(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];null!==i&&r.push(Z(i)),Ee(i)&&rp(i,r);const s=n.type;if(8&s)to(e,t,n.child,r);else if(32&s){const a=Pa(n,t);let u;for(;u=a();)r.push(u)}else if(16&s){const a=Vf(t,n);if(Array.isArray(a))r.push(...a);else{const u=zr(t[ce]);to(u[_],u,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function rp(e,t){for(let n=me;n<e.length;n++){const r=e[n],o=r[_].firstChild;null!==o&&to(r[_],r,o,t)}e[mt]!==e[oe]&&t.push(e[mt])}function ji(e,t,n,r=!0){const o=t[In],i=o.rendererFactory,s=o.afterRenderEventManager;i.begin?.(),s?.begin();try{op(e,t,e.template,n)}catch(u){throw r&&tp(t,u),u}finally{i.end?.(),o.effectManager?.flush(),s?.end()}}function op(e,t,n,r){const o=t[x];if(256!=(256&o)){t[In].effectManager?.flush(),fa(t);try{Sd(t),function Rd(e){return I.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&$h(e,t,n,2,r);const s=3==(3&o);if(s){const c=e.preOrderCheckHooks;null!==c&&Jo(t,c,null)}else{const c=e.preOrderHooks;null!==c&&ei(t,c,0,null),pa(t,0)}if(function nI(e){for(let t=Sf(e);null!==t;t=Tf(t)){if(!t[rd])continue;const n=t[Sn];for(let r=0;r<n.length;r++){__(n[r])}}}(t),ip(t,2),null!==e.contentQueries&&Kh(e,t),s){const c=e.contentCheckHooks;null!==c&&Jo(t,c)}else{const c=e.contentHooks;null!==c&&ei(t,c,1),pa(t,1)}!function SE(e,t){const n=e.hostBindingOpCodes;if(null===n)return;const r=Lh(t,Or);try{for(let o=0;o<n.length;o++){const i=n[o];if(i<0)dn(~i);else{const s=i,a=n[++o],u=n[++o];O_(a,s),r.dirty=!1;const c=ta(r);try{u(2,t[s])}finally{na(r,c)}}}}finally{null===t[Or]&&jh(t,Or),dn(-1)}}(e,t);const a=e.components;null!==a&&ap(t,a,0);const u=e.viewQuery;if(null!==u&&Tu(2,u,r),s){const c=e.viewCheckHooks;null!==c&&Jo(t,c)}else{const c=e.viewHooks;null!==c&&ei(t,c,2),pa(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[x]&=-73,Td(t)}finally{ha()}}}function ip(e,t){for(let n=Sf(e);null!==n;n=Tf(n))for(let r=me;r<n.length;r++)sp(n[r],t)}function rI(e,t,n){sp(Ge(t,e),n)}function sp(e,t){if(!function v_(e){return 128==(128&e[x])}(e))return;const n=e[_],r=e[x];if(80&r&&0===t||1024&r||2===t)op(n,e,n.template,e[ue]);else if(e[Sr]>0){ip(e,1);const o=n.components;null!==o&&ap(e,o,1)}}function ap(e,t,n){for(let r=0;r<t.length;r++)rI(e,t[r],n)}class no{get rootNodes(){const t=this._lView,n=t[_];return to(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ue]}set context(t){this._lView[ue]=t}get destroyed(){return 256==(256&this._lView[x])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[J];if(Ee(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(gi(t,r),ii(n,r))}this._attachedToViewContainer=!1}ka(this._lView[_],this._lView)}onDestroy(t){!function Nd(e,t){if(256==(256&e[x]))throw new w(911,!1);null===e[Wt]&&(e[Wt]=[]),e[Wt].push(t)}(this._lView,t)}markForCheck(){Jr(this._cdRefInjectingView||this._lView)}detach(){this._lView[x]&=-129}reattach(){this._lView[x]|=128}detectChanges(){ji(this._lView[_],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Gw(e,t){qr(e,t,t[A],2,null,null)}(this._lView[_],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t}}class oI extends no{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ji(t[_],t,t[ue],!1)}checkNoChanges(){}get context(){return null}}class up extends Kn{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=L(t);return new ro(n,this.ngModule)}}function cp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class sI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Bo(r);const o=this.injector.get(t,fu,r);return o!==fu||n===fu?o:this.parentInjector.get(t,n,r)}}class ro extends ph{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=cp(t.inputs);if(null!==n)for(const o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return cp(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function GD(e){return e.map(zD).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Ft?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new sI(t,i):t,a=s.get(mh,null);if(null===a)throw new w(407,!1);const d={rendererFactory:a,sanitizer:s.get(tE,null),effectManager:s.get(np,null),afterRenderEventManager:s.get(Du,null)},f=a.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function AE(e,t,n,r){const i=r.get(Fh,!1)||n===it.ShadowDom,s=e.selectRootElement(t,i);return function NE(e){zh(e)}(s),s}(f,r,this.componentDef.encapsulation,s):pi(f,h,function iI(e){const t=e.toLowerCase();return"svg"===t?Id:"math"===t?"math":null}(h)),D=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let m=null;null!==p&&(m=cu(p,s,!0));const C=Iu(0,null,null,1,0,null,null,null,null,null,null),M=Ri(null,C,null,D,null,null,d,f,s,null,m);let P,He;fa(M);try{const Ht=this.componentDef;let vr,Jc=null;Ht.findHostDirectiveDefs?(vr=[],Jc=new Map,Ht.findHostDirectiveDefs(Ht,vr,Jc),vr.push(Ht)):vr=[Ht];const Tx=function uI(e,t){const n=e[_],r=F;return e[r]=t,tr(n,r,2,"#host",null)}(M,p),Ax=function cI(e,t,n,r,o,i,s){const a=o[_];!function lI(e,t,n,r){for(const o of e)t.mergedAttrs=Mr(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Li(t,t.mergedAttrs,!0),null!==n&&Uf(r,n,t))}(r,e,t,s);let u=null;null!==t&&(u=cu(t,o[qt]));const c=i.rendererFactory.createRenderer(t,n);let l=16;n.signals?l=4096:n.onPush&&(l=64);const d=Ri(o,Uh(n),null,l,o[e.index],e,i,c,null,null,u);return a.firstCreatePass&&bu(a,e,r.length-1),ki(o,d),o[e.index]=d}(Tx,p,Ht,vr,M,d,f);He=bd(C,F),p&&function fI(e,t,n,r){if(r)Ys(e,n,["ng-version",nE.full]);else{const{attrs:o,classes:i}=function qD(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!st(o))break;o=i}r++}return{attrs:t,classes:n}}(t.selectors[0]);o&&Ys(e,n,o),i&&i.length>0&&$f(e,n,i.join(" "))}}(f,Ht,p,r),void 0!==n&&function hI(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const i=n[o];r.push(null!=i?Array.from(i):null)}}(He,this.ngContentSelectors,n),P=function dI(e,t,n,r,o,i){const s=ve(),a=o[_],u=Le(s,o);Wh(a,o,s,n,null,r);for(let l=0;l<n.length;l++)_e(fn(o,a,s.directiveStart+l,s),o);Zh(a,o,s),u&&_e(u,o);const c=fn(o,a,s.directiveStart+s.componentOffset,s);if(e[ue]=o[ue]=c,null!==i)for(const l of i)l(c,t);return wu(a,s,e),c}(Ax,Ht,vr,Jc,M,[pI]),Nu(C,M,null)}finally{ha()}return new aI(this.componentType,P,Xn(He,M),M,He)}}class aI extends QC{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new oI(o),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const i=this._rootLView;Au(i[_],i,o,t,n),this.previousInputValues.set(t,n),Jr(Ge(this._tNode.index,i))}}get injector(){return new Te(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function pI(){const e=ve();Xo(y()[_],e)}function Bi(e){return!!xu(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function xu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function we(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ze(e,t,n,r,o,i,s,a){const u=y(),c=j(),l=e+F,d=c.firstCreatePass?function zI(e,t,n,r,o,i,s,a,u){const c=t.consts,l=tr(t,e,4,s||null,Qt(c,a));Mu(t,n,l,Qt(c,u)),Xo(t,l);const d=l.tView=Iu(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return null!==t.queries&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}(l,c,u,t,n,r,o,i,s):c.data[l];vt(d,!1);const f=Tp(c,u,d,e);Ko()&&yi(c,u,f,d),_e(f,u),ki(u,u[l]=Yh(f,u,f,d)),Go(d)&&Cu(c,u,d),null!=s&&Eu(u,d,a)}let Tp=function Ap(e,t,n,r){return Yt(!0),t[A].createComment("")};function uo(e){return function An(e,t){return e[t]}(function N_(){return I.lFrame.contextLView}(),F+e)}function se(e,t,n){const r=y();return we(r,xn(),t)&&function We(e,t,n,r,o,i,s,a){const u=Le(t,n);let l,c=t.inputs;!a&&null!=c&&(l=c[r])?(Au(e,n,l,r,o),cn(t)&&function LE(e,t){const n=Ge(t,e);16&n[x]||(n[x]|=64)}(n,t.index)):3&t.type&&(r=function kE(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(u,r,o))}(j(),function te(){const e=I.lFrame;return bd(e.tView,e.selectedIndex)}(),r,e,t,r[A],n,!1),se}function Lu(e,t,n,r,o){const s=o?"class":"style";Au(e,n,t.inputs[s],s,r)}function Q(e,t,n,r){const o=y(),i=j(),s=F+e,a=o[A],u=i.firstCreatePass?function ZI(e,t,n,r,o,i){const s=t.consts,u=tr(t,e,2,r,Qt(s,o));return Mu(t,n,u,Qt(s,i)),null!==u.attrs&&Li(u,u.attrs,!1),null!==u.mergedAttrs&&Li(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,i,o,t,n,r):i.data[s],c=Np(i,o,u,a,t,e);o[s]=c;const l=Go(u);return vt(u,!0),Uf(a,c,u),32!=(32&u.flags)&&Ko()&&yi(i,o,c,u),0===function C_(){return I.lFrame.elementDepthCount}()&&_e(c,o),function E_(){I.lFrame.elementDepthCount++}(),l&&(Cu(i,o,u),wu(i,u,o)),null!==r&&Eu(o,u),Q}function Y(){let e=ve();aa()?ua():(e=e.parent,vt(e,!1));const t=e;(function M_(e){return I.skipHydrationRootTNode===e})(t)&&function A_(){I.skipHydrationRootTNode=null}(),function I_(){I.lFrame.elementDepthCount--}();const n=j();return n.firstCreatePass&&(Xo(n,e),Xs(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function $_(e){return 0!=(8&e.flags)}(t)&&Lu(n,t,y(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function U_(e){return 0!=(16&e.flags)}(t)&&Lu(n,t,y(),t.stylesWithoutHost,!1),Y}function nt(e,t,n,r){return Q(e,t,n,r),Y(),nt}let Np=(e,t,n,r,o,i)=>(Yt(!0),pi(r,o,function zd(){return I.lFrame.currentNamespace}()));function co(e,t,n){const r=y(),o=j(),i=e+F,s=o.firstCreatePass?function KI(e,t,n,r,o){const i=t.consts,s=Qt(i,r),a=tr(t,e,8,"ng-container",s);return null!==s&&Li(a,s,!0),Mu(t,n,a,Qt(i,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(i,o,r,t,n):o.data[i];vt(s,!0);const a=Op(o,r,s,e);return r[i]=a,Ko()&&yi(o,r,a,s),_e(a,r),Go(s)&&(Cu(o,r,s),wu(o,s,r)),null!=n&&Eu(r,s),co}function lo(){let e=ve();const t=j();return aa()?ua():(e=e.parent,vt(e,!1)),t.firstCreatePass&&(Xo(t,e),Xs(e)&&t.queries.elementEnd(e)),lo}let Op=(e,t,n,r)=>(Yt(!0),Ra(t[A],""));function fo(){return y()}function ju(e){return!!e&&"function"==typeof e.then}function Fp(e){return!!e&&"function"==typeof e.subscribe}function Qe(e,t,n,r){const o=y(),i=j(),s=ve();return function Rp(e,t,n,r,o,i,s){const a=Go(r),c=e.firstCreatePass&&Jh(e),l=t[ue],d=Xh(t);let f=!0;if(3&r.type||s){const g=Le(r,t),v=s?s(g):g,D=d.length,m=s?M=>s(Z(M[r.index])):r.index;let C=null;if(!s&&a&&(C=function e0(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[En],u=o[i+2];return a.length>u?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==C)(C.__ngLastListenerFn__||C).__ngNextListenerFn__=i,C.__ngLastListenerFn__=i,f=!1;else{i=Lp(r,t,l,i,!1);const M=n.listen(v,o,i);d.push(i,M),c&&c.push(o,m,D,D+1)}}else i=Lp(r,t,l,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const g=p.length;if(g)for(let v=0;v<g;v+=2){const P=t[p[v]][p[v+1]].subscribe(i),He=d.length;d.push(i,P),c&&c.push(o,r.index,He,-(He+1))}}}(i,o,o[A],s,e,t,r),Qe}function kp(e,t,n,r){try{return yt(6,t,n),!1!==n(r)}catch(o){return tp(e,o),!1}finally{yt(7,t,n)}}function Lp(e,t,n,r,o){return function i(s){if(s===Function)return r;Jr(e.componentOffset>-1?Ge(e.index,t):t);let u=kp(t,n,r,s),c=i.__ngNextListenerFn__;for(;c;)u=kp(t,n,c,s)&&u,c=c.__ngNextListenerFn__;return o&&!1===u&&s.preventDefault(),u}}function ee(e=1){return function R_(e){return(I.lFrame.contextLView=function k_(e,t){for(;e>0;)t=t[Mn],e--;return t}(e,I.lFrame.contextLView))[ue]}(e)}function It(e,t=""){const n=y(),r=j(),o=e+F,i=r.firstCreatePass?tr(r,o,1,t,null):r.data[o],s=ug(r,n,i,t,e);n[o]=s,Ko()&&yi(r,n,s,i),vt(i,!1)}let ug=(e,t,n,r,o)=>(Yt(!0),function hi(e,t){return e.createText(t)}(t[A],r));function Wi(e){return po("",e,""),Wi}function po(e,t,n){const r=y(),o=function rr(e,t,n,r){return we(e,xn(),n)?t+T(n)+r:N}(r,e,t,n);return o!==N&&kt(r,Se(),o),po}const hr="en-US";let Ng=hr;class Dn{}class QM{}class Yu extends Dn{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new up(this);const o=function ze(e,t){const n=e[Hl]||null;if(!n&&!0===t)throw new Error(`Type ${fe(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function Rt(e){return e instanceof Function?e():e}(o.bootstrap),this._r3Injector=Ch(t,n,[{provide:Dn,useValue:this},{provide:Kn,useValue:this.componentFactoryResolver},...r],fe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ku extends QM{constructor(t){super(),this.moduleType=t}create(t){return new Yu(this.moduleType,t,[])}}function Xi(e,t,n,r){return function cm(e,t,n,r,o,i){const s=t+n;return we(e,s,o)?function wt(e,t,n){return e[t]=n}(e,s+1,i?r.call(i,o):r(o)):function _o(e,t){const n=e[t];return n===N?void 0:n}(e,s+1)}(y(),function be(){const e=I.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,n,r)}function Mb(){return this._results[Symbol.iterator]()}class Ju{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Ae)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Ju.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Mb)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Je(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ow(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function Sb(e,t,n,r=!0){const o=t[_];if(function Ww(e,t,n,r){const o=me+r,i=n.length;r>0&&(n[o-1][at]=t),r<i-me?(t[at]=n[o],sf(n,me+r,t)):(n.push(t),t[at]=null),t[J]=n;const s=t[Ar];null!==s&&n!==s&&function Zw(e,t){const n=e[Sn];t[ce]!==t[J][J][ce]&&(e[rd]=!0),null===n?e[Sn]=[t]:n.push(t)}(s,t);const a=t[gt];null!==a&&a.insertView(e),t[x]|=128}(o,t,e,n),r){const i=Ba(n,e),s=t[A],a=mi(s,e[mt]);null!==a&&function zw(e,t,n,r,o,i){r[oe]=o,r[De]=t,qr(e,r,n,1,o,i)}(o,e[De],s,t,a,i)}}let Lt=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Nb}return e})();const Tb=Lt,Ab=class extends Tb{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=function bb(e,t,n,r){const o=t.tView,a=Ri(e,o,n,4096&e[x]?4096:16,null,t,null,null,null,r?.injector??null,r?.hydrationInfo??null);a[Ar]=e[t.index];const c=e[gt];return null!==c&&(a[gt]=c.createEmbeddedView(o)),Nu(o,a,n),a}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:r});return new no(o)}};function Nb(){return Ji(ve(),y())}function Ji(e,t){return 4&e.type?new Ab(t,e,Xn(e,t)):null}let Mt=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=kb}return e})();function kb(){return _m(ve(),y())}const Lb=Mt,vm=class extends Lb{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Xn(this._hostTNode,this._hostLView)}get injector(){return new Te(this._hostTNode,this._hostLView)}get parentInjector(){const t=ri(this._hostTNode,this._hostLView);if(ma(t)){const n=jr(t,this._hostLView),r=Lr(t);return new Te(n[_].data[r+8],n)}return new Te(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Dm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-me}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function Br(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const g=n||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}const u=s?t:new ro(L(t)),c=r||this.parentInjector;if(!i&&null==u.ngModule){const v=(s?c:this.parentInjector).get(Ft,null);v&&(i=v)}L(u.componentType??{});const h=u.create(c,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView;if(function D_(e){return Ee(e[J])}(o)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const c=o[J],l=new vm(c,c[De],c[J]);l.detach(l.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;return Sb(a,o,s,!r),t.attachToViewContainerRef(),sf(ec(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Dm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=gi(this._lContainer,n);r&&(ii(ec(this._lContainer),n),ka(r[_],r))}detach(t){const n=this._adjustIndex(t,-1),r=gi(this._lContainer,n);return r&&null!=ii(ec(this._lContainer),n)?new no(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Dm(e){return e[8]}function ec(e){return e[8]||(e[8]=[])}function _m(e,t){let n;const r=t[e.index];return Ee(r)?n=r:(n=Yh(r,t,null,e),t[e.index]=n,ki(t,n)),wm(n,t,e,r),new vm(n,e,t)}let wm=function Cm(e,t,n,r){if(e[mt])return;let o;o=8&n.type?Z(r):function jb(e,t){const n=e[A],r=n.createComment(""),o=Le(t,e);return hn(n,mi(n,o),r,function Xw(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[mt]=o};class tc{constructor(t){this.queryList=t,this.matches=null}clone(){return new tc(this.queryList)}setDirty(){this.queryList.setDirty()}}class nc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){const s=n.getByIndex(i);o.push(this.queries[s.indexInDeclarationView].clone())}return new nc(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Nm(t,n).matches&&this.queries[n].setDirty()}}class Em{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class rc{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new rc(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class oc{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new oc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const i=r[o];this.matchTNodeWithReadOption(t,n,Hb(n,i)),this.matchTNodeWithReadOption(t,n,oi(n,t,i,!1,!1))}else r===Lt?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,oi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===gn||o===Mt||o===Lt&&4&n.type)this.addMatch(n.index,-2);else{const i=oi(n,t,o,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function Hb(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function Ub(e,t,n,r){return-1===n?function $b(e,t){return 11&e.type?Xn(e,t):4&e.type?Ji(e,t):null}(t,e):-2===n?function zb(e,t,n){return n===gn?Xn(t,e):n===Lt?Ji(t,e):n===Mt?_m(t,e):void 0}(e,t,r):fn(e,e[_],n,t)}function Im(e,t,n,r){const o=t[gt].queries[r];if(null===o.matches){const i=e.data,s=n.matches,a=[];for(let u=0;u<s.length;u+=2){const c=s[u];a.push(c<0?null:Ub(t,i[c],s[u+1],n.metadata.read))}o.matches=a}return o.matches}function ic(e,t,n,r){const o=e.queries.getByIndex(n),i=o.matches;if(null!==i){const s=Im(e,t,o,n);for(let a=0;a<i.length;a+=2){const u=i[a];if(u>0)r.push(s[a/2]);else{const c=i[a+1],l=t[-u];for(let d=me;d<l.length;d++){const f=l[d];f[Ar]===f[J]&&ic(f[_],f,c,r)}if(null!==l[Sn]){const d=l[Sn];for(let f=0;f<d.length;f++){const h=d[f];ic(h[_],h,c,r)}}}}}return r}function Mm(e){const t=y(),n=j(),r=Ld();da(r+1);const o=Nm(n,r);if(e.dirty&&function y_(e){return 4==(4&e[x])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const i=o.crossesNgTemplate?ic(n,t,r,[]):Im(n,t,o,r);e.reset(i,JC),e.notifyOnChanges()}return!0}return!1}function bm(e,t,n){const r=j();r.firstCreatePass&&(function Am(e,t,n){null===e.queries&&(e.queries=new rc),e.queries.track(new oc(t,n))}(r,new Em(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),function Tm(e,t,n){const r=new Ju(4==(4&n));(function FE(e,t,n,r){const o=Xh(t);o.push(n),e.firstCreatePass&&Jh(e).push(r,o.length-1)})(e,t,r,r.destroy),null===t[gt]&&(t[gt]=new nc),t[gt].queries.push(new tc(r))}(r,y(),t)}function Nm(e,t){return e.queries.getByIndex(t)}function sc(e,t){return Ji(e,t)}const pS=new S("Application Initializer");let dc=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=W(pS,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(ju(i))n.push(i);else if(Fp(i)){const s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const jt=new S("LocaleId",{providedIn:"root",factory:()=>W(jt,R.Optional|R.SkipSelf)||function mS(){return typeof $localize<"u"&&$localize.locale||hr}()});let DS=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new gD(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Km=new S(""),rs=new S("");let mc,pc=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,mc||(function $S(e){mc=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(k(ne),k(gc),k(rs))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})(),gc=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return mc?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),en=null;const Xm=new S("AllowMultipleToken"),yc=new S("PlatformDestroyListeners"),Jm=new S("appBootstrapListener");function ny(e,t,n=[]){const r=`Platform: ${t}`,o=new S(r);return(i=[])=>{let s=vc();if(!s||s.injector.get(Xm,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function GS(e){if(en&&!en.get(Xm,!1))throw new w(400,!1);(function ey(){!function i_(e){gd=e}(()=>{throw new w(600,!1)})})(),en=e;const t=e.get(oy);(function ty(e){e.get(ch,null)?.forEach(n=>n())})(e)}(function ry(e=[],t){return et.create({name:t,providers:[{provide:Xa,useValue:"platform"},{provide:yc,useValue:new Set([()=>en=null])},...e]})}(a,r))}return function WS(e){const t=vc();if(!t)throw new w(401,!1);return t}()}}function vc(){return en?.get(oy)??null}let oy=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function ZS(e="zone.js",t){return"noop"===e?new pE:"zone.js"===e?new ne(t):e}(r?.ngZone,function iy(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function KM(e,t,n){return new Yu(e,t,n)}(n.moduleType,this.injector,function ly(e){return[{provide:ne,useFactory:e},{provide:Ci,multi:!0,useFactory:()=>{const t=W(YS,{optional:!0});return()=>t.initialize()}},{provide:cy,useFactory:QS},{provide:Sh,useFactory:Th}]}(()=>o)),s=i.injector.get(Pt,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:u=>{s.handleError(u)}});i.onDestroy(()=>{os(this._modules,i),a.unsubscribe()})}),function sy(e,t,n){try{const r=n();return ju(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(dc);return a.runInitializers(),a.donePromise.then(()=>(function xg(e){Ke(e,"Expected localeId to be defined"),"string"==typeof e&&(Ng=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(jt,hr)||hr),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=ay({},r);return function US(e,t,n){const r=new Ku(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(mr);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new w(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(yc,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(k(et))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function ay(e,t){return Array.isArray(t)?t.reduce(ay,e):{...e,...t}}let mr=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=W(cy),this.zoneIsStable=W(Sh),this.componentTypes=[],this.components=[],this.isStable=W(DS).hasPendingTasks.pipe(Ol(n=>n?function mD(...e){return Al(e,Ml(e))}(!1):this.zoneIsStable),function yD(e,t=Ts){return e=e??vD,on((n,r)=>{let o,i=!0;n.subscribe(sn(r,s=>{const a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}(),xl()),this._injector=W(Ft)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof ph;if(!this._injector.get(dc).done)throw!o&&function br(e){const t=L(e)||ge(e)||Ce(e);return null!==t&&t.standalone}(n),new w(405,!1);let s;s=o?n:this._injector.get(Kn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function zS(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Dn),c=s.create(et.NULL,[],r||s.selector,a),l=c.location.nativeElement,d=c.injector.get(Km,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),os(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;os(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Jm,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>os(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function os(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const cy=new S("",{providedIn:"root",factory:()=>W(Pt).handleError.bind(void 0)});function QS(){const e=W(ne),t=W(Pt);return n=>e.runOutsideAngular(()=>t.handleError(n))}let YS=(()=>{class e{constructor(){this.zone=W(ne),this.applicationRef=W(mr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let fy=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=XS}return e})();function XS(e){return function JS(e,t,n){if(cn(e)&&!n){const r=Ge(e.index,t);return new no(r,r)}return 47&e.type?new no(t[ce],t):null}(ve(),y(),16==(16&e))}class gy{constructor(){}supports(t){return Bi(t)}create(t){return new iT(t)}}const oT=(e,t)=>t;class iT{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||oT}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex<yy(r,o,i)?n:r,a=yy(s,o,i),u=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const c=a-o,l=u-o;if(c!=l){for(let f=0;f<c;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;l<=p&&p<c&&(i[f]=h+1)}i[s.previousIndex]=l-c}}a!==u&&t(s,a,u)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Bi(t))throw new w(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,s,a),r=!0),n=n._next}else o=0,function bI(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new sT(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new my),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new my),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class sT{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class aT{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class my{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new aT,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yy(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class vy{constructor(){}supports(t){return t instanceof Map||xu(t)}create(){return new uT}}class uT{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||xu(t)))throw new w(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new cT(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class cT{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Dy(){return new as([new gy])}let as=(()=>{class e{static#e=this.\u0275prov=z({token:e,providedIn:"root",factory:Dy});constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Dy()),deps:[[e,new ba,new Ma]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new w(901,!1)}}return e})();function _y(){return new Io([new vy])}let Io=(()=>{class e{static#e=this.\u0275prov=z({token:e,providedIn:"root",factory:_y});constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||_y()),deps:[[e,new ba,new Ma]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new w(901,!1)}}return e})();const fT=ny(null,"core",[]);let hT=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(k(mr))};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=zt({})}return e})(),Ic=null;function Mc(){return Ic}class bT{}const wn=new S("DocumentToken"),Rc=/\s+/,Ly=[];let jy=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=Ly,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(Rc):Ly}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(Rc):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(Rc).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(r){return new(r||e)(O(as),O(Io),O(gn),O(yh))};static#t=this.\u0275dir=Ue({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class pA{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let By=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new pA(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),Hy(a,o)}});for(let o=0,i=r.length;o<i;o++){const a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{Hy(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(O(Mt),O(Lt),O(as))};static#t=this.\u0275dir=Ue({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function Hy(e,t){e.context.$implicit=t.item}let $y=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new gA,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Uy("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Uy("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(O(Mt),O(Lt))};static#t=this.\u0275dir=Ue({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class gA{constructor(){this.$implicit=null,this.ngIf=null}}function Uy(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${fe(t)}'.`)}let Bc=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=zt({})}return e})();function Wy(e){return"server"===e}class hN extends bT{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Uc extends hN{static makeCurrent(){!function MT(e){Ic||(Ic=e)}(new Uc)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function pN(){return To=To||document.querySelector("base"),To?To.getAttribute("href"):null}();return null==n?null:function gN(e){ws=ws||document.createElement("a"),ws.setAttribute("href",e);const t=ws.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){To=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function fA(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let ws,To=null,yN=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();const zc=new S("EventManagerPlugins");let Xy=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(n,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(k(zc),k(ne))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();class Jy{constructor(t){this._doc=t}}const Gc="ng-app-id";let ev=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Wy(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Gc}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Gc),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Gc,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(k(wn),k(bi),k(lh,8),k(Zn))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();const qc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Wc=/%COMP%/g,wN=new S("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function nv(e,t){return t.map(n=>n.replace(Wc,e))}let rv=(()=>{class e{constructor(n,r,o,i,s,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Wy(a),this.defaultRenderer=new Zc(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===it.ShadowDom&&(r={...r,encapsulation:it.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof iv?o.applyToHost(n):o instanceof Qc&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case it.Emulated:i=new iv(u,c,r,this.appId,l,s,a,d);break;case it.ShadowDom:return new MN(u,c,n,r,s,a,this.nonce,d);default:i=new Qc(u,c,r,l,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(k(Xy),k(ev),k(bi),k(wN),k(wn),k(Zn),k(ne),k(lh))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();class Zc{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(qc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ov(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ov(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new w(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=qc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=qc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Kt.DashCase|Kt.Important)?t.style.setProperty(n,r,o&Kt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Kt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Mc().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function ov(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class MN extends Zc{constructor(t,n,r,o,i,s,a,u){super(t,i,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=nv(o.id,o.styles);for(const l of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Qc extends Zc{constructor(t,n,r,o,i,s,a,u){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=u?nv(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class iv extends Qc{constructor(t,n,r,o,i,s,a,u){const c=o+"-"+r.id;super(t,n,r,i,s,a,u,c),this.contentAttr=function CN(e){return"_ngcontent-%COMP%".replace(Wc,e)}(c),this.hostAttr=function EN(e){return"_nghost-%COMP%".replace(Wc,e)}(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let bN=(()=>{class e extends Jy{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)(k(wn))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();const sv=["alt","control","meta","shift"],SN={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},TN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let AN=(()=>{class e extends Jy{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mc().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),sv.forEach(c=>{const l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=SN[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),sv.forEach(s=>{s!==o&&(0,TN[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}static#e=this.\u0275fac=function(r){return new(r||e)(k(wn))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();const FN=ny(fT,"browser",[{provide:Zn,useValue:"browser"},{provide:ch,useValue:function NN(){Uc.makeCurrent()},multi:!0},{provide:wn,useFactory:function ON(){return function sC(e){Ua=e}(document),document},deps:[]}]),PN=new S(""),cv=[{provide:rs,useClass:class mN{addToWindow(t){q.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new w(5103,!1);return i},q.getAllAngularTestabilities=()=>t.getAllTestabilities(),q.getAllAngularRootElements=()=>t.getAllRootElements(),q.frameworkStabilizers||(q.frameworkStabilizers=[]),q.frameworkStabilizers.push(r=>{const o=q.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(u=>{u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Mc().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Km,useClass:pc,deps:[ne,gc,rs]},{provide:pc,useClass:pc,deps:[ne,gc,rs]}],lv=[{provide:Xa,useValue:"root"},{provide:Pt,useFactory:function xN(){return new Pt},deps:[]},{provide:zc,useClass:bN,multi:!0,deps:[wn,ne,Zn]},{provide:zc,useClass:AN,multi:!0,deps:[wn]},rv,ev,Xy,{provide:mh,useExisting:rv},{provide:class zA{},useClass:yN,deps:[]},[]];let RN=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:bi,useValue:n.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(k(PN,12))};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=zt({providers:[...lv,...cv],imports:[Bc,hT]})}return e})();typeof window<"u"&&window;const pv={now:()=>(pv.delegate||Date).now(),delegate:void 0};class $N extends wr{constructor(t=1/0,n=1/0,r=pv){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){const{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){const{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){const s=n.now();let a=0;for(let u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}}}const Cs={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)},scheduleBeforeRender(e){if(typeof window>"u")return Cs.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return Cs.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};let Kc;function KN(e,t,n){let r=n;return function zN(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((o,i)=>!("*"===o||!function qN(e,t){if(!Kc){const n=Element.prototype;Kc=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&Kc.call(e,t)}(e,o)||(r=i,0))),r}class JN{constructor(t,n){this.componentFactory=n.get(Kn).resolveComponentFactory(t)}create(t){return new ex(this.componentFactory,t)}}class ex{constructor(t,n){this.componentFactory=t,this.injector=n,this.eventEmitters=new $N(1),this.events=this.eventEmitters.pipe(Ol(r=>Nl(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(ne),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Cs.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n,r){this.runInZone(()=>{r&&(n=r.call(this.componentRef?.instance,n)),null!==this.componentRef?function WN(e,t){return e===t||e!=e&&t!=t}(n,this.getInputValue(t))&&(void 0!==n||!this.unchangedInputs.has(t))||(this.recordInputChange(t,n),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=n,this.scheduleDetectChanges()):this.initialInputValues.set(t,n)})}initializeComponent(t){const n=et.create({providers:[],parent:this.injector}),r=function YN(e,t){const n=e.childNodes,r=t.map(()=>[]);let o=-1;t.some((i,s)=>"*"===i&&(o=s,!0));for(let i=0,s=n.length;i<s;++i){const a=n[i],u=KN(a,t,o);-1!==u&&r[u].push(a)}return r}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.viewChangeDetectorRef=this.componentRef.injector.get(fy),this.implementsOnChanges=function GN(e){return"function"==typeof e}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(mr).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t,transform:n})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t),n)}),this.initialInputValues.clear()}initializeOutputs(t){const n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>t.instance[r].pipe(ul(s=>({name:o,value:s}))));this.eventEmitters.next(n)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(n)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Cs.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[t];if(r)return void(r.currentValue=n);const o=this.unchangedInputs.has(t),i=o?void 0:this.getInputValue(t);this.inputChanges[t]=new _d(i,n,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class tx extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Xc{constructor(t){this.rawFile=t;const n=t instanceof HTMLInputElement?t.value:t;this["_createFrom"+("string"==typeof n?"FakePath":"Object")](n)}_createFromFakePath(t){this.lastModifiedDate=void 0,this.size=void 0,this.type=`like/${t.slice(t.lastIndexOf(".")+1).toLowerCase()}`,this.name=t.slice(t.lastIndexOf("/")+t.lastIndexOf("\\")+2)}_createFromObject(t){this.size=t.size,this.type=t.type,this.name=t.name}}class gv{constructor(t,n,r){this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.uploader=t,this.some=n,this.options=r,this.file=new Xc(n),this._file=n,t.options&&(this.method=t.options.method||"POST",this.alias=t.options.itemAlias||"file"),this.url=t.options.url}upload(){try{this.uploader.uploadItem(this)}catch{this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}cancel(){this.uploader.cancelItem(this)}remove(){this.uploader.removeFromQueue(this)}onBeforeUpload(){}onBuildForm(t){return{form:t}}onProgress(t){return{progress:t}}onSuccess(t,n,r){return{response:t,status:n,headers:r}}onError(t,n,r){return{response:t,status:n,headers:r}}onCancel(t,n,r){return{response:t,status:n,headers:r}}onComplete(t,n,r){return{response:t,status:n,headers:r}}_onBeforeUpload(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}_onBuildForm(t){this.onBuildForm(t)}_onProgress(t){this.progress=t,this.onProgress(t)}_onSuccess(t,n,r){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(t,n,r)}_onError(t,n,r){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(t,n,r)}_onCancel(t,n,r){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(t,n,r)}_onComplete(t,n,r){this.onComplete(t,n,r),this.uploader.options.removeAfterUpload&&this.remove()}_prepareToUploading(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}let rx=(()=>{class e{static#e=this.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"];static#t=this.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"];static#n=this.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"];static#r=this.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"];static#o=this.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"];static getMimeClass(n){let r="application";return n?.type&&-1!==this.mime_psd.indexOf(n.type)||n?.type?.match("image.*")?r="image":n?.type?.match("video.*")?r="video":n?.type?.match("audio.*")?r="audio":"application/pdf"===n?.type?r="pdf":n?.type&&-1!==this.mime_compress.indexOf(n.type)?r="compress":n?.type&&-1!==this.mime_doc.indexOf(n.type)?r="doc":n?.type&&-1!==this.mime_xsl.indexOf(n.type)?r="xls":n?.type&&-1!==this.mime_ppt.indexOf(n.type)&&(r="ppt"),"application"===r&&n?.name&&(r=this.fileTypeDetection(n.name)),r}static fileTypeDetection(n){const r={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},o=n.split(".");if(o.length<2)return"application";const i=o[o.length-1].toLowerCase();return void 0===r[i]?"application":r[i]}}return e})();class ix{constructor(t){this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:n=>n._file,formatDataFunctionIsAsync:!1,url:""},this.setOptions(t),this.response=new Ae}setOptions(t){this.options=Object.assign(this.options,t),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters?.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters?.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters?.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters?.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(let n=0;n<this.queue.length;n++)this.queue[n].url=this.options.url}addToQueue(t,n,r){let o=n;const i=[];for(const c of t)i.push(c);const s=this._getFilters(r),a=this.queue.length,u=[];i.map(c=>{o||(o=this.options);const l=new Xc(c);if(this._isValidFile(l,s,o)){const d=new gv(this,c,o);u.push(d),this.queue.push(d),this._onAfterAddingFile(d)}else"number"==typeof this._failFilterIndex&&this._failFilterIndex>=0&&this._onWhenAddingFileFailed(l,s[this._failFilterIndex],o)}),this.queue.length!==a&&(this._onAfterAddingAll(u),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}removeFromQueue(t){const n=this.getIndexOfItem(t),r=this.queue[n];r.isUploading&&r.cancel(),this.queue.splice(n,1),this.progress=this._getTotalProgress()}clearQueue(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}uploadItem(t){const n=this.getIndexOfItem(t),r=this.queue[n],o=this.options.isHTML5?"_xhrTransport":"_iframeTransport";r._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[o](r))}cancelItem(t){const n=this.getIndexOfItem(t),r=this.queue[n];r&&r.isUploading&&(this.options.isHTML5?r._xhr:r._form).abort()}uploadAll(){const t=this.getNotUploadedItems().filter(n=>!n.isUploading);t.length&&(t.map(n=>n._prepareToUploading()),t[0].upload())}cancelAll(){this.getNotUploadedItems().map(n=>n.cancel())}isFile(t){return function ox(e){return File&&e instanceof File}(t)}isFileLikeObject(t){return t instanceof Xc}getIndexOfItem(t){return"number"==typeof t?t:this.queue.indexOf(t)}getNotUploadedItems(){return this.queue.filter(t=>!t.isUploaded)}getReadyItems(){return this.queue.filter(t=>t.isReady&&!t.isUploading).sort((t,n)=>t.index-n.index)}onAfterAddingAll(t){return{fileItems:t}}onBuildItemForm(t,n){return{fileItem:t,form:n}}onAfterAddingFile(t){return{fileItem:t}}onWhenAddingFileFailed(t,n,r){return{item:t,filter:n,options:r}}onBeforeUploadItem(t){return{fileItem:t}}onProgressItem(t,n){return{fileItem:t,progress:n}}onProgressAll(t){return{progress:t}}onSuccessItem(t,n,r,o){return{item:t,response:n,status:r,headers:o}}onErrorItem(t,n,r,o){return{item:t,response:n,status:r,headers:o}}onCancelItem(t,n,r,o){return{item:t,response:n,status:r,headers:o}}onCompleteItem(t,n,r,o){return{item:t,response:n,status:r,headers:o}}onCompleteAll(){}_mimeTypeFilter(t){return!(t?.type&&this.options.allowedMimeType&&-1===this.options.allowedMimeType?.indexOf(t.type))}_fileSizeFilter(t){return!(this.options.maxFileSize&&t.size>this.options.maxFileSize)}_fileTypeFilter(t){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(rx.getMimeClass(t)))}_onErrorItem(t,n,r,o){t._onError(n,r,o),this.onErrorItem(t,n,r,o)}_onCompleteItem(t,n,r,o){t._onComplete(n,r,o),this.onCompleteItem(t,n,r,o);const i=this.getReadyItems()[0];this.isUploading=!1,i?i.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}_headersGetter(t){return n=>n?t[n.toLowerCase()]||void 0:t}_xhrTransport(t){const n=this,r=t._xhr=new XMLHttpRequest;let o;if(this._onBeforeUploadItem(t),"number"!=typeof t._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)this.options.formatDataFunction&&(o=this.options.formatDataFunction(t));else{o=new FormData,this._onBuildItemForm(t,o);const i=()=>o.append(t.alias,t._file,t.file.name);this.options.parametersBeforeFiles||i(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(s=>{let a=this.options.additionalParameter?.[s];"string"==typeof a&&a.indexOf("{{file_name}}")>=0&&t.file?.name&&(a=a.replace("{{file_name}}",t.file.name)),o.append(s,a)}),i&&this.options.parametersBeforeFiles&&i()}if(r.upload.onprogress=i=>{const s=Math.round(i.lengthComputable?100*i.loaded/i.total:0);this._onProgressItem(t,s)},r.onload=()=>{const i=this._parseHeaders(r.getAllResponseHeaders()),s=this._transformResponse(r.response,i);this[`_on${this._isSuccessCode(r.status)?"Success":"Error"}Item`](t,s,r.status,i),this._onCompleteItem(t,s,r.status,i)},r.onerror=()=>{const i=this._parseHeaders(r.getAllResponseHeaders()),s=this._transformResponse(r.response,i);this._onErrorItem(t,s,r.status,i),this._onCompleteItem(t,s,r.status,i)},r.onabort=()=>{const i=this._parseHeaders(r.getAllResponseHeaders()),s=this._transformResponse(r.response,i);this._onCancelItem(t,s,r.status,i),this._onCompleteItem(t,s,r.status,i)},t.method&&t.url&&r.open(t.method,t.url,!0),r.withCredentials=t.withCredentials,this.options.headers)for(const i of this.options.headers)r.setRequestHeader(i.name,i.value);if(t.headers.length)for(const i of t.headers)r.setRequestHeader(i.name,i.value);this.authToken&&this.authTokenHeader&&r.setRequestHeader(this.authTokenHeader,this.authToken),r.onreadystatechange=function(){r.readyState==XMLHttpRequest.DONE&&n.response.emit(r.responseText)},this.options.formatDataFunctionIsAsync?o.then(i=>r.send(JSON.stringify(i))):r.send(o),this._render()}_getTotalProgress(t=0){if(this.options.removeAfterUpload)return t;const n=this.getNotUploadedItems().length,o=100/this.queue.length;return Math.round((n?this.queue.length-n:this.queue.length)*o+t*o/100)}_getFilters(t){if(!t)return this.options?.filters||[];if(Array.isArray(t))return t;if("string"==typeof t){const n=t.match(/[^\s,]+/g);return this.options?.filters||[].filter(r=>-1!==n?.indexOf(r.name))}return this.options?.filters||[]}_render(){}_queueLimitFilter(){return void 0===this.options.queueLimit||this.queue.length<this.options.queueLimit}_isValidFile(t,n,r){return this._failFilterIndex=-1,!n.length||n.every(o=>("number"==typeof this._failFilterIndex&&this._failFilterIndex++,o.fn.call(this,t,r)))}_isSuccessCode(t){return t>=200&&t<300||304===t}_transformResponse(t,n){return t}_parseHeaders(t){const n={};let r,o,i;return t&&t.split("\n").map(s=>{i=s.indexOf(":"),r=s.slice(0,i).trim().toLowerCase(),o=s.slice(i+1).trim(),r&&(n[r]=n[r]?n[r]+", "+o:o)}),n}_onWhenAddingFileFailed(t,n,r){this.onWhenAddingFileFailed(t,n,r)}_onAfterAddingFile(t){this.onAfterAddingFile(t)}_onAfterAddingAll(t){this.onAfterAddingAll(t)}_onBeforeUploadItem(t){t._onBeforeUpload(),this.onBeforeUploadItem(t)}_onBuildItemForm(t,n){t._onBuildForm(n),this.onBuildItemForm(t,n)}_onProgressItem(t,n){const r=this._getTotalProgress(n);this.progress=r,t._onProgress(n),this.onProgressItem(t,n),this.onProgressAll(r),this._render()}_onSuccessItem(t,n,r,o){t._onSuccess(n,r,o),this.onSuccessItem(t,n,r,o)}_onCancelItem(t,n,r,o){t._onCancel(n,r,o),this.onCancelItem(t,n,r,o)}}let sx=(()=>{class e{constructor(n){this.onFileSelected=new Ae,this.element=n}getOptions(){return this.uploader?.options}getFilters(){return""}isEmptyAfterSelection(){return!!this.element.nativeElement.attributes.multiple}onChange(){const n=this.element.nativeElement.files,r=this.getOptions(),o=this.getFilters();this.uploader?.addToQueue(n,r,o),this.onFileSelected.emit(n),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}static#e=this.\u0275fac=function(r){return new(r||e)(O(gn))};static#t=this.\u0275dir=Ue({type:e,selectors:[["","ng2FileSelect",""]],hostBindings:function(r,o){1&r&&Qe("change",function(){return o.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}})}return e})(),ax=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=zt({imports:[Bc]})}return e})(),ux=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=zt({imports:[Bc,ax]})}return e})();function mv(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,o)}const lx=["fileInput"];function dx(e,t){if(1&e&&(co(0),nt(1,"img",26),lo()),2&e){const n=ee().$implicit,r=ee(3);ie(1),se("src",r.imagePreviews[n._file.name]||"",Qr)("alt",n._file.name)}}function fx(e,t){1&e&&(Yo(),Q(0,"svg",27),nt(1,"path",28)(2,"path",29),Y())}const hx=function(e){return{"upload-complete":e}};function px(e,t){if(1&e){const n=fo();Q(0,"div",17)(1,"div",18)(2,"div",19),Ze(3,dx,2,2,"ng-container",20),Ze(4,fx,3,0,"ng-template",null,21,sc),Y(),Q(6,"div",22)(7,"div",23),It(8),Y(),Q(9,"div",24),It(10),Y()()(),Q(11,"div")(12,"button",25),Qe("click",function(){const i=Ie(n).$implicit;return Me(ee(3).removeFile(i))}),It(13," \xd7 "),Y()()()}if(2&e){const n=t.$implicit,r=uo(5),o=ee(3);let i;se("ngClass",Xi(6,hx,n.isUploaded)),ie(3),se("ngIf",(null==n?null:n._file)&&(null==n||null==n._file||null==n._file.type?null:n._file.type.startsWith("image/")))("ngIfElse",r),ie(4),se("title",n.file.name),ie(1),Wi(o.truncateFileName(null!==(i=n.file.name)&&void 0!==i?i:"",20)),ie(2),po(" ",o.formatFileSize(n.file.size)," ")}}function gx(e,t){if(1&e&&(Q(0,"div",15),Ze(1,px,14,8,"div",16),Y()),2&e){const n=ee(2);ie(1),se("ngForOf",n.uploader.queue)}}function mx(e,t){if(1&e&&nt(0,"img",26),2&e){const n=ee(2).$implicit;se("src",n.previewUrl,Qr)("alt",n.fileName)}}function yx(e,t){if(1&e&&(co(0),Ze(1,mx,1,2,"img",34),lo()),2&e){const n=ee().$implicit;ie(1),se("ngIf",n.previewUrl)}}function vx(e,t){1&e&&(Yo(),Q(0,"svg",27),nt(1,"path",28)(2,"path",29),Y())}function Dx(e,t){if(1&e){const n=fo();Q(0,"div",32)(1,"button",25),Qe("click",function(){const i=Ie(n).$implicit;return Me(ee(3).removeAttachment(i))}),It(2," \xd7 "),Y(),Q(3,"div",18)(4,"div",19),Ze(5,yx,2,1,"ng-container",20),Ze(6,vx,3,0,"ng-template",null,33,sc),Y(),Q(8,"div",22)(9,"div",23),It(10),Y(),Q(11,"div",24),It(12),Y()()()()}if(2&e){const n=t.$implicit,r=uo(7),o=ee(3);ie(5),se("ngIf",o.isImageFile(n.fileName))("ngIfElse",r),ie(4),se("title",n.fileName),ie(1),Wi(o.truncateFileName(n.fileName,20)),ie(2),po(" ",o.formatFileSize(null==n?null:n.fileSize)," ")}}function _x(e,t){if(1&e&&(Q(0,"div",30),Ze(1,Dx,13,5,"div",31),Y()),2&e){const n=ee(2);ie(1),se("ngForOf",n.attachments)}}const wx=function(e){return{"file-over":e}};function Cx(e,t){if(1&e){const n=fo();Q(0,"div")(1,"div",3),Qe("drop",function(o){return Ie(n),Me(ee().onDrop(o))})("dragover",function(o){return Ie(n),Me(ee().onDragOver(o))})("dragleave",function(o){return Ie(n),Me(ee().onDragLeave(o))}),Q(2,"div",4)(3,"div",5),Qe("click",function(){return Ie(n),Me(ee().openFileDialog())}),Yo(),Q(4,"svg",6),nt(5,"path",7)(6,"path",8)(7,"path",9),Y()(),function Ud(){!function j_(){I.lFrame.currentNamespace=null}()}(),Q(8,"p"),It(9," Drag & Drop or to "),Q(10,"span",10),Qe("click",function(){return Ie(n),Me(ee().openFileDialog())}),It(11,"Choose file"),Y(),It(12," to upload "),Y()(),Q(13,"input",11,12),Qe("change",function(o){return Ie(n),Me(ee().onFileSelected(o))}),Y()(),Ze(15,gx,2,1,"div",13),Ze(16,_x,2,1,"div",14),Y()}if(2&e){const n=ee();ie(1),se("ngClass",Xi(4,wx,n.hasAnotherDropZoneOver)),ie(12),se("multiple",n.multiple),ie(2),se("ngIf",((null==n.uploader||null==n.uploader.queue?null:n.uploader.queue.length)||0)>0),ie(1),se("ngIf",((null==n.attachments?null:n.attachments.length)||0)>0)}}function Ex(e,t){1&e&&nt(0,"img",46),2&e&&se("src",ee(2).previewUrl,Qr)}const Ix=function(e){return{"another-file-over-class":e}};function Mx(e,t){if(1&e){const n=fo();Q(0,"div",35)(1,"div",36),Qe("drop",function(o){return Ie(n),Me(ee().onDrop(o))})("dragover",function(o){return Ie(n),Me(ee().onDragOver(o))})("dragleave",function(o){return Ie(n),Me(ee().onDragLeave(o))}),Q(2,"div",37),Qe("click",function(){return Ie(n),Me(uo(9).click())}),Ze(3,Ex,1,1,"img",38),Y(),Q(4,"button",39),Qe("click",function(){return Ie(n),Me(uo(9).click())}),nt(5,"i",40),Y(),Q(6,"button",41),Qe("click",function(){Ie(n);const o=ee();return Me(o.removeFile(o.uploader.queue[0]))}),nt(7,"i",42),Y(),nt(8,"input",43,12)(10,"div",44),Y(),nt(11,"div",45),Y()}if(2&e){const n=ee();ie(2),se("ngClass",Xi(3,Ix,n.hasAnotherDropZoneOver)),ie(1),se("ngIf",n.previewUrl),ie(5),se("uploader",n.uploader)}}let bx=(()=>{class e{constructor(){var n;this.hasBaseDropZoneOver=!1,this.hasAnotherDropZoneOver=!1,this.response="",this.total=0,this.previewUrl=null,this.deletedAttachments=[],this.totalSize="",this.fileAllowed=[],this.multiple=!1,this.avatarPicker=!1,this.attachments=[],this.fileSize="",this.fileTypeNotAllowed=new Ae,this.fileSizeAllowed=new Ae,this.finalArray=new Ae,this.deleteFiles=new Ae,this.imagePreviews={},this.uploader=new ix({url:"URL",disableMultipart:!0,formatDataFunctionIsAsync:!0,formatDataFunction:(n=function cx(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(u){mv(i,r,o,s,a,"next",u)}function a(u){mv(i,r,o,s,a,"throw",u)}s(void 0)})}}(function*(r){return new Promise((o,i)=>{o({name:r._file.name,length:r._file.size,contentType:r._file.type,date:new Date})})}),function(o){return n.apply(this,arguments)})}),this.uploader.onAfterAddingFile=n=>this.onAfterAddingFile(n),this.hasBaseDropZoneOver=!1,this.hasAnotherDropZoneOver=!1,this.response="",this.uploader.response.subscribe(n=>this.response=n)}ngOnInit(){this.avatarPicker&&(this.multiple=!1,this.fileAllowed=["image/jpeg","image/png","image/svg+xml","image/webp"]),this.files&&this.files.length>0&&this.rebindFilesToQueue(this.files)}rebindFilesToQueue(n){n.forEach(r=>{const o=r.file.rawFile||r,i=new File([o],o.name,{type:o.type}),s=new gv(this.uploader,i,this.uploader.options);this.uploader.queue.push(s),i.type.startsWith("image/")&&this.generateImagePreview(i)})}fileOverBase(n){this.hasBaseDropZoneOver=n}fileOverAnother(n){this.hasAnotherDropZoneOver=n}save(n){this.finalArray.emit(this.uploader.queue)}onAfterAddingFile(n){const r=n._file;!this.multiple&&this.uploader.queue?.length>1&&this.uploader.removeFromQueue(this.uploader.queue[0]),this.uploadFiles(n),this.finalArray.emit(this.uploader.queue),!this.multiple&&this.attachments?.length>0&&this.removeAttachment(this.attachments[0]),this.isFileTypeAllowed(r)?(r.type.startsWith("image/")&&this.generateImagePreview(r),this.avatarPicker&&this.showPreview(r)):(this.fileTypeNotAllowed.emit(r.type),this.uploader.removeFromQueue(n))}generateImagePreview(n){const r=new FileReader;r.onload=()=>{this.imagePreviews[n.name]=r.result},r.readAsDataURL(n)}isImageFile(n){return/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/i.test(n)}isFileTypeAllowed(n){return this.fileAllowed.includes(n.type)}uploadFiles(n){if(this.fileSize&&n._file.size>this.fileSize)return this.fileSizeAllowed.emit("File size exceeds the limit"),this.uploader.removeFromQueue(n),void(this.fileInput?.nativeElement&&(this.fileInput.nativeElement.value=""));this.total=0;for(const r of this.uploader.queue)this.total+=r._file.size;this.total>this.totalSize&&(this.fileSizeAllowed.emit("Total size exceeds the limit"),this.uploader.removeFromQueue(n))}openFileDialog(){this.fileInput.nativeElement.click()}onFileSelected(n){const r=n.target.files;if(r)for(let o=0;o<r.length;o++)this.uploader.addToQueue([r[o]])}removeFile(n){delete this.imagePreviews[n._file.name],n.remove(),this.finalArray.emit(this.uploader.queue),this.previewUrl="",this.fileInput?.nativeElement&&(this.fileInput.nativeElement.value="")}onDrop(n){n.preventDefault(),n.stopPropagation();const r=n.dataTransfer?.files;if(r){const o=Array.from(r);this.uploader.addToQueue(o)}}onDragOver(n){n.preventDefault(),n.stopPropagation(),this.hasAnotherDropZoneOver=!0}onDragLeave(n){n.preventDefault(),n.stopPropagation(),this.hasAnotherDropZoneOver=!1}showPreview(n){if(this.uploader.queue.length>0){const r=new FileReader;r.onload=()=>{this.previewUrl=r.result},r.readAsDataURL(n)}}removeAttachment(n){this.attachments=this.attachments.filter(r=>r.fileId!==n.fileId),this.deletedAttachments.push(n.fileId),this.deleteFiles.emit(this.deletedAttachments)}formatFileSize(n){if(!n)return"";const r=["Bytes","KB","MB","GB","TB"];let o=0;for(;n>=1024&&o<r.length-1;)n/=1024,o++;return`${n.toFixed(2)} ${r[o]}`}truncateFileName(n,r){if(!n||n.length<=r)return n;const o=n.lastIndexOf(".");if(-1===o||0===o)return n;const i=n.slice(0,o),s=n.slice(o),a=r-s.length-3;return(i.length>a?i.slice(0,a)+"...":i)+s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Kl({type:e,selectors:[["lib-docUpload"]],viewQuery:function(r,o){if(1&r&&bm(lx,5),2&r){let i;Mm(i=function Sm(){return function qb(e,t){return e[gt].queries[t].queryList}(y(),Ld())}())&&(o.fileInput=i.first)}},inputs:{totalSize:"totalSize",fileAllowed:"fileAllowed",multiple:"multiple",avatarPicker:"avatarPicker",attachments:"attachments",files:"files",fileSize:"fileSize"},outputs:{fileTypeNotAllowed:"fileTypeNotAllowed",fileSizeAllowed:"fileSizeAllowed",finalArray:"finalArray",deleteFiles:"deleteFiles"},decls:3,vars:2,consts:[[1,"upload-container"],[4,"ngIf"],["class","row avatar-picker-container",4,"ngIf"],[1,"upload-dropzone",3,"ngClass","drop","dragover","dragleave"],[1,"dropzone-content"],["aria-label","Upload","title","Click to choose file",1,"upload-icon",3,"click"],["width","29","height","29","viewBox","0 0 29 29","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M14.5001 8.45833L14.5001 25.375","stroke","#084FFF","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M3.625 8.45898C3.625 5.78977 5.78912 3.62565 8.45833 3.62565L20.5417 3.62565C23.2109 3.62565 25.375 5.78978 25.375 8.45898","stroke","#084FFF","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M8.45843 14.5L14.5013 8.45712L20.543 14.5","stroke","#084FFF","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"choose-file-text",3,"click"],["type","file","accept","image/*,video/*,application/*","capture","camera","hidden","",3,"multiple","change"],["fileInput",""],["class","file-queue",4,"ngIf"],["class","existing-attachments",4,"ngIf"],[1,"file-queue"],["class","file-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"file-item",3,"ngClass"],[1,"file-info"],[1,"icon"],[4,"ngIf","ngIfElse"],["showDefaultIcon",""],[1,"text-container"],[1,"file-name",3,"title"],[1,"file-meta"],["type","button","aria-label","Close",1,"close-btn",3,"click"],[1,"preview-image",3,"src","alt"],["width","38","height","38","viewBox","0 0 38 38","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M31.7332 6.26688C38.7662 13.2998 38.7662 24.7006 31.7332 31.7335C24.7003 38.7664 13.2996 38.7664 6.26664 31.7335C-0.766289 24.7006 -0.766289 13.2998 6.26664 6.26688C13.2996 -0.766044 24.7003 -0.766044 31.7332 6.26688","stroke","#084FFF","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M26.0028 13.9373H18.9998L17.5953 11.8705C17.2211 11.3242 16.6028 10.9961 15.9406 10.9961H11.9969C10.8925 10.9961 9.99609 11.8925 9.99609 12.9969V25.0019C9.99609 26.1064 10.8925 27.0028 11.9969 27.0028H26.0028C27.1072 27.0028 28.0036 26.1064 28.0036 25.0019V15.9382C28.0036 14.8337 27.1072 13.9373 26.0028 13.9373Z","stroke","#084FFF","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"existing-attachments"],["class","file-item",4,"ngFor","ngForOf"],[1,"file-item"],["defaultIcon",""],["class","preview-image",3,"src","alt",4,"ngIf"],[1,"row","avatar-picker-container"],[1,"uploader",2,"margin-bottom","40px",3,"drop","dragover","dragleave"],[1,"avatarPicker",3,"ngClass","click"],["alt","File Preview","class","img-responsive preview-img",3,"src",4,"ngIf"],[1,"editIcon",3,"click"],[1,"bi","bi-pencil-fill"],[1,"deleteIcon",3,"click"],[1,"bi","bi-trash"],["type","file","ng2FileSelect","","accept","image/*,video/*,application/*","capture","camera","hidden","",3,"uploader"],[1,"buttons"],[1,"col-sm-2","previewImage",2,"margin-bottom","40px"],["alt","File Preview",1,"img-responsive","preview-img",3,"src"]],template:function(r,o){1&r&&(Q(0,"div",0),Ze(1,Cx,17,6,"div",1),Ze(2,Mx,12,5,"div",2),Y()),2&r&&(ie(1),se("ngIf",!o.avatarPicker),ie(1),se("ngIf",o.avatarPicker))},dependencies:[jy,By,$y,sx],styles:[".upload-container[_ngcontent-%COMP%]{max-width:600px;margin:0 auto;padding:5px;font-family:sans-serif}.upload-dropzone[_ngcontent-%COMP%]{border:2px dashed #d8d8d8;border-radius:8px;padding:2rem;text-align:center;position:relative;cursor:pointer;transition:border-color .3s ease;width:100%}.upload-dropzone.file-over[_ngcontent-%COMP%]{border-color:#0f62fe;background-color:#f7faff}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] .upload-icon[_ngcontent-%COMP%]{margin-bottom:.5rem;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6f6f6f;font-size:.95rem;margin:0}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] .choose-file-text[_ngcontent-%COMP%]{color:#0f62fe;cursor:pointer;margin:0 4px}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] .choose-file-text[_ngcontent-%COMP%]:hover{color:#0043ce}.file-queue[_ngcontent-%COMP%]{margin:1rem 0}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;background:#f5f6f8;border-radius:8px;padding:1rem;margin-bottom:1rem}.file-queue[_ngcontent-%COMP%] .file-item.upload-complete[_ngcontent-%COMP%]{background-color:#f2f9ee;border:1px solid #c9e2b3}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%]{display:flex;align-items:center}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:15px}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;padding-right:40px;overflow:hidden}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{font-size:1rem;color:#222;word-break:break-all}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-meta[_ngcontent-%COMP%]{font-size:.85rem;color:#9fa5b3}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;background:none;border:none;font-size:1.2rem;line-height:1;cursor:pointer;color:#333}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{color:#000}.existing-attachments[_ngcontent-%COMP%]{margin:1rem 0}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;background:#f5f6f8;border-radius:8px;padding:1rem;margin-bottom:1rem}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;background:none;border:none;font-size:1.2rem;cursor:pointer;color:#333}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%]{display:flex;align-items:center}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:15px}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;padding-right:40px;overflow:hidden}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{font-size:1rem;color:#222;word-break:break-all}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-meta[_ngcontent-%COMP%]{font-size:.85rem;color:#9fa5b3}.avatar-picker-container[_ngcontent-%COMP%] .uploader[_ngcontent-%COMP%]{position:relative}.avatar-picker-container[_ngcontent-%COMP%] .avatarPicker[_ngcontent-%COMP%]{border:1px solid #aaa;text-align:center;background-color:#f9f9f9;cursor:pointer;height:300px;width:300px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%}.avatar-picker-container[_ngcontent-%COMP%] .another-file-over-class[_ngcontent-%COMP%]{border-color:#5cb85c}.avatar-picker-container[_ngcontent-%COMP%] .deleteIcon[_ngcontent-%COMP%]{position:absolute;z-index:999;bottom:12%;left:41%;border-radius:50%;border:.1rem solid #aaa;background:#fff;width:40px;height:40px}.avatar-picker-container[_ngcontent-%COMP%] .editIcon[_ngcontent-%COMP%]{position:absolute;z-index:999;bottom:13%;left:3%;border-radius:50%;border:.1rem solid #aaa;background:#fff;width:40px;height:40px}.avatar-picker-container[_ngcontent-%COMP%] .preview-img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%}.avatar-picker-container[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:10px;display:flex;justify-content:space-around}.preview-image[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:50%}"]})}return e})(),Sx=(()=>{class e{constructor(n){this.injector=n}ngDoBootstrap(){const n=function nx(e,t){const n=function QN(e,t){return t.get(Kn).resolveComponentFactory(e).inputs}(e,t.injector),r=t.strategyFactory||new JN(e,t.injector),o=function ZN(e){const t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[function UN(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=[n,o]}),t}(n);class i extends tx{static#e=this.observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:u,transform:c})=>{if(!this.hasOwnProperty(u))return;const l=this[u];delete this[u],a.setInputValue(u,l,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,u,c,l){const[d,f]=o[a];this.ngElementStrategy.setInputValue(d,c,f)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const u=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(u)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(i.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(u){this.ngElementStrategy.setInputValue(s,u,a)},configurable:!0,enumerable:!0})}),i}(bx,{injector:this.injector});customElements.define("octa-file-upload-webcomponent",n)}static#e=this.\u0275fac=function(r){return new(r||e)(k(et))};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=zt({imports:[RN,ux]})}return e})();FN().bootstrapModule(Sx).catch(e=>console.error(e))}},re=>{re(re.s=933)}]);
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@piserve-tech/octa-file-upload-webcomponent",
3
+ "version": "1.0.0",
4
+ "description": "Distributable web component build for file upload (bundle.js, bundle.css, fonts, icons)",
5
+ "main": "dist/bundle.js",
6
+ "style": "dist/bundle.css",
7
+ "files": [
8
+ "dist/bundle.js",
9
+ "dist/bundle.css",
10
+ "dist/assets/fonts",
11
+ "dist/assets/icons",
12
+ "copy-assets.js"
13
+ ],
14
+ "scripts": {
15
+ "ng": "ng",
16
+ "start": "ng serve",
17
+ "build": "ng build",
18
+ "watch": "ng build --watch --configuration development",
19
+ "test": "ng test",
20
+ "webcomponent:prodbuild": "ng build octa-file-upload-webcomponent --configuration production && node projects/octa-file-upload-webcomponent/concat-webcomponent.js && node projects/octa-file-upload-webcomponent/concat-css.js && node projects/octa-file-upload-webcomponent/copy-assets-to-dist.js && node package-webcomponent.js && node update-bundle-assets.js",
21
+ "webcomponent:devbuild": "ng build octa-file-upload-webcomponent --configuration development && node projects/octa-file-upload-webcomponent/concat-webcomponent.js && node projects/octa-file-upload-webcomponent/concat-css.js && node projects/octa-file-upload-webcomponent/copy-assets-to-dist.js && node package-webcomponent.js && node update-bundle-assets.js",
22
+ "webcomponent:publish": "npm run webcomponent:prodbuild && npm publish && npm i @piserve-tech/octa-file-upload-webcomponent@latest",
23
+ "assets:to-nodemodules": "node copy-assets.js"
24
+
25
+ },
26
+ "dependencies": {
27
+ "@angular/animations": "^16.1.0",
28
+ "@angular/common": "^16.1.0",
29
+ "@angular/compiler": "^16.1.0",
30
+ "@angular/core": "^16.1.0",
31
+ "@angular/elements": "^16.1.3",
32
+ "@angular/forms": "^16.1.0",
33
+ "@angular/platform-browser": "^16.1.0",
34
+ "@angular/platform-browser-dynamic": "^16.1.0",
35
+ "@angular/router": "^16.1.0",
36
+ "@webcomponents/custom-elements": "^1.6.0",
37
+ "bootstrap": "^5.3.2",
38
+ "bootstrap-icons": "^1.11.3",
39
+ "ng2-file-upload": "^5.0.0",
40
+ "rxjs": "~7.8.0",
41
+ "tslib": "^2.3.0",
42
+ "zone.js": "~0.13.0"
43
+ },
44
+ "devDependencies": {
45
+ "@angular-devkit/build-angular": "^16.1.8",
46
+ "@angular/cli": "~16.1.8",
47
+ "@angular/compiler-cli": "^16.1.0",
48
+ "@types/jasmine": "~4.3.0",
49
+ "jasmine-core": "~4.6.0",
50
+ "karma": "~6.4.0",
51
+ "karma-chrome-launcher": "~3.2.0",
52
+ "karma-coverage": "~2.2.0",
53
+ "karma-jasmine": "~5.1.0",
54
+ "karma-jasmine-html-reporter": "~2.1.0",
55
+ "ng-packagr": "^16.0.0",
56
+ "typescript": "~5.1.3"
57
+ }
58
+ }