@andersbakken/fisk-scheduler-ui 1.0.0 → 1.0.1

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.
@@ -0,0 +1,17 @@
1
+ var dI=Object.create;var yh=Object.defineProperty,uI=Object.defineProperties,hI=Object.getOwnPropertyDescriptor,fI=Object.getOwnPropertyDescriptors,mI=Object.getOwnPropertyNames,cc=Object.getOwnPropertySymbols,pI=Object.getPrototypeOf,wh=Object.prototype.hasOwnProperty,tv=Object.prototype.propertyIsEnumerable;var ev=(i,t,e)=>t in i?yh(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,k=(i,t)=>{for(var e in t||={})wh.call(t,e)&&ev(i,e,t[e]);if(cc)for(var e of cc(t))tv.call(t,e)&&ev(i,e,t[e]);return i},De=(i,t)=>uI(i,fI(t));var xh=(i,t)=>{var e={};for(var n in i)wh.call(i,n)&&t.indexOf(n)<0&&(e[n]=i[n]);if(i!=null&&cc)for(var n of cc(i))t.indexOf(n)<0&&tv.call(i,n)&&(e[n]=i[n]);return e};var sn=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var gI=(i,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of mI(t))!wh.call(i,r)&&r!==e&&yh(i,r,{get:()=>t[r],enumerable:!(n=hI(t,r))||n.enumerable});return i};var iv=(i,t,e)=>(e=i!=null?dI(pI(i)):{},gI(t||!i||!i.__esModule?yh(e,"default",{value:i,enumerable:!0}):e,i));var lc=(i,t,e)=>new Promise((n,r)=>{var o=c=>{try{a(e.next(c))}catch(l){r(l)}},s=c=>{try{a(e.throw(c))}catch(l){r(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((e=e.apply(i,t)).next())});var kE=sn((IE,Hb)=>{(function(i,t,e){function n(a){var c=this,l=s();c.next=function(){var d=2091639*c.s0+c.c*23283064365386963e-26;return c.s0=c.s1,c.s1=c.s2,c.s2=d-(c.c=d|0)},c.c=1,c.s0=l(" "),c.s1=l(" "),c.s2=l(" "),c.s0-=l(a),c.s0<0&&(c.s0+=1),c.s1-=l(a),c.s1<0&&(c.s1+=1),c.s2-=l(a),c.s2<0&&(c.s2+=1),l=null}function r(a,c){return c.c=a.c,c.s0=a.s0,c.s1=a.s1,c.s2=a.s2,c}function o(a,c){var l=new n(a),d=c&&c.state,u=l.next;return u.int32=function(){return l.next()*4294967296|0},u.double=function(){return u()+(u()*2097152|0)*11102230246251565e-32},u.quick=u,d&&(typeof d=="object"&&r(d,l),u.state=function(){return r(l,{})}),u}function s(){var a=4022871197,c=function(l){l=String(l);for(var d=0;d<l.length;d++){a+=l.charCodeAt(d);var u=.02519603282416938*a;a=u>>>0,u-=a,u*=a,a=u>>>0,u-=a,a+=u*4294967296}return(a>>>0)*23283064365386963e-26};return c}t&&t.exports?t.exports=o:e&&e.amd?e(function(){return o}):this.alea=o})(IE,typeof Hb=="object"&&Hb,typeof define=="function"&&define)});var SE=sn((ME,Ub)=>{(function(i,t,e){function n(s){var a=this,c="";a.x=0,a.y=0,a.z=0,a.w=0,a.next=function(){var d=a.x^a.x<<11;return a.x=a.y,a.y=a.z,a.z=a.w,a.w^=a.w>>>19^d^d>>>8},s===(s|0)?a.x=s:c+=s;for(var l=0;l<c.length+64;l++)a.x^=c.charCodeAt(l)|0,a.next()}function r(s,a){return a.x=s.x,a.y=s.y,a.z=s.z,a.w=s.w,a}function o(s,a){var c=new n(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,f=(c.next()>>>0)/4294967296,h=(u+f)/(1<<21);while(h===0);return h},d.int32=c.next,d.quick=d,l&&(typeof l=="object"&&r(l,c),d.state=function(){return r(c,{})}),d}t&&t.exports?t.exports=o:e&&e.amd?e(function(){return o}):this.xor128=o})(ME,typeof Ub=="object"&&Ub,typeof define=="function"&&define)});var TE=sn((AE,$b)=>{(function(i,t,e){function n(s){var a=this,c="";a.next=function(){var d=a.x^a.x>>>2;return a.x=a.y,a.y=a.z,a.z=a.w,a.w=a.v,(a.d=a.d+362437|0)+(a.v=a.v^a.v<<4^(d^d<<1))|0},a.x=0,a.y=0,a.z=0,a.w=0,a.v=0,s===(s|0)?a.x=s:c+=s;for(var l=0;l<c.length+64;l++)a.x^=c.charCodeAt(l)|0,l==c.length&&(a.d=a.x<<10^a.x>>>4),a.next()}function r(s,a){return a.x=s.x,a.y=s.y,a.z=s.z,a.w=s.w,a.v=s.v,a.d=s.d,a}function o(s,a){var c=new n(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,f=(c.next()>>>0)/4294967296,h=(u+f)/(1<<21);while(h===0);return h},d.int32=c.next,d.quick=d,l&&(typeof l=="object"&&r(l,c),d.state=function(){return r(c,{})}),d}t&&t.exports?t.exports=o:e&&e.amd?e(function(){return o}):this.xorwow=o})(AE,typeof $b=="object"&&$b,typeof define=="function"&&define)});var OE=sn((RE,Wb)=>{(function(i,t,e){function n(s){var a=this;a.next=function(){var l=a.x,d=a.i,u,f,h;return u=l[d],u^=u>>>7,f=u^u<<24,u=l[d+1&7],f^=u^u>>>10,u=l[d+3&7],f^=u^u>>>3,u=l[d+4&7],f^=u^u<<7,u=l[d+7&7],u=u^u<<13,f^=u^u<<9,l[d]=f,a.i=d+1&7,f};function c(l,d){var u,f,h=[];if(d===(d|0))f=h[0]=d;else for(d=""+d,u=0;u<d.length;++u)h[u&7]=h[u&7]<<15^d.charCodeAt(u)+h[u+1&7]<<13;for(;h.length<8;)h.push(0);for(u=0;u<8&&h[u]===0;++u);for(u==8?f=h[7]=-1:f=h[u],l.x=h,l.i=0,u=256;u>0;--u)l.next()}c(a,s)}function r(s,a){return a.x=s.x.slice(),a.i=s.i,a}function o(s,a){s==null&&(s=+new Date);var c=new n(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,f=(c.next()>>>0)/4294967296,h=(u+f)/(1<<21);while(h===0);return h},d.int32=c.next,d.quick=d,l&&(l.x&&r(l,c),d.state=function(){return r(c,{})}),d}t&&t.exports?t.exports=o:e&&e.amd?e(function(){return o}):this.xorshift7=o})(RE,typeof Wb=="object"&&Wb,typeof define=="function"&&define)});var PE=sn((NE,qb)=>{(function(i,t,e){function n(s){var a=this;a.next=function(){var l=a.w,d=a.X,u=a.i,f,h;return a.w=l=l+1640531527|0,h=d[u+34&127],f=d[u=u+1&127],h^=h<<13,f^=f<<17,h^=h>>>15,f^=f>>>12,h=d[u]=h^f,a.i=u,h+(l^l>>>16)|0};function c(l,d){var u,f,h,m,p,v=[],E=128;for(d===(d|0)?(f=d,d=null):(d=d+"\0",f=0,E=Math.max(E,d.length)),h=0,m=-32;m<E;++m)d&&(f^=d.charCodeAt((m+32)%d.length)),m===0&&(p=f),f^=f<<10,f^=f>>>15,f^=f<<4,f^=f>>>13,m>=0&&(p=p+1640531527|0,u=v[m&127]^=f+p,h=u==0?h+1:0);for(h>=128&&(v[(d&&d.length||0)&127]=-1),h=127,m=4*128;m>0;--m)f=v[h+34&127],u=v[h=h+1&127],f^=f<<13,u^=u<<17,f^=f>>>15,u^=u>>>12,v[h]=f^u;l.w=p,l.X=v,l.i=h}c(a,s)}function r(s,a){return a.i=s.i,a.w=s.w,a.X=s.X.slice(),a}function o(s,a){s==null&&(s=+new Date);var c=new n(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,f=(c.next()>>>0)/4294967296,h=(u+f)/(1<<21);while(h===0);return h},d.int32=c.next,d.quick=d,l&&(l.X&&r(l,c),d.state=function(){return r(c,{})}),d}t&&t.exports?t.exports=o:e&&e.amd?e(function(){return o}):this.xor4096=o})(NE,typeof qb=="object"&&qb,typeof define=="function"&&define)});var LE=sn((FE,Gb)=>{(function(i,t,e){function n(s){var a=this,c="";a.next=function(){var d=a.b,u=a.c,f=a.d,h=a.a;return d=d<<25^d>>>7^u,u=u-f|0,f=f<<24^f>>>8^h,h=h-d|0,a.b=d=d<<20^d>>>12^u,a.c=u=u-f|0,a.d=f<<16^u>>>16^h,a.a=h-d|0},a.a=0,a.b=0,a.c=-1640531527,a.d=1367130551,s===Math.floor(s)?(a.a=s/4294967296|0,a.b=s|0):c+=s;for(var l=0;l<c.length+20;l++)a.b^=c.charCodeAt(l)|0,a.next()}function r(s,a){return a.a=s.a,a.b=s.b,a.c=s.c,a.d=s.d,a}function o(s,a){var c=new n(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,f=(c.next()>>>0)/4294967296,h=(u+f)/(1<<21);while(h===0);return h},d.int32=c.next,d.quick=d,l&&(typeof l=="object"&&r(l,c),d.state=function(){return r(c,{})}),d}t&&t.exports?t.exports=o:e&&e.amd?e(function(){return o}):this.tychei=o})(FE,typeof Gb=="object"&&Gb,typeof define=="function"&&define)});var jE=sn(()=>{});var BE=sn((VE,ah)=>{(function(i,t,e){var n=256,r=6,o=52,s="random",a=e.pow(n,r),c=e.pow(2,o),l=c*2,d=n-1,u;function f(C,N,L){var B=[];N=N==!0?{entropy:!0}:N||{};var W=v(p(N.entropy?[C,A(t)]:C??E(),3),B),ee=new h(B),he=function(){for(var ze=ee.g(r),H=a,Ye=0;ze<c;)ze=(ze+Ye)*n,H*=n,Ye=ee.g(1);for(;ze>=l;)ze/=2,H/=2,Ye>>>=1;return(ze+Ye)/H};return he.int32=function(){return ee.g(4)|0},he.quick=function(){return ee.g(4)/4294967296},he.double=he,v(A(ee.S),t),(N.pass||L||function(ze,H,Ye,Ve){return Ve&&(Ve.S&&m(Ve,ee),ze.state=function(){return m(ee,{})}),Ye?(e[s]=ze,H):ze})(he,W,"global"in N?N.global:this==e,N.state)}function h(C){var N,L=C.length,B=this,W=0,ee=B.i=B.j=0,he=B.S=[];for(L||(C=[L++]);W<n;)he[W]=W++;for(W=0;W<n;W++)he[W]=he[ee=d&ee+C[W%L]+(N=he[W])],he[ee]=N;(B.g=function(ze){for(var H,Ye=0,Ve=B.i,st=B.j,St=B.S;ze--;)H=St[Ve=d&Ve+1],Ye=Ye*n+St[d&(St[Ve]=St[st=d&st+H])+(St[st]=H)];return B.i=Ve,B.j=st,Ye})(n)}function m(C,N){return N.i=C.i,N.j=C.j,N.S=C.S.slice(),N}function p(C,N){var L=[],B=typeof C,W;if(N&&B=="object")for(W in C)try{L.push(p(C[W],N-1))}catch{}return L.length?L:B=="string"?C:C+"\0"}function v(C,N){for(var L=C+"",B,W=0;W<L.length;)N[d&W]=d&(B^=N[d&W]*19)+L.charCodeAt(W++);return A(N)}function E(){try{var C;return u&&(C=u.randomBytes)?C=C(n):(C=new Uint8Array(n),(i.crypto||i.msCrypto).getRandomValues(C)),A(C)}catch{var N=i.navigator,L=N&&N.plugins;return[+new Date,i,L,i.screen,A(t)]}}function A(C){return String.fromCharCode.apply(0,C)}if(v(e.random(),t),typeof ah=="object"&&ah.exports){ah.exports=f;try{u=jE()}catch{}}else typeof define=="function"&&define.amd?define(function(){return f}):e["seed"+s]=f})(typeof self<"u"?self:VE,[],Math)});var Yb=sn((jY,zE)=>{var WV=kE(),qV=SE(),GV=TE(),YV=OE(),KV=PE(),QV=LE(),lo=BE();lo.alea=WV;lo.xor128=qV;lo.xorwow=GV;lo.xorshift7=YV;lo.xor4096=KV;lo.tychei=QV;zE.exports=lo});function nv(i,t){return Object.is(i,t)}var mt=null,ks=!1,dc=1,oi=Symbol("SIGNAL");function Oe(i){let t=mt;return mt=i,t}function rv(){return mt}function bI(){return ks}var po={version:0,lastCleanEpoch: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:()=>{},consumerOnSignalRead:()=>{}};function Ih(i){if(ks)throw new Error("");if(mt===null)return;mt.consumerOnSignalRead(i);let t=mt.nextProducerIndex++;if(gc(mt),t<mt.producerNode.length&&mt.producerNode[t]!==i&&Ms(mt)){let e=mt.producerNode[t];pc(e,mt.producerIndexOfThis[t])}mt.producerNode[t]!==i&&(mt.producerNode[t]=i,mt.producerIndexOfThis[t]=Ms(mt)?lv(i,mt,t):0),mt.producerLastReadVersion[t]=i.version}function vI(){dc++}function ov(i){if(!(Ms(i)&&!i.dirty)&&!(!i.dirty&&i.lastCleanEpoch===dc)){if(!i.producerMustRecompute(i)&&!fc(i)){i.dirty=!1,i.lastCleanEpoch=dc;return}i.producerRecomputeValue(i),i.dirty=!1,i.lastCleanEpoch=dc}}function sv(i){if(i.liveConsumerNode===void 0)return;let t=ks;ks=!0;try{for(let e of i.liveConsumerNode)e.dirty||cv(e)}finally{ks=t}}function av(){return mt?.consumerAllowSignalWrites!==!1}function cv(i){i.dirty=!0,sv(i),i.consumerMarkedDirty?.(i)}function Ss(i){return i&&(i.nextProducerIndex=0),Oe(i)}function hc(i,t){if(Oe(t),!(!i||i.producerNode===void 0||i.producerIndexOfThis===void 0||i.producerLastReadVersion===void 0)){if(Ms(i))for(let e=i.nextProducerIndex;e<i.producerNode.length;e++)pc(i.producerNode[e],i.producerIndexOfThis[e]);for(;i.producerNode.length>i.nextProducerIndex;)i.producerNode.pop(),i.producerLastReadVersion.pop(),i.producerIndexOfThis.pop()}}function fc(i){gc(i);for(let t=0;t<i.producerNode.length;t++){let e=i.producerNode[t],n=i.producerLastReadVersion[t];if(n!==e.version||(ov(e),n!==e.version))return!0}return!1}function mc(i){if(gc(i),Ms(i))for(let t=0;t<i.producerNode.length;t++)pc(i.producerNode[t],i.producerIndexOfThis[t]);i.producerNode.length=i.producerLastReadVersion.length=i.producerIndexOfThis.length=0,i.liveConsumerNode&&(i.liveConsumerNode.length=i.liveConsumerIndexOfThis.length=0)}function lv(i,t,e){if(dv(i),i.liveConsumerNode.length===0&&uv(i))for(let n=0;n<i.producerNode.length;n++)i.producerIndexOfThis[n]=lv(i.producerNode[n],i,n);return i.liveConsumerIndexOfThis.push(e),i.liveConsumerNode.push(t)-1}function pc(i,t){if(dv(i),i.liveConsumerNode.length===1&&uv(i))for(let n=0;n<i.producerNode.length;n++)pc(i.producerNode[n],i.producerIndexOfThis[n]);let e=i.liveConsumerNode.length-1;if(i.liveConsumerNode[t]=i.liveConsumerNode[e],i.liveConsumerIndexOfThis[t]=i.liveConsumerIndexOfThis[e],i.liveConsumerNode.length--,i.liveConsumerIndexOfThis.length--,t<i.liveConsumerNode.length){let n=i.liveConsumerIndexOfThis[t],r=i.liveConsumerNode[t];gc(r),r.producerIndexOfThis[n]=t}}function Ms(i){return i.consumerIsAlwaysLive||(i?.liveConsumerNode?.length??0)>0}function gc(i){i.producerNode??=[],i.producerIndexOfThis??=[],i.producerLastReadVersion??=[]}function dv(i){i.liveConsumerNode??=[],i.liveConsumerIndexOfThis??=[]}function uv(i){return i.producerNode!==void 0}function kh(i){let t=Object.create(_I);t.computation=i;let e=()=>{if(ov(t),Ih(t),t.value===uc)throw t.error;return t.value};return e[oi]=t,e}var Ch=Symbol("UNSET"),Dh=Symbol("COMPUTING"),uc=Symbol("ERRORED"),_I=De(k({},po),{value:Ch,dirty:!0,error:null,equal:nv,producerMustRecompute(i){return i.value===Ch||i.value===Dh},producerRecomputeValue(i){if(i.value===Dh)throw new Error("Detected cycle in computations.");let t=i.value;i.value=Dh;let e=Ss(i),n;try{n=i.computation()}catch(r){n=uc,i.error=r}finally{hc(i,e)}if(t!==Ch&&t!==uc&&n!==uc&&i.equal(t,n)){i.value=t;return}i.value=n,i.version++}});function yI(){throw new Error}var hv=yI;function fv(){hv()}function mv(i){hv=i}var wI=null;function pv(i){let t=Object.create(bv);t.value=i;let e=()=>(Ih(t),t.value);return e[oi]=t,e}function Mh(i,t){av()||fv(),i.equal(i.value,t)||(i.value=t,xI(i))}function gv(i,t){av()||fv(),Mh(i,t(i.value))}var bv=De(k({},po),{equal:nv,value:void 0});function xI(i){i.version++,vI(),sv(i),wI?.()}function vv(i,t,e){let n=Object.create(CI);e&&(n.consumerAllowSignalWrites=!0),n.fn=i,n.schedule=t;let r=c=>{n.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(mc(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Eh)}let a=()=>{if(n.fn===null)return;if(bI())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!fc(n))return;n.hasRun=!0;let c=Ss(n);try{n.cleanupFn(),n.cleanupFn=Eh,n.fn(r)}finally{hc(n,c)}};return n.ref={notify:()=>cv(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[oi]:n},n.ref}var Eh=()=>{},CI=De(k({},po),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:i=>{i.schedule!==null&&i.schedule(i.ref)},hasRun:!1,cleanupFn:Eh});function ce(i){return typeof i=="function"}function go(i){let e=i(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var bc=go(i=>function(e){i(this),this.message=e?`${e.length} errors occurred during unsubscription:
2
+ ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=e});function yr(i,t){if(i){let e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Ne=class i{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(ce(n))try{n()}catch(o){t=o instanceof bc?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{_v(o)}catch(s){t=t??[],s instanceof bc?t=[...t,...s.errors]:t.push(s)}}if(t)throw new bc(t)}}add(t){var e;if(t&&t!==this)if(this.closed)_v(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}}_hasParent(t){let{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){let{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&yr(e,t)}remove(t){let{_finalizers:e}=this;e&&yr(e,t),t instanceof i&&t._removeParent(this)}};Ne.EMPTY=(()=>{let i=new Ne;return i.closed=!0,i})();var Sh=Ne.EMPTY;function vc(i){return i instanceof Ne||i&&"closed"in i&&ce(i.remove)&&ce(i.add)&&ce(i.unsubscribe)}function _v(i){ce(i)?i():i.unsubscribe()}var wi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var bo={setTimeout(i,t,...e){let{delegate:n}=bo;return n?.setTimeout?n.setTimeout(i,t,...e):setTimeout(i,t,...e)},clearTimeout(i){let{delegate:t}=bo;return(t?.clearTimeout||clearTimeout)(i)},delegate:void 0};function _c(i){bo.setTimeout(()=>{let{onUnhandledError:t}=wi;if(t)t(i);else throw i})}function As(){}var yv=Ah("C",void 0,void 0);function wv(i){return Ah("E",void 0,i)}function xv(i){return Ah("N",i,void 0)}function Ah(i,t,e){return{kind:i,value:t,error:e}}var wr=null;function vo(i){if(wi.useDeprecatedSynchronousErrorHandling){let t=!wr;if(t&&(wr={errorThrown:!1,error:null}),i(),t){let{errorThrown:e,error:n}=wr;if(wr=null,e)throw n}}else i()}function Cv(i){wi.useDeprecatedSynchronousErrorHandling&&wr&&(wr.errorThrown=!0,wr.error=i)}var xr=class extends Ne{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,vc(t)&&t.add(this)):this.destination=II}static create(t,e,n){return new an(t,e,n)}next(t){this.isStopped?Rh(xv(t),this):this._next(t)}error(t){this.isStopped?Rh(wv(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Rh(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()}}},DI=Function.prototype.bind;function Th(i,t){return DI.call(i,t)}var Oh=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(n){yc(n)}}error(t){let{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(n){yc(n)}else yc(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){yc(e)}}},an=class extends xr{constructor(t,e,n){super();let r;if(ce(t)||!t)r={next:t??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&wi.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Th(t.next,o),error:t.error&&Th(t.error,o),complete:t.complete&&Th(t.complete,o)}):r=t}this.destination=new Oh(r)}};function yc(i){wi.useDeprecatedSynchronousErrorHandling?Cv(i):_c(i)}function EI(i){throw i}function Rh(i,t){let{onStoppedNotification:e}=wi;e&&bo.setTimeout(()=>e(i,t))}var II={closed:!0,next:As,error:EI,complete:As};var _o=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Tt(i){return i}function Nh(...i){return Ph(i)}function Ph(i){return i.length===0?Tt:i.length===1?i[0]:function(e){return i.reduce((n,r)=>r(n),e)}}var le=(()=>{class i{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new i;return n.source=this,n.operator=e,n}subscribe(e,n,r){let o=MI(e)?e:new an(e,n,r);return vo(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=Dv(n),new n((r,o)=>{let s=new an({next:a=>{try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[_o](){return this}pipe(...e){return Ph(e)(this)}toPromise(e){return e=Dv(e),new e((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return i.create=t=>new i(t),i})();function Dv(i){var t;return(t=i??wi.Promise)!==null&&t!==void 0?t:Promise}function kI(i){return i&&ce(i.next)&&ce(i.error)&&ce(i.complete)}function MI(i){return i&&i instanceof xr||kI(i)&&vc(i)}function Fh(i){return ce(i?.lift)}function ge(i){return t=>{if(Fh(t))return t.lift(function(e){try{return i(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function pe(i,t,e,n,r){return new Lh(i,t,e,n,r)}var Lh=class extends xr{constructor(t,e,n,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){t.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function yo(){return ge((i,t)=>{let e=null;i._refCount++;let n=pe(t,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount){e=null;return}let r=i._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});i.subscribe(n),n.closed||(e=i.connect())})}var Cr=class extends le{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Fh(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Ne;let e=this.getSubject();t.add(this.source.subscribe(pe(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Ne.EMPTY)}return t}refCount(){return yo()(this)}};var Ev=go(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var $=(()=>{class i extends le{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new wc(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Ev}next(e){vo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){vo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){vo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:r,observers:o}=this;return n||r?Sh:(this.currentObservers=null,o.push(e),new Ne(()=>{this.currentObservers=null,yr(o,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){let e=new le;return e.source=this,e}}return i.create=(t,e)=>new wc(t,e),i})(),wc=class extends ${constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,t)}error(t){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,t)}complete(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0||e.call(t)}_subscribe(t){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&n!==void 0?n:Sh}};var at=class extends ${constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){let{hasError:t,thrownError:e,_value:n}=this;if(t)throw e;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}};var Ts={now(){return(Ts.delegate||Date).now()},delegate:void 0};var xc=class extends ${constructor(t=1/0,e=1/0,n=Ts){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){let{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(n.push(t),!r&&n.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(t),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!t.closed;s+=n?1:2)t.next(o[s]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){let{_bufferSize:t,_timestampProvider:e,_buffer:n,_infiniteTimeWindow:r}=this,o=(r?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!r){let s=e.now(),a=0;for(let c=1;c<n.length&&n[c]<=s;c+=2)a=c;a&&n.splice(0,a+1)}}};var Cc=class extends Ne{constructor(t,e){super()}schedule(t,e=0){return this}};var Rs={setInterval(i,t,...e){let{delegate:n}=Rs;return n?.setInterval?n.setInterval(i,t,...e):setInterval(i,t,...e)},clearInterval(i){let{delegate:t}=Rs;return(t?.clearInterval||clearInterval)(i)},delegate:void 0};var Dc=class extends Cc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var n;if(this.closed)return this;this.state=t;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,n=0){return Rs.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return e;e!=null&&Rs.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(t,e);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r;try{this.work(t)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:t,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,yr(n,this),t!=null&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}};var wo=class i{constructor(t,e=i.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,n){return new this.schedulerActionCtor(this,t).schedule(n,e)}};wo.now=Ts.now;var Ec=class extends wo{constructor(t,e=wo.now){super(t,e),this.actions=[],this._active=!1}flush(t){let{actions:e}=this;if(this._active){e.push(t);return}let n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}};var Os=new Ec(Dc),Iv=Os;var pt=new le(i=>i.complete());function Ic(i){return i&&ce(i.schedule)}function jh(i){return i[i.length-1]}function kc(i){return ce(jh(i))?i.pop():void 0}function Fi(i){return Ic(jh(i))?i.pop():void 0}function kv(i,t){return typeof jh(i)=="number"?i.pop():t}function Sv(i,t,e,n){function r(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(d){try{l(n.next(d))}catch(u){s(u)}}function c(d){try{l(n.throw(d))}catch(u){s(u)}}function l(d){d.done?o(d.value):r(d.value).then(a,c)}l((n=n.apply(i,t||[])).next())})}function Mv(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],n=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dr(i){return this instanceof Dr?(this.v=i,this):new Dr(i)}function Av(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(i,t||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(h){return function(m){return Promise.resolve(m).then(h,u)}}function a(h,m){n[h]&&(r[h]=function(p){return new Promise(function(v,E){o.push([h,p,v,E])>1||c(h,p)})},m&&(r[h]=m(r[h])))}function c(h,m){try{l(n[h](m))}catch(p){f(o[0][3],p)}}function l(h){h.value instanceof Dr?Promise.resolve(h.value.v).then(d,u):f(o[0][2],h)}function d(h){c("next",h)}function u(h){c("throw",h)}function f(h,m){h(m),o.shift(),o.length&&c(o[0][0],o[0][1])}}function Tv(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof Mv=="function"?Mv(i):i[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=i[o]&&function(s){return new Promise(function(a,c){s=i[o](s),r(a,c,s.done,s.value)})}}function r(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var xo=i=>i&&typeof i.length=="number"&&typeof i!="function";function Mc(i){return ce(i?.then)}function Sc(i){return ce(i[_o])}function Ac(i){return Symbol.asyncIterator&&ce(i?.[Symbol.asyncIterator])}function Tc(i){return new TypeError(`You provided ${i!==null&&typeof i=="object"?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function SI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Rc=SI();function Oc(i){return ce(i?.[Rc])}function Nc(i){return Av(this,arguments,function*(){let e=i.getReader();try{for(;;){let{value:n,done:r}=yield Dr(e.read());if(r)return yield Dr(void 0);yield yield Dr(n)}}finally{e.releaseLock()}})}function Pc(i){return ce(i?.getReader)}function We(i){if(i instanceof le)return i;if(i!=null){if(Sc(i))return AI(i);if(xo(i))return TI(i);if(Mc(i))return RI(i);if(Ac(i))return Rv(i);if(Oc(i))return OI(i);if(Pc(i))return NI(i)}throw Tc(i)}function AI(i){return new le(t=>{let e=i[_o]();if(ce(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function TI(i){return new le(t=>{for(let e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function RI(i){return new le(t=>{i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,_c)})}function OI(i){return new le(t=>{for(let e of i)if(t.next(e),t.closed)return;t.complete()})}function Rv(i){return new le(t=>{PI(i,t).catch(e=>t.error(e))})}function NI(i){return Rv(Nc(i))}function PI(i,t){var e,n,r,o;return Sv(this,void 0,void 0,function*(){try{for(e=Tv(i);n=yield e.next(),!n.done;){let s=n.value;if(t.next(s),t.closed)return}}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})}function jt(i,t,e,n=0,r=!1){let o=t.schedule(function(){e(),r?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(o),!r)return o}function Fc(i,t=0){return ge((e,n)=>{e.subscribe(pe(n,r=>jt(n,i,()=>n.next(r),t),()=>jt(n,i,()=>n.complete(),t),r=>jt(n,i,()=>n.error(r),t)))})}function Lc(i,t=0){return ge((e,n)=>{n.add(i.schedule(()=>e.subscribe(n),t))})}function Ov(i,t){return We(i).pipe(Lc(t),Fc(t))}function Nv(i,t){return We(i).pipe(Lc(t),Fc(t))}function Pv(i,t){return new le(e=>{let n=0;return t.schedule(function(){n===i.length?e.complete():(e.next(i[n++]),e.closed||this.schedule())})})}function Fv(i,t){return new le(e=>{let n;return jt(e,t,()=>{n=i[Rc](),jt(e,t,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){e.error(s);return}o?e.complete():e.next(r)},0,!0)}),()=>ce(n?.return)&&n.return()})}function jc(i,t){if(!i)throw new Error("Iterable cannot be null");return new le(e=>{jt(e,t,()=>{let n=i[Symbol.asyncIterator]();jt(e,t,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Lv(i,t){return jc(Nc(i),t)}function jv(i,t){if(i!=null){if(Sc(i))return Ov(i,t);if(xo(i))return Pv(i,t);if(Mc(i))return Nv(i,t);if(Ac(i))return jc(i,t);if(Oc(i))return Fv(i,t);if(Pc(i))return Lv(i,t)}throw Tc(i)}function qe(i,t){return t?jv(i,t):We(i)}function te(...i){let t=Fi(i);return qe(i,t)}function Co(i,t){let e=ce(i)?i:()=>i,n=r=>r.error(e());return new le(t?r=>t.schedule(n,0,r):n)}function Do(i){return!!i&&(i instanceof le||ce(i.lift)&&ce(i.subscribe))}var cn=go(i=>function(){i(this),this.name="EmptyError",this.message="no elements in sequence"});function Vv(i){return i instanceof Date&&!isNaN(i)}function se(i,t){return ge((e,n)=>{let r=0;e.subscribe(pe(n,o=>{n.next(i.call(t,o,r++))}))})}var{isArray:FI}=Array;function LI(i,t){return FI(t)?i(...t):i(t)}function Eo(i){return se(t=>LI(i,t))}var{isArray:jI}=Array,{getPrototypeOf:VI,prototype:BI,keys:zI}=Object;function Vc(i){if(i.length===1){let t=i[0];if(jI(t))return{args:t,keys:null};if(HI(t)){let e=zI(t);return{args:e.map(n=>t[n]),keys:e}}}return{args:i,keys:null}}function HI(i){return i&&typeof i=="object"&&VI(i)===BI}function Bc(i,t){return i.reduce((e,n,r)=>(e[n]=t[r],e),{})}function Er(...i){let t=Fi(i),e=kc(i),{args:n,keys:r}=Vc(i);if(n.length===0)return qe([],t);let o=new le(UI(n,t,r?s=>Bc(r,s):Tt));return e?o.pipe(Eo(e)):o}function UI(i,t,e=Tt){return n=>{Bv(t,()=>{let{length:r}=i,o=new Array(r),s=r,a=r;for(let c=0;c<r;c++)Bv(t,()=>{let l=qe(i[c],t),d=!1;l.subscribe(pe(n,u=>{o[c]=u,d||(d=!0,a--),a||n.next(e(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Bv(i,t,e){i?jt(e,i,t):t()}function zv(i,t,e,n,r,o,s,a){let c=[],l=0,d=0,u=!1,f=()=>{u&&!c.length&&!l&&t.complete()},h=p=>l<n?m(p):c.push(p),m=p=>{o&&t.next(p),l++;let v=!1;We(e(p,d++)).subscribe(pe(t,E=>{r?.(E),o?h(E):t.next(E)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&l<n;){let E=c.shift();s?jt(t,s,()=>m(E)):m(E)}f()}catch(E){t.error(E)}}))};return i.subscribe(pe(t,h,()=>{u=!0,f()})),()=>{a?.()}}function rt(i,t,e=1/0){return ce(t)?rt((n,r)=>se((o,s)=>t(n,o,r,s))(We(i(n,r))),e):(typeof t=="number"&&(e=t),ge((n,r)=>zv(n,r,i,e)))}function Li(i=1/0){return rt(Tt,i)}function Hv(){return Li(1)}function jn(...i){return Hv()(qe(i,Fi(i)))}function ji(i){return new le(t=>{We(i()).subscribe(t)})}function Vh(...i){let t=kc(i),{args:e,keys:n}=Vc(i),r=new le(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let d=0;d<s;d++){let u=!1;We(e[d]).subscribe(pe(o,f=>{u||(u=!0,l--),a[d]=f},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(n?Bc(n,a):a),o.complete())}))}});return t?r.pipe(Eo(t)):r}var $I=["addListener","removeListener"],WI=["addEventListener","removeEventListener"],qI=["on","off"];function Vi(i,t,e,n){if(ce(e)&&(n=e,e=void 0),n)return Vi(i,t,e).pipe(Eo(n));let[r,o]=KI(i)?WI.map(s=>a=>i[s](t,a,e)):GI(i)?$I.map(Uv(i,t)):YI(i)?qI.map(Uv(i,t)):[];if(!r&&xo(i))return rt(s=>Vi(s,t,e))(We(i));if(!r)throw new TypeError("Invalid event target");return new le(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return r(a),()=>o(a)})}function Uv(i,t){return e=>n=>i[e](t,n)}function GI(i){return ce(i.addListener)&&ce(i.removeListener)}function YI(i){return ce(i.on)&&ce(i.off)}function KI(i){return ce(i.addEventListener)&&ce(i.removeEventListener)}function Ns(i=0,t,e=Iv){let n=-1;return t!=null&&(Ic(t)?e=t:n=t),new le(r=>{let o=Vv(i)?+i-e.now():i;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function Vt(...i){let t=Fi(i),e=kv(i,1/0),n=i;return n.length?n.length===1?We(n[0]):Li(e)(qe(n,t)):pt}function Ae(i,t){return ge((e,n)=>{let r=0;e.subscribe(pe(n,o=>i.call(t,o,r++)&&n.next(o)))})}function $v(i){return ge((t,e)=>{let n=!1,r=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let l=r;r=null,e.next(l)}s&&e.complete()},c=()=>{o=null,s&&e.complete()};t.subscribe(pe(e,l=>{n=!0,r=l,o||We(i(l)).subscribe(o=pe(e,a,c))},()=>{s=!0,(!n||!o||o.closed)&&e.complete()}))})}function zc(i,t=Os){return $v(()=>Ns(i,t))}function Vn(i){return ge((t,e)=>{let n=null,r=!1,o;n=t.subscribe(pe(e,void 0,void 0,s=>{o=We(i(s,Vn(i)(t))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function Wv(i,t,e,n,r){return(o,s)=>{let a=e,c=t,l=0;o.subscribe(pe(s,d=>{let u=l++;c=a?i(c,d,u):(a=!0,d),n&&s.next(c)},r&&(()=>{a&&s.next(c),s.complete()})))}}function ln(i,t){return ce(t)?rt(i,t,1):rt(i,1)}function dn(i,t=Os){return ge((e,n)=>{let r=null,o=null,s=null,a=()=>{if(r){r.unsubscribe(),r=null;let l=o;o=null,n.next(l)}};function c(){let l=s+i,d=t.now();if(d<l){r=this.schedule(void 0,l-d),n.add(r);return}a()}e.subscribe(pe(n,l=>{o=l,s=t.now(),r||(r=t.schedule(c,i),n.add(r))},()=>{a(),n.complete()},void 0,()=>{o=r=null}))})}function Bn(i){return ge((t,e)=>{let n=!1;t.subscribe(pe(e,r=>{n=!0,e.next(r)},()=>{n||e.next(i),e.complete()}))})}function _t(i){return i<=0?()=>pt:ge((t,e)=>{let n=0;t.subscribe(pe(e,r=>{++n<=i&&(e.next(r),i<=n&&e.complete())}))})}function Bh(i){return se(()=>i)}function Io(i,t=Tt){return i=i??QI,ge((e,n)=>{let r,o=!0;e.subscribe(pe(n,s=>{let a=t(s);(o||!i(r,a))&&(o=!1,r=a,n.next(s))}))})}function QI(i,t){return i===t}function Hc(i=ZI){return ge((t,e)=>{let n=!1;t.subscribe(pe(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(i())))})}function ZI(){return new cn}function Ir(i){return ge((t,e)=>{try{t.subscribe(e)}finally{e.add(i)}})}function Bi(i,t){let e=arguments.length>=2;return n=>n.pipe(i?Ae((r,o)=>i(r,o,n)):Tt,_t(1),e?Bn(t):Hc(()=>new cn))}function ko(i){return i<=0?()=>pt:ge((t,e)=>{let n=[];t.subscribe(pe(e,r=>{n.push(r),i<n.length&&n.shift()},()=>{for(let r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function zh(i,t){let e=arguments.length>=2;return n=>n.pipe(i?Ae((r,o)=>i(r,o,n)):Tt,ko(1),e?Bn(t):Hc(()=>new cn))}function Hh(i,t){return ge(Wv(i,t,arguments.length>=2,!0))}function qv(i={}){let{connector:t=()=>new $,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=i;return o=>{let s,a,c,l=0,d=!1,u=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,d=u=!1},m=()=>{let p=s;h(),p?.unsubscribe()};return ge((p,v)=>{l++,!u&&!d&&f();let E=c=c??t();v.add(()=>{l--,l===0&&!u&&!d&&(a=Uh(m,r))}),E.subscribe(v),!s&&l>0&&(s=new an({next:A=>E.next(A),error:A=>{u=!0,f(),a=Uh(h,e,A),E.error(A)},complete:()=>{d=!0,f(),a=Uh(h,n),E.complete()}}),We(p).subscribe(s))})(o)}}function Uh(i,t,...e){if(t===!0){i();return}if(t===!1)return;let n=new an({next:()=>{n.unsubscribe(),i()}});return We(t(...e)).subscribe(n)}function Uc(i,t,e){let n,r=!1;return i&&typeof i=="object"?{bufferSize:n=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:e}=i:n=i??1/0,qv({connector:()=>new xc(n,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function kr(i){return Ae((t,e)=>i<=e)}function It(...i){let t=Fi(i);return ge((e,n)=>{(t?jn(i,e,t):jn(i,e)).subscribe(n)})}function ut(i,t){return ge((e,n)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&n.complete();e.subscribe(pe(n,c=>{r?.unsubscribe();let l=0,d=o++;We(i(c,d)).subscribe(r=pe(n,u=>n.next(t?t(c,u,d,l++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Le(i){return ge((t,e)=>{We(i).subscribe(pe(e,()=>e.complete(),As)),!e.closed&&t.subscribe(e)})}function $h(i,t=!1){return ge((e,n)=>{let r=0;e.subscribe(pe(n,o=>{let s=i(o,r++);(s||t)&&n.next(o),!s&&n.complete()}))})}function ht(i,t,e){let n=ce(i)||t||e?{next:i,error:t,complete:e}:i;return n?ge((r,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;r.subscribe(pe(o,c=>{var l;(l=n.next)===null||l===void 0||l.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var l;a=!1,(l=n.error)===null||l===void 0||l.call(n,c),o.error(c)},()=>{var c,l;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):Tt}var T_="https://g.co/ng/security#xss",F=class extends Error{constructor(t,e){super(Ol(t,e)),this.code=t}};function Ol(i,t){return`${`NG0${Math.abs(i)}`}${t?": "+t:""}`}function Ws(i){return{toString:i}.toString()}var $c="__parameters__";function XI(i){return function(...e){if(i){let n=i(...e);for(let r in n)this[r]=n[r]}}}function R_(i,t,e){return Ws(()=>{let n=XI(t);function r(...o){if(this instanceof r)return n.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(c,l,d){let u=c.hasOwnProperty($c)?c[$c]:Object.defineProperty(c,$c,{value:[]})[$c];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=i,r.annotationCls=r,r})}var Ei=globalThis;function Ke(i){for(let t in i)if(i[t]===Ke)return t;throw Error("Could not find renamed property on target object.")}function JI(i,t){for(let e in t)t.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&(i[e]=t[e])}function Nt(i){if(typeof i=="string")return i;if(Array.isArray(i))return"["+i.map(Nt).join(", ")+"]";if(i==null)return""+i;if(i.overriddenName)return`${i.overriddenName}`;if(i.name)return`${i.name}`;let t=i.toString();if(t==null)return""+t;let e=t.indexOf(`
4
+ `);return e===-1?t:t.substring(0,e)}function rf(i,t){return i==null||i===""?t===null?"":t:t==null||t===""?i:i+" "+t}var ek=Ke({__forward_ref__:Ke});function Kt(i){return i.__forward_ref__=Kt,i.toString=function(){return Nt(this())},i}function Rt(i){return O_(i)?i():i}function O_(i){return typeof i=="function"&&i.hasOwnProperty(ek)&&i.__forward_ref__===Kt}function I(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function Z(i){return{providers:i.providers||[],imports:i.imports||[]}}function Nl(i){return Gv(i,P_)||Gv(i,F_)}function N_(i){return Nl(i)!==null}function Gv(i,t){return i.hasOwnProperty(t)?i[t]:null}function tk(i){let t=i&&(i[P_]||i[F_]);return t||null}function Yv(i){return i&&(i.hasOwnProperty(Kv)||i.hasOwnProperty(ik))?i[Kv]:null}var P_=Ke({\u0275prov:Ke}),Kv=Ke({\u0275inj:Ke}),F_=Ke({ngInjectableDef:Ke}),ik=Ke({ngInjectorDef:Ke}),M=class{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=I({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function L_(i){return i&&!!i.\u0275providers}var nk=Ke({\u0275cmp:Ke}),rk=Ke({\u0275dir:Ke}),ok=Ke({\u0275pipe:Ke}),sk=Ke({\u0275mod:Ke}),il=Ke({\u0275fac:Ke}),Fs=Ke({__NG_ELEMENT_ID__:Ke}),Qv=Ke({__NG_ENV_ID__:Ke});function Hn(i){return typeof i=="string"?i:i==null?"":String(i)}function ak(i){return typeof i=="function"?i.name||i.toString():typeof i=="object"&&i!=null&&typeof i.type=="function"?i.type.name||i.type.toString():Hn(i)}function ck(i,t){let e=t?`. Dependency path: ${t.join(" > ")} > ${i}`:"";throw new F(-200,i)}function Jf(i,t){throw new F(-201,!1)}var Me=function(i){return i[i.Default=0]="Default",i[i.Host=1]="Host",i[i.Self=2]="Self",i[i.SkipSelf=4]="SkipSelf",i[i.Optional=8]="Optional",i}(Me||{}),of;function j_(){return of}function si(i){let t=of;return of=i,t}function V_(i,t,e){let n=Nl(i);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&Me.Optional)return null;if(t!==void 0)return t;Jf(i,"Injector")}var lk={},js=lk,sf="__NG_DI_FLAG__",nl="ngTempTokenPath",dk="ngTokenPath",uk=/\n/gm,hk="\u0275",Zv="__source",Ro;function fk(){return Ro}function zn(i){let t=Ro;return Ro=i,t}function mk(i,t=Me.Default){if(Ro===void 0)throw new F(-203,!1);return Ro===null?V_(i,void 0,t):Ro.get(i,t&Me.Optional?null:void 0,t)}function _(i,t=Me.Default){return(j_()||mk)(Rt(i),t)}function x(i,t=Me.Default){return _(i,Pl(t))}function Pl(i){return typeof i>"u"||typeof i=="number"?i:0|(i.optional&&8)|(i.host&&1)|(i.self&&2)|(i.skipSelf&&4)}function af(i){let t=[];for(let e=0;e<i.length;e++){let n=Rt(i[e]);if(Array.isArray(n)){if(n.length===0)throw new F(900,!1);let r,o=Me.Default;for(let s=0;s<n.length;s++){let a=n[s],c=pk(a);typeof c=="number"?c===-1?r=a.token:o|=c:r=a}t.push(_(r,o))}else t.push(_(n))}return t}function B_(i,t){return i[sf]=t,i.prototype[sf]=t,i}function pk(i){return i[sf]}function gk(i,t,e,n){let r=i[nl];throw t[Zv]&&r.unshift(t[Zv]),i.message=bk(`
5
+ `+i.message,r,e,n),i[dk]=r,i[nl]=null,i}function bk(i,t,e,n=null){i=i&&i.charAt(0)===`
6
+ `&&i.charAt(1)==hk?i.slice(2):i;let r=Nt(t);if(Array.isArray(t))r=t.map(Nt).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Nt(a)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${i.replace(uk,`
7
+ `)}`}var Fl=B_(R_("Optional"),8);var em=B_(R_("SkipSelf"),4);function No(i,t){let e=i.hasOwnProperty(il);return e?i[il]:null}function vk(i,t,e){if(i.length!==t.length)return!1;for(let n=0;n<i.length;n++){let r=i[n],o=t[n];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}function _k(i){return i.flat(Number.POSITIVE_INFINITY)}function tm(i,t){i.forEach(e=>Array.isArray(e)?tm(e,t):t(e))}function z_(i,t,e){t>=i.length?i.push(e):i.splice(t,0,e)}function rl(i,t){return t>=i.length-1?i.pop():i.splice(t,1)[0]}function yk(i,t){let e=[];for(let n=0;n<i;n++)e.push(t);return e}function wk(i,t,e,n){let r=i.length;if(r==t)i.push(e,n);else if(r===1)i.push(n,i[0]),i[0]=e;else{for(r--,i.push(i[r-1],i[r]);r>t;){let o=r-2;i[r]=i[o],r--}i[t]=e,i[t+1]=n}}function Ll(i,t,e){let n=qs(i,t);return n>=0?i[n|1]=e:(n=~n,wk(i,n,t,e)),n}function Wh(i,t){let e=qs(i,t);if(e>=0)return i[e|1]}function qs(i,t){return xk(i,t,1)}function xk(i,t,e){let n=0,r=i.length>>e;for(;r!==n;){let o=n+(r-n>>1),s=i[o<<e];if(t===s)return o<<e;s>t?r=o:n=o+1}return~(r<<e)}var Po={},Ot=[],Fo=new M(""),H_=new M("",-1),U_=new M(""),ol=class{get(t,e=js){if(e===js){let n=new Error(`NullInjectorError: No provider for ${Nt(t)}!`);throw n.name="NullInjectorError",n}return e}},$_=function(i){return i[i.OnPush=0]="OnPush",i[i.Default=1]="Default",i}($_||{}),Ui=function(i){return i[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom",i}(Ui||{}),Wn=function(i){return i[i.None=0]="None",i[i.SignalBased=1]="SignalBased",i[i.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",i}(Wn||{});function Ck(i,t,e){let n=i.length;for(;;){let r=i.indexOf(t,e);if(r===-1)return r;if(r===0||i.charCodeAt(r-1)<=32){let o=t.length;if(r+o===n||i.charCodeAt(r+o)<=32)return r}e=r+1}}function cf(i,t,e){let n=0;for(;n<e.length;){let r=e[n];if(typeof r=="number"){if(r!==0)break;n++;let o=e[n++],s=e[n++],a=e[n++];i.setAttribute(t,s,a,o)}else{let o=r,s=e[++n];Dk(o)?i.setProperty(t,o,s):i.setAttribute(t,o,s),n++}}return n}function W_(i){return i===3||i===4||i===6}function Dk(i){return i.charCodeAt(0)===64}function Vs(i,t){if(!(t===null||t.length===0))if(i===null||i.length===0)i=t.slice();else{let e=-1;for(let n=0;n<t.length;n++){let r=t[n];typeof r=="number"?e=r:e===0||(e===-1||e===2?Xv(i,e,r,null,t[++n]):Xv(i,e,r,null,null))}}return i}function Xv(i,t,e,n,r){let o=0,s=i.length;if(t===-1)s=-1;else for(;o<i.length;){let a=i[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<i.length;){let a=i[o];if(typeof a=="number")break;if(a===e){if(n===null){r!==null&&(i[o+1]=r);return}else if(n===i[o+1]){i[o+2]=r;return}}o++,n!==null&&o++,r!==null&&o++}s!==-1&&(i.splice(s,0,t),o=s+1),i.splice(o++,0,e),n!==null&&i.splice(o++,0,n),r!==null&&i.splice(o++,0,r)}var q_="ng-template";function Ek(i,t,e,n){let r=0;if(n){for(;r<t.length&&typeof t[r]=="string";r+=2)if(t[r]==="class"&&Ck(t[r+1].toLowerCase(),e,0)!==-1)return!0}else if(im(i))return!1;if(r=t.indexOf(1,r),r>-1){let o;for(;++r<t.length&&typeof(o=t[r])=="string";)if(o.toLowerCase()===e)return!0}return!1}function im(i){return i.type===4&&i.value!==q_}function Ik(i,t,e){let n=i.type===4&&!e?q_:i.value;return t===n}function kk(i,t,e){let n=4,r=i.attrs,o=r!==null?Ak(r):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!xi(n)&&!xi(c))return!1;if(s&&xi(c))continue;s=!1,n=c|n&1;continue}if(!s)if(n&4){if(n=2|n&1,c!==""&&!Ik(i,c,e)||c===""&&t.length===1){if(xi(n))return!1;s=!0}}else if(n&8){if(r===null||!Ek(i,r,c,e)){if(xi(n))return!1;s=!0}}else{let l=t[++a],d=Mk(c,r,im(i),e);if(d===-1){if(xi(n))return!1;s=!0;continue}if(l!==""){let u;if(d>o?u="":u=r[d+1].toLowerCase(),n&2&&l!==u){if(xi(n))return!1;s=!0}}}}return xi(n)||s}function xi(i){return(i&1)===0}function Mk(i,t,e,n){if(t===null)return-1;let r=0;if(n||!e){let o=!1;for(;r<t.length;){let s=t[r];if(s===i)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++r];for(;typeof a=="string";)a=t[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return Tk(t,i)}function G_(i,t,e=!1){for(let n=0;n<t.length;n++)if(kk(i,t[n],e))return!0;return!1}function Sk(i){let t=i.attrs;if(t!=null){let e=t.indexOf(5);if(!(e&1))return t[e+1]}return null}function Ak(i){for(let t=0;t<i.length;t++){let e=i[t];if(W_(e))return t}return i.length}function Tk(i,t){let e=i.indexOf(4);if(e>-1)for(e++;e<i.length;){let n=i[e];if(typeof n=="number")return-1;if(n===t)return e;e++}return-1}function Rk(i,t){e:for(let e=0;e<t.length;e++){let n=t[e];if(i.length===n.length){for(let r=0;r<i.length;r++)if(i[r]!==n[r])continue e;return!0}}return!1}function Jv(i,t){return i?":not("+t.trim()+")":t}function Ok(i){let t=i[0],e=1,n=2,r="",o=!1;for(;e<i.length;){let s=i[e];if(typeof s=="string")if(n&2){let a=i[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?r+="."+s:n&4&&(r+=" "+s);else r!==""&&!xi(s)&&(t+=Jv(o,r),r=""),n=s,o=o||!xi(n);e++}return r!==""&&(t+=Jv(o,r)),t}function Nk(i){return i.map(Ok).join(",")}function Pk(i){let t=[],e=[],n=1,r=2;for(;n<i.length;){let o=i[n];if(typeof o=="string")r===2?o!==""&&t.push(o,i[++n]):r===8&&e.push(o);else{if(!xi(r))break;r=o}n++}return{attrs:t,classes:e}}function de(i){return Ws(()=>{let t=X_(i),e=De(k({},t),{decls:i.decls,vars:i.vars,template:i.template,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,onPush:i.changeDetection===$_.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&i.dependencies||null,getStandaloneInjector:null,signals:i.signals??!1,data:i.data||{},encapsulation:i.encapsulation||Ui.Emulated,styles:i.styles||Ot,_:null,schemas:i.schemas||null,tView:null,id:""});J_(e);let n=i.dependencies;return e.directiveDefs=t_(n,!1),e.pipeDefs=t_(n,!0),e.id=jk(e),e})}function Fk(i){return qn(i)||Y_(i)}function Lk(i){return i!==null}function X(i){return Ws(()=>({type:i.type,bootstrap:i.bootstrap||Ot,declarations:i.declarations||Ot,imports:i.imports||Ot,exports:i.exports||Ot,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null}))}function e_(i,t){if(i==null)return Po;let e={};for(let n in i)if(i.hasOwnProperty(n)){let r=i[n],o,s,a=Wn.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),t?(e[o]=a!==Wn.None?[n,a]:n,t[o]=s):e[o]=n}return e}function K(i){return Ws(()=>{let t=X_(i);return J_(t),t})}function qn(i){return i[nk]||null}function Y_(i){return i[rk]||null}function K_(i){return i[ok]||null}function Q_(i){let t=qn(i)||Y_(i)||K_(i);return t!==null?t.standalone:!1}function Z_(i,t){let e=i[sk]||null;if(!e&&t===!0)throw new Error(`Type ${Nt(i)} does not have '\u0275mod' property.`);return e}function X_(i){let t={};return{type:i.type,providersResolver:null,factory:null,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:i.inputs||Po,exportAs:i.exportAs||null,standalone:i.standalone===!0,signals:i.signals===!0,selectors:i.selectors||Ot,viewQuery:i.viewQuery||null,features:i.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:e_(i.inputs,t),outputs:e_(i.outputs),debugInfo:null}}function J_(i){i.features?.forEach(t=>t(i))}function t_(i,t){if(!i)return null;let e=t?K_:Fk;return()=>(typeof i=="function"?i():i).map(n=>e(n)).filter(Lk)}function jk(i){let t=0,e=[i.selectors,i.ngContentSelectors,i.hostVars,i.hostAttrs,i.consts,i.vars,i.decls,i.encapsulation,i.standalone,i.signals,i.exportAs,JSON.stringify(i.inputs),JSON.stringify(i.outputs),Object.getOwnPropertyNames(i.type.prototype),!!i.contentQueries,!!i.viewQuery].join("|");for(let r of e)t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function jl(i){return{\u0275providers:i}}function Vk(...i){return{\u0275providers:ey(!0,i),\u0275fromNgModule:!0}}function ey(i,...t){let e=[],n=new Set,r,o=s=>{e.push(s)};return tm(t,s=>{let a=s;lf(a,o,[],n)&&(r||=[],r.push(a))}),r!==void 0&&ty(r,o),e}function ty(i,t){for(let e=0;e<i.length;e++){let{ngModule:n,providers:r}=i[e];nm(r,o=>{t(o,n)})}}function lf(i,t,e,n){if(i=Rt(i),!i)return!1;let r=null,o=Yv(i),s=!o&&qn(i);if(!o&&!s){let c=i.ngModule;if(o=Yv(c),o)r=c;else return!1}else{if(s&&!s.standalone)return!1;r=i}let a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)lf(l,t,e,n)}}else if(o){if(o.imports!=null&&!a){n.add(r);let l;try{tm(o.imports,d=>{lf(d,t,e,n)&&(l||=[],l.push(d))})}finally{}l!==void 0&&ty(l,t)}if(!a){let l=No(r)||(()=>new r);t({provide:r,useFactory:l,deps:Ot},r),t({provide:U_,useValue:r,multi:!0},r),t({provide:Fo,useValue:()=>_(r),multi:!0},r)}let c=o.providers;if(c!=null&&!a){let l=i;nm(c,d=>{t(d,l)})}}else return!1;return r!==i&&i.providers!==void 0}function nm(i,t){for(let e of i)L_(e)&&(e=e.\u0275providers),Array.isArray(e)?nm(e,t):t(e)}var Bk=Ke({provide:String,useValue:Ke});function iy(i){return i!==null&&typeof i=="object"&&Bk in i}function zk(i){return!!(i&&i.useExisting)}function Hk(i){return!!(i&&i.useFactory)}function Lo(i){return typeof i=="function"}function Uk(i){return!!i.useClass}var Vl=new M(""),Qc={},$k={},qh;function rm(){return qh===void 0&&(qh=new ol),qh}var xt=class{},Bs=class extends xt{get destroyed(){return this._destroyed}constructor(t,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,uf(t,s=>this.processProvider(s)),this.records.set(H_,Mo(void 0,this)),r.has("environment")&&this.records.set(xt,Mo(void 0,this));let o=this.records.get(Vl);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(U_,Ot,Me.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=Oe(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Oe(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let e=zn(this),n=si(void 0),r;try{return t()}finally{zn(e),si(n)}}get(t,e=js,n=Me.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Qv))return t[Qv](this);n=Pl(n);let r,o=zn(this),s=si(void 0);try{if(!(n&Me.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=Kk(t)&&Nl(t);l&&this.injectableDefInScope(l)?c=Mo(df(t),Qc):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=n&Me.Self?rm():this.parent;return e=n&Me.Optional&&e===js?null:e,a.get(t,e)}catch(a){if(a.name==="NullInjectorError"){if((a[nl]=a[nl]||[]).unshift(Nt(t)),o)throw a;return gk(a,t,"R3InjectorError",this.source)}else throw a}finally{si(s),zn(o)}}resolveInjectorInitializers(){let t=Oe(null),e=zn(this),n=si(void 0),r;try{let o=this.get(Fo,Ot,Me.Self);for(let s of o)s()}finally{zn(e),si(n),Oe(t)}}toString(){let t=[],e=this.records;for(let n of e.keys())t.push(Nt(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(t){t=Rt(t);let e=Lo(t)?t:Rt(t&&t.provide),n=qk(t);if(!Lo(t)&&t.multi===!0){let r=this.records.get(e);r||(r=Mo(void 0,Qc,!0),r.factory=()=>af(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,n)}hydrate(t,e){let n=Oe(null);try{return e.value===Qc&&(e.value=$k,e.value=e.factory()),typeof e.value=="object"&&e.value&&Yk(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Oe(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let e=Rt(t.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){let e=this._onDestroyHooks.indexOf(t);e!==-1&&this._onDestroyHooks.splice(e,1)}};function df(i){let t=Nl(i),e=t!==null?t.factory:No(i);if(e!==null)return e;if(i instanceof M)throw new F(204,!1);if(i instanceof Function)return Wk(i);throw new F(204,!1)}function Wk(i){if(i.length>0)throw new F(204,!1);let e=tk(i);return e!==null?()=>e.factory(i):()=>new i}function qk(i){if(iy(i))return Mo(void 0,i.useValue);{let t=ny(i);return Mo(t,Qc)}}function ny(i,t,e){let n;if(Lo(i)){let r=Rt(i);return No(r)||df(r)}else if(iy(i))n=()=>Rt(i.useValue);else if(Hk(i))n=()=>i.useFactory(...af(i.deps||[]));else if(zk(i))n=()=>_(Rt(i.useExisting));else{let r=Rt(i&&(i.useClass||i.provide));if(Gk(i))n=()=>new r(...af(i.deps));else return No(r)||df(r)}return n}function Mo(i,t,e=!1){return{factory:i,value:t,multi:e?[]:void 0}}function Gk(i){return!!i.deps}function Yk(i){return i!==null&&typeof i=="object"&&typeof i.ngOnDestroy=="function"}function Kk(i){return typeof i=="function"||typeof i=="object"&&i instanceof M}function uf(i,t){for(let e of i)Array.isArray(e)?uf(e,t):e&&L_(e)?uf(e.\u0275providers,t):t(e)}function di(i,t){i instanceof Bs&&i.assertNotDestroyed();let e,n=zn(i),r=si(void 0);try{return t()}finally{zn(n),si(r)}}function ry(){return j_()!==void 0||fk()!=null}function om(i){if(!ry())throw new F(-203,!1)}function Qk(i){let t=Ei.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Zk(i){return typeof i=="function"}var Gi=0,we=1,ue=2,kt=3,Di=4,Ht=5,zs=6,sl=7,ci=8,jo=9,$i=10,et=11,Hs=12,i_=13,$o=14,li=15,Sr=16,So=17,un=18,Bl=19,oy=20,Un=21,Zc=22,ai=23,zt=25,sm=1;var Ar=7,al=8,Vo=9,Bt=10,cl=function(i){return i[i.None=0]="None",i[i.HasTransplantedViews=2]="HasTransplantedViews",i}(cl||{});function $n(i){return Array.isArray(i)&&typeof i[sm]=="object"}function mn(i){return Array.isArray(i)&&i[sm]===!0}function am(i){return(i.flags&4)!==0}function zl(i){return i.componentOffset>-1}function Hl(i){return(i.flags&1)===1}function hn(i){return!!i.template}function hf(i){return(i[ue]&512)!==0}var ff=class{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function sy(i,t,e,n){t!==null?t.applyValueToInputSignal(t,n):i[e]=n}function Qe(){return ay}function ay(i){return i.type.prototype.ngOnChanges&&(i.setInput=Jk),Xk}Qe.ngInherit=!0;function Xk(){let i=ly(this),t=i?.current;if(t){let e=i.previous;if(e===Po)i.previous=t;else for(let n in t)e[n]=t[n];i.current=null,this.ngOnChanges(t)}}function Jk(i,t,e,n,r){let o=this.declaredInputs[n],s=ly(i)||eM(i,{previous:Po,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new ff(l&&l.currentValue,e,c===Po),sy(i,t,r,e)}var cy="__ngSimpleChanges__";function ly(i){return i[cy]||null}function eM(i,t){return i[cy]=t}var n_=null;var zi=function(i,t,e){n_?.(i,t,e)},dy="svg",tM="math";function Wi(i){for(;Array.isArray(i);)i=i[Gi];return i}function iM(i){for(;Array.isArray(i);){if(typeof i[sm]=="object")return i;i=i[Gi]}return null}function uy(i,t){return Wi(t[i])}function ui(i,t){return Wi(t[i.index])}function cm(i,t){return i.data[t]}function nM(i,t){return i[t]}function Qn(i,t){let e=t[i];return $n(e)?e:e[Gi]}function rM(i){return(i[ue]&4)===4}function lm(i){return(i[ue]&128)===128}function oM(i){return mn(i[kt])}function Bo(i,t){return t==null?null:i[t]}function hy(i){i[So]=0}function fy(i){i[ue]&1024||(i[ue]|=1024,lm(i)&&$l(i))}function sM(i,t){for(;i>0;)t=t[$o],i--;return t}function Ul(i){return!!(i[ue]&9216||i[ai]?.dirty)}function mf(i){i[$i].changeDetectionScheduler?.notify(8),i[ue]&64&&(i[ue]|=1024),Ul(i)&&$l(i)}function $l(i){i[$i].changeDetectionScheduler?.notify(0);let t=Tr(i);for(;t!==null&&!(t[ue]&8192||(t[ue]|=8192,!lm(t)));)t=Tr(t)}function my(i,t){if((i[ue]&256)===256)throw new F(911,!1);i[Un]===null&&(i[Un]=[]),i[Un].push(t)}function aM(i,t){if(i[Un]===null)return;let e=i[Un].indexOf(t);e!==-1&&i[Un].splice(e,1)}function Tr(i){let t=i[kt];return mn(t)?t[kt]:t}var xe={lFrame:xy(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var py=!1;function cM(){return xe.lFrame.elementDepthCount}function lM(){xe.lFrame.elementDepthCount++}function dM(){xe.lFrame.elementDepthCount--}function gy(){return xe.bindingsEnabled}function by(){return xe.skipHydrationRootTNode!==null}function uM(i){return xe.skipHydrationRootTNode===i}function hM(){xe.skipHydrationRootTNode=null}function Ee(){return xe.lFrame.lView}function tt(){return xe.lFrame.tView}function j(i){return xe.lFrame.contextLView=i,i[ci]}function V(i){return xe.lFrame.contextLView=null,i}function yt(){let i=vy();for(;i!==null&&i.type===64;)i=i.parent;return i}function vy(){return xe.lFrame.currentTNode}function fM(){let i=xe.lFrame,t=i.currentTNode;return i.isParent?t:t.parent}function jr(i,t){let e=xe.lFrame;e.currentTNode=i,e.isParent=t}function dm(){return xe.lFrame.isParent}function um(){xe.lFrame.isParent=!1}function mM(){return xe.lFrame.contextLView}function _y(){return py}function r_(i){py=i}function pM(){let i=xe.lFrame,t=i.bindingRootIndex;return t===-1&&(t=i.bindingRootIndex=i.tView.bindingStartIndex),t}function gM(){return xe.lFrame.bindingIndex}function bM(i){return xe.lFrame.bindingIndex=i}function Vr(){return xe.lFrame.bindingIndex++}function hm(i){let t=xe.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+i,e}function vM(){return xe.lFrame.inI18n}function _M(i,t){let e=xe.lFrame;e.bindingIndex=e.bindingRootIndex=i,pf(t)}function yM(){return xe.lFrame.currentDirectiveIndex}function pf(i){xe.lFrame.currentDirectiveIndex=i}function fm(i){let t=xe.lFrame.currentDirectiveIndex;return t===-1?null:i[t]}function mm(){return xe.lFrame.currentQueryIndex}function Wl(i){xe.lFrame.currentQueryIndex=i}function wM(i){let t=i[we];return t.type===2?t.declTNode:t.type===1?i[Ht]:null}function yy(i,t,e){if(e&Me.SkipSelf){let r=t,o=i;for(;r=r.parent,r===null&&!(e&Me.Host);)if(r=wM(o),r===null||(o=o[$o],r.type&10))break;if(r===null)return!1;t=r,i=o}let n=xe.lFrame=wy();return n.currentTNode=t,n.lView=i,!0}function pm(i){let t=wy(),e=i[we];xe.lFrame=t,t.currentTNode=e.firstChild,t.lView=i,t.tView=e,t.contextLView=i,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function wy(){let i=xe.lFrame,t=i===null?null:i.child;return t===null?xy(i):t}function xy(i){let 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:i,child:null,inI18n:!1};return i!==null&&(i.child=t),t}function Cy(){let i=xe.lFrame;return xe.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var Dy=Cy;function gm(){let i=Cy();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function xM(i){return(xe.lFrame.contextLView=sM(i,xe.lFrame.contextLView))[ci]}function Zn(){return xe.lFrame.selectedIndex}function Rr(i){xe.lFrame.selectedIndex=i}function Gs(){let i=xe.lFrame;return cm(i.tView,i.selectedIndex)}function Br(){xe.lFrame.currentNamespace=dy}function bm(){CM()}function CM(){xe.lFrame.currentNamespace=null}function DM(){return xe.lFrame.currentNamespace}var Ey=!0;function ql(){return Ey}function Gl(i){Ey=i}function EM(i,t,e){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(n){let s=ay(t);(e.preOrderHooks??=[]).push(i,s),(e.preOrderCheckHooks??=[]).push(i,s)}r&&(e.preOrderHooks??=[]).push(0-i,r),o&&((e.preOrderHooks??=[]).push(i,o),(e.preOrderCheckHooks??=[]).push(i,o))}function Yl(i,t){for(let e=t.directiveStart,n=t.directiveEnd;e<n;e++){let o=i.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:d}=o;s&&(i.contentHooks??=[]).push(-e,s),a&&((i.contentHooks??=[]).push(e,a),(i.contentCheckHooks??=[]).push(e,a)),c&&(i.viewHooks??=[]).push(-e,c),l&&((i.viewHooks??=[]).push(e,l),(i.viewCheckHooks??=[]).push(e,l)),d!=null&&(i.destroyHooks??=[]).push(e,d)}}function Xc(i,t,e){Iy(i,t,3,e)}function Jc(i,t,e,n){(i[ue]&3)===e&&Iy(i,t,e,n)}function Gh(i,t){let e=i[ue];(e&3)===t&&(e&=16383,e+=1,i[ue]=e)}function Iy(i,t,e,n){let r=n!==void 0?i[So]&65535:0,o=n??-1,s=t.length-1,a=0;for(let c=r;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],n!=null&&a>=n)break}else t[c]<0&&(i[So]+=65536),(a<o||o==-1)&&(IM(i,e,t,c),i[So]=(i[So]&4294901760)+c+2),c++}function o_(i,t){zi(4,i,t);let e=Oe(null);try{t.call(i)}finally{Oe(e),zi(5,i,t)}}function IM(i,t,e,n){let r=e[n]<0,o=e[n+1],s=r?-e[n]:e[n],a=i[s];r?i[ue]>>14<i[So]>>16&&(i[ue]&3)===t&&(i[ue]+=16384,o_(a,o)):o_(a,o)}var Oo=-1,Or=class{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}};function kM(i){return i instanceof Or}function MM(i){return(i.flags&8)!==0}function SM(i){return(i.flags&16)!==0}var Yh={},gf=class{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,n){n=Pl(n);let r=this.injector.get(t,Yh,n);return r!==Yh||e===Yh?r:this.parentInjector.get(t,e,n)}};function ky(i){return i!==Oo}function ll(i){return i&32767}function AM(i){return i>>16}function dl(i,t){let e=AM(i),n=t;for(;e>0;)n=n[$o],e--;return n}var bf=!0;function s_(i){let t=bf;return bf=i,t}var TM=256,My=TM-1,Sy=5,RM=0,Hi={};function OM(i,t,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Fs)&&(n=e[Fs]),n==null&&(n=e[Fs]=RM++);let r=n&My,o=1<<r;t.data[i+(r>>Sy)]|=o}function ul(i,t){let e=Ay(i,t);if(e!==-1)return e;let n=t[we];n.firstCreatePass&&(i.injectorIndex=t.length,Kh(n.data,i),Kh(t,null),Kh(n.blueprint,null));let r=vm(i,t),o=i.injectorIndex;if(ky(r)){let s=ll(r),a=dl(r,t),c=a[we].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|c[s+l]}return t[o+8]=r,o}function Kh(i,t){i.push(0,0,0,0,0,0,0,0,t)}function Ay(i,t){return i.injectorIndex===-1||i.parent&&i.parent.injectorIndex===i.injectorIndex||t[i.injectorIndex+8]===null?-1:i.injectorIndex}function vm(i,t){if(i.parent&&i.parent.injectorIndex!==-1)return i.parent.injectorIndex;let e=0,n=null,r=t;for(;r!==null;){if(n=Py(r),n===null)return Oo;if(e++,r=r[$o],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return Oo}function vf(i,t,e){OM(i,t,e)}function NM(i,t){if(t==="class")return i.classes;if(t==="style")return i.styles;let e=i.attrs;if(e){let n=e.length,r=0;for(;r<n;){let o=e[r];if(W_(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof e[r]=="string";)r++;else{if(o===t)return e[r+1];r=r+2}}}return null}function Ty(i,t,e){if(e&Me.Optional||i!==void 0)return i;Jf(t,"NodeInjector")}function Ry(i,t,e,n){if(e&Me.Optional&&n===void 0&&(n=null),!(e&(Me.Self|Me.Host))){let r=i[jo],o=si(void 0);try{return r?r.get(t,n,e&Me.Optional):V_(t,n,e&Me.Optional)}finally{si(o)}}return Ty(n,t,e)}function Oy(i,t,e,n=Me.Default,r){if(i!==null){if(t[ue]&2048&&!(n&Me.Self)){let s=jM(i,t,e,n,Hi);if(s!==Hi)return s}let o=Ny(i,t,e,n,Hi);if(o!==Hi)return o}return Ry(t,e,n,r)}function Ny(i,t,e,n,r){let o=FM(e);if(typeof o=="function"){if(!yy(t,i,n))return n&Me.Host?Ty(r,e,n):Ry(t,e,n,r);try{let s;if(s=o(n),s==null&&!(n&Me.Optional))Jf(e);else return s}finally{Dy()}}else if(typeof o=="number"){let s=null,a=Ay(i,t),c=Oo,l=n&Me.Host?t[li][Ht]:null;for((a===-1||n&Me.SkipSelf)&&(c=a===-1?vm(i,t):t[a+8],c===Oo||!c_(n,!1)?a=-1:(s=t[we],a=ll(c),t=dl(c,t)));a!==-1;){let d=t[we];if(a_(o,a,d.data)){let u=PM(a,t,e,s,n,l);if(u!==Hi)return u}c=t[a+8],c!==Oo&&c_(n,t[we].data[a+8]===l)&&a_(o,a,t)?(s=d,a=ll(c),t=dl(c,t)):a=-1}}return r}function PM(i,t,e,n,r,o){let s=t[we],a=s.data[i+8],c=n==null?zl(a)&&bf:n!=s&&(a.type&3)!==0,l=r&Me.Host&&o===a,d=el(a,s,e,c,l);return d!==null?Nr(t,s,d,a):Hi}function el(i,t,e,n,r){let o=i.providerIndexes,s=t.data,a=o&1048575,c=i.directiveStart,l=i.directiveEnd,d=o>>20,u=n?a:a+d,f=r?a+d:l;for(let h=u;h<f;h++){let m=s[h];if(h<c&&e===m||h>=c&&m.type===e)return h}if(r){let h=s[c];if(h&&hn(h)&&h.type===e)return c}return null}function Nr(i,t,e,n){let r=i[e],o=t.data;if(kM(r)){let s=r;s.resolving&&ck(ak(o[e]));let a=s_(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?si(s.injectImpl):null,d=yy(i,n,Me.Default);try{r=i[e]=s.factory(void 0,o,i,n),t.firstCreatePass&&e>=n.directiveStart&&EM(e,o[e],t)}finally{l!==null&&si(l),s_(a),s.resolving=!1,Dy()}}return r}function FM(i){if(typeof i=="string")return i.charCodeAt(0)||0;let t=i.hasOwnProperty(Fs)?i[Fs]:void 0;return typeof t=="number"?t>=0?t&My:LM:t}function a_(i,t,e){let n=1<<i;return!!(e[t+(i>>Sy)]&n)}function c_(i,t){return!(i&Me.Self)&&!(i&Me.Host&&t)}var Mr=class{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return Oy(this._tNode,this._lView,t,Pl(n),e)}};function LM(){return new Mr(yt(),Ee())}function Qt(i){return Ws(()=>{let t=i.prototype.constructor,e=t[il]||_f(t),n=Object.prototype,r=Object.getPrototypeOf(i.prototype).constructor;for(;r&&r!==n;){let o=r[il]||_f(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function _f(i){return O_(i)?()=>{let t=_f(Rt(i));return t&&t()}:No(i)}function jM(i,t,e,n,r){let o=i,s=t;for(;o!==null&&s!==null&&s[ue]&2048&&!(s[ue]&512);){let a=Ny(o,s,e,n|Me.Self,Hi);if(a!==Hi)return a;let c=o.parent;if(!c){let l=s[oy];if(l){let d=l.get(e,Hi,n);if(d!==Hi)return d}c=Py(s),s=s[$o]}o=c}return r}function Py(i){let t=i[we],e=t.type;return e===2?t.declTNode:e===1?i[Ht]:null}function Yi(i){return NM(yt(),i)}function l_(i,t=null,e=null,n){let r=Fy(i,t,e,n);return r.resolveInjectorInitializers(),r}function Fy(i,t=null,e=null,n,r=new Set){let o=[e||Ot,Vk(i)];return n=n||(typeof i=="object"?void 0:Nt(i)),new Bs(o,t||rm(),n||null,r)}var be=class i{static{this.THROW_IF_NOT_FOUND=js}static{this.NULL=new ol}static create(t,e){if(Array.isArray(t))return l_({name:""},e,t,"");{let n=t.name??"";return l_({name:n},t.parent,t.providers,n)}}static{this.\u0275prov=I({token:i,providedIn:"any",factory:()=>_(H_)})}static{this.__NG_ELEMENT_ID__=-1}};var VM=new M("");VM.__NG_ELEMENT_ID__=i=>{let t=yt();if(t===null)throw new F(204,!1);if(t.type&2)return t.value;if(i&Me.Optional)return null;throw new F(204,!1)};var BM="ngOriginalError";function Qh(i){return i[BM]}var Ly=!0,Kl=(()=>{class i{static{this.__NG_ELEMENT_ID__=zM}static{this.__NG_ENV_ID__=e=>e}}return i})(),yf=class extends Kl{constructor(t){super(),this._lView=t}onDestroy(t){return my(this._lView,t),()=>aM(this._lView,t)}};function zM(){return new yf(Ee())}var pn=(()=>{class i{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new at(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=I({token:i,providedIn:"root",factory:()=>new i})}}return i})();var wf=class extends ${constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,ry()&&(this.destroyRef=x(Kl,{optional:!0})??void 0,this.pendingTasks=x(pn,{optional:!0})??void 0)}emit(t){let e=Oe(null);try{super.next(t)}finally{Oe(e)}}subscribe(t,e,n){let r=t,o=e||(()=>null),s=n;if(t&&typeof t=="object"){let c=t;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:r,error:o,complete:s});return t instanceof Ne&&t.add(a),a}wrapInTimeout(t){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{t(e),n!==void 0&&this.pendingTasks?.remove(n)})}}},Y=wf;function hl(...i){}function jy(i){let t,e;function n(){i=hl;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{i(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{i(),n()})),()=>n()}function d_(i){return queueMicrotask(()=>i()),()=>{i=hl}}var _m="isAngularZone",fl=_m+"_ID",HM=0,U=class i{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Y(!1),this.onMicrotaskEmpty=new Y(!1),this.onStable=new Y(!1),this.onError=new Y(!1);let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=Ly}=t;if(typeof Zone>"u")throw new F(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&n,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,WM(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(_m)===!0}static assertInAngularZone(){if(!i.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(i.isInAngularZone())throw new F(909,!1)}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,UM,hl,hl);try{return o.runTask(s,e,n)}finally{o.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}},UM={};function ym(i){if(i._nesting==0&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function $M(i){if(i.isCheckStableRunning||i.callbackScheduled)return;i.callbackScheduled=!0;function t(){jy(()=>{i.callbackScheduled=!1,xf(i),i.isCheckStableRunning=!0,ym(i),i.isCheckStableRunning=!1})}i.scheduleInRootZone?Zone.root.run(()=>{t()}):i._outer.run(()=>{t()}),xf(i)}function WM(i){let t=()=>{$M(i)},e=HM++;i._inner=i._inner.fork({name:"angular",properties:{[_m]:!0,[fl]:e,[fl+e]:!0},onInvokeTask:(n,r,o,s,a,c)=>{if(qM(c))return n.invokeTask(o,s,a,c);try{return u_(i),n.invokeTask(o,s,a,c)}finally{(i.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||i.shouldCoalesceRunChangeDetection)&&t(),h_(i)}},onInvoke:(n,r,o,s,a,c,l)=>{try{return u_(i),n.invoke(o,s,a,c,l)}finally{i.shouldCoalesceRunChangeDetection&&!i.callbackScheduled&&!GM(c)&&t(),h_(i)}},onHasTask:(n,r,o,s)=>{n.hasTask(o,s),r===o&&(s.change=="microTask"?(i._hasPendingMicrotasks=s.microTask,xf(i),ym(i)):s.change=="macroTask"&&(i.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,o,s)=>(n.handleError(o,s),i.runOutsideAngular(()=>i.onError.emit(s)),!1)})}function xf(i){i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&i.callbackScheduled===!0?i.hasPendingMicrotasks=!0:i.hasPendingMicrotasks=!1}function u_(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function h_(i){i._nesting--,ym(i)}var ml=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Y,this.onMicrotaskEmpty=new Y,this.onStable=new Y,this.onError=new Y}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}};function qM(i){return Vy(i,"__ignore_ng_zone__")}function GM(i){return Vy(i,"__scheduler_tick__")}function Vy(i,t){return!Array.isArray(i)||i.length!==1?!1:i[0]?.data?.[t]===!0}function YM(i="zone.js",t){return i==="noop"?new ml:i==="zone.js"?new U(t):i}var qi=class{constructor(){this._console=console}handleError(t){let e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Qh(t);for(;e&&Qh(e);)e=Qh(e);return e||null}},KM=new M("",{providedIn:"root",factory:()=>{let i=x(U),t=x(qi);return e=>i.runOutsideAngular(()=>t.handleError(e))}});function QM(){return Wo(yt(),Ee())}function Wo(i,t){return new Q(ui(i,t))}var Q=(()=>{class i{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=QM}}return i})();function By(i){return i instanceof Q?i.nativeElement:i}function ZM(){return this._results[Symbol.iterator]()}var Pr=class i{get changes(){return this._changes??=new Y}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let e=i.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=ZM)}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,e){return this._results.reduce(t,e)}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,e){this.dirty=!1;let n=_k(t);(this._changesDetected=!vk(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function zy(i){return(i.flags&128)===128}var Hy=new Map,XM=0;function JM(){return XM++}function eS(i){Hy.set(i[Bl],i)}function Cf(i){Hy.delete(i[Bl])}var f_="__ngContext__";function Gn(i,t){$n(t)?(i[f_]=t[Bl],eS(t)):i[f_]=t}function Uy(i){return Wy(i[Hs])}function $y(i){return Wy(i[Di])}function Wy(i){for(;i!==null&&!mn(i);)i=i[Di];return i}var Df;function qy(i){Df=i}function tS(){if(Df!==void 0)return Df;if(typeof document<"u")return document;throw new F(210,!1)}var Ys=new M("",{providedIn:"root",factory:()=>iS}),iS="ng",wm=new M(""),Ut=new M("",{providedIn:"platform",factory:()=>"unknown"});var ot=new M(""),Ks=new M("",{providedIn:"root",factory:()=>tS().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var nS="h",rS="b";var oS=()=>null;function xm(i,t,e=!1){return oS(i,t,e)}var Gy=!1,sS=new M("",{providedIn:"root",factory:()=>Gy});var Wc;function aS(){if(Wc===void 0&&(Wc=null,Ei.trustedTypes))try{Wc=Ei.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return Wc}function m_(i){return aS()?.createScriptURL(i)||i}var pl=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${T_})`}};function qo(i){return i instanceof pl?i.changingThisBreaksApplicationSecurity:i}function Cm(i,t){let e=cS(i);if(e!=null&&e!==t){if(e==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${T_})`)}return e===t}function cS(i){return i instanceof pl&&i.getTypeName()||null}var lS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Yy(i){return i=String(i),i.match(lS)?i:"unsafe:"+i}var Ql=function(i){return i[i.NONE=0]="NONE",i[i.HTML=1]="HTML",i[i.STYLE=2]="STYLE",i[i.SCRIPT=3]="SCRIPT",i[i.URL=4]="URL",i[i.RESOURCE_URL=5]="RESOURCE_URL",i}(Ql||{});function dS(i){let t=Qy();return t?t.sanitize(Ql.URL,i)||"":Cm(i,"URL")?qo(i):Yy(Hn(i))}function uS(i){let t=Qy();if(t)return m_(t.sanitize(Ql.RESOURCE_URL,i)||"");if(Cm(i,"ResourceURL"))return m_(qo(i));throw new F(904,!1)}function hS(i,t){return t==="src"&&(i==="embed"||i==="frame"||i==="iframe"||i==="media"||i==="script")||t==="href"&&(i==="base"||i==="link")?uS:dS}function Ky(i,t,e){return hS(t,e)(i)}function Qy(){let i=Ee();return i&&i[$i].sanitizer}var fS=/^>|^->|<!--|-->|--!>|<!-$/g,mS=/(<|>)/g,pS="\u200B$1\u200B";function gS(i){return i.replace(fS,t=>t.replace(mS,pS))}function Dm(i){return i.ownerDocument}function Zy(i){return i instanceof Function?i():i}function Xy(i){return(i??x(be)).get(Ut)==="browser"}var fn=function(i){return i[i.Important=1]="Important",i[i.DashCase=2]="DashCase",i}(fn||{}),bS;function Em(i,t){return bS(i,t)}function Ao(i,t,e,n,r){if(n!=null){let o,s=!1;mn(n)?o=n:$n(n)&&(s=!0,n=n[Gi]);let a=Wi(n);i===0&&e!==null?r==null?n0(t,e,a):bl(t,e,a,r||null,!0):i===1&&e!==null?bl(t,e,a,r||null,!0):i===2?TS(t,a,s):i===3&&t.destroyNode(a),o!=null&&OS(t,i,o,e,r)}}function vS(i,t){return i.createText(t)}function _S(i,t,e){i.setValue(t,e)}function yS(i,t){return i.createComment(gS(t))}function Jy(i,t,e){return i.createElement(t,e)}function wS(i,t){e0(i,t),t[Gi]=null,t[Ht]=null}function xS(i,t,e,n,r,o){n[Gi]=r,n[Ht]=t,Xl(i,n,e,1,r,o)}function e0(i,t){t[$i].changeDetectionScheduler?.notify(9),Xl(i,t,t[et],2,null,null)}function CS(i){let t=i[Hs];if(!t)return Zh(i[we],i);for(;t;){let e=null;if($n(t))e=t[Hs];else{let n=t[Bt];n&&(e=n)}if(!e){for(;t&&!t[Di]&&t!==i;)$n(t)&&Zh(t[we],t),t=t[kt];t===null&&(t=i),$n(t)&&Zh(t[we],t),e=t&&t[Di]}t=e}}function DS(i,t,e,n){let r=Bt+n,o=e.length;n>0&&(e[r-1][Di]=t),n<o-Bt?(t[Di]=e[r],z_(e,Bt+n,t)):(e.push(t),t[Di]=null),t[kt]=e;let s=t[Sr];s!==null&&e!==s&&t0(s,t);let a=t[un];a!==null&&a.insertView(i),mf(t),t[ue]|=128}function t0(i,t){let e=i[Vo],n=t[kt];if($n(n))i[ue]|=cl.HasTransplantedViews;else{let r=n[kt][li];t[li]!==r&&(i[ue]|=cl.HasTransplantedViews)}e===null?i[Vo]=[t]:e.push(t)}function Im(i,t){let e=i[Vo],n=e.indexOf(t);e.splice(n,1)}function gl(i,t){if(i.length<=Bt)return;let e=Bt+t,n=i[e];if(n){let r=n[Sr];r!==null&&r!==i&&Im(r,n),t>0&&(i[e-1][Di]=n[Di]);let o=rl(i,Bt+t);wS(n[we],n);let s=o[un];s!==null&&s.detachView(o[we]),n[kt]=null,n[Di]=null,n[ue]&=-129}return n}function km(i,t){if(!(t[ue]&256)){let e=t[et];e.destroyNode&&Xl(i,t,e,3,null,null),CS(t)}}function Zh(i,t){if(t[ue]&256)return;let e=Oe(null);try{t[ue]&=-129,t[ue]|=256,t[ai]&&mc(t[ai]),IS(i,t),ES(i,t),t[we].type===1&&t[et].destroy();let n=t[Sr];if(n!==null&&mn(t[kt])){n!==t[kt]&&Im(n,t);let r=t[un];r!==null&&r.detachView(i)}Cf(t)}finally{Oe(e)}}function ES(i,t){let e=i.cleanup,n=t[sl];if(e!==null)for(let o=0;o<e.length-1;o+=2)if(typeof e[o]=="string"){let s=e[o+3];s>=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[e[o+1]];e[o].call(s)}n!==null&&(t[sl]=null);let r=t[Un];if(r!==null){t[Un]=null;for(let o=0;o<r.length;o++){let s=r[o];s()}}}function IS(i,t){let e;if(i!=null&&(e=i.destroyHooks)!=null)for(let n=0;n<e.length;n+=2){let r=t[e[n]];if(!(r instanceof Or)){let o=e[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],c=o[s+1];zi(4,a,c);try{c.call(a)}finally{zi(5,a,c)}}else{zi(4,r,o);try{o.call(r)}finally{zi(5,r,o)}}}}}function i0(i,t,e){return kS(i,t.parent,e)}function kS(i,t,e){let n=t;for(;n!==null&&n.type&168;)t=n,n=t.parent;if(n===null)return e[Gi];{let{componentOffset:r}=n;if(r>-1){let{encapsulation:o}=i.data[n.directiveStart+r];if(o===Ui.None||o===Ui.Emulated)return null}return ui(n,e)}}function bl(i,t,e,n,r){i.insertBefore(t,e,n,r)}function n0(i,t,e){i.appendChild(t,e)}function p_(i,t,e,n,r){n!==null?bl(i,t,e,n,r):n0(i,t,e)}function r0(i,t){return i.parentNode(t)}function MS(i,t){return i.nextSibling(t)}function o0(i,t,e){return AS(i,t,e)}function SS(i,t,e){return i.type&40?ui(i,e):null}var AS=SS,g_;function Zl(i,t,e,n){let r=i0(i,n,t),o=t[et],s=n.parent||t[Ht],a=o0(s,n,t);if(r!=null)if(Array.isArray(e))for(let c=0;c<e.length;c++)p_(o,r,e[c],a,!1);else p_(o,r,e,a,!1);g_!==void 0&&g_(o,n,t,e,r)}function Ps(i,t){if(t!==null){let e=t.type;if(e&3)return ui(t,i);if(e&4)return Ef(-1,i[t.index]);if(e&8){let n=t.child;if(n!==null)return Ps(i,n);{let r=i[t.index];return mn(r)?Ef(-1,r):Wi(r)}}else{if(e&128)return Ps(i,t.next);if(e&32)return Em(t,i)()||Wi(i[t.index]);{let n=s0(i,t);if(n!==null){if(Array.isArray(n))return n[0];let r=Tr(i[li]);return Ps(r,n)}else return Ps(i,t.next)}}}return null}function s0(i,t){if(t!==null){let n=i[li][Ht],r=t.projection;return n.projection[r]}return null}function Ef(i,t){let e=Bt+i+1;if(e<t.length){let n=t[e],r=n[we].firstChild;if(r!==null)return Ps(n,r)}return t[Ar]}function TS(i,t,e){i.removeChild(null,t,e)}function Mm(i,t,e,n,r,o,s){for(;e!=null;){if(e.type===128){e=e.next;continue}let a=n[e.index],c=e.type;if(s&&t===0&&(a&&Gn(Wi(a),n),e.flags|=2),(e.flags&32)!==32)if(c&8)Mm(i,t,e.child,n,r,o,!1),Ao(t,i,r,a,o);else if(c&32){let l=Em(e,n),d;for(;d=l();)Ao(t,i,r,d,o);Ao(t,i,r,a,o)}else c&16?a0(i,t,n,e,r,o):Ao(t,i,r,a,o);e=s?e.projectionNext:e.next}}function Xl(i,t,e,n,r,o){Mm(e,n,i.firstChild,t,r,o,!1)}function RS(i,t,e){let n=t[et],r=i0(i,e,t),o=e.parent||t[Ht],s=o0(o,e,t);a0(n,0,t,e,r,s)}function a0(i,t,e,n,r,o){let s=e[li],c=s[Ht].projection[n.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let d=c[l];Ao(t,i,r,d,o)}else{let l=c,d=s[kt];zy(n)&&(l.flags|=128),Mm(i,t,l,d,r,o,!0)}}function OS(i,t,e,n,r){let o=e[Ar],s=Wi(e);o!==s&&Ao(t,i,n,o,r);for(let a=Bt;a<e.length;a++){let c=e[a];Xl(c[we],c,i,t,n,o)}}function NS(i,t,e,n,r){if(t)r?i.addClass(e,n):i.removeClass(e,n);else{let o=n.indexOf("-")===-1?void 0:fn.DashCase;r==null?i.removeStyle(e,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=fn.Important),i.setStyle(e,n,r,o))}}function PS(i,t,e){i.setAttribute(t,"style",e)}function c0(i,t,e){e===""?i.removeAttribute(t,"class"):i.setAttribute(t,"class",e)}function l0(i,t,e){let{mergedAttrs:n,classes:r,styles:o}=e;n!==null&&cf(i,t,n),r!==null&&c0(i,t,r),o!==null&&PS(i,t,o)}var hi={};function D(i=1){d0(tt(),Ee(),Zn()+i,!1)}function d0(i,t,e,n){if(!n)if((t[ue]&3)===3){let o=i.preOrderCheckHooks;o!==null&&Xc(t,o,e)}else{let o=i.preOrderHooks;o!==null&&Jc(t,o,0,e)}Rr(e)}function g(i,t=Me.Default){let e=Ee();if(e===null)return _(i,t);let n=yt();return Oy(n,e,Rt(i),t)}function Jl(){let i="invalid";throw new Error(i)}function u0(i,t,e,n,r,o){let s=Oe(null);try{let a=null;r&Wn.SignalBased&&(a=t[n][oi]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),r&Wn.HasDecoratorInputTransform&&(o=i.inputTransforms[n].call(t,o)),i.setInput!==null?i.setInput(t,a,o,e,n):sy(t,a,n,o)}finally{Oe(s)}}function FS(i,t){let e=i.hostBindingOpCodes;if(e!==null)try{for(let n=0;n<e.length;n++){let r=e[n];if(r<0)Rr(~r);else{let o=r,s=e[++n],a=e[++n];_M(s,o);let c=t[o];a(2,c)}}}finally{Rr(-1)}}function ed(i,t,e,n,r,o,s,a,c,l,d){let u=t.blueprint.slice();return u[Gi]=r,u[ue]=n|4|128|8|64,(l!==null||i&&i[ue]&2048)&&(u[ue]|=2048),hy(u),u[kt]=u[$o]=i,u[ci]=e,u[$i]=s||i&&i[$i],u[et]=a||i&&i[et],u[jo]=c||i&&i[jo]||null,u[Ht]=o,u[Bl]=JM(),u[zs]=d,u[oy]=l,u[li]=t.type==2?i[li]:u,u}function Go(i,t,e,n,r){let o=i.data[t];if(o===null)o=LS(i,t,e,n,r),vM()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=n,o.attrs=r;let s=fM();o.injectorIndex=s===null?-1:s.injectorIndex}return jr(o,!0),o}function LS(i,t,e,n,r){let o=vy(),s=dm(),a=s?o:o&&o.parent,c=i.data[t]=US(i,a,e,t,n,r);return i.firstChild===null&&(i.firstChild=c),o!==null&&(s?o.child==null&&c.parent!==null&&(o.child=c):o.next===null&&(o.next=c,c.prev=o)),c}function h0(i,t,e,n){if(e===0)return-1;let r=t.length;for(let o=0;o<e;o++)t.push(n),i.blueprint.push(n),i.data.push(null);return r}function f0(i,t,e,n,r){let o=Zn(),s=n&2;try{Rr(-1),s&&t.length>zt&&d0(i,t,zt,!1),zi(s?2:0,r),e(n,r)}finally{Rr(o),zi(s?3:1,r)}}function Sm(i,t,e){if(am(t)){let n=Oe(null);try{let r=t.directiveStart,o=t.directiveEnd;for(let s=r;s<o;s++){let a=i.data[s];if(a.contentQueries){let c=e[s];a.contentQueries(1,c,s)}}}finally{Oe(n)}}}function Am(i,t,e){gy()&&(KS(i,t,e,ui(e,t)),(e.flags&64)===64&&g0(i,t,e))}function Tm(i,t,e=ui){let n=t.localNames;if(n!==null){let r=t.index+1;for(let o=0;o<n.length;o+=2){let s=n[o+1],a=s===-1?e(t,i):i[s];i[r++]=a}}}function m0(i){let t=i.tView;return t===null||t.incompleteFirstPass?i.tView=Rm(1,null,i.template,i.decls,i.vars,i.directiveDefs,i.pipeDefs,i.viewQuery,i.schemas,i.consts,i.id):t}function Rm(i,t,e,n,r,o,s,a,c,l,d){let u=zt+n,f=u+r,h=jS(u,f),m=typeof l=="function"?l():l;return h[we]={type:i,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,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:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1,ssrId:d}}function jS(i,t){let e=[];for(let n=0;n<t;n++)e.push(n<i?null:hi);return e}function VS(i,t,e,n){let o=n.get(sS,Gy)||e===Ui.ShadowDom,s=i.selectRootElement(t,o);return BS(s),s}function BS(i){zS(i)}var zS=()=>null;function HS(i,t,e,n){let r=_0(t);r.push(e),i.firstCreatePass&&y0(i).push(n,r.length-1)}function US(i,t,e,n,r,o){let s=t?t.injectorIndex:-1,a=0;return by()&&(a|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,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}}function b_(i,t,e,n,r){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;n??={};let a,c=Wn.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(r!==null){if(!r.hasOwnProperty(o))continue;l=r[o]}i===0?v_(n,e,l,a,c):v_(n,e,l,a)}return n}function v_(i,t,e,n,r){let o;i.hasOwnProperty(e)?(o=i[e]).push(t,n):o=i[e]=[t,n],r!==void 0&&o.push(r)}function $S(i,t,e){let n=t.directiveStart,r=t.directiveEnd,o=i.data,s=t.attrs,a=[],c=null,l=null;for(let d=n;d<r;d++){let u=o[d],f=e?e.get(u):null,h=f?f.inputs:null,m=f?f.outputs:null;c=b_(0,u.inputs,d,c,h),l=b_(1,u.outputs,d,l,m);let p=c!==null&&s!==null&&!im(t)?sA(c,d,s):null;a.push(p)}c!==null&&(c.hasOwnProperty("class")&&(t.flags|=8),c.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=c,t.outputs=l}function WS(i){return i==="class"?"className":i==="for"?"htmlFor":i==="formaction"?"formAction":i==="innerHtml"?"innerHTML":i==="readonly"?"readOnly":i==="tabindex"?"tabIndex":i}function td(i,t,e,n,r,o,s,a){let c=ui(t,e),l=t.inputs,d;!a&&l!=null&&(d=l[n])?(Nm(i,e,d,n,r),zl(t)&&qS(e,t.index)):t.type&3?(n=WS(n),r=s!=null?s(r,t.value||"",n):r,o.setProperty(c,n,r)):t.type&12}function qS(i,t){let e=Qn(t,i);e[ue]&16||(e[ue]|=64)}function Om(i,t,e,n){if(gy()){let r=n===null?null:{"":-1},o=ZS(i,e),s,a;o===null?s=a=null:[s,a]=o,s!==null&&p0(i,t,e,s,r,a),r&&XS(e,n,r)}e.mergedAttrs=Vs(e.mergedAttrs,e.attrs)}function p0(i,t,e,n,r,o){for(let l=0;l<n.length;l++)vf(ul(e,t),i,n[l].type);eA(e,i.data.length,n.length);for(let l=0;l<n.length;l++){let d=n[l];d.providersResolver&&d.providersResolver(d)}let s=!1,a=!1,c=h0(i,t,n.length,null);for(let l=0;l<n.length;l++){let d=n[l];e.mergedAttrs=Vs(e.mergedAttrs,d.hostAttrs),tA(i,e,t,c,d),JS(c,d,r),d.contentQueries!==null&&(e.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(e.flags|=64);let u=d.type.prototype;!s&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((i.preOrderHooks??=[]).push(e.index),s=!0),!a&&(u.ngOnChanges||u.ngDoCheck)&&((i.preOrderCheckHooks??=[]).push(e.index),a=!0),c++}$S(i,e,o)}function GS(i,t,e,n,r){let o=r.hostBindings;if(o){let s=i.hostBindingOpCodes;s===null&&(s=i.hostBindingOpCodes=[]);let a=~t.index;YS(s)!=a&&s.push(a),s.push(e,n,o)}}function YS(i){let t=i.length;for(;t>0;){let e=i[--t];if(typeof e=="number"&&e<0)return e}return 0}function KS(i,t,e,n){let r=e.directiveStart,o=e.directiveEnd;zl(e)&&iA(t,e,i.data[r+e.componentOffset]),i.firstCreatePass||ul(e,t),Gn(n,t);let s=e.initialInputs;for(let a=r;a<o;a++){let c=i.data[a],l=Nr(t,i,a,e);if(Gn(l,t),s!==null&&oA(t,a-r,l,c,e,s),hn(c)){let d=Qn(e.index,t);d[ci]=Nr(t,i,a,e)}}}function g0(i,t,e){let n=e.directiveStart,r=e.directiveEnd,o=e.index,s=yM();try{Rr(o);for(let a=n;a<r;a++){let c=i.data[a],l=t[a];pf(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&QS(c,l)}}finally{Rr(-1),pf(s)}}function QS(i,t){i.hostBindings!==null&&i.hostBindings(1,t)}function ZS(i,t){let e=i.directiveRegistry,n=null,r=null;if(e)for(let o=0;o<e.length;o++){let s=e[o];if(G_(t,s.selectors,!1))if(n||(n=[]),hn(s))if(s.findHostDirectiveDefs!==null){let a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),n.unshift(...a,s);let c=a.length;If(i,t,c)}else n.unshift(s),If(i,t,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return n===null?null:[n,r]}function If(i,t,e){t.componentOffset=e,(i.components??=[]).push(t.index)}function XS(i,t,e){if(t){let n=i.localNames=[];for(let r=0;r<t.length;r+=2){let o=e[t[r+1]];if(o==null)throw new F(-301,!1);n.push(t[r],o)}}}function JS(i,t,e){if(e){if(t.exportAs)for(let n=0;n<t.exportAs.length;n++)e[t.exportAs[n]]=i;hn(t)&&(e[""]=i)}}function eA(i,t,e){i.flags|=1,i.directiveStart=t,i.directiveEnd=t+e,i.providerIndexes=t}function tA(i,t,e,n,r){i.data[n]=r;let o=r.factory||(r.factory=No(r.type,!0)),s=new Or(o,hn(r),g);i.blueprint[n]=s,e[n]=s,GS(i,t,n,h0(i,e,r.hostVars,hi),r)}function iA(i,t,e){let n=ui(t,i),r=m0(e),o=i[$i].rendererFactory,s=16;e.signals?s=4096:e.onPush&&(s=64);let a=id(i,ed(i,r,null,s,n,t,null,o.createRenderer(n,e),null,null,null));i[t.index]=a}function nA(i,t,e,n,r,o){let s=ui(i,t);rA(t[et],s,o,i.value,e,n,r)}function rA(i,t,e,n,r,o,s){if(o==null)i.removeAttribute(t,r,e);else{let a=s==null?Hn(o):s(o,n||"",r);i.setAttribute(t,r,a,e)}}function oA(i,t,e,n,r,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;){let c=s[a++],l=s[a++],d=s[a++],u=s[a++];u0(n,e,c,l,d,u)}}function sA(i,t,e){let n=null,r=0;for(;r<e.length;){let o=e[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(i.hasOwnProperty(o)){n===null&&(n=[]);let s=i[o];for(let a=0;a<s.length;a+=3)if(s[a]===t){n.push(o,s[a+1],s[a+2],e[r+1]);break}}r+=2}return n}function b0(i,t,e,n){return[i,!0,0,t,null,n,null,e,null,null]}function v0(i,t){let e=i.contentQueries;if(e!==null){let n=Oe(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],s=e[r+1];if(s!==-1){let a=i.data[s];Wl(o),a.contentQueries(2,t[s],s)}}}finally{Oe(n)}}}function id(i,t){return i[Hs]?i[i_][Di]=t:i[Hs]=t,i[i_]=t,t}function kf(i,t,e){Wl(0);let n=Oe(null);try{t(i,e)}finally{Oe(n)}}function _0(i){return i[sl]??=[]}function y0(i){return i.cleanup??=[]}function w0(i,t,e){return(i===null||hn(i))&&(e=iM(e[t.index])),e[et]}function x0(i,t){let e=i[jo],n=e?e.get(qi,null):null;n&&n.handleError(t)}function Nm(i,t,e,n,r){for(let o=0;o<e.length;){let s=e[o++],a=e[o++],c=e[o++],l=t[s],d=i.data[s];u0(d,l,n,a,c,r)}}function C0(i,t,e){let n=uy(t,i);_S(i[et],n,e)}function aA(i,t){let e=Qn(t,i),n=e[we];cA(n,e);let r=e[Gi];r!==null&&e[zs]===null&&(e[zs]=xm(r,e[jo])),Pm(n,e,e[ci])}function cA(i,t){for(let e=t.length;e<i.blueprint.length;e++)t.push(i.blueprint[e])}function Pm(i,t,e){pm(t);try{let n=i.viewQuery;n!==null&&kf(1,n,e);let r=i.template;r!==null&&f0(i,t,r,1,e),i.firstCreatePass&&(i.firstCreatePass=!1),t[un]?.finishViewCreation(i),i.staticContentQueries&&v0(i,t),i.staticViewQueries&&kf(2,i.viewQuery,e);let o=i.components;o!==null&&lA(t,o)}catch(n){throw i.firstCreatePass&&(i.incompleteFirstPass=!0,i.firstCreatePass=!1),n}finally{t[ue]&=-5,gm()}}function lA(i,t){for(let e=0;e<t.length;e++)aA(i,t[e])}function Fm(i,t,e,n){let r=Oe(null);try{let o=t.tView,a=i[ue]&4096?4096:16,c=ed(i,o,e,a,null,t,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),l=i[t.index];c[Sr]=l;let d=i[un];return d!==null&&(c[un]=d.createEmbeddedView(o)),Pm(o,c,e),c}finally{Oe(r)}}function dA(i,t){let e=Bt+t;if(e<i.length)return i[e]}function vl(i,t){return!t||t.firstChild===null||zy(i)}function Lm(i,t,e,n=!0){let r=t[we];if(DS(r,t,i,e),n){let s=Ef(e,i),a=t[et],c=r0(a,i[Ar]);c!==null&&xS(r,i[Ht],a,t,c,s)}let o=t[zs];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function uA(i,t){let e=gl(i,t);return e!==void 0&&km(e[we],e),e}function _l(i,t,e,n,r=!1){for(;e!==null;){if(e.type===128){e=r?e.projectionNext:e.next;continue}let o=t[e.index];o!==null&&n.push(Wi(o)),mn(o)&&hA(o,n);let s=e.type;if(s&8)_l(i,t,e.child,n);else if(s&32){let a=Em(e,t),c;for(;c=a();)n.push(c)}else if(s&16){let a=s0(t,e);if(Array.isArray(a))n.push(...a);else{let c=Tr(t[li]);_l(c[we],c,a,n,!0)}}e=r?e.projectionNext:e.next}return n}function hA(i,t){for(let e=Bt;e<i.length;e++){let n=i[e],r=n[we].firstChild;r!==null&&_l(n[we],n,r,t)}i[Ar]!==i[Gi]&&t.push(i[Ar])}var D0=[];function fA(i){return i[ai]??mA(i)}function mA(i){let t=D0.pop()??Object.create(gA);return t.lView=i,t}function pA(i){i.lView[ai]!==i&&(i.lView=null,D0.push(i))}var gA=De(k({},po),{consumerIsAlwaysLive:!0,consumerMarkedDirty:i=>{$l(i.lView)},consumerOnSignalRead(){this.lView[ai]=this}});function bA(i){let t=i[ai]??Object.create(vA);return t.lView=i,t}var vA=De(k({},po),{consumerIsAlwaysLive:!0,consumerMarkedDirty:i=>{let t=Tr(i.lView);for(;t&&!E0(t[we]);)t=Tr(t);t&&fy(t)},consumerOnSignalRead(){this.lView[ai]=this}});function E0(i){return i.type!==2}var _A=100;function I0(i,t=!0,e=0){let n=i[$i],r=n.rendererFactory,o=!1;o||r.begin?.();try{yA(i,e)}catch(s){throw t&&x0(i,s),s}finally{o||(r.end?.(),n.inlineEffectRunner?.flush())}}function yA(i,t){let e=_y();try{r_(!0),Mf(i,t);let n=0;for(;Ul(i);){if(n===_A)throw new F(103,!1);n++,Mf(i,1)}}finally{r_(e)}}function wA(i,t,e,n){let r=t[ue];if((r&256)===256)return;let o=!1,s=!1;!o&&t[$i].inlineEffectRunner?.flush(),pm(t);let a=!0,c=null,l=null;o||(E0(i)?(l=fA(t),c=Ss(l)):rv()===null?(a=!1,l=bA(t),c=Ss(l)):t[ai]&&(mc(t[ai]),t[ai]=null));try{hy(t),bM(i.bindingStartIndex),e!==null&&f0(i,t,e,2,n);let d=(r&3)===3;if(!o)if(d){let h=i.preOrderCheckHooks;h!==null&&Xc(t,h,null)}else{let h=i.preOrderHooks;h!==null&&Jc(t,h,0,null),Gh(t,0)}if(s||xA(t),k0(t,0),i.contentQueries!==null&&v0(i,t),!o)if(d){let h=i.contentCheckHooks;h!==null&&Xc(t,h)}else{let h=i.contentHooks;h!==null&&Jc(t,h,1),Gh(t,1)}FS(i,t);let u=i.components;u!==null&&S0(t,u,0);let f=i.viewQuery;if(f!==null&&kf(2,f,n),!o)if(d){let h=i.viewCheckHooks;h!==null&&Xc(t,h)}else{let h=i.viewHooks;h!==null&&Jc(t,h,2),Gh(t,2)}if(i.firstUpdatePass===!0&&(i.firstUpdatePass=!1),t[Zc]){for(let h of t[Zc])h();t[Zc]=null}o||(t[ue]&=-73)}catch(d){throw o||$l(t),d}finally{l!==null&&(hc(l,c),a&&pA(l)),gm()}}function k0(i,t){for(let e=Uy(i);e!==null;e=$y(e))for(let n=Bt;n<e.length;n++){let r=e[n];M0(r,t)}}function xA(i){for(let t=Uy(i);t!==null;t=$y(t)){if(!(t[ue]&cl.HasTransplantedViews))continue;let e=t[Vo];for(let n=0;n<e.length;n++){let r=e[n];fy(r)}}}function CA(i,t,e){let n=Qn(t,i);M0(n,e)}function M0(i,t){lm(i)&&Mf(i,t)}function Mf(i,t){let n=i[we],r=i[ue],o=i[ai],s=!!(t===0&&r&16);if(s||=!!(r&64&&t===0),s||=!!(r&1024),s||=!!(o?.dirty&&fc(o)),s||=!1,o&&(o.dirty=!1),i[ue]&=-9217,s)wA(n,i,n.template,i[ci]);else if(r&8192){k0(i,1);let a=n.components;a!==null&&S0(i,a,1)}}function S0(i,t,e){for(let n=0;n<t.length;n++)CA(i,t[n],e)}function jm(i,t){let e=_y()?64:1088;for(i[$i].changeDetectionScheduler?.notify(t);i;){i[ue]|=e;let n=Tr(i);if(hf(i)&&!n)return i;i=n}return null}var Fr=class{get rootNodes(){let t=this._lView,e=t[we];return _l(e,t,e.firstChild,[])}constructor(t,e,n=!0){this._lView=t,this._cdRefInjectingView=e,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ci]}set context(t){this._lView[ci]=t}get destroyed(){return(this._lView[ue]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[kt];if(mn(t)){let e=t[al],n=e?e.indexOf(this):-1;n>-1&&(gl(t,n),rl(e,n))}this._attachedToViewContainer=!1}km(this._lView[we],this._lView)}onDestroy(t){my(this._lView,t)}markForCheck(){jm(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[ue]&=-129}reattach(){mf(this._lView),this._lView[ue]|=128}detectChanges(){this._lView[ue]|=1024,I0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=hf(this._lView),e=this._lView[Sr];e!==null&&!t&&Im(e,this._lView),e0(this._lView[we],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=t;let e=hf(this._lView),n=this._lView[Sr];n!==null&&!e&&t0(n,this._lView),mf(this._lView)}},Ct=(()=>{class i{static{this.__NG_ELEMENT_ID__=IA}}return i})(),DA=Ct,EA=class extends DA{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,e){return this.createEmbeddedViewImpl(t,e)}createEmbeddedViewImpl(t,e,n){let r=Fm(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:e,dehydratedView:n});return new Fr(r)}};function IA(){return nd(yt(),Ee())}function nd(i,t){return i.type&4?new EA(t,i,Wo(i,t)):null}var j5=new RegExp(`^(\\d+)*(${rS}|${nS})*(.*)`);var kA=()=>null;function yl(i,t){return kA(i,t)}var zo=class{},Vm=new M("",{providedIn:"root",factory:()=>!1});var A0=new M(""),T0=new M(""),Sf=class{},wl=class{};function MA(i){let t=Error(`No component factory found for ${Nt(i)}.`);return t[SA]=i,t}var SA="ngComponent";var Af=class{resolveComponentFactory(t){throw MA(t)}},Yt=class{static{this.NULL=new Af}},Yn=class{},gn=(()=>{class i{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>AA()}}return i})();function AA(){let i=Ee(),t=yt(),e=Qn(t.index,i);return($n(e)?e:i)[et]}var TA=(()=>{class i{static{this.\u0275prov=I({token:i,providedIn:"root",factory:()=>null})}}return i})();function xl(i,t,e){let n=e?i.styles:null,r=e?i.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)r=rf(r,a);else if(o==2){let c=a,l=t[++s];n=rf(n,c+": "+l+";")}}e?i.styles=n:i.stylesWithoutHost=n,e?i.classes=r:i.classesWithoutHost=r}var Cl=class extends Yt{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let e=qn(t);return new Ho(e,this.ngModule)}};function __(i,t){let e=[];for(let n in i){if(!i.hasOwnProperty(n))continue;let r=i[n];if(r===void 0)continue;let o=Array.isArray(r),s=o?r[0]:r,a=o?r[1]:Wn.None;t?e.push({propName:s,templateName:n,isSignal:(a&Wn.SignalBased)!==0}):e.push({propName:s,templateName:n})}return e}function RA(i){let t=i.toLowerCase();return t==="svg"?dy:t==="math"?tM:null}var Ho=class extends wl{get inputs(){let t=this.componentDef,e=t.inputTransforms,n=__(t.inputs,!0);if(e!==null)for(let r of n)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return n}get outputs(){return __(this.componentDef.outputs,!1)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=Nk(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,n,r){let o=Oe(null);try{r=r||this.ngModule;let s=r instanceof xt?r:r?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new gf(t,s):t,c=a.get(Yn,null);if(c===null)throw new F(407,!1);let l=a.get(TA,null),d=a.get(zo,null),u={rendererFactory:c,sanitizer:l,inlineEffectRunner:null,changeDetectionScheduler:d},f=c.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",m=n?VS(f,n,this.componentDef.encapsulation,a):Jy(f,h,RA(h)),p=512;this.componentDef.signals?p|=4096:this.componentDef.onPush||(p|=16);let v=null;m!==null&&(v=xm(m,a,!0));let E=Rm(0,null,null,1,0,null,null,null,null,null,null),A=ed(null,E,null,p,null,null,u,f,a,null,v);pm(A);let C,N,L=null;try{let B=this.componentDef,W,ee=null;B.findHostDirectiveDefs?(W=[],ee=new Map,B.findHostDirectiveDefs(B,W,ee),W.push(B)):W=[B];let he=OA(A,m);L=NA(he,m,B,W,A,u,f),N=cm(E,zt),m&&LA(f,B,m,n),e!==void 0&&jA(N,this.ngContentSelectors,e),C=FA(L,B,W,ee,A,[VA]),Pm(E,A,null)}catch(B){throw L!==null&&Cf(L),Cf(A),B}finally{gm()}return new Tf(this.componentType,C,Wo(N,A),A,N)}finally{Oe(o)}}},Tf=class extends Sf{constructor(t,e,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=e,this.hostView=this.changeDetectorRef=new Fr(r,void 0,!1),this.componentType=t}setInput(t,e){let n=this._tNode.inputs,r;if(n!==null&&(r=n[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),e))return;let o=this._rootLView;Nm(o[we],o,r,t,e),this.previousInputValues.set(t,e);let s=Qn(this._tNode.index,o);jm(s,1)}}get injector(){return new Mr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function OA(i,t){let e=i[we],n=zt;return i[n]=t,Go(e,n,2,"#host",null)}function NA(i,t,e,n,r,o,s){let a=r[we];PA(n,i,t,s);let c=null;t!==null&&(c=xm(t,r[jo]));let l=o.rendererFactory.createRenderer(t,e),d=16;e.signals?d=4096:e.onPush&&(d=64);let u=ed(r,m0(e),null,d,r[i.index],i,o,l,null,null,c);return a.firstCreatePass&&If(a,i,n.length-1),id(r,u),r[i.index]=u}function PA(i,t,e,n){for(let r of i)t.mergedAttrs=Vs(t.mergedAttrs,r.hostAttrs);t.mergedAttrs!==null&&(xl(t,t.mergedAttrs,!0),e!==null&&l0(n,e,t))}function FA(i,t,e,n,r,o){let s=yt(),a=r[we],c=ui(s,r);p0(a,r,s,e,null,n);for(let d=0;d<e.length;d++){let u=s.directiveStart+d,f=Nr(r,a,u,s);Gn(f,r)}g0(a,r,s),c&&Gn(c,r);let l=Nr(r,a,s.directiveStart+s.componentOffset,s);if(i[ci]=r[ci]=l,o!==null)for(let d of o)d(l,t);return Sm(a,s,r),l}function LA(i,t,e,n){if(n)cf(i,e,["ng-version","18.2.14"]);else{let{attrs:r,classes:o}=Pk(t.selectors[0]);r&&cf(i,e,r),o&&o.length>0&&c0(i,e,o.join(" "))}}function jA(i,t,e){let n=i.projection=[];for(let r=0;r<t.length;r++){let o=e[r];n.push(o!=null?Array.from(o):null)}}function VA(){let i=yt();Yl(Ee()[we],i)}var gt=(()=>{class i{static{this.__NG_ELEMENT_ID__=BA}}return i})();function BA(){let i=yt();return O0(i,Ee())}var zA=gt,R0=class extends zA{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Wo(this._hostTNode,this._hostLView)}get injector(){return new Mr(this._hostTNode,this._hostLView)}get parentInjector(){let t=vm(this._hostTNode,this._hostLView);if(ky(t)){let e=dl(t,this._hostLView),n=ll(t),r=e[we].data[n+8];return new Mr(r,e)}else return new Mr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let e=y_(this._lContainer);return e!==null&&e[t]||null}get length(){return this._lContainer.length-Bt}createEmbeddedView(t,e,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let s=yl(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,r,vl(this._hostTNode,s)),a}createComponent(t,e,n,r,o){let s=t&&!Zk(t),a;if(s)a=e;else{let m=e||{};a=m.index,n=m.injector,r=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let c=s?t:new Ho(qn(t)),l=n||this.parentInjector;if(!o&&c.ngModule==null){let p=(s?l:this.parentInjector).get(xt,null);p&&(o=p)}let d=qn(c.componentType??{}),u=yl(this._lContainer,d?.id??null),f=u?.firstChild??null,h=c.create(l,r,f,o);return this.insertImpl(h.hostView,a,vl(this._hostTNode,u)),h}insert(t,e){return this.insertImpl(t,e,!0)}insertImpl(t,e,n){let r=t._lView;if(oM(r)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=r[kt],l=new R0(c,c[Ht],c[kt]);l.detach(l.indexOf(t))}}let o=this._adjustIndex(e),s=this._lContainer;return Lm(s,r,o,n),t.attachToViewContainerRef(),z_(Xh(s),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){let e=y_(this._lContainer);return e!==null?e.indexOf(t):-1}remove(t){let e=this._adjustIndex(t,-1),n=gl(this._lContainer,e);n&&(rl(Xh(this._lContainer),e),km(n[we],n))}detach(t){let e=this._adjustIndex(t,-1),n=gl(this._lContainer,e);return n&&rl(Xh(this._lContainer),e)!=null?new Fr(n):null}_adjustIndex(t,e=0){return t??this.length+e}};function y_(i){return i[al]}function Xh(i){return i[al]||(i[al]=[])}function O0(i,t){let e,n=t[i.index];return mn(n)?e=n:(e=b0(n,t,null,i),t[i.index]=e,id(t,e)),UA(e,t,i,n),new R0(e,i,t)}function HA(i,t){let e=i[et],n=e.createComment(""),r=ui(t,i),o=r0(e,r);return bl(e,o,n,MS(e,r),!1),n}var UA=qA,$A=()=>!1;function WA(i,t,e){return $A(i,t,e)}function qA(i,t,e,n){if(i[Ar])return;let r;e.type&8?r=Wi(n):r=HA(t,e),i[Ar]=r}var Rf=class i{constructor(t){this.queryList=t,this.matches=null}clone(){return new i(this.queryList)}setDirty(){this.queryList.setDirty()}},Of=class i{constructor(t=[]){this.queries=t}createEmbeddedView(t){let e=t.queries;if(e!==null){let n=t.contentQueries!==null?t.contentQueries[0]:e.length,r=[];for(let o=0;o<n;o++){let s=e.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new i(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)zm(t,e).matches!==null&&this.queries[e].setDirty()}},Dl=class{constructor(t,e,n=null){this.flags=e,this.read=n,typeof t=="string"?this.predicate=XA(t):this.predicate=t}},Nf=class i{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){let r=e!==null?e.length:0,o=this.getByIndex(n).embeddedTView(t,r);o&&(o.indexInDeclarationView=n,e!==null?e.push(o):e=[o])}return e!==null?new i(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Pf=class i{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new i(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,n=t.parent;for(;n!==null&&n.type&8&&n.index!==e;)n=n.parent;return e===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(t,e,GA(e,o)),this.matchTNodeWithReadOption(t,e,el(e,t,o,!1,!1))}else n===Ct?e.type&4&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,el(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===Q||r===gt||r===Ct&&e.type&4)this.addMatch(e.index,-2);else{let o=el(e,t,r,!1,!1);o!==null&&this.addMatch(e.index,o)}else this.addMatch(e.index,n)}}addMatch(t,e){this.matches===null?this.matches=[t,e]:this.matches.push(t,e)}};function GA(i,t){let e=i.localNames;if(e!==null){for(let n=0;n<e.length;n+=2)if(e[n]===t)return e[n+1]}return null}function YA(i,t){return i.type&11?Wo(i,t):i.type&4?nd(i,t):null}function KA(i,t,e,n){return e===-1?YA(t,i):e===-2?QA(i,t,n):Nr(i,i[we],e,t)}function QA(i,t,e){if(e===Q)return Wo(t,i);if(e===Ct)return nd(t,i);if(e===gt)return O0(t,i)}function N0(i,t,e,n){let r=t[un].queries[n];if(r.matches===null){let o=i.data,s=e.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let d=o[l];a.push(KA(t,d,s[c+1],e.metadata.read))}}r.matches=a}return r.matches}function Ff(i,t,e,n){let r=i.queries.getByIndex(e),o=r.matches;if(o!==null){let s=N0(i,t,r,e);for(let a=0;a<o.length;a+=2){let c=o[a];if(c>0)n.push(s[a/2]);else{let l=o[a+1],d=t[-c];for(let u=Bt;u<d.length;u++){let f=d[u];f[Sr]===f[kt]&&Ff(f[we],f,l,n)}if(d[Vo]!==null){let u=d[Vo];for(let f=0;f<u.length;f++){let h=u[f];Ff(h[we],h,l,n)}}}}}return n}function Bm(i,t){return i[un].queries[t].queryList}function P0(i,t,e){let n=new Pr((e&4)===4);return HS(i,t,n,n.destroy),(t[un]??=new Of).queries.push(new Rf(n))-1}function ZA(i,t,e){let n=tt();return n.firstCreatePass&&(L0(n,new Dl(i,t,e),-1),(t&2)===2&&(n.staticViewQueries=!0)),P0(n,Ee(),t)}function F0(i,t,e,n){let r=tt();if(r.firstCreatePass){let o=yt();L0(r,new Dl(t,e,n),o.index),JA(r,i),(e&2)===2&&(r.staticContentQueries=!0)}return P0(r,Ee(),e)}function XA(i){return i.split(",").map(t=>t.trim())}function L0(i,t,e){i.queries===null&&(i.queries=new Nf),i.queries.track(new Pf(t,e))}function JA(i,t){let e=i.contentQueries||(i.contentQueries=[]),n=e.length?e[e.length-1]:-1;t!==n&&e.push(i.queries.length-1,t)}function zm(i,t){return i.queries.getByIndex(t)}function j0(i,t){let e=i[we],n=zm(e,t);return n.crossesNgTemplate?Ff(e,i,t,[]):N0(e,i,n,t)}var w_=new Set;function Ki(i){w_.has(i)||(w_.add(i),performance?.mark?.("mark_feature_usage",{detail:{feature:i}}))}function rd(i){return typeof i=="function"&&i[oi]!==void 0}function bn(i,t){Ki("NgSignals");let e=pv(i),n=e[oi];return t?.equal&&(n.equal=t.equal),e.set=r=>Mh(n,r),e.update=r=>gv(n,r),e.asReadonly=eT.bind(e),e}function eT(){let i=this[oi];if(i.readonlyFn===void 0){let t=()=>this();t[oi]=i,i.readonlyFn=t}return i.readonlyFn}function V0(i){return rd(i)&&typeof i.set=="function"}function B0(i,t){let e,n=kh(()=>{e._dirtyCounter();let r=rT(e,i);if(t&&r===void 0)throw new F(-951,!1);return r});return e=n[oi],e._dirtyCounter=bn(0),e._flatValue=void 0,n}function tT(){return B0(!0,!1)}function iT(){return B0(!0,!0)}function nT(i,t){let e=i[oi];e._lView=Ee(),e._queryIndex=t,e._queryList=Bm(e._lView,t),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function rT(i,t){let e=i._lView,n=i._queryIndex;if(e===void 0||n===void 0||e[ue]&4)return t?void 0:Ot;let r=Bm(e,n),o=j0(e,n);return r.reset(o,By),t?r.first:r._changesDetected||i._flatValue===void 0?i._flatValue=r.toArray():i._flatValue}function x_(i,t){return tT()}function oT(i,t){return iT()}var z0=(x_.required=oT,x_);function sT(i){let t=[],e=new Map;function n(r){let o=e.get(r);if(!o){let s=i(r);e.set(r,o=s.then(dT))}return o}return El.forEach((r,o)=>{let s=[];r.templateUrl&&s.push(n(r.templateUrl).then(l=>{r.template=l}));let a=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=a,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let l=r.styles.length,d=r.styleUrls;r.styleUrls.forEach((u,f)=>{a.push(""),s.push(n(u).then(h=>{a[l+f]=h,d.splice(d.indexOf(u),1),d.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&s.push(n(r.styleUrl).then(l=>{a.push(l),r.styleUrl=void 0}));let c=Promise.all(s).then(()=>uT(o));t.push(c)}),cT(),Promise.all(t).then(()=>{})}var El=new Map,aT=new Set;function cT(){let i=El;return El=new Map,i}function lT(){return El.size===0}function dT(i){return typeof i=="string"?i:i.text()}function uT(i){aT.delete(i)}function hT(i){return Object.getPrototypeOf(i.prototype).constructor}function Ge(i){let t=hT(i.type),e=!0,n=[i];for(;t;){let r;if(hn(i))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new F(903,!1);r=t.\u0275dir}if(r){if(e){n.push(r);let s=i;s.inputs=qc(i.inputs),s.inputTransforms=qc(i.inputTransforms),s.declaredInputs=qc(i.declaredInputs),s.outputs=qc(i.outputs);let a=r.hostBindings;a&&bT(i,a);let c=r.viewQuery,l=r.contentQueries;if(c&&pT(i,c),l&&gT(i,l),fT(i,r),JI(i.outputs,r.outputs),hn(r)&&r.data.animation){let d=i.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(i),a===Ge&&(e=!1)}}t=Object.getPrototypeOf(t)}mT(n)}function fT(i,t){for(let e in t.inputs){if(!t.inputs.hasOwnProperty(e)||i.inputs.hasOwnProperty(e))continue;let n=t.inputs[e];if(n!==void 0&&(i.inputs[e]=n,i.declaredInputs[e]=t.declaredInputs[e],t.inputTransforms!==null)){let r=Array.isArray(n)?n[0]:n;if(!t.inputTransforms.hasOwnProperty(r))continue;i.inputTransforms??={},i.inputTransforms[r]=t.inputTransforms[r]}}}function mT(i){let t=0,e=null;for(let n=i.length-1;n>=0;n--){let r=i[n];r.hostVars=t+=r.hostVars,r.hostAttrs=Vs(r.hostAttrs,e=Vs(e,r.hostAttrs))}}function qc(i){return i===Po?{}:i===Ot?[]:i}function pT(i,t){let e=i.viewQuery;e?i.viewQuery=(n,r)=>{t(n,r),e(n,r)}:i.viewQuery=t}function gT(i,t){let e=i.contentQueries;e?i.contentQueries=(n,r,o)=>{t(n,r,o),e(n,r,o)}:i.contentQueries=t}function bT(i,t){let e=i.hostBindings;e?i.hostBindings=(n,r)=>{t(n,r),e(n,r)}:i.hostBindings=t}function it(i){let t=i.inputConfig,e={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];Array.isArray(r)&&r[3]&&(e[n]=r[3])}i.inputTransforms=e}var Kn=class{},Us=class{};var Il=class extends Kn{constructor(t,e,n,r=!0){super(),this.ngModuleType=t,this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Cl(this);let o=Z_(t);this._bootstrapComponents=Zy(o.bootstrap),this._r3Injector=Fy(t,e,[{provide:Kn,useValue:this},{provide:Yt,useValue:this.componentFactoryResolver},...n],Nt(t),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},kl=class extends Us{constructor(t){super(),this.moduleType=t}create(t){return new Il(this.moduleType,t,[])}};function vT(i,t,e){return new Il(i,t,e,!1)}var Lf=class extends Kn{constructor(t){super(),this.componentFactoryResolver=new Cl(this),this.instance=null;let e=new Bs([...t.providers,{provide:Kn,useValue:this},{provide:Yt,useValue:this.componentFactoryResolver}],t.parent||rm(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function od(i,t,e=null){return new Lf({providers:i,parent:t,debugName:e,runEnvironmentInitializers:!0}).injector}function H0(i){return yT(i)?Array.isArray(i)||!(i instanceof Map)&&Symbol.iterator in i:!1}function _T(i,t){if(Array.isArray(i))for(let e=0;e<i.length;e++)t(i[e]);else{let e=i[Symbol.iterator](),n;for(;!(n=e.next()).done;)t(n.value)}}function yT(i){return i!==null&&(typeof i=="function"||typeof i=="object")}function wT(i,t,e){return i[t]=e}function Ii(i,t,e){let n=i[t];return Object.is(n,e)?!1:(i[t]=e,!0)}function jf(i,t,e,n){let r=Ii(i,t,e);return Ii(i,t+1,n)||r}function xT(i,t,e,n,r,o){let s=jf(i,t,e,n);return jf(i,t+2,r,o)||s}function CT(i){return(i.flags&32)===32}function DT(i,t,e,n,r,o,s,a,c){let l=t.consts,d=Go(t,i,4,s||null,a||null);Om(t,e,d,Bo(l,c)),Yl(t,d);let u=d.tView=Rm(2,d,n,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return t.queries!==null&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}function U0(i,t,e,n,r,o,s,a,c,l){let d=e+zt,u=t.firstCreatePass?DT(d,t,i,n,r,o,s,a,c):t.data[d];jr(u,!1);let f=ET(t,i,u,e);ql()&&Zl(t,i,f,u),Gn(f,i);let h=b0(f,i,f,u);return i[d]=h,id(i,h),WA(h,u,i),Hl(u)&&Am(t,i,u),c!=null&&Tm(i,u,l),u}function J(i,t,e,n,r,o,s,a){let c=Ee(),l=tt(),d=Bo(l.consts,o);return U0(c,l,i,t,e,n,r,d,s,a),J}var ET=IT;function IT(i,t,e,n){return Gl(!0),t[et].createComment("")}var To=function(i){return i[i.EarlyRead=0]="EarlyRead",i[i.Write=1]="Write",i[i.MixedReadWrite=2]="MixedReadWrite",i[i.Read=3]="Read",i}(To||{}),$0=(()=>{class i{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=I({token:i,providedIn:"root",factory:()=>new i})}}return i})(),Vf=class i{constructor(){this.ngZone=x(U),this.scheduler=x(zo),this.errorHandler=x(qi,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[To.EarlyRead,To.Write,To.MixedReadWrite,To.Read]}execute(){this.executing=!0;for(let t of i.PHASES)for(let e of this.sequences)if(!(e.erroredOrDestroyed||!e.hooks[t]))try{e.pipelinedValue=this.ngZone.runOutsideAngular(()=>e.hooks[t](e.pipelinedValue))}catch(n){e.erroredOrDestroyed=!0,this.errorHandler?.handleError(n)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=I({token:i,providedIn:"root",factory:()=>new i})}},Bf=class{constructor(t,e,n,r){this.impl=t,this.hooks=e,this.once=n,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Qs(i,t){!t?.injector&&om(Qs);let e=t?.injector??x(be);return Xy(e)?(Ki("NgAfterRender"),W0(i,e,t,!1)):q0}function ki(i,t){!t?.injector&&om(ki);let e=t?.injector??x(be);return Xy(e)?(Ki("NgAfterNextRender"),W0(i,e,t,!0)):q0}function kT(i,t){if(i instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[t]=i,e}else return[i.earlyRead,i.write,i.mixedReadWrite,i.read]}function W0(i,t,e,n){let r=t.get($0);r.impl??=t.get(Vf);let o=e?.phase??To.MixedReadWrite,s=e?.manualCleanup!==!0?t.get(Kl):null,a=new Bf(r.impl,kT(i,o),n,s);return r.impl.register(a),a}var q0={destroy(){}};function Pe(i,t,e,n){let r=Ee(),o=Vr();if(Ii(r,o,t)){let s=tt(),a=Gs();nA(a,r,i,t,e,n)}return Pe}function G0(i,t,e,n){return Ii(i,Vr(),e)?t+Hn(e)+n:hi}function MT(i,t,e,n,r,o,s,a,c,l){let d=gM(),u=xT(i,d,e,r,s,c);return hm(4),u?t+Hn(e)+n+Hn(r)+o+Hn(s)+a+Hn(c)+l:hi}function Gc(i,t){return i<<17|t<<2}function Lr(i){return i>>17&32767}function ST(i){return(i&2)==2}function AT(i,t){return i&131071|t<<17}function zf(i){return i|2}function Uo(i){return(i&131068)>>2}function Jh(i,t){return i&-131069|t<<2}function TT(i){return(i&1)===1}function Hf(i){return i|1}function RT(i,t,e,n,r,o){let s=o?t.classBindings:t.styleBindings,a=Lr(s),c=Uo(s);i[n]=e;let l=!1,d;if(Array.isArray(e)){let u=e;d=u[1],(d===null||qs(u,d)>0)&&(l=!0)}else d=e;if(r)if(c!==0){let f=Lr(i[a+1]);i[n+1]=Gc(f,a),f!==0&&(i[f+1]=Jh(i[f+1],n)),i[a+1]=AT(i[a+1],n)}else i[n+1]=Gc(a,0),a!==0&&(i[a+1]=Jh(i[a+1],n)),a=n;else i[n+1]=Gc(c,0),a===0?a=n:i[c+1]=Jh(i[c+1],n),c=n;l&&(i[n+1]=zf(i[n+1])),C_(i,d,n,!0),C_(i,d,n,!1),OT(t,d,i,n,o),s=Gc(a,c),o?t.classBindings=s:t.styleBindings=s}function OT(i,t,e,n,r){let o=r?i.residualClasses:i.residualStyles;o!=null&&typeof t=="string"&&qs(o,t)>=0&&(e[n+1]=Hf(e[n+1]))}function C_(i,t,e,n){let r=i[e+1],o=t===null,s=n?Lr(r):Uo(r),a=!1;for(;s!==0&&(a===!1||o);){let c=i[s],l=i[s+1];NT(c,t)&&(a=!0,i[s+1]=n?Hf(l):zf(l)),s=n?Lr(l):Uo(l)}a&&(i[e+1]=n?zf(r):Hf(r))}function NT(i,t){return i===null||t==null||(Array.isArray(i)?i[1]:i)===t?!0:Array.isArray(i)&&typeof t=="string"?qs(i,t)>=0:!1}var Ci={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function PT(i){return i.substring(Ci.key,Ci.keyEnd)}function FT(i){return LT(i),Y0(i,K0(i,0,Ci.textEnd))}function Y0(i,t){let e=Ci.textEnd;return e===t?-1:(t=Ci.keyEnd=jT(i,Ci.key=t,e),K0(i,t,e))}function LT(i){Ci.key=0,Ci.keyEnd=0,Ci.value=0,Ci.valueEnd=0,Ci.textEnd=i.length}function K0(i,t,e){for(;t<e&&i.charCodeAt(t)<=32;)t++;return t}function jT(i,t,e){for(;t<e&&i.charCodeAt(t)>32;)t++;return t}function S(i,t,e){let n=Ee(),r=Vr();if(Ii(n,r,t)){let o=tt(),s=Gs();td(o,s,n,i,t,n[et],e,!1)}return S}function Uf(i,t,e,n,r){let o=t.inputs,s=r?"class":"style";Nm(i,e,o[s],s,n)}function Xe(i,t,e){return Z0(i,t,e,!1),Xe}function Ie(i,t){return Z0(i,t,null,!0),Ie}function fi(i){X0($T,Q0,i,!0)}function Q0(i,t){for(let e=FT(t);e>=0;e=Y0(t,e))Ll(i,PT(t),!0)}function Z0(i,t,e,n){let r=Ee(),o=tt(),s=hm(2);if(o.firstUpdatePass&&ew(o,i,s,n),t!==hi&&Ii(r,s,t)){let a=o.data[Zn()];tw(o,a,r,r[et],i,r[s+1]=qT(t,e),n,s)}}function X0(i,t,e,n){let r=tt(),o=hm(2);r.firstUpdatePass&&ew(r,null,o,n);let s=Ee();if(e!==hi&&Ii(s,o,e)){let a=r.data[Zn()];if(iw(a,n)&&!J0(r,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(e=rf(c,e||"")),Uf(r,a,s,e,n)}else WT(r,a,s,s[et],s[o+1],s[o+1]=UT(i,t,e),n,o)}}function J0(i,t){return t>=i.expandoStartIndex}function ew(i,t,e,n){let r=i.data;if(r[e+1]===null){let o=r[Zn()],s=J0(i,e);iw(o,n)&&t===null&&!s&&(t=!1),t=VT(r,o,t,n),RT(r,o,t,e,s,n)}}function VT(i,t,e,n){let r=fm(i),o=n?t.residualClasses:t.residualStyles;if(r===null)(n?t.classBindings:t.styleBindings)===0&&(e=ef(null,i,t,e,n),e=$s(e,t.attrs,n),o=null);else{let s=t.directiveStylingLast;if(s===-1||i[s]!==r)if(e=ef(r,i,t,e,n),o===null){let c=BT(i,t,n);c!==void 0&&Array.isArray(c)&&(c=ef(null,i,t,c[1],n),c=$s(c,t.attrs,n),zT(i,t,n,c))}else o=HT(i,t,n)}return o!==void 0&&(n?t.residualClasses=o:t.residualStyles=o),e}function BT(i,t,e){let n=e?t.classBindings:t.styleBindings;if(Uo(n)!==0)return i[Lr(n)]}function zT(i,t,e,n){let r=e?t.classBindings:t.styleBindings;i[Lr(r)]=n}function HT(i,t,e){let n,r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<r;o++){let s=i[o].hostAttrs;n=$s(n,s,e)}return $s(n,t.attrs,e)}function ef(i,t,e,n,r){let o=null,s=e.directiveEnd,a=e.directiveStylingLast;for(a===-1?a=e.directiveStart:a++;a<s&&(o=t[a],n=$s(n,o.hostAttrs,r),o!==i);)a++;return i!==null&&(e.directiveStylingLast=a),n}function $s(i,t,e){let n=e?1:2,r=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?r=s:r===n&&(Array.isArray(i)||(i=i===void 0?[]:["",i]),Ll(i,s,e?!0:t[++o]))}return i===void 0?null:i}function UT(i,t,e){if(e==null||e==="")return Ot;let n=[],r=qo(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)i(n,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&i(n,o,r[o]);else typeof r=="string"&&t(n,r);return n}function $T(i,t,e){let n=String(t);n!==""&&!n.includes(" ")&&Ll(i,n,e)}function WT(i,t,e,n,r,o,s,a){r===hi&&(r=Ot);let c=0,l=0,d=0<r.length?r[0]:null,u=0<o.length?o[0]:null;for(;d!==null||u!==null;){let f=c<r.length?r[c+1]:void 0,h=l<o.length?o[l+1]:void 0,m=null,p;d===u?(c+=2,l+=2,f!==h&&(m=u,p=h)):u===null||d!==null&&d<u?(c+=2,m=d):(l+=2,m=u,p=h),m!==null&&tw(i,t,e,n,m,p,s,a),d=c<r.length?r[c]:null,u=l<o.length?o[l]:null}}function tw(i,t,e,n,r,o,s,a){if(!(t.type&3))return;let c=i.data,l=c[a+1],d=TT(l)?D_(c,t,e,r,Uo(l),s):void 0;if(!Ml(d)){Ml(o)||ST(l)&&(o=D_(c,null,e,r,a,s));let u=uy(Zn(),e);NS(n,s,u,r,o)}}function D_(i,t,e,n,r,o){let s=t===null,a;for(;r>0;){let c=i[r],l=Array.isArray(c),d=l?c[1]:c,u=d===null,f=e[r+1];f===hi&&(f=u?Ot:void 0);let h=u?Wh(f,n):d===n?f:void 0;if(l&&!Ml(h)&&(h=Wh(c,n)),Ml(h)&&(a=h,s))return a;let m=i[r+1];r=s?Lr(m):Uo(m)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=Wh(c,n))}return a}function Ml(i){return i!==void 0}function qT(i,t){return i==null||i===""||(typeof t=="string"?i=i+t:typeof i=="object"&&(i=Nt(qo(i)))),i}function iw(i,t){return(i.flags&(t?8:16))!==0}function sd(i,t,e){let n=Ee(),r=G0(n,i,t,e);X0(Ll,Q0,r,!0)}function Je(i,t){Ki("NgControlFlow");let e=Ee(),n=Vr(),r=e[n]!==hi?e[n]:-1,o=r!==-1?E_(e,zt+r):void 0,s=0;if(Ii(e,n,i)){let a=Oe(null);try{if(o!==void 0&&uA(o,s),i!==-1){let c=zt+i,l=E_(e,c),d=GT(e[we],c),u=yl(l,d.tView.ssrId),f=Fm(e,d,t,{dehydratedView:u});Lm(l,f,s,vl(d,u))}}finally{Oe(a)}}else if(o!==void 0){let a=dA(o,s);a!==void 0&&(a[ci]=t)}}function E_(i,t){return i[t]}function GT(i,t){return cm(i,t)}function YT(i,t,e,n,r,o){let s=t.consts,a=Bo(s,r),c=Go(t,i,2,n,a);return Om(t,e,c,Bo(s,o)),c.attrs!==null&&xl(c,c.attrs,!1),c.mergedAttrs!==null&&xl(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function y(i,t,e,n){let r=Ee(),o=tt(),s=zt+i,a=r[et],c=o.firstCreatePass?YT(s,o,r,t,e,n):o.data[s],l=KT(o,r,c,a,t,i);r[s]=l;let d=Hl(c);return jr(c,!0),l0(a,l,c),!CT(c)&&ql()&&Zl(o,r,l,c),cM()===0&&Gn(l,r),lM(),d&&(Am(o,r,c),Sm(o,c,r)),n!==null&&Tm(r,c),y}function b(){let i=yt();dm()?um():(i=i.parent,jr(i,!1));let t=i;uM(t)&&hM(),dM();let e=tt();return e.firstCreatePass&&(Yl(e,i),am(i)&&e.queries.elementEnd(i)),t.classesWithoutHost!=null&&MM(t)&&Uf(e,t,Ee(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&SM(t)&&Uf(e,t,Ee(),t.stylesWithoutHost,!1),b}function ie(i,t,e,n){return y(i,t,e,n),b(),ie}var KT=(i,t,e,n,r,o)=>(Gl(!0),Jy(n,r,DM()));function QT(i,t,e,n,r){let o=t.consts,s=Bo(o,n),a=Go(t,i,8,"ng-container",s);s!==null&&xl(a,s,!0);let c=Bo(o,r);return Om(t,e,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function nw(i,t,e){let n=Ee(),r=tt(),o=i+zt,s=r.firstCreatePass?QT(o,r,n,t,e):r.data[o];jr(s,!0);let a=ZT(r,n,s,i);return n[o]=a,ql()&&Zl(r,n,a,s),Gn(a,n),Hl(s)&&(Am(r,n,s),Sm(r,s,n)),e!=null&&Tm(n,s),nw}function rw(){let i=yt(),t=tt();return dm()?um():(i=i.parent,jr(i,!1)),t.firstCreatePass&&(Yl(t,i),am(i)&&t.queries.elementEnd(i)),rw}function Hm(i,t,e){return nw(i,t,e),rw(),Hm}var ZT=(i,t,e,n)=>(Gl(!0),yS(t[et],""));function Te(){return Ee()}function Mi(i,t,e){let n=Ee(),r=Vr();if(Ii(n,r,t)){let o=tt(),s=Gs();td(o,s,n,i,t,n[et],e,!0)}return Mi}function Um(i,t,e){let n=Ee(),r=Vr();if(Ii(n,r,t)){let o=tt(),s=Gs(),a=fm(o.data),c=w0(a,s,n);td(o,s,n,i,t,c,e,!0)}return Um}var Sl="en-US";var XT=Sl;function JT(i){typeof i=="string"&&(XT=i.toLowerCase().replace(/_/g,"-"))}var e1=(i,t,e)=>{};function z(i,t,e,n){let r=Ee(),o=tt(),s=yt();return Wm(o,r,r[et],s,i,t,n),z}function $m(i,t){let e=yt(),n=Ee(),r=tt(),o=fm(r.data),s=w0(o,e,n);return Wm(r,n,s,e,i,t),$m}function t1(i,t,e,n){let r=i.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===e&&r[o+1]===n){let a=t[sl],c=r[o+2];return a.length>c?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Wm(i,t,e,n,r,o,s){let a=Hl(n),l=i.firstCreatePass&&y0(i),d=t[ci],u=_0(t),f=!0;if(n.type&3||s){let p=ui(n,t),v=s?s(p):p,E=u.length,A=s?N=>s(Wi(N[n.index])):n.index,C=null;if(!s&&a&&(C=t1(i,t,r,n.index)),C!==null){let N=C.__ngLastListenerFn__||C;N.__ngNextListenerFn__=o,C.__ngLastListenerFn__=o,f=!1}else{o=k_(n,t,d,o),e1(p,r,o);let N=e.listen(v,r,o);u.push(o,N),l&&l.push(r,A,E,E+1)}}else o=k_(n,t,d,o);let h=n.outputs,m;if(f&&h!==null&&(m=h[r])){let p=m.length;if(p)for(let v=0;v<p;v+=2){let E=m[v],A=m[v+1],L=t[E][A].subscribe(o),B=u.length;u.push(o,L),l&&l.push(r,n.index,B,-(B+1))}}}function I_(i,t,e,n){let r=Oe(null);try{return zi(6,t,e),e(n)!==!1}catch(o){return x0(i,o),!1}finally{zi(7,t,e),Oe(r)}}function k_(i,t,e,n){return function r(o){if(o===Function)return n;let s=i.componentOffset>-1?Qn(i.index,t):t;jm(s,5);let a=I_(t,e,n,o),c=r.__ngNextListenerFn__;for(;c;)a=I_(t,e,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function T(i=1){return xM(i)}function i1(i,t){let e=null,n=Sk(i);for(let r=0;r<t.length;r++){let o=t[r];if(o==="*"){e=r;continue}if(n===null?G_(i,o,!0):Rk(n,o))return r}return e}function bt(i){let t=Ee()[li][Ht];if(!t.projection){let e=i?i.length:1,n=t.projection=yk(e,null),r=n.slice(),o=t.child;for(;o!==null;){if(o.type!==128){let s=i?i1(o,i):0;s!==null&&(r[s]?r[s].projectionNext=o:n[s]=o,r[s]=o)}o=o.next}}}function Be(i,t=0,e,n,r,o){let s=Ee(),a=tt(),c=n?i+1:null;c!==null&&U0(s,a,c,n,r,o,null,e);let l=Go(a,zt+i,16,null,e||null);l.projection===null&&(l.projection=t),um();let u=!s[zs]||by();s[li][Ht].projection[l.projection]===null&&c!==null?n1(s,a,c):u&&(l.flags&32)!==32&&RS(a,s,l)}function n1(i,t,e){let n=zt+e,r=t.data[n],o=i[n],s=yl(o,r.tView.ssrId),a=Fm(i,r,void 0,{dehydratedView:s});Lm(o,a,0,vl(r,s))}function Pt(i,t,e,n){F0(i,t,e,n)}function _e(i,t,e){ZA(i,t,e)}function ne(i){let t=Ee(),e=tt(),n=mm();Wl(n+1);let r=zm(e,n);if(i.dirty&&rM(t)===((r.metadata.flags&2)===2)){if(r.matches===null)i.reset([]);else{let o=j0(t,n);i.reset(o,By),i.notifyOnChanges()}return!0}return!1}function re(){return Bm(Ee(),mm())}function ow(i,t,e,n,r){nT(t,F0(i,e,n,r))}function sw(i=1){Wl(mm()+i)}function Si(i){let t=mM();return nM(t,zt+i)}function q(i,t=""){let e=Ee(),n=tt(),r=i+zt,o=n.firstCreatePass?Go(n,r,1,t,null):n.data[r],s=r1(n,e,o,t,i);e[r]=s,ql()&&Zl(n,e,s,o),jr(o,!1)}var r1=(i,t,e,n,r)=>(Gl(!0),vS(t[et],n));function $t(i){return ct("",i,""),$t}function ct(i,t,e){let n=Ee(),r=G0(n,i,t,e);return r!==hi&&C0(n,Zn(),r),ct}function ad(i,t,e,n,r,o,s,a,c){let l=Ee(),d=MT(l,i,t,e,n,r,o,s,a,c);return d!==hi&&C0(l,Zn(),d),ad}function cd(i,t,e){V0(t)&&(t=t());let n=Ee(),r=Vr();if(Ii(n,r,t)){let o=tt(),s=Gs();td(o,s,n,i,t,n[et],e,!1)}return cd}function qm(i,t){let e=V0(i);return e&&i.set(t),e}function ld(i,t){let e=Ee(),n=tt(),r=yt();return Wm(n,e,e[et],r,i,t),ld}function o1(i,t,e){let n=tt();if(n.firstCreatePass){let r=hn(i);$f(e,n.data,n.blueprint,r,!0),$f(t,n.data,n.blueprint,r,!1)}}function $f(i,t,e,n,r){if(i=Rt(i),Array.isArray(i))for(let o=0;o<i.length;o++)$f(i[o],t,e,n,r);else{let o=tt(),s=Ee(),a=yt(),c=Lo(i)?i:Rt(i.provide),l=ny(i),d=a.providerIndexes&1048575,u=a.directiveStart,f=a.providerIndexes>>20;if(Lo(i)||!i.multi){let h=new Or(l,r,g),m=nf(c,t,r?d:d+f,u);m===-1?(vf(ul(a,s),o,c),tf(o,i,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(h),s.push(h)):(e[m]=h,s[m]=h)}else{let h=nf(c,t,d+f,u),m=nf(c,t,d,d+f),p=h>=0&&e[h],v=m>=0&&e[m];if(r&&!v||!r&&!p){vf(ul(a,s),o,c);let E=c1(r?a1:s1,e.length,r,n,l);!r&&v&&(e[m].providerFactory=E),tf(o,i,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(E),s.push(E)}else{let E=aw(e[r?m:h],l,!r&&n);tf(o,i,h>-1?h:m,E)}!r&&n&&v&&e[m].componentProviders++}}}function tf(i,t,e,n){let r=Lo(t),o=Uk(t);if(r||o){let c=(o?Rt(t.useClass):t).prototype.ngOnDestroy;if(c){let l=i.destroyHooks||(i.destroyHooks=[]);if(!r&&t.multi){let d=l.indexOf(e);d===-1?l.push(e,[n,c]):l[d+1].push(n,c)}else l.push(e,c)}}}function aw(i,t,e){return e&&i.componentProviders++,i.multi.push(t)-1}function nf(i,t,e,n){for(let r=e;r<n;r++)if(t[r]===i)return r;return-1}function s1(i,t,e,n){return Wf(this.multi,[])}function a1(i,t,e,n){let r=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Nr(e,e[we],this.providerFactory.index,n);o=a.slice(0,s),Wf(r,o);for(let c=s;c<a.length;c++)o.push(a[c])}else o=[],Wf(r,o);return o}function Wf(i,t){for(let e=0;e<i.length;e++){let n=i[e];t.push(n())}return t}function c1(i,t,e,n,r){let o=new Or(i,e,g);return o.multi=[],o.index=t,o.componentProviders=0,aw(o,r,n&&!e),o}function nt(i,t=[]){return e=>{e.providersResolver=(n,r)=>o1(n,r?r(i):i,t)}}var l1=(()=>{class i{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=ey(!1,e.type),r=n.length>0?od([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=I({token:i,providedIn:"environment",factory:()=>new i(_(xt))})}}return i})();function He(i){Ki("NgStandalone"),i.getStandaloneInjector=t=>t.get(l1).getOrCreateStandaloneInjector(i)}function Gm(i,t,e,n,r){return u1(Ee(),pM(),i,t,e,n,r)}function d1(i,t){let e=i[t];return e===hi?void 0:e}function u1(i,t,e,n,r,o,s){let a=t+e;return jf(i,a,r,o)?wT(i,a+2,s?n.call(s,r,o):n(r,o)):d1(i,a+2)}function Ym(i,t){return nd(i,t)}var Yc=null;function h1(i){Yc!==null&&(i.defaultEncapsulation!==Yc.defaultEncapsulation||i.preserveWhitespaces!==Yc.preserveWhitespaces)||(Yc=i)}var dd=(()=>{class i{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"platform"})}}return i})();var Km=new M(""),Zs=new M(""),ud=(()=>{class i{constructor(e,n,r){this._ngZone=e,this.registry=n,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Qm||(f1(r),r.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e()},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,n,r){if(r&&!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(e,n,r),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}static{this.\u0275fac=function(n){return new(n||i)(_(U),_(hd),_(Zs))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),hd=(()=>{class i{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return Qm?.findTestabilityInTree(this,e,n)??null}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"platform"})}}return i})();function f1(i){Qm=i}var Qm;function zr(i){return!!i&&typeof i.then=="function"}function cw(i){return!!i&&typeof i.subscribe=="function"}var fd=new M(""),lw=(()=>{class i{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=x(fd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=r();if(zr(o))e.push(o);else if(cw(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});e.push(s)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),e.length===0&&n(),this.initialized=!0}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),md=new M("");function m1(){mv(()=>{throw new F(600,!1)})}function p1(i){return i.isBoundToModule}var g1=10;function b1(i,t,e){try{let n=e();return zr(n)?n.catch(r=>{throw t.runOutsideAngular(()=>i.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>i.handleError(n)),n}}function dw(i,t){return Array.isArray(t)?t.reduce(dw,i):k(k({},i),t)}var Zt=(()=>{class i{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=x(KM),this.afterRenderManager=x($0),this.zonelessEnabled=x(Vm),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new $,this.afterTick=new $,this.componentTypes=[],this.components=[],this.isStable=x(pn).hasPendingTasks.pipe(se(e=>!e)),this._injector=x(xt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:r=>{r&&n()}})}).finally(()=>{e.unsubscribe()})}get injector(){return this._injector}bootstrap(e,n){let r=e instanceof wl;if(!this._injector.get(lw).done){let f=!r&&Q_(e),h=!1;throw new F(405,h)}let s;r?s=e:s=this._injector.get(Yt).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let a=p1(s)?void 0:this._injector.get(Kn),c=n||s.selector,l=s.create(be.NULL,[],c,a),d=l.location.nativeElement,u=l.injector.get(Km,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),tl(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new F(101,!1);let e=Oe(null);try{this._runningTick=!0,this.synchronize()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1,Oe(e),this.afterTick.next()}}synchronize(){let e=null;this._injector.destroyed||(e=this._injector.get(Yn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++<g1;)this.synchronizeOnce(e)}synchronizeOnce(e){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(n);for(let{_lView:r,notifyErrorHandler:o}of this._views)v1(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else e?.begin?.(),e?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>Ul(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;tl(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);let n=this._injector.get(md,[]);[...this._bootstrapListeners,...n].forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>tl(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new F(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function tl(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function v1(i,t,e,n){if(!e&&!Ul(i))return;I0(i,t,e&&!n?0:1)}var qf=class{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}},pd=(()=>{class i{compileModuleSync(e){return new kl(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),r=Z_(e),o=Zy(r.declarations).reduce((s,a)=>{let c=qn(a);return c&&s.push(new Ho(c)),s},[]);return new qf(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),_1=new M("");function y1(i,t,e){let n=new kl(e);return Promise.resolve(n)}function M_(i){for(let t=i.length-1;t>=0;t--)if(i[t]!==void 0)return i[t]}var w1=(()=>{class i{constructor(){this.zone=x(U),this.changeDetectionScheduler=x(zo),this.applicationRef=x(Zt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function x1({ngZoneFactory:i,ignoreChangesOutsideZone:t,scheduleInRootZone:e}){return i??=()=>new U(De(k({},uw()),{scheduleInRootZone:e})),[{provide:U,useFactory:i},{provide:Fo,multi:!0,useFactory:()=>{let n=x(w1,{optional:!0});return()=>n.initialize()}},{provide:Fo,multi:!0,useFactory:()=>{let n=x(C1);return()=>{n.initialize()}}},t===!0?{provide:A0,useValue:!0}:[],{provide:T0,useValue:e??Ly}]}function uw(i){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:i?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:i?.runCoalescing??!1}}var C1=(()=>{class i{constructor(){this.subscription=new Ne,this.initialized=!1,this.zone=x(U),this.pendingTasks=x(pn)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{U.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var D1=(()=>{class i{constructor(){this.appRef=x(Zt),this.taskService=x(pn),this.ngZone=x(U),this.zonelessEnabled=x(Vm),this.disableScheduling=x(A0,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Ne,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(fl):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(x(T0,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ml||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?d_:jy;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>n(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>n(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(fl+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){throw this.taskService.remove(e),n}finally{this.cleanup()}this.useMicrotaskScheduler=!0,d_(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function E1(){return typeof $localize<"u"&&$localize.locale||Sl}var gd=new M("",{providedIn:"root",factory:()=>x(gd,Me.Optional|Me.SkipSelf)||E1()});var Al=new M("");function Kc(i){return!i.moduleRef}function I1(i){let t=Kc(i)?i.r3Injector:i.moduleRef.injector,e=t.get(U);return e.run(()=>{Kc(i)?i.r3Injector.resolveInjectorInitializers():i.moduleRef.resolveInjectorInitializers();let n=t.get(qi,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:o=>{n.handleError(o)}})}),Kc(i)){let o=()=>t.destroy(),s=i.platformInjector.get(Al);s.add(o),t.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else{let o=()=>i.moduleRef.destroy(),s=i.platformInjector.get(Al);s.add(o),i.moduleRef.onDestroy(()=>{tl(i.allPlatformModules,i.moduleRef),r.unsubscribe(),s.delete(o)})}return b1(n,e,()=>{let o=t.get(lw);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(gd,Sl);if(JT(s||Sl),Kc(i)){let a=t.get(Zt);return i.rootComponent!==void 0&&a.bootstrap(i.rootComponent),a}else return k1(i.moduleRef,i.allPlatformModules),i.moduleRef})})})}function k1(i,t){let e=i.injector.get(Zt);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(i.instance.ngDoBootstrap)i.instance.ngDoBootstrap(e);else throw new F(-403,!1);t.push(i)}var hw=(()=>{class i{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){let r=n?.scheduleInRootZone,o=()=>YM(n?.ngZone,De(k({},uw({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:r})),s=n?.ignoreChangesOutsideZone,a=[x1({ngZoneFactory:o,ignoreChangesOutsideZone:s}),{provide:zo,useExisting:D1}],c=vT(e.moduleType,this.injector,a);return I1({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let r=dw({},n);return y1(this.injector,r,e).then(o=>this.bootstrapModuleFactory(o,r))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new F(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(Al,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(n){return new(n||i)(_(be))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"platform"})}}return i})(),Ls=null,Tl=new M("");function M1(i){if(Xm())throw new F(400,!1);m1(),Ls=i.get(Tl,!1)?null:i;let e=i.get(hw);return T1(i),e}function Zm(i,t,e=[]){let n=`Platform: ${t}`,r=new M(n);return(o=[])=>{let s=Xm();if(!s||s.injector.get(Tl,!1)){let c=[...e,...o,{provide:r,useValue:!0}];s=i?.(c)??M1(S1(c,n))}return s.injector.get(Tl,!1)?s:A1(r)}}function S1(i=[],t){return be.create({name:t,providers:[{provide:Vl,useValue:"platform"},{provide:Al,useValue:new Set([()=>Ls=null])},...i]})}function A1(i){let t=Xm();if(!t)throw new F(401,!1);return t}function Xm(){return Ls&&Ls.get(Tl,!1)?null:Ls?.get(hw)??null}function T1(i){i.get(wm,null)?.forEach(e=>e())}var Ue=(()=>{class i{static{this.__NG_ELEMENT_ID__=R1}}return i})();function R1(i){return O1(yt(),Ee(),(i&16)===16)}function O1(i,t,e){if(zl(i)&&!e){let n=Qn(i.index,t);return new Fr(n,n)}else if(i.type&175){let n=t[li];return new Fr(n,t)}return null}var Gf=class{constructor(){}supports(t){return H0(t)}create(t){return new Yf(t)}},N1=(i,t)=>t,Yf=class{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||N1}forEachItem(t){let e;for(e=this._itHead;e!==null;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){let s=!n||e&&e.currentIndex<S_(n,r,o)?e:n,a=S_(s,r,o),c=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(e=e._next,s.previousIndex==null)r++;else{o||(o=[]);let l=a-r,d=c-r;if(l!=d){for(let f=0;f<l;f++){let h=f<o.length?o[f]:o[f]=0,m=h+f;d<=m&&m<l&&(o[f]=h+1)}let u=s.previousIndex;o[u]=d-l}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)t(e)}diff(t){if(t==null&&(t=[]),!H0(t))throw new F(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._itHead,n=!1,r,o,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,o,s,a),n=!0):(n&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next}else r=0,_T(t,a=>{s=this._trackByFn(r,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,r),n=!0):(n&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),t!==null?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):(t=this._linkedRecords===null?null:this._linkedRecords.get(n,r),t!==null?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new Kf(e,n),o,r)),t}_verifyReinsertion(t,e,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;t!==null;){let e=t._next;this._addToRemovals(this._unlink(t)),t=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let r=t._prevRemoved,o=t._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){let r=e===null?this._itHead:e._next;return t._next=r,t._prev=e,r===null?this._itTail=t:r._prev=t,e===null?this._itHead=t:e._next=t,this._linkedRecords===null&&(this._linkedRecords=new Rl),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let e=t._prev,n=t._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Rl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Kf=class{constructor(t,e){this.item=t,this.trackById=e,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}},Qf=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(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,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){let e=t._prevDup,n=t._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},Rl=class{constructor(){this.map=new Map}put(t){let e=t.trackById,n=this.map.get(e);n||(n=new Qf,this.map.set(e,n)),n.add(t)}get(t,e){let n=t,r=this.map.get(n);return r?r.get(t,e):null}remove(t){let e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function S_(i,t,e){let n=i.previousIndex;if(n===null)return n;let r=0;return e&&n<e.length&&(r=e[n]),n+t+r}function A_(){return new bd([new Gf])}var bd=(()=>{class i{static{this.\u0275prov=I({token:i,providedIn:"root",factory:A_})}constructor(e){this.factories=e}static create(e,n){if(n!=null){let r=n.factories.slice();e=e.concat(r)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||A_()),deps:[[i,new em,new Fl]]}}find(e){let n=this.factories.find(r=>r.supports(e));if(n!=null)return n;throw new F(901,!1)}}return i})();var fw=Zm(null,"core",[]),mw=(()=>{class i{constructor(e){}static{this.\u0275fac=function(n){return new(n||i)(_(Zt))}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({})}}return i})();function fe(i){return typeof i=="boolean"?i:i!=null&&i!=="false"}function Qi(i,t=NaN){return!isNaN(parseFloat(i))&&!isNaN(Number(i))?Number(i):t}function vn(i,t){Ki("NgSignals");let e=kh(i);return t?.equal&&(e[oi].equal=t.equal),e}function mi(i){let t=Oe(null);try{return i()}finally{Oe(t)}}var P1=new M("",{providedIn:"root",factory:()=>x(F1)}),F1=(()=>{class i{static{this.\u0275prov=I({token:i,providedIn:"root",factory:()=>new Zf})}}return i})(),Zf=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=x(pn),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(t){let e=t.creationZone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(t)||(this.queuedEffectCount++,n.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,e]of this.queues)t===null?this.flushQueue(e):t.run(()=>this.flushQueue(e))}flushQueue(t){for(let e of t)t.delete(e),this.queuedEffectCount--,e.run()}},Xf=class{constructor(t,e,n,r,o,s){this.scheduler=t,this.effectFn=e,this.creationZone=n,this.injector=o,this.watcher=vv(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(e){this.injector.get(qi,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Jm(i,t){Ki("NgSignals"),!t?.injector&&om(Jm);let e=t?.injector??x(be),n=t?.manualCleanup!==!0?e.get(Kl):null,r=new Xf(e.get(P1),i,typeof Zone>"u"?null:Zone.current,n,e,t?.allowSignalWrites??!1),o=e.get(Ue,null,{optional:!0});return!o||!(o._lView[ue]&8)?r.watcher.notify():(o._lView[Zc]??=[]).push(r.watcher.notify),r}function pw(i){let t=qn(i);if(!t)return null;let e=new Ho(t);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var ww=null;function Zi(){return ww}function xw(i){ww??=i}var vd=class{};var ae=new M(""),op=(()=>{class i{historyGo(e){throw new Error("")}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:()=>x(j1),providedIn:"platform"})}}return i})(),Cw=new M(""),j1=(()=>{class i extends op{constructor(){super(),this._doc=x(ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zi().getBaseHref(this._doc)}onPopState(e){let n=Zi().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=Zi().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,r){this._history.pushState(e,n,r)}replaceState(e,n,r){this._history.replaceState(e,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:()=>new i,providedIn:"platform"})}}return i})();function sp(i,t){if(i.length==0)return t;if(t.length==0)return i;let e=0;return i.endsWith("/")&&e++,t.startsWith("/")&&e++,e==2?i+t.substring(1):e==1?i+t:i+"/"+t}function gw(i){let t=i.match(/#|\?|$/),e=t&&t.index||i.length,n=e-(i[e-1]==="/"?1:0);return i.slice(0,n)+i.slice(e)}function _n(i){return i&&i[0]!=="?"?"?"+i:i}var yn=(()=>{class i{historyGo(e){throw new Error("")}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:()=>x(ap),providedIn:"root"})}}return i})(),Dw=new M(""),ap=(()=>{class i extends yn{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??x(ae).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return sp(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+_n(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){let s=this.prepareExternalUrl(r+_n(o));this._platformLocation.pushState(e,n,s)}replaceState(e,n,r,o){let s=this.prepareExternalUrl(r+_n(o));this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(n){return new(n||i)(_(op),_(Dw,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Ew=(()=>{class i extends yn{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=sp(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let s=this.prepareExternalUrl(r+_n(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,n,s)}replaceState(e,n,r,o){let s=this.prepareExternalUrl(r+_n(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(n){return new(n||i)(_(op),_(Dw,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),Xi=(()=>{class i{constructor(e){this._subject=new Y,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=z1(gw(bw(n))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+_n(n))}normalize(e){return i.stripTrailingSlash(B1(this._basePath,bw(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_n(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_n(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}static{this.normalizeQueryParams=_n}static{this.joinWithSlash=sp}static{this.stripTrailingSlash=gw}static{this.\u0275fac=function(n){return new(n||i)(_(yn))}}static{this.\u0275prov=I({token:i,factory:()=>V1(),providedIn:"root"})}}return i})();function V1(){return new Xi(_(yn))}function B1(i,t){if(!i||!t.startsWith(i))return t;let e=t.substring(i.length);return e===""||["/",";","?","#"].includes(e[0])?e:t}function bw(i){return i.replace(/\/index.html$/,"")}function z1(i){if(new RegExp("^(https?:)?//").test(i)){let[,e]=i.split(/\/\/[^\/]+/);return e}return i}function yd(i,t){t=encodeURIComponent(t);for(let e of i.split(";")){let n=e.indexOf("="),[r,o]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}var ep=/\s+/,vw=[],Iw=(()=>{class i{constructor(e,n){this._ngEl=e,this._renderer=n,this.initialClasses=vw,this.stateMap=new Map}set klass(e){this.initialClasses=e!=null?e.trim().split(ep):vw}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(ep):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(ep).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(gn))}}static{this.\u0275dir=K({type:i,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return i})();var tp=class{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ai=(()=>{class i{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,r){this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;if(!this._differ&&e)if(0)try{}catch{}else this._differ=this._differs.find(e).create(this.ngForTrackBy)}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((r,o,s)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new tp(r.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)n.remove(o===null?void 0:o);else if(o!==null){let a=n.get(o);n.move(a,s),_w(a,r)}});for(let r=0,o=n.length;r<o;r++){let a=n.get(r).context;a.index=r,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{let o=n.get(r.currentIndex);_w(o,r)})}static ngTemplateContextGuard(e,n){return!0}static{this.\u0275fac=function(n){return new(n||i)(g(gt),g(Ct),g(bd))}}static{this.\u0275dir=K({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return i})();function _w(i,t){i.context.$implicit=t.item}var wd=(()=>{class i{constructor(e,n){this._viewContainer=e,this._context=new ip,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){yw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){yw("ngIfElse",e),this._elseTemplateRef=e,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(e,n){return!0}static{this.\u0275fac=function(n){return new(n||i)(g(gt),g(Ct))}}static{this.\u0275dir=K({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return i})(),ip=class{constructor(){this.$implicit=null,this.ngIf=null}};function yw(i,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${i} must be a TemplateRef, but received '${Nt(t)}'.`)}var Xs=(()=>{class i{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(e,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static{this.\u0275fac=function(n){return new(n||i)(g(gt))}}static{this.\u0275dir=K({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Qe]})}}return i})();var pi=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({})}}return i})(),cp="browser",H1="server";function Js(i){return i===cp}function xd(i){return i===H1}var kw=(()=>{class i{static{this.\u0275prov=I({token:i,providedIn:"root",factory:()=>Js(x(Ut))?new np(x(ae),window):new rp})}}return i})(),np=class{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let e=U1(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}};function U1(i,t){let e=i.getElementById(t)||i.getElementsByName(t)[0];if(e)return e;if(typeof i.createTreeWalker=="function"&&i.body&&typeof i.body.attachShadow=="function"){let n=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=n.nextNode()}}return null}var rp=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Yo=class{};var ta=class{},Dd=class{},xn=class i{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
8
+ `).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),o=r.toLowerCase(),s=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,e);let r=(t.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}setHeaderEntries(t,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=t.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var dp=class{encodeKey(t){return Mw(t)}encodeValue(t){return Mw(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function $1(i,t){let e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var W1=/%(\d[a-f0-9])/gi,q1={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Mw(i){return encodeURIComponent(i).replace(W1,(t,e)=>q1[e]??t)}function Cd(i){return`${i}`}var Jn=class i{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new dp,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=$1(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let n=t.fromObject[e],r=Array.isArray(n)?n.map(Cd):[Cd(n)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(n=>{let r=t[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(Cd(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],r=n.indexOf(Cd(t.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var up=class{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function G1(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Sw(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function Aw(i){return typeof Blob<"u"&&i instanceof Blob}function Tw(i){return typeof FormData<"u"&&i instanceof FormData}function Y1(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var ea=class i{constructor(t,e,n,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(G1(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new xn,this.context??=new up,!this.params)this.params=new Jn,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Sw(this.body)||Aw(this.body)||Tw(this.body)||Y1(this.body)?this.body:this.body instanceof Jn?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Tw(this.body)?null:Aw(this.body)?this.body.type||null:Sw(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Jn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let e=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,o=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,c=t.reportProgress??this.reportProgress,l=t.headers||this.headers,d=t.params||this.params,u=t.context??this.context;return t.setHeaders!==void 0&&(l=Object.keys(t.setHeaders).reduce((f,h)=>f.set(h,t.setHeaders[h]),l)),t.setParams&&(d=Object.keys(t.setParams).reduce((f,h)=>f.set(h,t.setParams[h]),d)),new i(e,n,s,{params:d,headers:l,context:u,reportProgress:c,responseType:r,withCredentials:a,transferCache:o})}},er=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(er||{}),ia=class{constructor(t,e=200,n="OK"){this.headers=t.headers||new xn,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Ed=class i extends ia{constructor(t={}){super(t),this.type=er.ResponseHeader}clone(t={}){return new i({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},na=class i extends ia{constructor(t={}){super(t),this.type=er.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new i({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Xn=class extends ia{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Pw=200,K1=204;function lp(i,t){return{body:t,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var mp=(()=>{class i{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof ea)o=e;else{let c;r.headers instanceof xn?c=r.headers:c=new xn(r.headers);let l;r.params&&(r.params instanceof Jn?l=r.params:l=new Jn({fromObject:r.params})),o=new ea(e,n,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=te(o).pipe(ln(c=>this.handler.handle(c)));if(e instanceof ea||r.observe==="events")return s;let a=s.pipe(Ae(c=>c instanceof na));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(se(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(se(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(se(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(se(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Jn().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,lp(r,n))}post(e,n,r={}){return this.request("POST",e,lp(r,n))}put(e,n,r={}){return this.request("PUT",e,lp(r,n))}static{this.\u0275fac=function(n){return new(n||i)(_(ta))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),Q1=/^\)\]\}',?\n/,Z1="X-Request-URL";function Rw(i){if(i.url)return i.url;let t=Z1.toLocaleLowerCase();return i.headers.get(t)}var X1=(()=>{class i{constructor(){this.fetchImpl=x(hp,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=x(U)}handle(e){return new le(n=>{let r=new AbortController;return this.doRequest(e,r.signal,n).then(fp,o=>n.error(new Xn({error:o}))),()=>r.abort()})}doRequest(e,n,r){return lc(this,null,function*(){let o=this.createRequestInit(e),s;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,k({signal:n},o)));J1(h),r.next({type:er.Sent}),s=yield h}catch(h){r.error(new Xn({error:h,status:h.status??0,statusText:h.statusText,url:e.urlWithParams,headers:h.headers}));return}let a=new xn(s.headers),c=s.statusText,l=Rw(s)??e.urlWithParams,d=s.status,u=null;if(e.reportProgress&&r.next(new Ed({headers:a,status:d,statusText:c,url:l})),s.body){let h=s.headers.get("content-length"),m=[],p=s.body.getReader(),v=0,E,A,C=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>lc(this,null,function*(){for(;;){let{done:L,value:B}=yield p.read();if(L)break;if(m.push(B),v+=B.length,e.reportProgress){A=e.responseType==="text"?(A??"")+(E??=new TextDecoder).decode(B,{stream:!0}):void 0;let W=()=>r.next({type:er.DownloadProgress,total:h?+h:void 0,loaded:v,partialText:A});C?C.run(W):W()}}}));let N=this.concatChunks(m,v);try{let L=s.headers.get("Content-Type")??"";u=this.parseBody(e,N,L)}catch(L){r.error(new Xn({error:L,headers:new xn(s.headers),status:s.status,statusText:s.statusText,url:Rw(s)??e.urlWithParams}));return}}d===0&&(d=u?Pw:0),d>=200&&d<300?(r.next(new na({body:u,headers:a,status:d,statusText:c,url:l})),r.complete()):r.error(new Xn({error:u,headers:a,status:d,statusText:c,url:l}))})}parseBody(e,n,r){switch(e.responseType){case"json":let o=new TextDecoder().decode(n).replace(Q1,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:r});case"arraybuffer":return n.buffer}}createRequestInit(e){let n={},r=e.withCredentials?"include":void 0;if(e.headers.forEach((o,s)=>n[o]=s.join(",")),e.headers.has("Accept")||(n.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let o=e.detectContentTypeHeader();o!==null&&(n["Content-Type"]=o)}return{body:e.serializeBody(),method:e.method,headers:n,credentials:r}}concatChunks(e,n){let r=new Uint8Array(n),o=0;for(let s of e)r.set(s,o),o+=s.length;return r}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),hp=class{};function fp(){}function J1(i){i.then(fp,fp)}function eR(i,t){return t(i)}function tR(i,t,e){return(n,r)=>di(e,()=>t(n,o=>i(o,r)))}var Fw=new M(""),iR=new M(""),nR=new M("",{providedIn:"root",factory:()=>!0});var Ow=(()=>{class i extends ta{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=x(pn),this.contributeToStability=x(nR)}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Fw),...this.injector.get(iR,[])]));this.chain=n.reduceRight((r,o)=>tR(r,o,this.injector),eR)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Ir(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static{this.\u0275fac=function(n){return new(n||i)(_(Dd),_(xt))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})();var rR=/^\)\]\}',?\n/;function oR(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}var Nw=(()=>{class i{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new F(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?qe(n.\u0275loadImpl()):te(null)).pipe(ut(()=>new le(o=>{let s=n.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((p,v)=>s.setRequestHeader(p,v.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let p=e.detectContentTypeHeader();p!==null&&s.setRequestHeader("Content-Type",p)}if(e.responseType){let p=e.responseType.toLowerCase();s.responseType=p!=="json"?p:"text"}let a=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let p=s.statusText||"OK",v=new xn(s.getAllResponseHeaders()),E=oR(s)||e.url;return c=new Ed({headers:v,status:s.status,statusText:p,url:E}),c},d=()=>{let{headers:p,status:v,statusText:E,url:A}=l(),C=null;v!==K1&&(C=typeof s.response>"u"?s.responseText:s.response),v===0&&(v=C?Pw:0);let N=v>=200&&v<300;if(e.responseType==="json"&&typeof C=="string"){let L=C;C=C.replace(rR,"");try{C=C!==""?JSON.parse(C):null}catch(B){C=L,N&&(N=!1,C={error:B,text:C})}}N?(o.next(new na({body:C,headers:p,status:v,statusText:E,url:A||void 0})),o.complete()):o.error(new Xn({error:C,headers:p,status:v,statusText:E,url:A||void 0}))},u=p=>{let{url:v}=l(),E=new Xn({error:p,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});o.error(E)},f=!1,h=p=>{f||(o.next(l()),f=!0);let v={type:er.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(v.total=p.total),e.responseType==="text"&&s.responseText&&(v.partialText=s.responseText),o.next(v)},m=p=>{let v={type:er.UploadProgress,loaded:p.loaded};p.lengthComputable&&(v.total=p.total),o.next(v)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),e.reportProgress&&(s.addEventListener("progress",h),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),o.next({type:er.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),e.reportProgress&&(s.removeEventListener("progress",h),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(n){return new(n||i)(_(Yo))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),Lw=new M(""),sR="XSRF-TOKEN",aR=new M("",{providedIn:"root",factory:()=>sR}),cR="X-XSRF-TOKEN",lR=new M("",{providedIn:"root",factory:()=>cR}),Id=class{},dR=(()=>{class i{constructor(e,n,r){this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=yd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(n){return new(n||i)(_(ae),_(Ut),_(aR))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})();function uR(i,t){let e=i.url.toLowerCase();if(!x(Lw)||i.method==="GET"||i.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return t(i);let n=x(Id).getToken(),r=x(lR);return n!=null&&!i.headers.has(r)&&(i=i.clone({headers:i.headers.set(r,n)})),t(i)}function jw(...i){let t=[mp,Nw,Ow,{provide:ta,useExisting:Ow},{provide:Dd,useFactory:()=>x(X1,{optional:!0})??x(Nw)},{provide:Fw,useValue:uR,multi:!0},{provide:Lw,useValue:!0},{provide:Id,useClass:dR}];for(let e of i)t.push(...e.\u0275providers);return jl(t)}var bp=class extends vd{constructor(){super(...arguments),this.supportsDOMEvents=!0}},vp=class i extends bp{static makeCurrent(){xw(new i)}onAndCancel(t,e,n){return t.addEventListener(e,n),()=>{t.removeEventListener(e,n)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.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,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=fR();return e==null?null:mR(e)}resetBaseElement(){ra=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return yd(document.cookie,t)}},ra=null;function fR(){return ra=ra||document.querySelector("base"),ra?ra.getAttribute("href"):null}function mR(i){return new URL(i,document.baseURI).pathname}var _p=class{addToWindow(t){Ei.getAngularTestability=(n,r=!0)=>{let o=t.findTestabilityInTree(n,r);if(o==null)throw new F(5103,!1);return o},Ei.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ei.getAllAngularRootElements=()=>t.getAllRootElements();let e=n=>{let r=Ei.getAllAngularTestabilities(),o=r.length,s=function(){o--,o==0&&n()};r.forEach(a=>{a.whenStable(s)})};Ei.frameworkStabilizers||(Ei.frameworkStabilizers=[]),Ei.frameworkStabilizers.push(e)}findTestabilityInTree(t,e,n){if(e==null)return null;let r=t.getTestability(e);return r??(n?Zi().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},pR=(()=>{class i{build(){return new XMLHttpRequest}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),yp=new M(""),zw=(()=>{class i{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new F(5101,!1);return this._eventNameToPlugin.set(e,n),n}static{this.\u0275fac=function(n){return new(n||i)(_(yp),_(U))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),kd=class{constructor(t){this._doc=t}},pp="ng-app-id",Hw=(()=>{class i{constructor(e,n,r,o={}){this.doc=e,this.appId=n,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=xd(o),this.resetHostNodes()}addStyles(e){for(let n of e)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(e){for(let n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){let n=this.styleRef;n.get(e)?.elements?.forEach(r=>r.remove()),n.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${pp}="${this.appId}"]`);if(e?.length){let n=new Map;return e.forEach(r=>{r.textContent!=null&&n.set(r.textContent,r)}),n}return null}changeUsageCount(e,n){let r=this.styleRef;if(r.has(e)){let o=r.get(e);return o.usage+=n,o.usage}return r.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){let r=this.styleNodesInDOM,o=r?.get(n);if(o?.parentNode===e)return r.delete(n),o.removeAttribute(pp),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=n,this.platformIsServer&&s.setAttribute(pp,this.appId),e.appendChild(s),s}}addStyleToHost(e,n){let r=this.getStyleElement(e,n),o=this.styleRef,s=o.get(n)?.elements;s?s.push(r):o.set(n,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(n){return new(n||i)(_(ae),_(Ys),_(Ks,8),_(Ut))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),gp={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/Math/MathML"},xp=/%COMP%/g,Uw="%COMP%",gR=`_nghost-${Uw}`,bR=`_ngcontent-${Uw}`,vR=!0,_R=new M("",{providedIn:"root",factory:()=>vR});function yR(i){return bR.replace(xp,i)}function wR(i){return gR.replace(xp,i)}function $w(i,t){return t.map(e=>e.replace(xp,i))}var Md=(()=>{class i{constructor(e,n,r,o,s,a,c,l=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=xd(a),this.defaultRenderer=new oa(e,s,c,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Ui.ShadowDom&&(n=De(k({},n),{encapsulation:Ui.Emulated}));let r=this.getOrCreateRenderer(e,n);return r instanceof Sd?r.applyToHost(e):r instanceof sa&&r.applyStyles(),r}getOrCreateRenderer(e,n){let r=this.rendererByCompId,o=r.get(n.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(n.encapsulation){case Ui.Emulated:o=new Sd(c,l,n,this.appId,d,s,a,u);break;case Ui.ShadowDom:return new wp(c,l,e,n,s,a,this.nonce,u);default:o=new sa(c,l,n,d,s,a,u);break}r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(n){return new(n||i)(_(zw),_(Hw),_(Ys),_(_R),_(ae),_(Ut),_(U),_(Ks))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),oa=class{constructor(t,e,n,r){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(gp[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(Vw(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(Vw(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){e.remove()}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new F(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;let o=gp[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let r=gp[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(fn.DashCase|fn.Important)?t.style.setProperty(e,n,r&fn.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&fn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n){if(typeof t=="string"&&(t=Zi().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(n))}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function Vw(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var wp=class extends oa{constructor(t,e,n,r,o,s,a,c){super(t,o,s,c),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=$w(r.id,r.styles);for(let d of l){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},sa=class extends oa{constructor(t,e,n,r,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=c?$w(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Sd=class extends sa{constructor(t,e,n,r,o,s,a,c){let l=r+"-"+n.id;super(t,e,n,o,s,a,c,l),this.contentAttr=yR(l),this.hostAttr=wR(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}},xR=(()=>{class i extends kd{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}static{this.\u0275fac=function(n){return new(n||i)(_(ae))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),Bw=["alt","control","meta","shift"],CR={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},DR={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},ER=(()=>{class i extends kd{constructor(e){super(e)}supports(e){return i.parseEventName(e)!=null}addEventListener(e,n,r){let o=i.parseEventName(n),s=i.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zi().onAndCancel(e,o.domEventName,s))}static parseEventName(e){let n=e.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let o=i._normalizeKey(n.pop()),s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),Bw.forEach(l=>{let d=n.indexOf(l);d>-1&&(n.splice(d,1),s+=l+".")}),s+=o,n.length!=0||o.length===0)return null;let c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,n){let r=CR[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Bw.forEach(s=>{if(s!==r){let a=DR[s];a(e)&&(o+=s+".")}}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{i.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(n){return new(n||i)(_(ae))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})();function IR(){vp.makeCurrent()}function kR(){return new qi}function MR(){return qy(document),document}var SR=[{provide:Ut,useValue:cp},{provide:wm,useValue:IR,multi:!0},{provide:ae,useFactory:MR,deps:[]}],Ww=Zm(fw,"browser",SR),AR=new M(""),TR=[{provide:Zs,useClass:_p,deps:[]},{provide:Km,useClass:ud,deps:[U,hd,Zs]},{provide:ud,useClass:ud,deps:[U,hd,Zs]}],RR=[{provide:Vl,useValue:"root"},{provide:qi,useFactory:kR,deps:[]},{provide:yp,useClass:xR,multi:!0,deps:[ae,U,Ut]},{provide:yp,useClass:ER,multi:!0,deps:[ae]},Md,Hw,zw,{provide:Yn,useExisting:Md},{provide:Yo,useClass:pR,deps:[]},[]],Ad=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:Ys,useValue:e.appId}]}}static{this.\u0275fac=function(n){return new(n||i)(_(AR,12))}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({providers:[...RR,...TR],imports:[pi,mw]})}}return i})();var qw=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(n){return new(n||i)(_(ae))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var ve=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(ve||{}),Ji="*";function Hr(i,t){return{type:ve.Trigger,name:i,definitions:t,options:{}}}function ir(i,t=null){return{type:ve.Animate,styles:t,timings:i}}function Yw(i,t=null){return{type:ve.Sequence,steps:i,options:t}}function Wt(i){return{type:ve.Style,styles:i,offset:null}}function Ur(i,t,e){return{type:ve.State,name:i,styles:t,options:e}}function Cn(i,t,e=null){return{type:ve.Transition,expr:i,animation:t,options:e}}function Kw(i=null){return{type:ve.AnimateChild,options:i}}function Qw(i,t,e=null){return{type:ve.Query,selector:i,animation:t,options:e}}var tr=class{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},aa=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){let t=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Td="!";function Zw(i){return new F(3e3,!1)}function OR(){return new F(3100,!1)}function NR(){return new F(3101,!1)}function PR(i){return new F(3001,!1)}function FR(i){return new F(3003,!1)}function LR(i){return new F(3004,!1)}function jR(i,t){return new F(3005,!1)}function VR(){return new F(3006,!1)}function BR(){return new F(3007,!1)}function zR(i,t){return new F(3008,!1)}function HR(i){return new F(3002,!1)}function UR(i,t,e,n,r){return new F(3010,!1)}function $R(){return new F(3011,!1)}function WR(){return new F(3012,!1)}function qR(){return new F(3200,!1)}function GR(){return new F(3202,!1)}function YR(){return new F(3013,!1)}function KR(i){return new F(3014,!1)}function QR(i){return new F(3015,!1)}function ZR(i){return new F(3016,!1)}function XR(i,t){return new F(3404,!1)}function JR(i){return new F(3502,!1)}function eO(i){return new F(3503,!1)}function tO(){return new F(3300,!1)}function iO(i){return new F(3504,!1)}function nO(i){return new F(3301,!1)}function rO(i,t){return new F(3302,!1)}function oO(i){return new F(3303,!1)}function sO(i,t){return new F(3400,!1)}function aO(i){return new F(3401,!1)}function cO(i){return new F(3402,!1)}function lO(i,t){return new F(3505,!1)}function nr(i){switch(i.length){case 0:return new tr;case 1:return i[0];default:return new aa(i)}}function ux(i,t,e=new Map,n=new Map){let r=[],o=[],s=-1,a=null;if(t.forEach(c=>{let l=c.get("offset"),d=l==s,u=d&&a||new Map;c.forEach((f,h)=>{let m=h,p=f;if(h!=="offset")switch(m=i.normalizePropertyName(m,r),p){case Td:p=e.get(h);break;case Ji:p=n.get(h);break;default:p=i.normalizeStyleValue(h,m,p,r);break}u.set(m,p)}),d||o.push(u),a=u,s=l}),r.length)throw JR(r);return o}function Wp(i,t,e,n){switch(t){case"start":i.onStart(()=>n(e&&Cp(e,"start",i)));break;case"done":i.onDone(()=>n(e&&Cp(e,"done",i)));break;case"destroy":i.onDestroy(()=>n(e&&Cp(e,"destroy",i)));break}}function Cp(i,t,e){let n=e.totalTime,r=!!e.disabled,o=qp(i.element,i.triggerName,i.fromState,i.toState,t||i.phaseName,n??i.totalTime,r),s=i._data;return s!=null&&(o._data=s),o}function qp(i,t,e,n,r="",o=0,s){return{element:i,triggerName:t,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function Jt(i,t,e){let n=i.get(t);return n||i.set(t,n=e),n}function Xw(i){let t=i.indexOf(":"),e=i.substring(1,t),n=i.slice(t+1);return[e,n]}var dO=typeof document>"u"?null:document.documentElement;function Gp(i){let t=i.parentNode||i.host||null;return t===dO?null:t}function uO(i){return i.substring(1,6)=="ebkit"}var $r=null,Jw=!1;function hO(i){$r||($r=fO()||{},Jw=$r.style?"WebkitAppearance"in $r.style:!1);let t=!0;return $r.style&&!uO(i)&&(t=i in $r.style,!t&&Jw&&(t="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in $r.style)),t}function fO(){return typeof document<"u"?document.body:null}function hx(i,t){for(;t;){if(t===i)return!0;t=Gp(t)}return!1}function fx(i,t,e){if(e)return Array.from(i.querySelectorAll(t));let n=i.querySelector(t);return n?[n]:[]}var Yp=(()=>{class i{validateStyleProperty(e){return hO(e)}containsElement(e,n){return hx(e,n)}getParentElement(e){return Gp(e)}query(e,n,r){return fx(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,s,a=[],c){return new tr(r,o)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})(),Gr=class{static{this.NOOP=new Yp}},Yr=class{};var mO=1e3,mx="{{",pO="}}",px="ng-enter",Sp="ng-leave",Rd="ng-trigger",Ld=".ng-trigger",ex="ng-animating",Ap=".ng-animating";function Dn(i){if(typeof i=="number")return i;let t=i.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Tp(parseFloat(t[1]),t[2])}function Tp(i,t){switch(t){case"s":return i*mO;default:return i}}function jd(i,t,e){return i.hasOwnProperty("duration")?i:gO(i,t,e)}function gO(i,t,e){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof i=="string"){let a=i.match(n);if(a===null)return t.push(Zw(i)),{duration:0,delay:0,easing:""};r=Tp(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=Tp(parseFloat(c),a[4]));let l=a[5];l&&(s=l)}else r=i;if(!e){let a=!1,c=t.length;r<0&&(t.push(OR()),a=!0),o<0&&(t.push(NR()),a=!0),a&&t.splice(c,0,Zw(i))}return{duration:r,delay:o,easing:s}}function bO(i){return i.length?i[0]instanceof Map?i:i.map(t=>new Map(Object.entries(t))):[]}function en(i,t,e){t.forEach((n,r)=>{let o=Kp(r);e&&!e.has(r)&&e.set(r,i.style[o]),i.style[o]=n})}function qr(i,t){t.forEach((e,n)=>{let r=Kp(n);i.style[r]=""})}function ca(i){return Array.isArray(i)?i.length==1?i[0]:Yw(i):i}function vO(i,t,e){let n=t.params||{},r=gx(i);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(PR(o))})}var Rp=new RegExp(`${mx}\\s*(.+?)\\s*${pO}`,"g");function gx(i){let t=[];if(typeof i=="string"){let e;for(;e=Rp.exec(i);)t.push(e[1]);Rp.lastIndex=0}return t}function da(i,t,e){let n=`${i}`,r=n.replace(Rp,(o,s)=>{let a=t[s];return a==null&&(e.push(FR(s)),a=""),a.toString()});return r==n?i:r}var _O=/-+([a-z0-9])/g;function Kp(i){return i.replace(_O,(...t)=>t[1].toUpperCase())}function yO(i,t){return i===0||t===0}function wO(i,t,e){if(e.size&&t.length){let n=t[0],r=[];if(e.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;o<t.length;o++){let s=t[o];r.forEach(a=>s.set(a,Qp(i,a)))}}return t}function Xt(i,t,e){switch(t.type){case ve.Trigger:return i.visitTrigger(t,e);case ve.State:return i.visitState(t,e);case ve.Transition:return i.visitTransition(t,e);case ve.Sequence:return i.visitSequence(t,e);case ve.Group:return i.visitGroup(t,e);case ve.Animate:return i.visitAnimate(t,e);case ve.Keyframes:return i.visitKeyframes(t,e);case ve.Style:return i.visitStyle(t,e);case ve.Reference:return i.visitReference(t,e);case ve.AnimateChild:return i.visitAnimateChild(t,e);case ve.AnimateRef:return i.visitAnimateRef(t,e);case ve.Query:return i.visitQuery(t,e);case ve.Stagger:return i.visitStagger(t,e);default:throw LR(t.type)}}function Qp(i,t){return window.getComputedStyle(i)[t]}var xO=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Vd=class extends Yr{normalizePropertyName(t,e){return Kp(t)}normalizeStyleValue(t,e,n,r){let o="",s=n.toString().trim();if(xO.has(e)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(jR(t,n))}return s+o}};var Bd="*";function CO(i,t){let e=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>DO(n,e,t)):e.push(i),e}function DO(i,t,e){if(i[0]==":"){let c=EO(i,e);if(typeof c=="function"){t.push(c);return}i=c}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(QR(i)),t;let r=n[1],o=n[2],s=n[3];t.push(tx(r,s));let a=r==Bd&&s==Bd;o[0]=="<"&&!a&&t.push(tx(s,r))}function EO(i,t){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return t.push(ZR(i)),"* => *"}}var Od=new Set(["true","1"]),Nd=new Set(["false","0"]);function tx(i,t){let e=Od.has(i)||Nd.has(i),n=Od.has(t)||Nd.has(t);return(r,o)=>{let s=i==Bd||i==r,a=t==Bd||t==o;return!s&&e&&typeof r=="boolean"&&(s=r?Od.has(i):Nd.has(i)),!a&&n&&typeof o=="boolean"&&(a=o?Od.has(t):Nd.has(t)),s&&a}}var bx=":self",IO=new RegExp(`s*${bx}s*,?`,"g");function vx(i,t,e,n){return new Op(i).build(t,e,n)}var ix="",Op=class{constructor(t){this._driver=t}build(t,e,n){let r=new Np(e);return this._resetContextStyleTimingState(r),Xt(this,ca(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector=ix,t.collectedStyles=new Map,t.collectedStyles.set(ix,new Map),t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0,o=[],s=[];return t.name.charAt(0)=="@"&&e.errors.push(VR()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==ve.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,e))}),c.name=l}else if(a.type==ve.Transition){let c=this.visitTransition(a,e);n+=c.queryCount,r+=c.depCount,s.push(c)}else e.errors.push(BR())}),{type:ve.Trigger,name:t.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(t,e){let n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){let o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{gx(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&e.errors.push(zR(t.name,[...o.values()]))}return{type:ve.State,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let n=Xt(this,ca(t.animation),e),r=CO(t.expr,e.errors);return{type:ve.Transition,matchers:r,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Wr(t.options)}}visitSequence(t,e){return{type:ve.Sequence,steps:t.steps.map(n=>Xt(this,n,e)),options:Wr(t.options)}}visitGroup(t,e){let n=e.currentTime,r=0,o=t.steps.map(s=>{e.currentTime=n;let a=Xt(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:ve.Group,steps:o,options:Wr(t.options)}}visitAnimate(t,e){let n=AO(t.timings,e.errors);e.currentAnimateTimings=n;let r,o=t.styles?t.styles:Wt({});if(o.type==ve.Keyframes)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;let l={};n.easing&&(l.easing=n.easing),s=Wt(l)}e.currentTime+=n.duration+n.delay;let c=this.visitStyle(s,e);c.isEmptyStep=a,r=c}return e.currentAnimateTimings=null,{type:ve.Animate,timings:n,style:r,options:null}}visitStyle(t,e){let n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){let n=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)typeof a=="string"?a===Ji?n.push(a):e.errors.push(HR(a)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(mx)>=0){o=!0;break}}}),{type:ve.Style,styles:n,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){let n=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=e.collectedStyles.get(e.currentQuerySelector),d=l.get(c),u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push(UR(c,d.startTime,d.endTime,o,r)),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),e.options&&vO(a,e.options,e.errors)})})}visitKeyframes(t,e){let n={type:ve.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push($R()),n;let r=1,o=0,s=[],a=!1,c=!1,l=0,d=t.steps.map(E=>{let A=this._makeStyleAst(E,e),C=A.offset!=null?A.offset:SO(A.styles),N=0;return C!=null&&(o++,N=A.offset=C),c=c||N<0||N>1,a=a||N<l,l=N,s.push(N),A});c&&e.errors.push(WR()),a&&e.errors.push(qR());let u=t.steps.length,f=0;o>0&&o<u?e.errors.push(GR()):o==0&&(f=r/(u-1));let h=u-1,m=e.currentTime,p=e.currentAnimateTimings,v=p.duration;return d.forEach((E,A)=>{let C=f>0?A==h?1:f*A:s[A],N=C*v;e.currentTime=m+p.delay+N,p.duration=N,this._validateStyleAst(E,e),E.offset=C,n.styles.push(E)}),n}visitReference(t,e){return{type:ve.Reference,animation:Xt(this,ca(t.animation),e),options:Wr(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:ve.AnimateChild,options:Wr(t.options)}}visitAnimateRef(t,e){return{type:ve.AnimateRef,animation:this.visitReference(t.animation,e),options:Wr(t.options)}}visitQuery(t,e){let n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;let[o,s]=kO(t.selector);e.currentQuerySelector=n.length?n+" "+o:o,Jt(e.collectedStyles,e.currentQuerySelector,new Map);let a=Xt(this,ca(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:ve.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Wr(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(YR());let n=t.timings==="full"?{duration:0,delay:0,easing:"full"}:jd(t.timings,e.errors,!0);return{type:ve.Stagger,animation:Xt(this,ca(t.animation),e),timings:n,options:null}}};function kO(i){let t=!!i.split(/\s*,\s*/).find(e=>e==bx);return t&&(i=i.replace(IO,"")),i=i.replace(/@\*/g,Ld).replace(/@\w+/g,e=>Ld+"-"+e.slice(1)).replace(/:animating/g,Ap),[i,t]}function MO(i){return i?k({},i):null}var Np=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function SO(i){if(typeof i=="string")return null;let t=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let e=i;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function AO(i,t){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let o=jd(i,t).duration;return Dp(o,0,"")}let e=i;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Dp(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=jd(e,t);return Dp(r.duration,r.delay,r.easing)}function Wr(i){return i?(i=k({},i),i.params&&(i.params=MO(i.params))):i={},i}function Dp(i,t,e){return{duration:i,delay:t,easing:e}}function Zp(i,t,e,n,r,o,s=null,a=!1){return{type:1,element:i,keyframes:t,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var ua=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},TO=1,RO=":enter",OO=new RegExp(RO,"g"),NO=":leave",PO=new RegExp(NO,"g");function _x(i,t,e,n,r,o=new Map,s=new Map,a,c,l=[]){return new Pp().buildKeyframes(i,t,e,n,r,o,s,a,c,l)}var Pp=class{buildKeyframes(t,e,n,r,o,s,a,c,l,d=[]){l=l||new ua;let u=new Fp(t,e,l,r,o,d,[]);u.options=c;let f=c.delay?Dn(c.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([s],null,u.errors,c),Xt(this,n,u);let h=u.timelines.filter(m=>m.containsAnimation());if(h.length&&a.size){let m;for(let p=h.length-1;p>=0;p--){let v=h[p];if(v.element===e){m=v;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,c)}return h.length?h.map(m=>m.buildKeyframes()):[Zp(e,[],[],[],0,f,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let n=e.subInstructions.get(e.element);if(n){let r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){let n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,n),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,n){for(let r of t){let o=r?.delay;if(o){let s=typeof o=="number"?o:Dn(da(o,r?.params??{},e.errors));n.delayNextStep(s)}}}_visitSubInstructions(t,e,n){let o=e.currentTimeline.currentTime,s=n.duration!=null?Dn(n.duration):null,a=n.delay!=null?Dn(n.delay):null;return s!==0&&t.forEach(c=>{let l=e.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Xt(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let n=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==ve.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=zd);let s=Dn(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Xt(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let n=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Dn(t.options.delay):0;t.steps.forEach(s=>{let a=e.createSubContext(t.options);o&&a.delayNextStep(o),Xt(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let n=t.strValue,r=e.params?da(n,e.params,e.errors):n;return jd(r,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());let o=t.style;o.type==ve.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*o),a.setStyles(c.styles,c.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){let n=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Dn(r.delay):0;o&&(e.previousNode.type===ve.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=zd);let s=n,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let c=null;a.forEach((l,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(t.options,l);o&&u.delayNextStep(o),l===e.element&&(c=u.currentTimeline),Xt(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe();let f=u.currentTimeline.currentTime;s=Math.max(s,f)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let n=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1),c=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=n.currentStaggerTime;break}let d=e.currentTimeline;c&&d.delayNextStep(c);let u=d.currentTime;Xt(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}},zd={},Fp=class i{constructor(t,e,n,r,o,s,a,c){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=zd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Hd(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let n=t,r=this.options;n.duration!=null&&(r.duration=Dn(n.duration)),n.delay!=null&&(r.delay=Dn(n.delay));let o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=da(o[a],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let n=t.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return t}createSubContext(t=null,e,n){let r=e||this.element,o=new i(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=zd,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){let r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},o=new Lp(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=t.replace(OO,"."+this._enterClassName),t=t.replace(PO,"."+this._leaveClassName);let c=n!=1,l=this._driver.query(this.element,t,c);n!==0&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),a.push(...l)}return!o&&a.length==0&&s.push(KR(e)),a}},Hd=class i{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new i(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=TO,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ji),this._currentKeyframe.set(e,Ji);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},s=FO(t,this._globalTimelineStyles);for(let[a,c]of s){let l=da(c,o,n);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ji),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,n)=>{let r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((d,u)=>{d===Td?t.add(u):d===Ji&&e.add(u)}),n||l.set("offset",c/this.duration),r.push(l)});let o=[...t.values()],s=[...e.values()];if(n){let a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return Zp(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},Lp=class extends Hd{constructor(t,e,n,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],s=n+e,a=e/s,c=new Map(t[0]);c.set("offset",0),o.push(c);let l=new Map(t[0]);l.set("offset",nx(a)),o.push(l);let d=t.length-1;for(let u=1;u<=d;u++){let f=new Map(t[u]),h=f.get("offset"),m=e+h*n;f.set("offset",nx(m/s)),o.push(f)}n=s,e=0,r="",t=o}return Zp(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}};function nx(i,t=3){let e=Math.pow(10,t-1);return Math.round(i*e)/e}function FO(i,t){let e=new Map,n;return i.forEach(r=>{if(r==="*"){n??=t.keys();for(let o of n)e.set(o,Ji)}else for(let[o,s]of r)e.set(o,s)}),e}function rx(i,t,e,n,r,o,s,a,c,l,d,u,f){return{type:0,element:i,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:f}}var Ep={},Ud=class{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return LO(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){let r=this._stateStyles.get("*");return t!==void 0&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,n):new Map}build(t,e,n,r,o,s,a,c,l,d){let u=[],f=this.ast.options&&this.ast.options.params||Ep,h=a&&a.params||Ep,m=this.buildStyles(n,h,u),p=c&&c.params||Ep,v=this.buildStyles(r,p,u),E=new Set,A=new Map,C=new Map,N=r==="void",L={params:yx(p,f),delay:this.ast.options?.delay},B=d?[]:_x(t,e,this.ast.animation,o,s,m,v,L,l,u),W=0;return B.forEach(ee=>{W=Math.max(ee.duration+ee.delay,W)}),u.length?rx(e,this._triggerName,n,r,N,m,v,[],[],A,C,W,u):(B.forEach(ee=>{let he=ee.element,ze=Jt(A,he,new Set);ee.preStyleProps.forEach(Ye=>ze.add(Ye));let H=Jt(C,he,new Set);ee.postStyleProps.forEach(Ye=>H.add(Ye)),he!==e&&E.add(he)}),rx(e,this._triggerName,n,r,N,m,v,B,[...E.values()],A,C,W))}};function LO(i,t,e,n,r){return i.some(o=>o(t,e,n,r))}function yx(i,t){let e=k({},t);return Object.entries(i).forEach(([n,r])=>{r!=null&&(e[n]=r)}),e}var jp=class{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){let n=new Map,r=yx(t,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=da(s,r,e));let c=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,c,s,e),n.set(a,s)})}),n}};function jO(i,t,e){return new Vp(i,t,e)}var Vp=class{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new jp(r.style,o,n))}),ox(this.states,"true","1"),ox(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Ud(t,r,this.states))}),this.fallbackTransition=VO(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(s=>s.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}};function VO(i,t,e){let n=[(s,a)=>!0],r={type:ve.Sequence,steps:[],options:null},o={type:ve.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new Ud(i,o,t)}function ox(i,t,e){i.has(t)?i.has(e)||i.set(e,i.get(t)):i.has(e)&&i.set(t,i.get(e))}var BO=new ua,Bp=class{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){let n=[],r=[],o=vx(this._driver,e,n,r);if(n.length)throw eO(n);r.length&&void 0,this._animations.set(t,o)}_buildPlayer(t,e,n){let r=t.element,o=ux(this._normalizer,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){let r=[],o=this._animations.get(t),s,a=new Map;if(o?(s=_x(this._driver,e,o,px,Sp,new Map,new Map,n,BO,r),s.forEach(d=>{let u=Jt(a,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(r.push(tO()),s=[]),r.length)throw iO(r);a.forEach((d,u)=>{d.forEach((f,h)=>{d.set(h,this._driver.computeStyle(u,h,Ji))})});let c=s.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),l=nr(c);return this._playersById.set(t,l),l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw nO(t);return e}listen(t,e,n,r){let o=qp(e,"","","");return Wp(this._getPlayer(t),n,o,r),()=>{}}command(t,e,n,r){if(n=="register"){this.register(t,r[0]);return}if(n=="create"){let s=r[0]||{};this.create(t,e,s);return}let o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t);break}}},sx="ng-animate-queued",zO=".ng-animate-queued",Ip="ng-animate-disabled",HO=".ng-animate-disabled",UO="ng-star-inserted",$O=".ng-star-inserted",WO=[],wx={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ti="__ng_removed",ha=class{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let n=t&&t.hasOwnProperty("value"),r=n?t.value:t;if(this.value=YO(r),n){let o=t,{value:s}=o,a=xh(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let n=this.options.params;Object.keys(e).forEach(r=>{n[r]==null&&(n[r]=e[r])})}}},la="void",kp=new ha(la),zp=class{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,gi(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.has(e))throw rO(n,e);if(n==null||n.length==0)throw oO(e);if(!KO(n))throw sO(n,e);let o=Jt(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);let a=Jt(this._engine.statesByElement,t,new Map);return a.has(e)||(gi(t,Rd),gi(t,Rd+"-"+e),a.set(e,kp)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw aO(t);return e}trigger(t,e,n,r=!0){let o=this._getTrigger(e),s=new fa(this.id,e,t),a=this._engine.statesByElement.get(t);a||(gi(t,Rd),gi(t,Rd+"-"+e),this._engine.statesByElement.set(t,a=new Map));let c=a.get(e),l=new ha(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(e,l),c||(c=kp),!(l.value===la)&&c.value===l.value){if(!XO(c.params,l.params)){let p=[],v=o.matchStyles(c.value,c.params,p),E=o.matchStyles(l.value,l.params,p);p.length?this._engine.reportError(p):this._engine.afterFlush(()=>{qr(t,v),en(t,E)})}return}let f=Jt(this._engine.playersByElement,t,[]);f.forEach(p=>{p.namespaceId==this.id&&p.triggerName==e&&p.queued&&p.destroy()});let h=o.matchTransition(c.value,l.value,t,l.params),m=!1;if(!h){if(!r)return;h=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:c,toState:l,player:s,isFallbackTransition:m}),m||(gi(t,sx),s.onStart(()=>{Ko(t,sx)})),s.onDone(()=>{let p=this.players.indexOf(s);p>=0&&this.players.splice(p,1);let v=this._engine.playersByElement.get(t);if(v){let E=v.indexOf(s);E>=0&&v.splice(E,1)}}),this.players.push(s),f.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let n=this._engine.driver.query(t,Ld,!0);n.forEach(r=>{if(r[Ti])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,n,r){let o=this._engine.statesByElement.get(t),s=new Map;if(o){let a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let d=this.trigger(t,l,la,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),n&&nr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){let r=new Set;e.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let c=this._triggers.get(s).fallbackTransition,l=n.get(s)||kp,d=new ha(la),u=new fa(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,e){let n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{let o=t[Ti];(!o||o===wx)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){gi(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){let c=qp(o,n.triggerName,n.fromState.value,n.toState.value);c._data=t,Wp(n.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{let o=n.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},Hp=class{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,e){let n=new zp(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let c=r.get(a);if(c){let l=n.indexOf(c);n.splice(l+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(t)}else n.push(t);return r.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,n=this.statesByElement.get(t);if(n){for(let r of n.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(t,e,n,r){if(Pd(e)){let o=this._fetchNamespace(t);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!Pd(e))return;let o=e[Ti];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),gi(t,Ip)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ko(t,Ip))}removeNode(t,e,n){if(Pd(e)){let r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n);let o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,n,r,o){this.collectedLeaveElements.push(e),e[Ti]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,n,r,o){return Pd(e)?this._fetchNamespace(t).listen(e,n,r,o):()=>{}}_buildInstruction(t,e,n,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,Ld,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,Ap,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return nr(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[Ti];if(e&&e.setForRemoval){if(t[Ti]=wx,e.namespaceId){this.destroyInnerAnimations(t);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Ip)&&this.markElementAsDisabled(t,!1),this.driver.query(t,HO,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let r=this.collectedEnterElements[n];gi(r,UO)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{e=this._flushAnimations(n,t)}finally{for(let r=0;r<n.length;r++)n[r]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let r=this.collectedLeaveElements[n];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?nr(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(t){throw cO(t)}_flushAnimations(t,e){let n=new ua,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(w=>{d.add(w);let O=this.driver.query(w,zO,!0);for(let P=0;P<O.length;P++)d.add(O[P])});let u=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=lx(f,this.collectedEnterElements),m=new Map,p=0;h.forEach((w,O)=>{let P=px+p++;m.set(O,P),w.forEach(oe=>gi(oe,P))});let v=[],E=new Set,A=new Set;for(let w=0;w<this.collectedLeaveElements.length;w++){let O=this.collectedLeaveElements[w],P=O[Ti];P&&P.setForRemoval&&(v.push(O),E.add(O),P.hasAnimation?this.driver.query(O,$O,!0).forEach(oe=>E.add(oe)):A.add(O))}let C=new Map,N=lx(f,Array.from(E));N.forEach((w,O)=>{let P=Sp+p++;C.set(O,P),w.forEach(oe=>gi(oe,P))}),t.push(()=>{h.forEach((w,O)=>{let P=m.get(O);w.forEach(oe=>Ko(oe,P))}),N.forEach((w,O)=>{let P=C.get(O);w.forEach(oe=>Ko(oe,P))}),v.forEach(w=>{this.processLeaveNode(w)})});let L=[],B=[];for(let w=this._namespaceList.length-1;w>=0;w--)this._namespaceList[w].drainQueuedTransitions(e).forEach(P=>{let oe=P.player,je=P.element;if(L.push(oe),this.collectedEnterElements.length){let ft=je[Ti];if(ft&&ft.setForMove){if(ft.previousTriggersValues&&ft.previousTriggersValues.has(P.triggerName)){let on=ft.previousTriggersValues.get(P.triggerName),At=this.statesByElement.get(P.element);if(At&&At.has(P.triggerName)){let _r=At.get(P.triggerName);_r.value=on,At.set(P.triggerName,_r)}}oe.destroy();return}}let Ze=!u||!this.driver.containsElement(u,je),Ce=C.get(je),G=m.get(je),Se=this._buildInstruction(P,n,G,Ce,Ze);if(Se.errors&&Se.errors.length){B.push(Se);return}if(Ze){oe.onStart(()=>qr(je,Se.fromStyles)),oe.onDestroy(()=>en(je,Se.toStyles)),r.push(oe);return}if(P.isFallbackTransition){oe.onStart(()=>qr(je,Se.fromStyles)),oe.onDestroy(()=>en(je,Se.toStyles)),r.push(oe);return}let vr=[];Se.timelines.forEach(ft=>{ft.stretchStartingKeyframe=!0,this.disabledNodes.has(ft.element)||vr.push(ft)}),Se.timelines=vr,n.append(je,Se.timelines);let bh={instruction:Se,player:oe,element:je};s.push(bh),Se.queriedElements.forEach(ft=>Jt(a,ft,[]).push(oe)),Se.preStyleProps.forEach((ft,on)=>{if(ft.size){let At=c.get(on);At||c.set(on,At=new Set),ft.forEach((_r,mo)=>At.add(mo))}}),Se.postStyleProps.forEach((ft,on)=>{let At=l.get(on);At||l.set(on,At=new Set),ft.forEach((_r,mo)=>At.add(mo))})});if(B.length){let w=[];B.forEach(O=>{w.push(lO(O.triggerName,O.errors))}),L.forEach(O=>O.destroy()),this.reportError(w)}let W=new Map,ee=new Map;s.forEach(w=>{let O=w.element;n.has(O)&&(ee.set(O,O),this._beforeAnimationBuild(w.player.namespaceId,w.instruction,W))}),r.forEach(w=>{let O=w.element;this._getPreviousPlayers(O,!1,w.namespaceId,w.triggerName,null).forEach(oe=>{Jt(W,O,[]).push(oe),oe.destroy()})});let he=v.filter(w=>dx(w,c,l)),ze=new Map;cx(ze,this.driver,A,l,Ji).forEach(w=>{dx(w,c,l)&&he.push(w)});let Ye=new Map;h.forEach((w,O)=>{cx(Ye,this.driver,new Set(w),c,Td)}),he.forEach(w=>{let O=ze.get(w),P=Ye.get(w);ze.set(w,new Map([...O?.entries()??[],...P?.entries()??[]]))});let Ve=[],st=[],St={};s.forEach(w=>{let{element:O,player:P,instruction:oe}=w;if(n.has(O)){if(d.has(O)){P.onDestroy(()=>en(O,oe.toStyles)),P.disabled=!0,P.overrideTotalTime(oe.totalTime),r.push(P);return}let je=St;if(ee.size>1){let Ce=O,G=[];for(;Ce=Ce.parentNode;){let Se=ee.get(Ce);if(Se){je=Se;break}G.push(Ce)}G.forEach(Se=>ee.set(Se,je))}let Ze=this._buildAnimation(P.namespaceId,oe,W,o,Ye,ze);if(P.setRealPlayer(Ze),je===St)Ve.push(P);else{let Ce=this.playersByElement.get(je);Ce&&Ce.length&&(P.parentPlayer=nr(Ce)),r.push(P)}}else qr(O,oe.fromStyles),P.onDestroy(()=>en(O,oe.toStyles)),st.push(P),d.has(O)&&r.push(P)}),st.forEach(w=>{let O=o.get(w.element);if(O&&O.length){let P=nr(O);w.setRealPlayer(P)}}),r.forEach(w=>{w.parentPlayer?w.syncPlayerEvents(w.parentPlayer):w.destroy()});for(let w=0;w<v.length;w++){let O=v[w],P=O[Ti];if(Ko(O,Sp),P&&P.hasAnimation)continue;let oe=[];if(a.size){let Ze=a.get(O);Ze&&Ze.length&&oe.push(...Ze);let Ce=this.driver.query(O,Ap,!0);for(let G=0;G<Ce.length;G++){let Se=a.get(Ce[G]);Se&&Se.length&&oe.push(...Se)}}let je=oe.filter(Ze=>!Ze.destroyed);je.length?QO(this,O,je):this.processLeaveNode(O)}return v.length=0,Ve.forEach(w=>{this.players.push(w),w.onDone(()=>{w.destroy();let O=this.players.indexOf(w);this.players.splice(O,1)}),w.play()}),Ve}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,o){let s=[];if(e){let a=this.playersByQueriedElement.get(t);a&&(s=a)}else{let a=this.playersByElement.get(t);if(a){let c=!o||o==la;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,n){let r=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:r;for(let c of e.timelines){let l=c.element,d=l!==o,u=Jt(n,l,[]);this._getPreviousPlayers(l,d,s,a,e.toState).forEach(h=>{let m=h.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),h.destroy(),u.push(h)})}qr(o,e.fromStyles)}_buildAnimation(t,e,n,r,o,s){let a=e.triggerName,c=e.element,l=[],d=new Set,u=new Set,f=e.timelines.map(m=>{let p=m.element;d.add(p);let v=p[Ti];if(v&&v.removedBeforeQueried)return new tr(m.duration,m.delay);let E=p!==c,A=ZO((n.get(p)||WO).map(W=>W.getRealPlayer())).filter(W=>{let ee=W;return ee.element?ee.element===p:!1}),C=o.get(p),N=s.get(p),L=ux(this._normalizer,m.keyframes,C,N),B=this._buildPlayer(m,L,A);if(m.subTimeline&&r&&u.add(p),E){let W=new fa(t,a,p);W.setRealPlayer(B),l.push(W)}return B});l.forEach(m=>{Jt(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>GO(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>gi(m,ex));let h=nr(f);return h.onDestroy(()=>{d.forEach(m=>Ko(m,ex)),en(c,e.toStyles)}),u.forEach(m=>{Jt(r,m,[]).push(h)}),h}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new tr(t.duration,t.delay)}},fa=class{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new tr,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>Wp(t,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Jt(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function GO(i,t,e){let n=i.get(t);if(n){if(n.length){let r=n.indexOf(e);n.splice(r,1)}n.length==0&&i.delete(t)}return n}function YO(i){return i??null}function Pd(i){return i&&i.nodeType===1}function KO(i){return i=="start"||i=="done"}function ax(i,t){let e=i.style.display;return i.style.display=t??"none",e}function cx(i,t,e,n,r){let o=[];e.forEach(c=>o.push(ax(c)));let s=[];n.forEach((c,l)=>{let d=new Map;c.forEach(u=>{let f=t.computeStyle(l,u,r);d.set(u,f),(!f||f.length==0)&&(l[Ti]=qO,s.push(l))}),i.set(l,d)});let a=0;return e.forEach(c=>ax(c,o[a++])),s}function lx(i,t){let e=new Map;if(i.forEach(a=>e.set(a,[])),t.length==0)return e;let n=1,r=new Set(t),o=new Map;function s(a){if(!a)return n;let c=o.get(a);if(c)return c;let l=a.parentNode;return e.has(l)?c=l:r.has(l)?c=n:c=s(l),o.set(a,c),c}return t.forEach(a=>{let c=s(a);c!==n&&e.get(c).push(a)}),e}function gi(i,t){i.classList?.add(t)}function Ko(i,t){i.classList?.remove(t)}function QO(i,t,e){nr(e).onDone(()=>i.processLeaveNode(t))}function ZO(i){let t=[];return xx(i,t),t}function xx(i,t){for(let e=0;e<i.length;e++){let n=i[e];n instanceof aa?xx(n.players,t):t.push(n)}}function XO(i,t){let e=Object.keys(i),n=Object.keys(t);if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!t.hasOwnProperty(o)||i[o]!==t[o])return!1}return!0}function dx(i,t,e){let n=e.get(i);if(!n)return!1;let r=t.get(i);return r?n.forEach(o=>r.add(o)):t.set(i,n),e.delete(i),!0}var Qo=class{constructor(t,e,n){this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Hp(t.body,e,n),this._timelineEngine=new Bp(t.body,e,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,n,r,o){let s=t+"-"+r,a=this._triggerCache[s];if(!a){let c=[],l=[],d=vx(this._driver,o,c,l);if(c.length)throw XR(r,c);l.length&&void 0,a=jO(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n){this._transitionEngine.removeNode(t,e,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if(n.charAt(0)=="@"){let[o,s]=Xw(n),a=r;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,o){if(n.charAt(0)=="@"){let[s,a]=Xw(n);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,n,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function JO(i,t){let e=null,n=null;return Array.isArray(t)&&t.length?(e=Mp(t[0]),t.length>1&&(n=Mp(t[t.length-1]))):t instanceof Map&&(e=Mp(t)),e||n?new Up(i,e,n):null}var Up=class i{static{this.initialStylesByElement=new WeakMap}constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&en(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(en(this._element,this._initialStyles),this._endStyles&&(en(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(qr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qr(this._element,this._endStyles),this._endStyles=null),en(this._element,this._initialStyles),this._state=3)}};function Mp(i){let t=null;return i.forEach((e,n)=>{eN(n)&&(t=t||new Map,t.set(n,e))}),t}function eN(i){return i==="display"||i==="position"}var $d=class{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(t,e,n){return t.animate(this._convertKeyframesToObject(e),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&t.set(r,this._finished?n:Qp(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Wd=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return hx(t,e)}getParentElement(t){return Gp(t)}query(t,e,n){return fx(t,e,n)}computeStyle(t,e,n){return Qp(t,e)}animate(t,e,n,r,o,s=[]){let a=r==0?"both":"forwards",c={duration:n,delay:r,fill:a};o&&(c.easing=o);let l=new Map,d=s.filter(h=>h instanceof $d);yO(n,r)&&d.forEach(h=>{h.currentSnapshot.forEach((m,p)=>l.set(p,m))});let u=bO(e).map(h=>new Map(h));u=wO(t,u,l);let f=JO(t,u);return new $d(t,u,c,f)}};var Fd="@",Cx="@.disabled",qd=class{constructor(t,e,n,r){this.namespaceId=t,this.delegate=e,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,r=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,n){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Fd&&e==Cx?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},$p=class extends qd{constructor(t,e,n,r,o){super(e,n,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Fd?e.charAt(1)=="."&&e==Cx?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.slice(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Fd){let r=tN(t),o=e.slice(1),s="";return o.charAt(0)!=Fd&&([o,s]=iN(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,n,a)})}return this.delegate.listen(t,e,n)}};function tN(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function iN(i){let t=i.indexOf("."),e=i.substring(0,t),n=i.slice(t+1);return[e,n]}var Gd=class{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(t,e){let n="",r=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let l=this._rendererCache,d=l.get(r);if(!d){let u=()=>l.delete(r);d=new qd(n,r,this.engine,u),l.set(r,d)}return d}let o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,t,l.name,l)};return e.data.animation.forEach(a),new $p(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){if(t>=0&&t<this._microtaskId){this._zone.run(()=>e(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var rN=(()=>{class i extends Qo{constructor(e,n,r){super(e,n,r)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(n){return new(n||i)(_(ae),_(Gr),_(Yr))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})();function oN(){return new Vd}function sN(i,t,e){return new Gd(i,t,e)}var Ex=[{provide:Yr,useFactory:oN},{provide:Qo,useClass:rN},{provide:Yn,useFactory:sN,deps:[Md,Qo,U]}],Dx=[{provide:Gr,useFactory:()=>new Wd},{provide:ot,useValue:"BrowserAnimations"},...Ex],aN=[{provide:Gr,useClass:Yp},{provide:ot,useValue:"NoopAnimations"},...Ex],Ix=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?aN:Dx}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({providers:Dx,imports:[Ad]})}}return i})();var Nx=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(n){return new(n||i)(g(gn),g(Q))}}static{this.\u0275dir=K({type:i})}}return i})(),Px=(()=>{class i extends Nx{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Qt(i)))(r||i)}})()}static{this.\u0275dir=K({type:i,features:[Ge]})}}return i})(),_a=new M("");var cN={provide:_a,useExisting:Kt(()=>es),multi:!0};function lN(){let i=Zi()?Zi().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var dN=new M(""),es=(()=>{class i extends Nx{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!lN())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(n){return new(n||i)(g(gn),g(Q),g(dN,8))}}static{this.\u0275dir=K({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&z("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[nt([cN]),Ge]})}}return i})();function rr(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function Fx(i){return i!=null&&typeof i.length=="number"}var Qr=new M(""),ig=new M(""),uN=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Jo=class{static min(t){return Lx(t)}static max(t){return jx(t)}static required(t){return hN(t)}static requiredTrue(t){return fN(t)}static email(t){return mN(t)}static minLength(t){return pN(t)}static maxLength(t){return gN(t)}static pattern(t){return bN(t)}static nullValidator(t){return Kd(t)}static compose(t){return $x(t)}static composeAsync(t){return Wx(t)}};function Lx(i){return t=>{if(rr(t.value)||rr(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<i?{min:{min:i,actual:t.value}}:null}}function jx(i){return t=>{if(rr(t.value)||rr(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function hN(i){return rr(i.value)?{required:!0}:null}function fN(i){return i.value===!0?null:{required:!0}}function mN(i){return rr(i.value)||uN.test(i.value)?null:{email:!0}}function pN(i){return t=>rr(t.value)||!Fx(t.value)?null:t.value.length<i?{minlength:{requiredLength:i,actualLength:t.value.length}}:null}function gN(i){return t=>Fx(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}function bN(i){if(!i)return Kd;let t,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(rr(n.value))return null;let r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Kd(i){return null}function Vx(i){return i!=null}function Bx(i){return zr(i)?qe(i):i}function zx(i){let t={};return i.forEach(e=>{t=e!=null?k(k({},t),e):t}),Object.keys(t).length===0?null:t}function Hx(i,t){return t.map(e=>e(i))}function vN(i){return!i.validate}function Ux(i){return i.map(t=>vN(t)?t:e=>t.validate(e))}function $x(i){if(!i)return null;let t=i.filter(Vx);return t.length==0?null:function(e){return zx(Hx(e,t))}}function ng(i){return i!=null?$x(Ux(i)):null}function Wx(i){if(!i)return null;let t=i.filter(Vx);return t.length==0?null:function(e){let n=Hx(e,t).map(Bx);return Vh(n).pipe(se(zx))}}function rg(i){return i!=null?Wx(Ux(i)):null}function kx(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function qx(i){return i._rawValidators}function Gx(i){return i._rawAsyncValidators}function Xp(i){return i?Array.isArray(i)?i:[i]:[]}function Qd(i,t){return Array.isArray(i)?i.includes(t):i===t}function Mx(i,t){let e=Xp(t);return Xp(i).forEach(r=>{Qd(e,r)||e.push(r)}),e}function Sx(i,t){return Xp(t).filter(e=>!Qd(i,e))}var Zd=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=ng(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=rg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},Kr=class extends Zd{get formDirective(){return null}get path(){return null}},En=class extends Zd{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Jp=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},_N={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},p6=De(k({},_N),{"[class.ng-submitted]":"isSubmitted"}),ru=(()=>{class i extends Jp{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(g(En,2))}}static{this.\u0275dir=K({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&Ie("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Ge]})}}return i})();var ma="VALID",Yd="INVALID",Zo="PENDING",pa="DISABLED",or=class{},Xd=class extends or{constructor(t,e){super(),this.value=t,this.source=e}},ba=class extends or{constructor(t,e){super(),this.pristine=t,this.source=e}},va=class extends or{constructor(t,e){super(),this.touched=t,this.source=e}},Xo=class extends or{constructor(t,e){super(),this.status=t,this.source=e}},eg=class extends or{constructor(t){super(),this.source=t}},tg=class extends or{constructor(t){super(),this.source=t}};function Yx(i){return(ou(i)?i.validators:i)||null}function yN(i){return Array.isArray(i)?ng(i):i||null}function Kx(i,t){return(ou(t)?t.asyncValidators:i)||null}function wN(i){return Array.isArray(i)?rg(i):i||null}function ou(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function xN(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new F(1e3,"");if(!n[e])throw new F(1001,"")}function CN(i,t,e){i._forEachChild((n,r)=>{if(e[r]===void 0)throw new F(1002,"")})}var Jd=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=vn(()=>this.statusReactive()),this.statusReactive=bn(void 0),this._pristine=vn(()=>this.pristineReactive()),this.pristineReactive=bn(!0),this._touched=vn(()=>this.touchedReactive()),this.touchedReactive=bn(!1),this._events=new $,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return mi(this.statusReactive)}set status(t){mi(()=>this.statusReactive.set(t))}get valid(){return this.status===ma}get invalid(){return this.status===Yd}get pending(){return this.status==Zo}get disabled(){return this.status===pa}get enabled(){return this.status!==pa}get pristine(){return mi(this.pristineReactive)}set pristine(t){mi(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return mi(this.touchedReactive)}set touched(t){mi(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Mx(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Mx(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Sx(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Sx(t,this._rawAsyncValidators))}hasValidator(t){return Qd(this._rawValidators,t)}hasAsyncValidator(t){return Qd(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(De(k({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new va(!0,n))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:n})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n),e&&t.emitEvent!==!1&&this._events.next(new va(!1,n))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(De(k({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new ba(!1,n))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),e&&t.emitEvent!==!1&&this._events.next(new ba(!0,n))}markAsPending(t={}){this.status=Zo;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xo(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(De(k({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=pa,this.errors=null,this._forEachChild(r=>{r.disable(De(k({},t),{onlySelf:!0}))}),this._updateValue();let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xd(this.value,n)),this._events.next(new Xo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(De(k({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=ma,this._forEachChild(n=>{n.enable(De(k({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(De(k({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ma||this.status===Zo)&&this._runAsyncValidator(n,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xd(this.value,e)),this._events.next(new Xo(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(De(k({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pa:ma}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=Zo,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Bx(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(t,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,n){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||n)&&this._events.next(new Xo(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,n)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?pa:this.errors?Yd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zo)?Zo:this._anyControlsHaveStatus(Yd)?Yd:ma}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new ba(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new va(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ou(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=yN(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=wN(this._rawAsyncValidators)}},eu=class extends Jd{constructor(t,e,n){super(Yx(e),Kx(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){CN(this,!0,t),Object.keys(t).forEach(n=>{xN(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(n=>{let r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var su=new M("CallSetDisabledState",{providedIn:"root",factory:()=>og}),og="always";function DN(i,t){return[...t.path,i]}function tu(i,t,e=og){sg(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),IN(i,t),MN(i,t),kN(i,t),EN(i,t)}function Ax(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),nu(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function iu(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function EN(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function sg(i,t){let e=qx(i);t.validator!==null?i.setValidators(kx(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=Gx(i);t.asyncValidator!==null?i.setAsyncValidators(kx(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();iu(t._rawValidators,r),iu(t._rawAsyncValidators,r)}function nu(i,t){let e=!1;if(i!==null){if(t.validator!==null){let r=qx(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,i.setValidators(o))}}if(t.asyncValidator!==null){let r=Gx(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,i.setAsyncValidators(o))}}}let n=()=>{};return iu(t._rawValidators,n),iu(t._rawAsyncValidators,n),e}function IN(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Qx(i,t)})}function kN(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Qx(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function Qx(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function MN(i,t){let e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function Zx(i,t){i==null,sg(i,t)}function SN(i,t){return nu(i,t)}function AN(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function TN(i){return Object.getPrototypeOf(i.constructor)===Px}function Xx(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function RN(i,t){if(!t)return null;Array.isArray(t);let e,n,r;return t.forEach(o=>{o.constructor===es?e=o:TN(o)?n=o:r=o}),r||n||e||null}function ON(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}var NN={provide:Kr,useExisting:Kt(()=>ya)},ga=Promise.resolve(),ya=(()=>{class i extends Kr{get submitted(){return mi(this.submittedReactive)}constructor(e,n,r){super(),this.callSetDisabledState=r,this._submitted=vn(()=>this.submittedReactive()),this.submittedReactive=bn(!1),this._directives=new Set,this.ngSubmit=new Y,this.form=new eu({},ng(e),rg(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ga.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),tu(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ga.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ga.then(()=>{let n=this._findContainer(e.path),r=new eu({});Zx(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ga.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){ga.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Xx(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(n){return new(n||i)(g(Qr,10),g(ig,10),g(su,8))}}static{this.\u0275dir=K({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&z("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nt([NN]),Ge]})}}return i})();function Tx(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Rx(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Jx=class extends Jd{constructor(t=null,e,n){super(Yx(e),Kx(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ou(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Rx(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Tx(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Tx(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Rx(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var PN=i=>i instanceof Jx;var FN={provide:En,useExisting:Kt(()=>wa)},Ox=Promise.resolve(),wa=(()=>{class i extends En{constructor(e,n,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Jx,this._registered=!1,this.name="",this.update=new Y,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=RN(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),AN(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){tu(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Ox.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&fe(n);Ox.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?DN(e,this._parent):[e]}static{this.\u0275fac=function(n){return new(n||i)(g(Kr,9),g(Qr,10),g(ig,10),g(_a,10),g(Ue,8),g(su,8))}}static{this.\u0275dir=K({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[nt([FN]),Ge,Qe]})}}return i})();var LN={provide:_a,useExisting:Kt(()=>ag),multi:!0},ag=(()=>{class i extends Px{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Qt(i)))(r||i)}})()}static{this.\u0275dir=K({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&z("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[nt([LN]),Ge]})}}return i})();var jN={provide:Kr,useExisting:Kt(()=>xa)},xa=(()=>{class i extends Kr{get submitted(){return mi(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,n,r){super(),this.callSetDisabledState=r,this._submitted=vn(()=>this._submittedReactive()),this._submittedReactive=bn(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Y,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return tu(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Ax(e.control||null,e,!1),ON(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Xx(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new eg(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new tg(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(Ax(n||null,e),PN(r)&&(tu(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);Zx(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&SN(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){sg(this.form,this),this._oldForm&&nu(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||i)(g(Qr,10),g(ig,10),g(su,8))}}static{this.\u0275dir=K({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&z("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nt([jN]),Ge,Qe]})}}return i})();function eC(i){return typeof i=="number"?i:parseFloat(i)}var tC=(()=>{class i{constructor(){this._validator=Kd}ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Kd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=K({type:i,features:[Qe]})}}return i})(),VN={provide:Qr,useExisting:Kt(()=>cg),multi:!0},cg=(()=>{class i extends tC{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>eC(e),this.createValidator=e=>jx(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Qt(i)))(r||i)}})()}static{this.\u0275dir=K({type:i,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&Pe("max",r._enabled?r.max:null)},inputs:{max:"max"},features:[nt([VN]),Ge]})}}return i})(),BN={provide:Qr,useExisting:Kt(()=>lg),multi:!0},lg=(()=>{class i extends tC{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>eC(e),this.createValidator=e=>Lx(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Qt(i)))(r||i)}})()}static{this.\u0275dir=K({type:i,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&Pe("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[nt([BN]),Ge]})}}return i})();var zN=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({})}}return i})();var iC=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:su,useValue:e.callSetDisabledState??og}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[zN]})}}return i})();var ke="primary",Fa=Symbol("RouteTitle"),mg=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ss(i){return new mg(i)}function HN(i,t,e){let n=e.path.split("/");if(n.length>i.length||e.pathMatch==="full"&&(t.hasChildren()||n.length<i.length))return null;let r={};for(let o=0;o<n.length;o++){let s=n[o],a=i[o];if(s[0]===":")r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:i.slice(0,n.length),posParams:r}}function UN(i,t){if(i.length!==t.length)return!1;for(let e=0;e<i.length;++e)if(!tn(i[e],t[e]))return!1;return!0}function tn(i,t){let e=i?pg(i):void 0,n=t?pg(t):void 0;if(!e||!n||e.length!=n.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!fC(i[r],t[r]))return!1;return!0}function pg(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}function fC(i,t){if(Array.isArray(i)&&Array.isArray(t)){if(i.length!==t.length)return!1;let e=[...i].sort(),n=[...t].sort();return e.every((r,o)=>n[o]===r)}else return i===t}function mC(i){return i.length>0?i[i.length-1]:null}function ar(i){return Do(i)?i:zr(i)?qe(Promise.resolve(i)):te(i)}var $N={exact:gC,subset:bC},pC={exact:WN,subset:qN,ignored:()=>!0};function nC(i,t,e){return $N[e.paths](i.root,t.root,e.matrixParams)&&pC[e.queryParams](i.queryParams,t.queryParams)&&!(e.fragment==="exact"&&i.fragment!==t.fragment)}function WN(i,t){return tn(i,t)}function gC(i,t,e){if(!Xr(i.segments,t.segments)||!du(i.segments,t.segments,e)||i.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!i.children[n]||!gC(i.children[n],t.children[n],e))return!1;return!0}function qN(i,t){return Object.keys(t).length<=Object.keys(i).length&&Object.keys(t).every(e=>fC(i[e],t[e]))}function bC(i,t,e){return vC(i,t,t.segments,e)}function vC(i,t,e,n){if(i.segments.length>e.length){let r=i.segments.slice(0,e.length);return!(!Xr(r,e)||t.hasChildren()||!du(r,e,n))}else if(i.segments.length===e.length){if(!Xr(i.segments,e)||!du(i.segments,e,n))return!1;for(let r in t.children)if(!i.children[r]||!bC(i.children[r],t.children[r],n))return!1;return!0}else{let r=e.slice(0,i.segments.length),o=e.slice(i.segments.length);return!Xr(i.segments,r)||!du(i.segments,r,n)||!i.children[ke]?!1:vC(i.children[ke],t,o,n)}}function du(i,t,e){return t.every((n,r)=>pC[e](i[r].parameters,n.parameters))}var kn=class{constructor(t=new $e([],{}),e={},n=null){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ss(this.queryParams),this._queryParamMap}toString(){return KN.serialize(this)}},$e=class{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return uu(this)}},Zr=class{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=ss(this.parameters),this._parameterMap}toString(){return yC(this)}};function GN(i,t){return Xr(i,t)&&i.every((e,n)=>tn(e.parameters,t[n].parameters))}function Xr(i,t){return i.length!==t.length?!1:i.every((e,n)=>e.path===t[n].path)}function YN(i,t){let e=[];return Object.entries(i.children).forEach(([n,r])=>{n===ke&&(e=e.concat(t(r,n)))}),Object.entries(i.children).forEach(([n,r])=>{n!==ke&&(e=e.concat(t(r,n)))}),e}var La=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:()=>new as,providedIn:"root"})}}return i})(),as=class{parse(t){let e=new bg(t);return new kn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${Ca(t.root,!0)}`,n=XN(t.queryParams),r=typeof t.fragment=="string"?`#${QN(t.fragment)}`:"";return`${e}${n}${r}`}},KN=new as;function uu(i){return i.segments.map(t=>yC(t)).join("/")}function Ca(i,t){if(!i.hasChildren())return uu(i);if(t){let e=i.children[ke]?Ca(i.children[ke],!1):"",n=[];return Object.entries(i.children).forEach(([r,o])=>{r!==ke&&n.push(`${r}:${Ca(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=YN(i,(n,r)=>r===ke?[Ca(i.children[ke],!1)]:[`${r}:${Ca(n,!1)}`]);return Object.keys(i.children).length===1&&i.children[ke]!=null?`${uu(i)}/${e[0]}`:`${uu(i)}/(${e.join("//")})`}}function _C(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function cu(i){return _C(i).replace(/%3B/gi,";")}function QN(i){return encodeURI(i)}function gg(i){return _C(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hu(i){return decodeURIComponent(i)}function rC(i){return hu(i.replace(/\+/g,"%20"))}function yC(i){return`${gg(i.path)}${ZN(i.parameters)}`}function ZN(i){return Object.entries(i).map(([t,e])=>`;${gg(t)}=${gg(e)}`).join("")}function XN(i){let t=Object.entries(i).map(([e,n])=>Array.isArray(n)?n.map(r=>`${cu(e)}=${cu(r)}`).join("&"):`${cu(e)}=${cu(n)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var JN=/^[^\/()?;#]+/;function dg(i){let t=i.match(JN);return t?t[0]:""}var eP=/^[^\/()?;=#]+/;function tP(i){let t=i.match(eP);return t?t[0]:""}var iP=/^[^=?&#]+/;function nP(i){let t=i.match(iP);return t?t[0]:""}var rP=/^[^&#]+/;function oP(i){let t=i.match(rP);return t?t[0]:""}var bg=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[ke]=new $e(t,e)),n}parseSegment(){let t=dg(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new F(4009,!1);return this.capture(t),new Zr(hu(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=tP(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let r=dg(this.remaining);r&&(n=r,this.capture(n))}t[hu(e)]=hu(n)}parseQueryParam(t){let e=nP(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=oP(this.remaining);s&&(n=s,this.capture(n))}let r=rC(e),o=rC(n);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=dg(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new F(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=ke);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[ke]:new $e([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new F(4011,!1)}};function wC(i){return i.segments.length>0?new $e([],{[ke]:i}):i}function xC(i){let t={};for(let[n,r]of Object.entries(i.children)){let o=xC(r);if(n===ke&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}let e=new $e(i.segments,t);return sP(e)}function sP(i){if(i.numberOfChildren===1&&i.children[ke]){let t=i.children[ke];return new $e(i.segments.concat(t.segments),t.children)}return i}function Jr(i){return i instanceof kn}function aP(i,t,e=null,n=null){let r=CC(i);return DC(r,t,e,n)}function CC(i){let t;function e(o){let s={};for(let c of o.children){let l=e(c);s[c.outlet]=l}let a=new $e(o.url,s);return o===i&&(t=a),a}let n=e(i.root),r=wC(n);return t??r}function DC(i,t,e,n){let r=i;for(;r.parent;)r=r.parent;if(t.length===0)return ug(r,r,r,e,n);let o=cP(t);if(o.toRoot())return ug(r,r,new $e([],{}),e,n);let s=lP(o,r,i),a=s.processChildren?Ia(s.segmentGroup,s.index,o.commands):IC(s.segmentGroup,s.index,o.commands);return ug(r,s.segmentGroup,a,e,n)}function fu(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Sa(i){return typeof i=="object"&&i!=null&&i.outlets}function ug(i,t,e,n,r){let o={};n&&Object.entries(n).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;i===t?s=e:s=EC(i,t,e);let a=wC(xC(s));return new kn(a,o,r)}function EC(i,t,e){let n={};return Object.entries(i.children).forEach(([r,o])=>{o===t?n[r]=e:n[r]=EC(o,t,e)}),new $e(i.segments,n)}var mu=class{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&fu(n[0]))throw new F(4003,!1);let r=n.find(Sa);if(r&&r!==mC(n))throw new F(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function cP(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new mu(!0,0,i);let t=0,e=!1,n=i.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?t++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new mu(e,t,n)}var ns=class{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}};function lP(i,t,e){if(i.isAbsolute)return new ns(t,!0,0);if(!e)return new ns(t,!1,NaN);if(e.parent===null)return new ns(e,!0,0);let n=fu(i.commands[0])?0:1,r=e.segments.length-1+n;return dP(e,r,i.numberOfDoubleDots)}function dP(i,t,e){let n=i,r=t,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new F(4005,!1);r=n.segments.length}return new ns(n,!1,r-o)}function uP(i){return Sa(i[0])?i[0].outlets:{[ke]:i}}function IC(i,t,e){if(i??=new $e([],{}),i.segments.length===0&&i.hasChildren())return Ia(i,t,e);let n=hP(i,t,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex<i.segments.length){let o=new $e(i.segments.slice(0,n.pathIndex),{});return o.children[ke]=new $e(i.segments.slice(n.pathIndex),i.children),Ia(o,0,r)}else return n.match&&r.length===0?new $e(i.segments,{}):n.match&&!i.hasChildren()?vg(i,t,e):n.match?Ia(i,0,r):vg(i,t,e)}function Ia(i,t,e){if(e.length===0)return new $e(i.segments,{});{let n=uP(e),r={};if(Object.keys(n).some(o=>o!==ke)&&i.children[ke]&&i.numberOfChildren===1&&i.children[ke].segments.length===0){let o=Ia(i.children[ke],t,e);return new $e(i.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=IC(i.children[o],t,s))}),Object.entries(i.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new $e(i.segments,r)}}function hP(i,t,e){let n=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};for(;r<i.segments.length;){if(n>=e.length)return o;let s=i.segments[r],a=e[n];if(Sa(a))break;let c=`${a}`,l=n<e.length-1?e[n+1]:null;if(r>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!sC(c,l,s))return o;n+=2}else{if(!sC(c,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function vg(i,t,e){let n=i.segments.slice(0,t),r=0;for(;r<e.length;){let o=e[r];if(Sa(o)){let c=fP(o.outlets);return new $e(n,c)}if(r===0&&fu(e[0])){let c=i.segments[t];n.push(new Zr(c.path,oC(e[0]))),r++;continue}let s=Sa(o)?o.outlets[ke]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&fu(a)?(n.push(new Zr(s,oC(a))),r+=2):(n.push(new Zr(s,{})),r++)}return new $e(n,{})}function fP(i){let t={};return Object.entries(i).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(t[e]=vg(new $e([],{}),0,n))}),t}function oC(i){let t={};return Object.entries(i).forEach(([e,n])=>t[e]=`${n}`),t}function sC(i,t,e){return i==e.path&&tn(t,e.parameters)}var ka="imperative",wt=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(wt||{}),bi=class{constructor(t,e){this.id=t,this.url=e}},cs=class extends bi{constructor(t,e,n="imperative",r=null){super(t,e),this.type=wt.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ii=class extends bi{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n,this.type=wt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ti=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(ti||{}),pu=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(pu||{}),In=class extends bi{constructor(t,e,n,r){super(t,e),this.reason=n,this.code=r,this.type=wt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},sr=class extends bi{constructor(t,e,n,r){super(t,e),this.reason=n,this.code=r,this.type=wt.NavigationSkipped}},Aa=class extends bi{constructor(t,e,n,r){super(t,e),this.error=n,this.target=r,this.type=wt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},gu=class extends bi{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=wt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_g=class extends bi{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=wt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yg=class extends bi{constructor(t,e,n,r,o){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=wt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},wg=class extends bi{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=wt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xg=class extends bi{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=wt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Cg=class{constructor(t){this.route=t,this.type=wt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Dg=class{constructor(t){this.route=t,this.type=wt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Eg=class{constructor(t){this.snapshot=t,this.type=wt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ig=class{constructor(t){this.snapshot=t,this.type=wt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},kg=class{constructor(t){this.snapshot=t,this.type=wt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mg=class{constructor(t){this.snapshot=t,this.type=wt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bu=class{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n,this.type=wt.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Ta=class{},ls=class{constructor(t,e){this.url=t,this.navigationBehaviorOptions=e}};function mP(i,t){return i.providers&&!i._injector&&(i._injector=od(i.providers,t,`Route: ${i.path}`)),i._injector??t}function Ri(i){return i.outlet||ke}function pP(i,t){let e=i.filter(n=>Ri(n)===t);return e.push(...i.filter(n=>Ri(n)!==t)),e}function ja(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let t=i.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Sg=class{get injector(){return ja(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Va(this.rootInjector),this.attachRef=null}},Va=(()=>{class i{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,n){let r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Sg(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(n){return new(n||i)(_(xt))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),vu=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=Ag(t,this._root);return e?e.children.map(n=>n.value):[]}firstChild(t){let e=Ag(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=Tg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Tg(t,this._root).map(e=>e.value)}};function Ag(i,t){if(i===t.value)return t;for(let e of t.children){let n=Ag(i,e);if(n)return n}return null}function Tg(i,t){if(i===t.value)return[t];for(let e of t.children){let n=Tg(i,e);if(n.length)return n.unshift(t),n}return[]}var ei=class{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function is(i){let t={};return i&&i.children.forEach(e=>t[e.value.outlet]=e),t}var _u=class extends vu{constructor(t,e){super(t),this.snapshot=e,Bg(this,t)}toString(){return this.snapshot.toString()}};function kC(i){let t=gP(i),e=new at([new Zr("",{})]),n=new at({}),r=new at({}),o=new at({}),s=new at(""),a=new eo(e,n,o,s,r,ke,i,t.root);return a.snapshot=t.root,new _u(new ei(a,[]),t)}function gP(i){let t={},e={},n={},r="",o=new rs([],t,n,r,e,ke,i,null,{});return new wu("",new ei(o,[]))}var eo=class{constructor(t,e,n,r,o,s,a,c){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(se(l=>l[Fa]))??te(void 0),this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(se(t=>ss(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(t=>ss(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function yu(i,t,e="emptyOnly"){let n,{routeConfig:r}=i;return t!==null&&(e==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:k(k({},t.params),i.params),data:k(k({},t.data),i.data),resolve:k(k(k(k({},i.data),t.data),r?.data),i._resolvedData)}:n={params:k({},i.params),data:k({},i.data),resolve:k(k({},i.data),i._resolvedData??{})},r&&SC(r)&&(n.resolve[Fa]=r.title),n}var rs=class{get title(){return this.data?.[Fa]}constructor(t,e,n,r,o,s,a,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ss(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ss(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},wu=class extends vu{constructor(t,e){super(e),this.url=t,Bg(this,e)}toString(){return MC(this._root)}};function Bg(i,t){t.value._routerState=i,t.children.forEach(e=>Bg(i,e))}function MC(i){let t=i.children.length>0?` { ${i.children.map(MC).join(", ")} } `:"";return`${i.value}${t}`}function hg(i){if(i.snapshot){let t=i.snapshot,e=i._futureSnapshot;i.snapshot=e,tn(t.queryParams,e.queryParams)||i.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&i.fragmentSubject.next(e.fragment),tn(t.params,e.params)||i.paramsSubject.next(e.params),UN(t.url,e.url)||i.urlSubject.next(e.url),tn(t.data,e.data)||i.dataSubject.next(e.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function Rg(i,t){let e=tn(i.params,t.params)&&GN(i.url,t.url),n=!i.parent!=!t.parent;return e&&!n&&(!i.parent||Rg(i.parent,t.parent))}function SC(i){return typeof i.title=="string"||i.title===null}var zg=(()=>{class i{constructor(){this.activated=null,this._activatedRoute=null,this.name=ke,this.activateEvents=new Y,this.deactivateEvents=new Y,this.attachEvents=new Y,this.detachEvents=new Y,this.parentContexts=x(Va),this.location=x(gt),this.changeDetector=x(Ue),this.inputBinder=x(ku,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:r}=e.name;if(n)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new F(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new F(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new F(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new F(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Og(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=K({type:i,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Qe]})}}return i})(),Og=class i{__ngOutletInjector(t){return new i(this.route,this.childContexts,t)}constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===eo?this.route:t===Va?this.childContexts:this.parent.get(t,e)}},ku=new M(""),aC=(()=>{class i{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,r=Er([n.queryParams,n.params,n.data]).pipe(ut(([o,s,a],c)=>(a=k(k(k({},o),s),a),c===0?te(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=pw(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})();function bP(i,t,e){let n=Ra(i,t._root,e?e._root:void 0);return new _u(n,t)}function Ra(i,t,e){if(e&&i.shouldReuseRoute(t.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=t.value;let r=vP(i,t,e);return new ei(n,r)}else{if(i.shouldAttach(t.value)){let o=i.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Ra(i,a)),s}}let n=_P(t.value),r=t.children.map(o=>Ra(i,o));return new ei(n,r)}}function vP(i,t,e){return t.children.map(n=>{for(let r of e.children)if(i.shouldReuseRoute(n.value,r.value.snapshot))return Ra(i,n,r);return Ra(i,n)})}function _P(i){return new eo(new at(i.url),new at(i.params),new at(i.queryParams),new at(i.fragment),new at(i.data),i.outlet,i.component,i)}var Oa=class{constructor(t,e){this.redirectTo=t,this.navigationBehaviorOptions=e}},AC="ngNavigationCancelingError";function xu(i,t){let{redirectTo:e,navigationBehaviorOptions:n}=Jr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=TC(!1,ti.Redirect);return r.url=e,r.navigationBehaviorOptions=n,r}function TC(i,t){let e=new Error(`NavigationCancelingError: ${i||""}`);return e[AC]=!0,e.cancellationCode=t,e}function yP(i){return RC(i)&&Jr(i.url)}function RC(i){return!!i&&i[AC]}var wP=(i,t,e,n)=>se(r=>(new Ng(t,r.targetRouterState,r.currentRouterState,e,n).activate(i),r)),Ng=class{constructor(t,e,n,r,o){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),hg(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){let r=is(e);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,e,n){let r=t.value,o=e?e.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,o=is(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,o=is(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,e,n){let r=is(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Mg(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Ig(t.value.snapshot))}activateRoutes(t,e,n){let r=t.value,o=e?e.value:null;if(hg(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),hg(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,n)}},Cu=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},os=class{constructor(t,e){this.component=t,this.route=e}};function xP(i,t,e){let n=i._root,r=t?t._root:null;return Da(n,r,e,[n.value])}function CP(i){let t=i.routeConfig?i.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:i,guards:t}}function us(i,t){let e=Symbol(),n=t.get(i,e);return n===e?typeof i=="function"&&!N_(i)?i:t.get(i):n}function Da(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=is(t);return i.children.forEach(s=>{DP(s,o[s.value.outlet],e,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ma(a,e.getContext(s),r)),r}function DP(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,s=t?t.value:null,a=e?e.getContext(i.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=EP(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Cu(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Da(i,t,a?a.children:null,n,r):Da(i,t,e,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new os(a.outlet.component,s))}else s&&Ma(t,a,r),r.canActivateChecks.push(new Cu(n)),o.component?Da(i,null,a?a.children:null,n,r):Da(i,null,e,n,r);return r}function EP(i,t,e){if(typeof e=="function")return e(i,t);switch(e){case"pathParamsChange":return!Xr(i.url,t.url);case"pathParamsOrQueryParamsChange":return!Xr(i.url,t.url)||!tn(i.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Rg(i,t)||!tn(i.queryParams,t.queryParams);case"paramsChange":default:return!Rg(i,t)}}function Ma(i,t,e){let n=is(i),r=i.value;Object.entries(n).forEach(([o,s])=>{r.component?t?Ma(s,t.children.getContext(o),e):Ma(s,null,e):Ma(s,t,e)}),r.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new os(t.outlet.component,r)):e.canDeactivateChecks.push(new os(null,r)):e.canDeactivateChecks.push(new os(null,r))}function Ba(i){return typeof i=="function"}function IP(i){return typeof i=="boolean"}function kP(i){return i&&Ba(i.canLoad)}function MP(i){return i&&Ba(i.canActivate)}function SP(i){return i&&Ba(i.canActivateChild)}function AP(i){return i&&Ba(i.canDeactivate)}function TP(i){return i&&Ba(i.canMatch)}function OC(i){return i instanceof cn||i?.name==="EmptyError"}var lu=Symbol("INITIAL_VALUE");function ds(){return ut(i=>Er(i.map(t=>t.pipe(_t(1),It(lu)))).pipe(se(t=>{for(let e of t)if(e!==!0){if(e===lu)return lu;if(e===!1||RP(e))return e}return!0}),Ae(t=>t!==lu),_t(1)))}function RP(i){return Jr(i)||i instanceof Oa}function OP(i,t){return rt(e=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?te(De(k({},e),{guardsResult:!0})):NP(s,n,r,i).pipe(rt(a=>a&&IP(a)?PP(n,o,i,t):te(a)),se(a=>De(k({},e),{guardsResult:a})))})}function NP(i,t,e,n){return qe(i).pipe(rt(r=>BP(r.component,r.route,e,t,n)),Bi(r=>r!==!0,!0))}function PP(i,t,e,n){return qe(t).pipe(ln(r=>jn(LP(r.route.parent,n),FP(r.route,n),VP(i,r.path,e),jP(i,r.route,e))),Bi(r=>r!==!0,!0))}function FP(i,t){return i!==null&&t&&t(new kg(i)),te(!0)}function LP(i,t){return i!==null&&t&&t(new Eg(i)),te(!0)}function jP(i,t,e){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return te(!0);let r=n.map(o=>ji(()=>{let s=ja(t)??e,a=us(o,s),c=MP(a)?a.canActivate(t,i):di(s,()=>a(t,i));return ar(c).pipe(Bi())}));return te(r).pipe(ds())}function VP(i,t,e){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>CP(s)).filter(s=>s!==null).map(s=>ji(()=>{let a=s.guards.map(c=>{let l=ja(s.node)??e,d=us(c,l),u=SP(d)?d.canActivateChild(n,i):di(l,()=>d(n,i));return ar(u).pipe(Bi())});return te(a).pipe(ds())}));return te(o).pipe(ds())}function BP(i,t,e,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return te(!0);let s=o.map(a=>{let c=ja(t)??r,l=us(a,c),d=AP(l)?l.canDeactivate(i,t,e,n):di(c,()=>l(i,t,e,n));return ar(d).pipe(Bi())});return te(s).pipe(ds())}function zP(i,t,e,n){let r=t.canLoad;if(r===void 0||r.length===0)return te(!0);let o=r.map(s=>{let a=us(s,i),c=kP(a)?a.canLoad(t,e):di(i,()=>a(t,e));return ar(c)});return te(o).pipe(ds(),NC(n))}function NC(i){return Nh(ht(t=>{if(typeof t!="boolean")throw xu(i,t)}),se(t=>t===!0))}function HP(i,t,e,n){let r=t.canMatch;if(!r||r.length===0)return te(!0);let o=r.map(s=>{let a=us(s,i),c=TP(a)?a.canMatch(t,e):di(i,()=>a(t,e));return ar(c)});return te(o).pipe(ds(),NC(n))}var Na=class{constructor(t){this.segmentGroup=t||null}},Pa=class extends Error{constructor(t){super(),this.urlTree=t}};function ts(i){return Co(new Na(i))}function UP(i){return Co(new F(4e3,!1))}function $P(i){return Co(TC(!1,ti.GuardRejected))}var Pg=class{constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return te(n);if(r.numberOfChildren>1||!r.children[ke])return UP(`${t.redirectTo}`);r=r.children[ke]}}applyRedirectCommands(t,e,n,r,o){if(typeof e!="string"){let a=e,{queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,params:h,data:m,title:p}=r,v=di(o,()=>a({params:h,data:m,queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,title:p}));if(v instanceof kn)throw new Pa(v);e=v}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,n);if(e[0]==="/")throw new Pa(s);return s}applyRedirectCreateUrlTree(t,e,n,r){let o=this.createSegmentGroup(t,e.root,n,r);return new kn(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let n={};return Object.entries(t).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[r]=e[a]}else n[r]=o}),n}createSegmentGroup(t,e,n,r){let o=this.createSegments(t,e.segments,n,r),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,n,r)}),new $e(o,s)}createSegments(t,e,n,r){return e.map(o=>o.path[0]===":"?this.findPosParam(t,o,r):this.findOrReturn(o,n))}findPosParam(t,e,n){let r=n[e.path.substring(1)];if(!r)throw new F(4001,!1);return r}findOrReturn(t,e){let n=0;for(let r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}},Fg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function WP(i,t,e,n,r){let o=PC(i,t,e);return o.matched?(n=mP(t,n),HP(n,t,e,r).pipe(se(s=>s===!0?o:k({},Fg)))):te(o)}function PC(i,t,e){if(t.path==="**")return qP(e);if(t.path==="")return t.pathMatch==="full"&&(i.hasChildren()||e.length>0)?k({},Fg):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(t.matcher||HN)(e,i,t);if(!r)return k({},Fg);let o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=r.consumed.length>0?k(k({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function qP(i){return{matched:!0,parameters:i.length>0?mC(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function cC(i,t,e,n){return e.length>0&&KP(i,e,n)?{segmentGroup:new $e(t,YP(n,new $e(e,i.children))),slicedSegments:[]}:e.length===0&&QP(i,e,n)?{segmentGroup:new $e(i.segments,GP(i,e,n,i.children)),slicedSegments:e}:{segmentGroup:new $e(i.segments,i.children),slicedSegments:e}}function GP(i,t,e,n){let r={};for(let o of e)if(Mu(i,t,o)&&!n[Ri(o)]){let s=new $e([],{});r[Ri(o)]=s}return k(k({},n),r)}function YP(i,t){let e={};e[ke]=t;for(let n of i)if(n.path===""&&Ri(n)!==ke){let r=new $e([],{});e[Ri(n)]=r}return e}function KP(i,t,e){return e.some(n=>Mu(i,t,n)&&Ri(n)!==ke)}function QP(i,t,e){return e.some(n=>Mu(i,t,n))}function Mu(i,t,e){return(i.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function ZP(i,t,e){return t.length===0&&!i.children[e]}var Lg=class{};function XP(i,t,e,n,r,o,s="emptyOnly"){return new jg(i,t,e,n,r,s,o).recognize()}var JP=31,jg=class{constructor(t,e,n,r,o,s,a){this.injector=t,this.configLoader=e,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Pg(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new F(4002,`'${t.segmentGroup}'`)}recognize(){let t=cC(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(se(({children:e,rootSnapshot:n})=>{let r=new ei(n,e),o=new wu("",r),s=aP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let e=new rs([],Object.freeze({}),Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),ke,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,ke,e).pipe(se(n=>({children:n,rootSnapshot:e})),Vn(n=>{if(n instanceof Pa)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Na?this.noMatchError(n):n}))}processSegmentGroup(t,e,n,r,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,e,n,o):this.processSegment(t,e,n,n.segments,r,!0,o).pipe(se(s=>s instanceof ei?[s]:[]))}processChildren(t,e,n,r){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return qe(o).pipe(ln(s=>{let a=n.children[s],c=pP(e,s);return this.processSegmentGroup(t,c,a,s,r)}),Hh((s,a)=>(s.push(...a),s)),Bn(null),zh(),rt(s=>{if(s===null)return ts(n);let a=FC(s);return eF(a),te(a)}))}processSegment(t,e,n,r,o,s,a){return qe(e).pipe(ln(c=>this.processSegmentAgainstRoute(c._injector??t,e,c,n,r,o,s,a).pipe(Vn(l=>{if(l instanceof Na)return te(null);throw l}))),Bi(c=>!!c),Vn(c=>{if(OC(c))return ZP(n,r,o)?te(new Lg):ts(n);throw c}))}processSegmentAgainstRoute(t,e,n,r,o,s,a,c){return Ri(n)!==s&&(s===ke||!Mu(r,o,n))?ts(r):n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,r,e,n,o,s,c):ts(r)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,s,a){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:u,remainingSegments:f}=PC(e,r,o);if(!c)return ts(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>JP&&(this.allowRedirects=!1));let h=new rs(o,l,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,lC(r),Ri(r),r.component??r._loadedComponent??null,r,dC(r)),m=yu(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(m.params),h.data=Object.freeze(m.data);let p=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,h,t);return this.applyRedirects.lineralizeSegments(r,p).pipe(rt(v=>this.processSegment(t,n,e,v.concat(f),s,!1,a)))}matchSegmentAgainstRoute(t,e,n,r,o,s){let a=WP(e,n,r,t,this.urlSerializer);return n.path==="**"&&(e.children={}),a.pipe(ut(c=>c.matched?(t=n._injector??t,this.getChildConfig(t,n,r).pipe(ut(({routes:l})=>{let d=n._loadedInjector??t,{parameters:u,consumedSegments:f,remainingSegments:h}=c,m=new rs(f,u,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,lC(n),Ri(n),n.component??n._loadedComponent??null,n,dC(n)),p=yu(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(p.params),m.data=Object.freeze(p.data);let{segmentGroup:v,slicedSegments:E}=cC(e,f,h,l);if(E.length===0&&v.hasChildren())return this.processChildren(d,l,v,m).pipe(se(C=>new ei(m,C)));if(l.length===0&&E.length===0)return te(new ei(m,[]));let A=Ri(n)===o;return this.processSegment(d,l,v,E,A?ke:o,!0,m).pipe(se(C=>new ei(m,C instanceof ei?[C]:[])))}))):ts(e)))}getChildConfig(t,e,n){return e.children?te({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?te({routes:e._loadedRoutes,injector:e._loadedInjector}):zP(t,e,n,this.urlSerializer).pipe(rt(r=>r?this.configLoader.loadChildren(t,e).pipe(ht(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):$P(e))):te({routes:[],injector:t})}};function eF(i){i.sort((t,e)=>t.value.outlet===ke?-1:e.value.outlet===ke?1:t.value.outlet.localeCompare(e.value.outlet))}function tF(i){let t=i.value.routeConfig;return t&&t.path===""}function FC(i){let t=[],e=new Set;for(let n of i){if(!tF(n)){t.push(n);continue}let r=t.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),e.add(r)):t.push(n)}for(let n of e){let r=FC(n.children);t.push(new ei(n.value,r))}return t.filter(n=>!e.has(n))}function lC(i){return i.data||{}}function dC(i){return i.resolve||{}}function iF(i,t,e,n,r,o){return rt(s=>XP(i,t,e,n,s.extractedUrl,r,o).pipe(se(({state:a,tree:c})=>De(k({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function nF(i,t){return rt(e=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return te(e);let o=new Set(r.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of LC(c))s.add(l);let a=0;return qe(s).pipe(ln(c=>o.has(c)?rF(c,n,i,t):(c.data=yu(c,c.parent,i).resolve,te(void 0))),ht(()=>a++),ko(1),rt(c=>a===s.size?te(e):pt))})}function LC(i){let t=i.children.map(e=>LC(e)).flat();return[i,...t]}function rF(i,t,e,n){let r=i.routeConfig,o=i._resolve;return r?.title!==void 0&&!SC(r)&&(o[Fa]=r.title),oF(o,i,t,n).pipe(se(s=>(i._resolvedData=s,i.data=yu(i,i.parent,e).resolve,null)))}function oF(i,t,e,n){let r=pg(i);if(r.length===0)return te({});let o={};return qe(r).pipe(rt(s=>sF(i[s],t,e,n).pipe(Bi(),ht(a=>{if(a instanceof Oa)throw xu(new as,a);o[s]=a}))),ko(1),Bh(o),Vn(s=>OC(s)?pt:Co(s)))}function sF(i,t,e,n){let r=ja(t)??n,o=us(i,r),s=o.resolve?o.resolve(t,e):di(r,()=>o(t,e));return ar(s)}function fg(i){return ut(t=>{let e=i(t);return e?qe(e).pipe(se(()=>t)):te(t)})}var jC=(()=>{class i{buildTitle(e){let n,r=e.root;for(;r!==void 0;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===ke);return n}getResolvedTitleForRoute(e){return e.data[Fa]}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:()=>x(aF),providedIn:"root"})}}return i})(),aF=(()=>{class i extends jC{constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static{this.\u0275fac=function(n){return new(n||i)(_(qw))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),za=new M("",{providedIn:"root",factory:()=>({})}),cF=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=de({type:i,selectors:[["ng-component"]],standalone:!0,features:[He],decls:1,vars:0,template:function(n,r){n&1&&ie(0,"router-outlet")},dependencies:[zg],encapsulation:2})}}return i})();function Hg(i){let t=i.children&&i.children.map(Hg),e=t?De(k({},i),{children:t}):k({},i);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==ke&&(e.component=cF),e}var Du=new M(""),Ug=(()=>{class i{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=x(pd)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return te(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=ar(e.loadComponent()).pipe(se(VC),ht(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Ir(()=>{this.componentLoaders.delete(e)})),r=new Cr(n,()=>new $).pipe(yo());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return te({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=lF(n,this.compiler,e,this.onLoadEndListener).pipe(Ir(()=>{this.childrenLoaders.delete(n)})),s=new Cr(o,()=>new $).pipe(yo());return this.childrenLoaders.set(n,s),s}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function lF(i,t,e,n){return ar(i.loadChildren()).pipe(se(VC),rt(r=>r instanceof Us||Array.isArray(r)?te(r):qe(t.compileModuleAsync(r))),se(r=>{n&&n(i);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(Du,[],{optional:!0,self:!0}).flat()),{routes:s.map(Hg),injector:o}}))}function dF(i){return i&&typeof i=="object"&&"default"in i}function VC(i){return dF(i)?i.default:i}var $g=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:()=>x(uF),providedIn:"root"})}}return i})(),uF=(()=>{class i{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),BC=new M(""),zC=new M("");function hF(i,t,e){let n=i.get(zC),r=i.get(ae);return i.get(U).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=r.startViewTransition(()=>(o(),fF(i))),{onViewTransitionCreated:c}=n;return c&&di(i,()=>c({transition:a,from:t,to:e})),s})}function fF(i){return new Promise(t=>{ki({read:()=>setTimeout(t)},{injector:i})})}var mF=new M(""),Wg=(()=>{class i{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new $,this.transitionAbortSubject=new $,this.configLoader=x(Ug),this.environmentInjector=x(xt),this.urlSerializer=x(La),this.rootContexts=x(Va),this.location=x(Xi),this.inputBindingEnabled=x(ku,{optional:!0})!==null,this.titleStrategy=x(jC),this.options=x(za,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=x($g),this.createViewTransition=x(BC,{optional:!0}),this.navigationErrorHandler=x(mF,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>te(void 0),this.rootComponentType=null;let e=r=>this.events.next(new Cg(r)),n=r=>this.events.next(new Dg(r));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(De(k(k({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,r){return this.transitions=new at({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ka,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ae(o=>o.id!==0),se(o=>De(k({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ut(o=>{let s=!1,a=!1;return te(o).pipe(ut(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",ti.SupersededByNewNavigation),pt;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?De(k({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&d!=="reload"){let u="";return this.events.next(new sr(c.id,this.urlSerializer.serialize(c.rawUrl),u,pu.IgnoredSameUrlNavigation)),c.resolve(!1),pt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return te(c).pipe(ut(u=>{let f=this.transitions?.getValue();return this.events.next(new cs(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions?.getValue()?pt:Promise.resolve(u)}),iF(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),ht(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=De(k({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let f=new gu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:u,extractedUrl:f,source:h,restoredState:m,extras:p}=c,v=new cs(u,this.urlSerializer.serialize(f),h,m);this.events.next(v);let E=kC(this.rootComponentType).snapshot;return this.currentTransition=o=De(k({},c),{targetSnapshot:E,urlAfterRedirects:f,extras:De(k({},p),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,te(o)}else{let u="";return this.events.next(new sr(c.id,this.urlSerializer.serialize(c.extractedUrl),u,pu.IgnoredByUrlHandlingStrategy)),c.resolve(!1),pt}}),ht(c=>{let l=new _g(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),se(c=>(this.currentTransition=o=De(k({},c),{guards:xP(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),OP(this.environmentInjector,c=>this.events.next(c)),ht(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw xu(this.urlSerializer,c.guardsResult);let l=new yg(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),Ae(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",ti.GuardRejected),!1)),fg(c=>{if(c.guards.canActivateChecks.length)return te(c).pipe(ht(l=>{let d=new wg(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ut(l=>{let d=!1;return te(l).pipe(nF(this.paramsInheritanceStrategy,this.environmentInjector),ht({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",ti.NoDataFromResolver)}}))}),ht(l=>{let d=new xg(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),fg(c=>{let l=d=>{let u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(ht(f=>{d.component=f}),se(()=>{})));for(let f of d.children)u.push(...l(f));return u};return Er(l(c.targetSnapshot.root)).pipe(Bn(null),_t(1))}),fg(()=>this.afterPreactivation()),ut(()=>{let{currentSnapshot:c,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?qe(d).pipe(se(()=>o)):te(o)}),se(c=>{let l=bP(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=De(k({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),ht(()=>{this.events.next(new Ta)}),wP(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),_t(1),ht({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ii(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Le(this.transitionAbortSubject.pipe(ht(c=>{throw c}))),Ir(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",ti.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Vn(c=>{if(a=!0,RC(c))this.events.next(new In(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),yP(c)?this.events.next(new ls(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let l=new Aa(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let d=di(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof Oa){let{message:u,cancellationCode:f}=xu(this.urlSerializer,d);this.events.next(new In(o.id,this.urlSerializer.serialize(o.extractedUrl),u,f)),this.events.next(new ls(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let u=e.errorHandler(c);o.resolve(!!u)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return pt}))}))}cancelNavigationTransition(e,n,r){let o=new In(e.id,this.urlSerializer.serialize(e.extractedUrl),n,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function pF(i){return i!==ka}var gF=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:()=>x(bF),providedIn:"root"})}}return i})(),Vg=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},bF=(()=>{class i extends Vg{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Qt(i)))(r||i)}})()}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),HC=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:()=>x(vF),providedIn:"root"})}}return i})(),vF=(()=>{class i extends HC{constructor(){super(...arguments),this.location=x(Xi),this.urlSerializer=x(La),this.options=x(za,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=x($g),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new kn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=kC(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state)})}handleRouterEvent(e,n){if(e instanceof cs)this.stateMemento=this.createStateMemento();else if(e instanceof sr)this.rawUrlTree=n.initialUrl;else if(e instanceof gu){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??r,n)}}else e instanceof Ta?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):e instanceof In&&(e.code===ti.GuardRejected||e.code===ti.NoDataFromResolver)?this.restoreHistory(n):e instanceof Aa?this.restoreHistory(n,!0):e instanceof ii&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let r=e instanceof kn?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl){let o=this.browserPageId,s=k(k({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(r,"",s)}else{let o=k(k({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(r,"",o)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Qt(i)))(r||i)}})()}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Ea=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Ea||{});function UC(i,t){i.events.pipe(Ae(e=>e instanceof ii||e instanceof In||e instanceof Aa||e instanceof sr),se(e=>e instanceof ii||e instanceof sr?Ea.COMPLETE:(e instanceof In?e.code===ti.Redirect||e.code===ti.SupersededByNewNavigation:!1)?Ea.REDIRECTING:Ea.FAILED),Ae(e=>e!==Ea.REDIRECTING),_t(1)).subscribe(()=>{t()})}function _F(i){throw i}var yF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Oi=(()=>{class i{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=x(dd),this.stateManager=x(HC),this.options=x(za,{optional:!0})||{},this.pendingTasks=x(pn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=x(Wg),this.urlSerializer=x(La),this.location=x(Xi),this.urlHandlingStrategy=x($g),this._events=new $,this.errorHandler=this.options.errorHandler||_F,this.navigated=!1,this.routeReuseStrategy=x(gF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=x(Du,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!x(ku,{optional:!0}),this.eventsSubscription=new Ne,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof In&&n.code!==ti.Redirect&&n.code!==ti.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof ii)this.navigated=!0;else if(n instanceof ls){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,r.currentRawUrl),c=k({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||pF(r.source)},s);this.scheduleNavigation(a,ka,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}CF(n)&&this._events.next(n)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ka,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n)},0)})}navigateToSyncWithBrowser(e,n,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let c=k({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Hg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=n,l=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=k(k({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{let f=r?r.snapshot:this.routerState.snapshot.root;u=CC(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),u=this.currentUrlTree.root}return DC(u,e,d,l??null)}navigateByUrl(e,n={skipLocationChange:!1}){let r=Jr(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,ka,null,n)}navigate(e,n={skipLocationChange:!1}){return xF(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let r;if(n===!0?r=k({},yF):n===!1?r=k({},wF):r=n,Jr(e))return nC(this.currentUrlTree,e,r);let o=this.parseUrl(e);return nC(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((n,[r,o])=>(o!=null&&(n[r]=o),n),{})}scheduleNavigation(e,n,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((u,f)=>{a=u,c=f});let d=this.pendingTasks.add();return UC(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(u=>Promise.reject(u))}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function xF(i){for(let t=0;t<i.length;t++)if(i[t]==null)throw new F(4008,!1)}function CF(i){return!(i instanceof Ta)&&!(i instanceof ls)}var Eu=(()=>{class i{constructor(e,n,r,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new $,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof ii&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Jr(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,r,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||n||r||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:Ky(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let r=this.renderer,o=this.el.nativeElement;n!==null?r.setAttribute(o,e,n):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Jr(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(n){return new(n||i)(g(Oi),g(eo),Yi("tabindex"),g(gn),g(Q),g(yn))}}static{this.\u0275dir=K({type:i,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){n&1&&z("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Pe("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",fe],skipLocationChange:[2,"skipLocationChange","skipLocationChange",fe],replaceUrl:[2,"replaceUrl","replaceUrl",fe],routerLink:"routerLink"},standalone:!0,features:[it,Qe]})}}return i})(),$C=(()=>{class i{get isActive(){return this._isActive}constructor(e,n,r,o,s){this.router=e,this.element=n,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Y,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof ii&&this.update()})}ngAfterContentInit(){te(this.links.changes,te(null)).pipe(Li()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=qe(e).pipe(Li()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=DF(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static{this.\u0275fac=function(n){return new(n||i)(g(Oi),g(Q),g(gn),g(Ue),g(Eu,8))}}static{this.\u0275dir=K({type:i,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(n&1&&Pt(o,Eu,5),n&2){let s;ne(s=re())&&(r.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Qe]})}}return i})();function DF(i){return!!i.paths}var Iu=class{};var EF=(()=>{class i{constructor(e,n,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ae(e=>e instanceof ii),ln(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let r=[];for(let o of n){o.providers&&!o._injector&&(o._injector=od(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return qe(r).pipe(Li())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;n.loadChildren&&n.canLoad===void 0?r=this.loader.loadChildren(e,n):r=te(null);let o=r.pipe(rt(s=>s===null?te(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(n);return qe([o,s]).pipe(Li())}else return o})}static{this.\u0275fac=function(n){return new(n||i)(_(Oi),_(pd),_(xt),_(Iu),_(Ug))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),WC=new M(""),IF=(()=>{class i{constructor(e,n,r,o,s={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof cs?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ii?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof sr&&e.code===pu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof bu&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new bu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(n){Jl()}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac})}}return i})();function kF(i){return i.routerState.root}function Ha(i,t){return{\u0275kind:i,\u0275providers:t}}function MF(){let i=x(be);return t=>{let e=i.get(Zt);if(t!==e.components[0])return;let n=i.get(Oi),r=i.get(qC);i.get(qg)===1&&n.initialNavigation(),i.get(GC,null,Me.Optional)?.setUpPreloading(),i.get(WC,null,Me.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var qC=new M("",{factory:()=>new $}),qg=new M("",{providedIn:"root",factory:()=>1});function SF(){return Ha(2,[{provide:qg,useValue:0},{provide:fd,multi:!0,deps:[be],useFactory:t=>{let e=t.get(Cw,Promise.resolve());return()=>e.then(()=>new Promise(n=>{let r=t.get(Oi),o=t.get(qC);UC(r,()=>{n(!0)}),t.get(Wg).afterPreactivation=()=>(n(!0),o.closed?te(void 0):o),r.initialNavigation()}))}}])}function AF(){return Ha(3,[{provide:fd,multi:!0,useFactory:()=>{let t=x(Oi);return()=>{t.setUpLocationChangeListener()}}},{provide:qg,useValue:2}])}var GC=new M("");function TF(i){return Ha(0,[{provide:GC,useExisting:EF},{provide:Iu,useExisting:i}])}function RF(){return Ha(8,[aC,{provide:ku,useExisting:aC}])}function OF(i){let t=[{provide:BC,useValue:hF},{provide:zC,useValue:k({skipNextTransition:!!i?.skipInitialTransition},i)}];return Ha(9,t)}var uC=new M("ROUTER_FORROOT_GUARD"),NF=[Xi,{provide:La,useClass:as},Oi,Va,{provide:eo,useFactory:kF,deps:[Oi]},Ug,[]],YC=(()=>{class i{constructor(e){}static forRoot(e,n){return{ngModule:i,providers:[NF,[],{provide:Du,multi:!0,useValue:e},{provide:uC,useFactory:jF,deps:[[Oi,new Fl,new em]]},{provide:za,useValue:n||{}},n?.useHash?FF():LF(),PF(),n?.preloadingStrategy?TF(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?VF(n):[],n?.bindToComponentInputs?RF().\u0275providers:[],n?.enableViewTransitions?OF().\u0275providers:[],BF()]}}static forChild(e){return{ngModule:i,providers:[{provide:Du,multi:!0,useValue:e}]}}static{this.\u0275fac=function(n){return new(n||i)(_(uC,8))}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({})}}return i})();function PF(){return{provide:WC,useFactory:()=>{let i=x(kw),t=x(U),e=x(za),n=x(Wg),r=x(La);return e.scrollOffset&&i.setOffset(e.scrollOffset),new IF(r,n,i,t,e)}}}function FF(){return{provide:yn,useClass:Ew}}function LF(){return{provide:yn,useClass:ap}}function jF(i){return"guarded"}function VF(i){return[i.initialNavigation==="disabled"?AF().\u0275providers:[],i.initialNavigation==="enabledBlocking"?SF().\u0275providers:[]]}var hC=new M("");function BF(){return[{provide:hC,useFactory:MF},{provide:md,multi:!0,useExisting:hC}]}var Yg;try{Yg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Yg=!1}var Fe=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Js(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Yg)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(n){return new(n||i)(_(Ut))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var hs,KC=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Kg(){if(hs)return hs;if(typeof document!="object"||!document)return hs=new Set(KC),hs;let i=document.createElement("input");return hs=new Set(KC.filter(t=>(i.setAttribute("type",t),i.type===t))),hs}var Ua;function HF(){if(Ua==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ua=!0}))}finally{Ua=Ua||!1}return Ua}function nn(i){return HF()?i:!!i.capture}var to;function QC(){if(to==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return to=!1,to;if("scrollBehavior"in document.documentElement.style)to=!0;else{let i=Element.prototype.scrollTo;i?to=!/\{\s*\[native code\]\s*\}/.test(i.toString()):to=!1}}return to}var Gg;function UF(){if(Gg==null){let i=typeof document<"u"?document.head:null;Gg=!!(i&&(i.createShadowRoot||i.attachShadow))}return Gg}function ZC(i){if(UF()){let t=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function $a(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let t=i.shadowRoot.activeElement;if(t===i)break;i=t}return i}function ni(i){return i.composedPath?i.composedPath()[0]:i.target}function Wa(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Ft(i,...t){return t.length?t.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}function io(i){return i!=null&&`${i}`!="false"}function cr(i,t=0){return $F(i)?Number(i):arguments.length===2?t:0}function $F(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function fs(i){return Array.isArray(i)?i:[i]}function lt(i){return i==null?"":typeof i=="string"?i:`${i}px`}function qt(i){return i instanceof Q?i.nativeElement:i}function WF(i){if(i.type==="characterData"&&i.target instanceof Comment)return!0;if(i.type==="childList"){for(let t=0;t<i.addedNodes.length;t++)if(!(i.addedNodes[t]instanceof Comment))return!1;for(let t=0;t<i.removedNodes.length;t++)if(!(i.removedNodes[t]instanceof Comment))return!1;return!0}return!1}var XC=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),qF=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map,this._ngZone=x(U)}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=qt(e);return new le(r=>{let s=this._observeElement(n).pipe(se(a=>a.filter(c=>!WF(c))),Ae(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{r.next(a)})});return()=>{s.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new $,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}static{this.\u0275fac=function(n){return new(n||i)(_(XC))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Qg=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=cr(e),this._subscribe()}constructor(e,n){this._contentObserver=e,this._elementRef=n,this.event=new Y,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(dn(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||i)(g(qF),g(Q))}}static{this.\u0275dir=K({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",fe],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[it]})}}return i})(),ms=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({providers:[XC]})}}return i})();var JC=new Set,no,GF=(()=>{class i{constructor(e,n){this._platform=e,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):KF}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&YF(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(n){return new(n||i)(_(Fe),_(Ks,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function YF(i,t){if(!JC.has(i))try{no||(no=document.createElement("style"),t&&no.setAttribute("nonce",t),no.setAttribute("type","text/css"),document.head.appendChild(no)),no.sheet&&(no.sheet.insertRule(`@media ${i} {body{ }}`,0),JC.add(i))}catch(e){console.error(e)}}function KF(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Su=(()=>{class i{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new $}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return eD(fs(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=eD(fs(e)).map(s=>this._registerQuery(s).observable),o=Er(r);return o=jn(o.pipe(_t(1)),o.pipe(kr(1),dn(0))),o.pipe(se(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{a.matches=a.matches||c,a.breakpoints[l]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),o={observable:new le(s=>{let a=c=>this._zone.run(()=>s.next(c));return n.addListener(a),()=>{n.removeListener(a)}}).pipe(It(n),se(({matches:s})=>({query:e,matches:s})),Le(this._destroySubject)),mql:n};return this._queries.set(e,o),o}static{this.\u0275fac=function(n){return new(n||i)(_(GF),_(U))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function eD(i){return i.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var tD={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var oD=" ";function sD(i,t,e){let n=aD(i,t);e=e.trim(),!n.some(r=>r.trim()===e)&&(n.push(e),i.setAttribute(t,n.join(oD)))}function nb(i,t,e){let n=aD(i,t);e=e.trim();let r=n.filter(o=>o!==e);r.length?i.setAttribute(t,r.join(oD)):i.removeAttribute(t)}function aD(i,t){return i.getAttribute(t)?.match(/\S+/g)??[]}var dL=200,Xg=class{constructor(t,e){this._letterKeyStream=new $,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new $,this.selectedItem=this._selectedItem;let n=typeof e?.debounceInterval=="number"?e.debounceInterval:dL;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(t),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(t){this._selectedItemIndex=t}setItems(t){this._items=t}handleKey(t){let e=t.keyCode;t.key&&t.key.length===1?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(t){this._letterKeyStream.pipe(ht(e=>this._pressedLetters.push(e)),dn(t),Ae(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;n<this._items.length+1;n++){let r=(this._selectedItemIndex+n)%this._items.length,o=this._items[r];if(!this._skipPredicateFn?.(o)&&o.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(o);break}}this._pressedLetters=[]})}},Ru=class{constructor(t,e){this._items=t,this._activeItemIndex=-1,this._activeItem=bn(null),this._wrap=!1,this._typeaheadSubscription=Ne.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this.tabOut=new $,this.change=new $,t instanceof Pr?this._itemChangesSubscription=t.changes.subscribe(n=>this._itemsChanged(n.toArray())):rd(t)&&(this._effectRef=Jm(()=>this._itemsChanged(t()),{injector:e}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Xg(e,{debounceInterval:typeof t=="number"?t:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}withPageUpDown(t=!0,e=10){return this._pageUpAndDown={enabled:t,delta:e},this}setActiveItem(t){let e=this._activeItem();this.updateActiveItem(t),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){let e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o<s?o:s-1,-1);break}else return;default:(r||Ft(t,"shiftKey"))&&this._typeahead?.handleKey(t);return}this._typeahead?.reset(),t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){let e=this._getItemsArray(),n=typeof t=="number"?t:e.indexOf(t),r=e[n];this._activeItem.set(r??null),this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){let e=this._getItemsArray();for(let n=1;n<=e.length;n++){let r=(this._activeItemIndex+t*n+e.length)%e.length,o=e[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){let n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(t+=e,!n[t])return;this.setActiveItem(t)}}_getItemsArray(){return rd(this._items)?this._items():this._items instanceof Pr?this._items.toArray():this._items}_itemsChanged(t){this._typeahead?.setItems(t);let e=this._activeItem();if(e){let n=t.indexOf(e);n>-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}}},Ou=class extends Ru{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}},Nu=class extends Ru{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}};var qa=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return hL(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=uL(yL(e));if(n&&(iD(n)===-1||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=iD(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!vL(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return _L(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(n){return new(n||i)(_(Fe))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function uL(i){try{return i.frameElement}catch{return null}}function hL(i){return!!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function fL(i){let t=i.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function mL(i){return gL(i)&&i.type=="hidden"}function pL(i){return bL(i)&&i.hasAttribute("href")}function gL(i){return i.nodeName.toLowerCase()=="input"}function bL(i){return i.nodeName.toLowerCase()=="a"}function cD(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return!1;let t=i.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function iD(i){if(!cD(i))return null;let t=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function vL(i){let t=i.nodeName.toLowerCase(),e=t==="input"&&i.type;return e==="text"||e==="password"||t==="select"||t==="textarea"}function _L(i){return mL(i)?!1:fL(i)||pL(i)||i.hasAttribute("contenteditable")||cD(i)}function yL(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var Jg=class{get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}constructor(t,e,n,r,o=!1,s){this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){let e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children;for(let n=0;n<e.length;n++){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(r)return r}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children;for(let n=e.length-1;n>=0;n--){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){let t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._injector?ki(t,{injector:this._injector}):setTimeout(t)}},Lu=(()=>{class i{constructor(e,n,r){this._checker=e,this._ngZone=n,this._injector=x(be),this._document=r}create(e,n=!1){return new Jg(e,this._checker,this._ngZone,this._document,n,this._injector)}static{this.\u0275fac=function(n){return new(n||i)(_(qa),_(U),_(ae))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function rb(i){return i.buttons===0||i.detail===0}function ob(i){let t=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var wL=new M("cdk-input-modality-detector-options"),xL={ignoreKeys:[18,17,224,91,16]},lD=650,ps=nn({passive:!0,capture:!0}),CL=(()=>{class i{get mostRecentModality(){return this._modality.value}constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new at(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ni(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<lD||(this._modality.next(rb(s)?"keyboard":"mouse"),this._mostRecentTarget=ni(s))},this._onTouchstart=s=>{if(ob(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ni(s)},this._options=k(k({},xL),o),this.modalityDetected=this._modality.pipe(kr(1)),this.modalityChanged=this.modalityDetected.pipe(Io()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ps),r.addEventListener("mousedown",this._onMousedown,ps),r.addEventListener("touchstart",this._onTouchstart,ps)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ps),document.removeEventListener("mousedown",this._onMousedown,ps),document.removeEventListener("touchstart",this._onTouchstart,ps))}static{this.\u0275fac=function(n){return new(n||i)(_(Fe),_(U),_(ae),_(wL,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),DL=new M("liveAnnouncerElement",{providedIn:"root",factory:EL});function EL(){return null}var IL=new M("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),kL=0,ju=(()=>{class i{constructor(e,n,r,o){this._ngZone=n,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...n){let r=this._defaultOptions,o,s;return n.length===1&&typeof n[0]=="number"?s=n[0]:[o,s]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),s==null&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<n.length;o++)n[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${kL++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(e){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<n.length;r++){let o=n[r],s=o.getAttribute("aria-owns");s?s.indexOf(e)===-1&&o.setAttribute("aria-owns",s+" "+e):o.setAttribute("aria-owns",e)}}static{this.\u0275fac=function(n){return new(n||i)(_(DL,8),_(U),_(ae),_(IL,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Tu=function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i}(Tu||{}),ML=new M("cdk-focus-monitor-default-options"),Au=nn({passive:!0,capture:!0}),lr=(()=>{class i{constructor(e,n,r,o,s){this._ngZone=e,this._platform=n,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new $,this._rootNodeFocusAndBlurListener=a=>{let c=ni(a);for(let l=c;l;l=l.parentElement)a.type==="focus"?this._onFocus(a,l):this._onBlur(a,l)},this._document=o,this._detectionMode=s?.detectionMode||Tu.IMMEDIATE}monitor(e,n=!1){let r=qt(e);if(!this._platform.isBrowser||r.nodeType!==1)return te();let o=ZC(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return n&&(s.checkChildren=!0),s.subject;let a={checkChildren:n,subject:new $,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let n=qt(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){let o=qt(e),s=this._getDocument().activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,c])=>this._originChanged(a,n,c)):(this._setOrigin(n),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Tu.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Tu.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?lD:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),o=ni(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Au),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Au)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Le(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Au),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Au),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let s=0;s<o.length;s++)if(o[s].contains(n))return!0}return!1}static{this.\u0275fac=function(n){return new(n||i)(_(U),_(Fe),_(CL),_(ae,8),_(ML,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var ro=function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i}(ro||{}),nD="cdk-high-contrast-black-on-white",rD="cdk-high-contrast-white-on-black",Zg="cdk-high-contrast-active",sb=(()=>{class i{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=x(Su).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ro.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return ro.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ro.BLACK_ON_WHITE}return ro.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Zg,nD,rD),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===ro.BLACK_ON_WHITE?e.add(Zg,nD):n===ro.WHITE_ON_BLACK&&e.add(Zg,rD)}}static{this.\u0275fac=function(n){return new(n||i)(_(Fe),_(ae))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),dD=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(n){return new(n||i)(_(sb))}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[ms]})}}return i})();var SL=new M("cdk-dir-doc",{providedIn:"root",factory:AL});function AL(){return x(ae)}var TL=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function RL(i){let t=i?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?TL.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var ri=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new Y,e){let n=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=RL(n||r||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(n){return new(n||i)(_(SL,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var dr=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({})}}return i})();var OL=["text"],NL=[[["mat-icon"]],"*"],PL=["mat-icon","*"];function FL(i,t){if(i&1&&ie(0,"mat-pseudo-checkbox",1),i&2){let e=T();S("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function LL(i,t){if(i&1&&ie(0,"mat-pseudo-checkbox",3),i&2){let e=T();S("disabled",e.disabled)}}function jL(i,t){if(i&1&&(y(0,"span",4),q(1),b()),i&2){let e=T();D(),ct("(",e.group.label,")")}}var VL=["mat-internal-form-field",""],BL=["*"];function zL(){return!0}var HL=new M("mat-sanity-checks",{providedIn:"root",factory:zL}),Re=(()=>{class i{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return Wa()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(n){return new(n||i)(_(sb),_(HL,8),_(ae))}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[dr,dr]})}}return i})();var bs=class{constructor(t,e,n,r,o){this._defaultMatcher=t,this.ngControl=e,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let t=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(r,e)??!1;o!==t&&(this.errorState=o,this._stateChanges.next())}};var Hu=(()=>{class i{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var vi=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(vi||{}),lb=class{constructor(t,e,n,r=!1){this._renderer=t,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=vi.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},uD=nn({passive:!0,capture:!0}),db=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let e=ni(t);e&&this._events.get(t.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(t))})}}addHandler(t,e,n,r){let o=this._events.get(e);if(o){let s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,uD)})}removeHandler(t,e,n){let r=this._events.get(t);if(!r)return;let o=r.get(e);o&&(o.delete(n),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,uD)))}},hD={enterDuration:225,exitDuration:150},UL=800,fD=nn({passive:!0,capture:!0}),mD=["mousedown","touchstart"],pD=["mouseup","mouseleave","touchend","touchcancel"],zu=class i{static{this._eventManager=new db}constructor(t,e,n,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=qt(n))}fadeInRipple(t,e,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=k(k({},hD),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);let s=n.radius||$L(t,e,r),a=t-r.left,c=e-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-s}px`,d.style.top=`${c-s}px`,d.style.height=`${s*2}px`,d.style.width=`${s*2}px`,n.color!=null&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),f=u.transitionProperty,h=u.transitionDuration,m=f==="none"||h==="0s"||h==="0s, 0s"||r.width===0&&r.height===0,p=new lb(this,d,n,m);d.style.transform="scale3d(1, 1, 1)",p.state=vi.FADING_IN,n.persistent||(this._mostRecentTransientRipple=p);let v=null;return!m&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let E=()=>{v&&(v.fallbackTimer=null),clearTimeout(C),this._finishRippleTransition(p)},A=()=>this._destroyRipple(p),C=setTimeout(A,l+100);d.addEventListener("transitionend",E),d.addEventListener("transitioncancel",A),v={onTransitionEnd:E,onTransitionCancel:A,fallbackTimer:C}}),this._activeRipples.set(p,v),(m||!l)&&this._finishRippleTransition(p),p}fadeOutRipple(t){if(t.state===vi.FADING_OUT||t.state===vi.HIDDEN)return;let e=t.element,n=k(k({},hD),t.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",t.state=vi.FADING_OUT,(t._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let e=qt(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,mD.forEach(n=>{i._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{pD.forEach(e=>{this._triggerElement.addEventListener(e,this,fD)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===vi.FADING_IN?this._startFadeOutTransition(t):t.state===vi.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let e=t===this._mostRecentTransientRipple,{persistent:n}=t.config;t.state=vi.VISIBLE,!n&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=vi.HIDDEN,e!==null&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),t.element.remove()}_onMousedown(t){let e=rb(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+UL;!this._target.rippleDisabled&&!e&&!n&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!ob(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=t.changedTouches;if(e)for(let n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(t=>{let e=t.state===vi.VISIBLE||t.config.terminateOnPointerUp&&t.state===vi.FADING_IN;!t.config.persistent&&e&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(mD.forEach(e=>i._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&(pD.forEach(e=>t.removeEventListener(e,this,fD)),this._pointerUpEventsRegistered=!1))}};function $L(i,t,e){let n=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(n*n+r*r)}var Ga=new M("mat-ripple-global-options"),hr=(()=>{class i{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,n,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new zu(this,n,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:k(k(k({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,k(k({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,k(k({},this.rippleConfig),e))}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(U),g(Fe),g(Ga,8),g(ot,8))}}static{this.\u0275dir=K({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){n&2&&Ie("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return i})(),Ya=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[Re,Re]})}}return i})(),WL=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(n){return new(n||i)(g(ot,8))}}static{this.\u0275cmp=de({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,r){n&2&&Ie("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[He],decls:0,vars:0,template:function(n,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return i})(),hb=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[Re]})}}return i})(),fb=new M("MAT_OPTION_PARENT_COMPONENT");var mb=new M("MatOptgroup");var qL=0,ub=class{constructor(t,e=!1){this.source=t,this.isUserInput=e}},Uu=(()=>{class i{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(e,n,r,o){this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${qL++}`,this.onSelectionChange=new Y,this._stateChanges=new $}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,n){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Ft(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new ub(this,e))}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(Ue),g(fb,8),g(mb,8))}}static{this.\u0275cmp=de({type:i,selectors:[["mat-option"]],viewQuery:function(n,r){if(n&1&&_e(OL,7),n&2){let o;ne(o=re())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,r){n&1&&z("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),n&2&&(Mi("id",r.id),Pe("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Ie("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",fe]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[it,He],ngContentSelectors:PL,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,r){n&1&&(bt(NL),J(0,FL,1,2,"mat-pseudo-checkbox",1),Be(1),y(2,"span",2,0),Be(4,1),b(),J(5,LL,1,1,"mat-pseudo-checkbox",3)(6,jL,2,1,"span",4),ie(7,"div",5)),n&2&&(Je(r.multiple?0:-1),D(5),Je(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),D(),Je(r.group&&r.group._inert?6:-1),D(),S("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[WL,hr],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return i})();function _D(i,t,e){if(e.length){let n=t.toArray(),r=e.toArray(),o=0;for(let s=0;s<i+1;s++)n[s].group&&n[s].group===r[o]&&o++;return o}return 0}function yD(i,t,e,n){return i<e?i:i+t>e+n?Math.max(0,i-n+t):e}var pb=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[Ya,Re,hb]})}}return i})(),gD={capture:!0},bD=["focus","mousedown","mouseenter","touchstart"],ab="mat-ripple-loader-uninitialized",cb="mat-ripple-loader-class-name",vD="mat-ripple-loader-centered",Bu="mat-ripple-loader-disabled",wD=(()=>{class i{constructor(){this._document=x(ae,{optional:!0}),this._animationMode=x(ot,{optional:!0}),this._globalRippleOptions=x(Ga,{optional:!0}),this._platform=x(Fe),this._ngZone=x(U),this._hosts=new Map,this._onInteraction=e=>{let n=ni(e);if(n instanceof HTMLElement){let r=n.closest(`[${ab}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}},this._ngZone.runOutsideAngular(()=>{for(let e of bD)this._document?.addEventListener(e,this._onInteraction,gD)})}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);for(let n of bD)this._document?.removeEventListener(n,this._onInteraction,gD)}configureRipple(e,n){e.setAttribute(ab,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(cb))&&e.setAttribute(cb,n.className||""),n.centered&&e.setAttribute(vD,""),n.disabled&&e.setAttribute(Bu,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,n){let r=this._hosts.get(e);if(r){r.disabled=n;return}n?e.setAttribute(Bu,""):e.removeAttribute(Bu)}_createRipple(e){if(!this._document)return;let n=this._hosts.get(e);if(n)return n;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(cb)),e.append(r);let o=new hr(new Q(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(vD),o.disabled=e.hasAttribute(Bu),this.attachRipple(e,o),o}attachRipple(e,n){e.removeAttribute(ab),this._hosts.set(e,n)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),xD=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=de({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,r){n&2&&Ie("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[He],attrs:VL,ngContentSelectors:BL,decls:1,vars:0,template:function(n,r){n&1&&(bt(),Be(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}}return i})();var GL=["*"];var YL=new M("MAT_CARD_CONFIG"),Mn=(()=>{class i{constructor(e){this.appearance=e?.appearance||"raised"}static{this.\u0275fac=function(n){return new(n||i)(g(YL,8))}}static{this.\u0275cmp=de({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,r){n&2&&Ie("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[He],ngContentSelectors:GL,decls:1,vars:0,template:function(n,r){n&1&&(bt(),Be(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-app-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-app-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-app-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-app-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-app-corner-medium));border-width:var(--mdc-outlined-card-outline-width);border-color:var(--mdc-outlined-card-outline-color, var(--mat-app-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-app-level0))}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-app-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-app-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-app-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-app-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-app-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-app-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-app-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-app-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-app-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-app-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-app-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}}return i})();var CD=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[Re,pi,Re]})}}return i})();var Ka=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},Sn=class extends Ka{constructor(t,e,n,r,o){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}},An=class extends Ka{constructor(t,e,n,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}},bb=class extends Ka{constructor(t){super(),this.element=t instanceof Q?t.nativeElement:t}},fr=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof Sn)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof An)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof bb)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Wu=class extends fr{constructor(t,e,n,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(t){let n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(t.injector||this._defaultInjector||be.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);r!==-1&&e.remove(r)}),this._attachedPortal=t,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var mr=(()=>{class i extends fr{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new Y,this.attachDomPortal=o=>{this._document;let s=o.element;s.parentNode;let a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=n.createComponent(o,n.length,e.injector||n.injector,e.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(n){return new(n||i)(g(Yt),g(gt),g(ae))}}static{this.\u0275dir=K({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[Ge]})}}return i})();var Tn=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({})}}return i})();var qu=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,e,n=!0,r){this._multiple=t,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new $,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);let e=this.selected,n=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!n.has(this._getConcreteValue(o,n))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(t,n))return n;return t}else return t}};var KL=20,DD=(()=>{class i{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new $,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=KL){return this._platform.isBrowser?new le(n=>{this._globalSubscription||this._addGlobalListener();let r=e>0?this._scrolled.pipe(zc(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):te()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(Ae(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=qt(n),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Vi(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(n){return new(n||i)(_(U),_(Fe),_(ae,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var QL=20,pr=(()=>{class i{constructor(e,n,r){this._platform=e,this._change=new $,this._changeListener=o=>{this._change.next(o)},this._document=r,n.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),s=-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,a=-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0;return{top:s,left:a}}change(e=QL){return e>0?this._change.pipe(zc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(n){return new(n||i)(_(Fe),_(U),_(ae,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Gu=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({})}}return i})(),vb=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[dr,Gu,dr,Gu]})}}return i})();var yb=class{constructor(t){this._box=t,this._destroyed=new $,this._resizeSubject=new $,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new le(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),n.unsubscribe(),this._elementObservables.delete(t)}}).pipe(Ae(e=>e.some(n=>n.target===t)),Uc({bufferSize:1,refCount:!0}),Le(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Yu=(()=>{class i{constructor(){this._observers=new Map,this._ngZone=x(U),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,n){let r=n?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new yb(r)),this._observers.get(r).observe(e)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var kD=["*"];var ZL=["tabListContainer"],XL=["tabList"],JL=["tabListInner"],e2=["nextPaginator"],t2=["previousPaginator"];var i2=["mat-tab-nav-bar",""],n2=["mat-tab-link",""];var wb="mdc-tab-indicator--active",ED="mdc-tab-indicator--no-transition",xb=class{constructor(t){this._items=t}hide(){this._items.forEach(t=>t.deactivateInkBar())}alignToElement(t){let e=this._items.find(r=>r.elementRef.nativeElement===t),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let r=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},r2=(()=>{class i{constructor(){this._elementRef=x(Q),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(wb);return}let r=n.getBoundingClientRect(),o=e.width/r.width,s=e.left-r.left;n.classList.add(ED),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${o})`),n.getBoundingClientRect(),n.classList.remove(ED),n.classList.add(wb),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(wb)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");n.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",n.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=K({type:i,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",fe]},features:[it]})}}return i})();var ID=nn({passive:!0}),o2=650,s2=100,a2=(()=>{class i{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}constructor(e,n,r,o,s,a,c){this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new $,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new $,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Y,this.indexFocused=new Y,this._sharedResizeObserver=x(Yu),this._injector=x(be),s.runOutsideAngular(()=>{Vi(e.nativeElement,"mouseleave").pipe(Le(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Vi(this._previousPaginator.nativeElement,"touchstart",ID).pipe(Le(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Vi(this._nextPaginator.nativeElement,"touchstart",ID).pipe(Le(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let e=this._dir?this._dir.change:te("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(dn(32),Le(this._destroyed)),r=this._viewportRuler.change(150).pipe(Le(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Nu(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),ki(o,{injector:this._injector}),Vt(e,r,n,this._items.changes,this._itemsResized()).pipe(Le(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return typeof ResizeObserver!="function"?pt:this._items.changes.pipe(It(this._items),ut(e=>new le(n=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>n.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),kr(1),Ae(e=>e.some(n=>n.contentRect.width>0&&n.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Ft(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let n=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?n.scrollLeft=0:n.scrollLeft=n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=n.elementRef.nativeElement,a,c;this._getLayoutDirection()=="ltr"?(a=o,c=a+s):(c=this._tabListInner.nativeElement.offsetWidth-o,a=c-s);let l=this.scrollDistance,d=this.scrollDistance+r;a<l?this.scrollDistance-=l-a:c>d&&(this.scrollDistance+=Math.min(c-d,a-l))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,r=e-n>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ns(o2,s2).pipe(Le(Vt(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(Ue),g(pr),g(ri,8),g(U),g(Fe),g(ot,8))}}static{this.\u0275dir=K({type:i,inputs:{disablePagination:[2,"disablePagination","disablePagination",fe],selectedIndex:[2,"selectedIndex","selectedIndex",Qi]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[it]})}}return i})();var c2=new M("MAT_TABS_CONFIG");var l2=0,Cb=(()=>{class i extends a2{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,n,r,o,s,a,c,l){super(e,o,s,n,r,a,c),this._fitInkBarToContent=new at(!1),this.stretchTabs=!0,this.disableRipple=!1,this.color="primary",this.disablePagination=l&&l.disablePagination!=null?l.disablePagination:!1,this.fitInkBarToContent=l&&l.fitInkBarToContent!=null?l.fitInkBarToContent:!1,this.stretchTabs=l&&l.stretchTabs!=null?l.stretchTabs:!0}_itemSelected(){}ngAfterContentInit(){this._inkBar=new xb(this._items),this._items.changes.pipe(It(null),Le(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}ngAfterViewInit(){this.tabPanel,super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;let e=this._items.toArray();for(let n=0;n<e.length;n++)if(e[n].active){this.selectedIndex=n,this._changeDetectorRef.markForCheck(),this.tabPanel&&(this.tabPanel._activeTabId=e[n].id);return}this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(ri,8),g(U),g(Ue),g(pr),g(Fe),g(ot,8),g(c2,8))}}static{this.\u0275cmp=de({type:i,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(n,r,o){if(n&1&&Pt(o,Db,5),n&2){let s;ne(s=re())&&(r._items=s)}},viewQuery:function(n,r){if(n&1&&(_e(ZL,7),_e(XL,7),_e(JL,7),_e(e2,5),_e(t2,5)),n&2){let o;ne(o=re())&&(r._tabListContainer=o.first),ne(o=re())&&(r._tabList=o.first),ne(o=re())&&(r._tabListInner=o.first),ne(o=re())&&(r._nextPaginator=o.first),ne(o=re())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:17,hostBindings:function(n,r){n&2&&(Pe("role",r._getRole()),Xe("--mat-tab-animation-duration",r.animationDuration),Ie("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")("mat-mdc-tab-nav-bar-stretch-tabs",r.stretchTabs)("mat-primary",r.color!=="warn"&&r.color!=="accent")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("_mat-animation-noopable",r._animationMode==="NoopAnimations"))},inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",fe],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",fe],animationDuration:"animationDuration",backgroundColor:"backgroundColor",disableRipple:[2,"disableRipple","disableRipple",fe],color:"color",tabPanel:"tabPanel"},exportAs:["matTabNavBar","matTabNav"],standalone:!0,features:[it,Ge,He],attrs:i2,ngContentSelectors:kD,decls:13,vars:6,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-link-container",3,"keydown"],[1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-links"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(n,r){if(n&1){let o=Te();bt(),y(0,"div",5,0),z("click",function(){return j(o),V(r._handlePaginatorClick("before"))})("mousedown",function(a){return j(o),V(r._handlePaginatorPress("before",a))})("touchend",function(){return j(o),V(r._stopInterval())}),ie(2,"div",6),b(),y(3,"div",7,1),z("keydown",function(a){return j(o),V(r._handleKeydown(a))}),y(5,"div",8,2),z("cdkObserveContent",function(){return j(o),V(r._onContentChanges())}),y(7,"div",9,3),Be(9),b()()(),y(10,"div",10,4),z("mousedown",function(a){return j(o),V(r._handlePaginatorPress("after",a))})("click",function(){return j(o),V(r._handlePaginatorClick("after"))})("touchend",function(){return j(o),V(r._stopInterval())}),ie(12,"div",6),b()}n&2&&(Ie("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),S("matRippleDisabled",r._disableScrollBefore||r.disableRipple),D(10),Ie("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),S("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[hr,Qg],styles:[".mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}"],encapsulation:2})}}return i})(),Db=(()=>{class i extends r2{get active(){return this._isActive}set active(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(e,n,r,o,s,a){super(),this._tabNavBar=e,this.elementRef=n,this._focusMonitor=s,this._destroyed=new $,this._isActive=!1,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.id=`mat-tab-link-${l2++}`,this.rippleConfig=r||{},this.tabIndex=parseInt(o)||0,a==="NoopAnimations"&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),e._fitInkBarToContent.pipe(Le(this._destroyed)).subscribe(c=>{this.fitInkBarToContent=c})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(this.disabled?e.preventDefault():this._tabNavBar.tabPanel&&(e.keyCode===32&&e.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.disabled?-1:this.tabIndex}static{this.\u0275fac=function(n){return new(n||i)(g(Cb),g(Q),g(Ga,8),Yi("tabindex"),g(lr),g(ot,8))}}static{this.\u0275cmp=de({type:i,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(n,r){n&1&&z("focus",function(){return r._handleFocus()})("keydown",function(s){return r._handleKeydown(s)}),n&2&&(Pe("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._getTabIndex())("role",r._getRole()),Ie("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",fe],disabled:[2,"disabled","disabled",fe],disableRipple:[2,"disableRipple","disableRipple",fe],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Qi(e)],id:"id"},exportAs:["matTabLink"],standalone:!0,features:[it,Ge,He],attrs:n2,ngContentSelectors:kD,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(n,r){n&1&&(bt(),ie(0,"span",0)(1,"div",1),y(2,"span",2)(3,"span",3),Be(4),b()()),n&2&&(D(),S("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[hr],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0})}}return i})();var MD=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[Re,Re]})}}return i})();var SD=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[Re,Re]})}}return i})();var AD=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[ms,pi,Re,Ya,hb,SD]})}}return i})();var TD=nn({passive:!0}),RD=(()=>{class i{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return pt;let n=qt(e),r=this._monitoredElements.get(n);if(r)return r.subject;let o=new $,s="cdk-text-field-autofilled",a=c=>{c.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(s)?(n.classList.add(s),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(s)&&(n.classList.remove(s),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",a,TD),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",a,TD)}}),o}stopMonitoring(e){let n=qt(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}static{this.\u0275fac=function(n){return new(n||i)(_(Fe),_(U))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var OD=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({})}}return i})();var h2=["notch"],f2=["matFormFieldNotchedOutline",""],m2=["*"],p2=["textField"],g2=["iconPrefixContainer"],b2=["textPrefixContainer"],v2=["iconSuffixContainer"],_2=["textSuffixContainer"],y2=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],w2=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function x2(i,t){i&1&&ie(0,"span",21)}function C2(i,t){if(i&1&&(y(0,"label",20),Be(1,1),J(2,x2,1,0,"span",21),b()),i&2){let e=T(2);S("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),Pe("for",e._control.disableAutomaticLabeling?null:e._control.id),D(2),Je(!e.hideRequiredMarker&&e._control.required?2:-1)}}function D2(i,t){if(i&1&&J(0,C2,3,5,"label",20),i&2){let e=T();Je(e._hasFloatingLabel()?0:-1)}}function E2(i,t){i&1&&ie(0,"div",7)}function I2(i,t){}function k2(i,t){if(i&1&&J(0,I2,0,0,"ng-template",13),i&2){T(2);let e=Si(1);S("ngTemplateOutlet",e)}}function M2(i,t){if(i&1&&(y(0,"div",9),J(1,k2,1,1,null,13),b()),i&2){let e=T();S("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),D(),Je(e._forceDisplayInfixLabel()?-1:1)}}function S2(i,t){i&1&&(y(0,"div",10,2),Be(2,2),b())}function A2(i,t){i&1&&(y(0,"div",11,3),Be(2,3),b())}function T2(i,t){}function R2(i,t){if(i&1&&J(0,T2,0,0,"ng-template",13),i&2){T();let e=Si(1);S("ngTemplateOutlet",e)}}function O2(i,t){i&1&&(y(0,"div",14,4),Be(2,4),b())}function N2(i,t){i&1&&(y(0,"div",15,5),Be(2,5),b())}function P2(i,t){i&1&&ie(0,"div",16)}function F2(i,t){if(i&1&&(y(0,"div",18),Be(1,6),b()),i&2){let e=T();S("@transitionMessages",e._subscriptAnimationState)}}function L2(i,t){if(i&1&&(y(0,"mat-hint",22),q(1),b()),i&2){let e=T(2);S("id",e._hintLabelId),D(),$t(e.hintLabel)}}function j2(i,t){if(i&1&&(y(0,"div",19),J(1,L2,2,2,"mat-hint",22),Be(2,7),ie(3,"div",23),Be(4,8),b()),i&2){let e=T();S("@transitionMessages",e._subscriptAnimationState),D(),Je(e.hintLabel?1:-1)}}var vs=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=K({type:i,selectors:[["mat-label"]],standalone:!0})}}return i})();var V2=new M("MatError");var B2=0,Qu=(()=>{class i{constructor(){this.align="start",this.id=`mat-mdc-hint-${B2++}`}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=K({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,r){n&2&&(Mi("id",r.id),Pe("align",null),Ie("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0})}}return i})(),z2=new M("MatPrefix");var zD=new M("MatSuffix"),HD=(()=>{class i{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=K({type:i,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[nt([{provide:zD,useExisting:i}])]})}}return i})(),UD=new M("FloatingLabelParent"),ND=(()=>{class i{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=x(Yu),this._ngZone=x(U),this._parent=x(UD),this._resizeSubscription=new Ne}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return H2(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static{this.\u0275fac=function(n){return new(n||i)(g(Q))}}static{this.\u0275dir=K({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,r){n&2&&Ie("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return i})();function H2(i){let t=i;if(t.offsetParent!==null)return t.scrollWidth;let e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var PD="mdc-line-ripple--active",Ku="mdc-line-ripple--deactivating",FD=(()=>{class i{constructor(e,n){this._elementRef=e,this._handleTransitionEnd=r=>{let o=this._elementRef.nativeElement.classList,s=o.contains(Ku);r.propertyName==="opacity"&&s&&o.remove(PD,Ku)},n.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Ku),e.add(PD)}deactivate(){this._elementRef.nativeElement.classList.add(Ku)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(U))}}static{this.\u0275dir=K({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return i})(),LD=(()=>{class i{constructor(e,n){this._elementRef=e,this._ngZone=n,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(U))}}static{this.\u0275cmp=de({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,r){if(n&1&&_e(h2,5),n&2){let o;ne(o=re())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,r){n&2&&Ie("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[He],attrs:f2,ngContentSelectors:m2,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(n,r){n&1&&(bt(),ie(0,"div",1),y(1,"div",2,0),Be(3),b(),ie(4,"div",3))},encapsulation:2,changeDetection:0})}}return i})(),U2={transitionMessages:Hr("transitionMessages",[Ur("enter",Wt({opacity:1,transform:"translateY(0%)"})),Cn("void => enter",[Wt({opacity:0,transform:"translateY(-5px)"}),ir("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Qa=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=K({type:i})}}return i})();var Za=new M("MatFormField"),$2=new M("MAT_FORM_FIELD_DEFAULT_OPTIONS"),jD=0,VD="fill",W2="auto",BD="fixed",q2="translateY(-50%)",Zu=(()=>{class i{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=io(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||W2}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let n=this._appearance,r=e||this._defaults?.appearance||VD;this._appearance=r,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||BD}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||BD}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,n,r,o,s,a,c,l){this._elementRef=e,this._changeDetectorRef=n,this._dir=o,this._platform=s,this._defaults=a,this._animationMode=c,this._labelChild=z0(vs),this._hideRequiredMarker=!1,this.color="primary",this._appearance=VD,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${jD++}`,this._hintLabelId=`mat-mdc-hint-${jD++}`,this._subscriptAnimationState="",this._destroyed=new $,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=x(be),this.getLabelId=vn(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=vn(()=>!!this._labelChild()),a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=!!a?.hideRequiredMarker,a.color&&(this.color=a.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(r+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Le(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Vt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Qs(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(Le(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let n=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,r=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let n=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,s=this._textSuffixContainer?.nativeElement,a=n?.getBoundingClientRect().width??0,c=r?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,d=s?.getBoundingClientRect().width??0,u=this._dir.value==="rtl"?"-1":"1",f=`${a+c}px`,m=`calc(${u} * (${f} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var(
9
+ --mat-mdc-form-field-label-transform,
10
+ ${q2} translateX(${m})
11
+ )`;let p=a+c+l+d;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${p}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(Ue),g(U),g(ri),g(Fe),g($2,8),g(ot,8),g(ae))}}static{this.\u0275cmp=de({type:i,selectors:[["mat-form-field"]],contentQueries:function(n,r,o){if(n&1&&(ow(o,r._labelChild,vs,5),Pt(o,Qa,5),Pt(o,z2,5),Pt(o,zD,5),Pt(o,V2,5),Pt(o,Qu,5)),n&2){sw();let s;ne(s=re())&&(r._formFieldControl=s.first),ne(s=re())&&(r._prefixChildren=s),ne(s=re())&&(r._suffixChildren=s),ne(s=re())&&(r._errorChildren=s),ne(s=re())&&(r._hintChildren=s)}},viewQuery:function(n,r){if(n&1&&(_e(p2,5),_e(g2,5),_e(b2,5),_e(v2,5),_e(_2,5),_e(ND,5),_e(LD,5),_e(FD,5)),n&2){let o;ne(o=re())&&(r._textField=o.first),ne(o=re())&&(r._iconPrefixContainer=o.first),ne(o=re())&&(r._textPrefixContainer=o.first),ne(o=re())&&(r._iconSuffixContainer=o.first),ne(o=re())&&(r._textSuffixContainer=o.first),ne(o=re())&&(r._floatingLabel=o.first),ne(o=re())&&(r._notchedOutline=o.first),ne(o=re())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,r){n&2&&Ie("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations",r._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[nt([{provide:Za,useExisting:i},{provide:UD,useExisting:i}]),He],ngContentSelectors:w2,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,r){if(n&1){let o=Te();bt(y2),J(0,D2,1,1,"ng-template",null,0,Ym),y(2,"div",6,1),z("click",function(a){return j(o),V(r._control.onContainerClick(a))}),J(4,E2,1,0,"div",7),y(5,"div",8),J(6,M2,2,2,"div",9)(7,S2,3,0,"div",10)(8,A2,3,0,"div",11),y(9,"div",12),J(10,R2,1,1,null,13),Be(11),b(),J(12,O2,3,0,"div",14)(13,N2,3,0,"div",15),b(),J(14,P2,1,0,"div",16),b(),y(15,"div",17),J(16,F2,2,1,"div",18)(17,j2,5,2,"div",19),b()}if(n&2){let o;D(2),Ie("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),D(2),Je(!r._hasOutline()&&!r._control.disabled?4:-1),D(2),Je(r._hasOutline()?6:-1),D(),Je(r._hasIconPrefix?7:-1),D(),Je(r._hasTextPrefix?8:-1),D(2),Je(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),D(2),Je(r._hasTextSuffix?12:-1),D(),Je(r._hasIconSuffix?13:-1),D(),Je(r._hasOutline()?-1:14),D(),Ie("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic"),D(),Je((o=r._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[ND,LD,Xs,FD,Qu],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[U2.transitionMessages]},changeDetection:0})}}return i})(),Xa=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[Re,pi,ms,Re]})}}return i})();var G2=new M("MAT_INPUT_VALUE_ACCESSOR"),Y2=["button","checkbox","file","hidden","image","radio","range","reset","submit"],K2=0,Xu=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=io(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Jo.required)??!1}set required(e){this._required=io(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Kg().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=io(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,n,r,o,s,a,c,l,d,u){this._elementRef=e,this._platform=n,this.ngControl=r,this._autofillMonitor=l,this._ngZone=d,this._formField=u,this._uid=`mat-input-${K2++}`,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new $,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>Kg().has(m)),this._iOSKeyupListener=m=>{let p=m.target;!p.value&&p.selectionStart===0&&p.selectionEnd===0&&(p.setSelectionRange(1,1),p.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};let f=this._elementRef.nativeElement,h=f.nodeName.toLowerCase();this._inputValueAccessor=c||f,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new bs(a,r,s,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=h==="select",this._isTextarea=h==="textarea",this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Y2.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(Fe),g(En,10),g(ya,8),g(xa,8),g(Hu),g(G2,10),g(RD),g(U),g(Za,8))}}static{this.\u0275dir=K({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,r){n&1&&z("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),n&2&&(Mi("id",r.id)("disabled",r.disabled)("required",r.required),Pe("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),Ie("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[nt([{provide:Qa,useExisting:i}]),Qe]})}}return i})(),WD=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[Re,Xa,Xa,OD,Re]})}}return i})();var Q2=["mat-button",""],Z2=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],X2=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var J2=new M("MAT_BUTTON_CONFIG");var ej=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],tj=(()=>{class i{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,n,r,o){this._elementRef=e,this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=x(lr),this._rippleLoader=x(wD),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=x(J2,{optional:!0}),a=e.nativeElement,c=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:d}of ej)a.hasAttribute(l)&&c.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(n){Jl()}}static{this.\u0275dir=K({type:i,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",fe],disabled:[2,"disabled","disabled",fe],ariaDisabled:[2,"aria-disabled","ariaDisabled",fe],disabledInteractive:[2,"disabledInteractive","disabledInteractive",fe]},features:[it]})}}return i})();var _s=(()=>{class i extends tj{constructor(e,n,r,o){super(e,n,r,o)}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(Fe),g(U),g(ot,8))}}static{this.\u0275cmp=de({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,r){n&2&&(Pe("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),fi(r.color?"mat-"+r.color:""),Ie("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Ge,He],attrs:Q2,ngContentSelectors:X2,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(bt(Z2),ie(0,"span",0),Be(1),y(2,"span",1),Be(3,1),b(),Be(4,2),ie(5,"span",2)(6,"span",3)),n&2&&Ie("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return i})();var Ju=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[Re,Ya,Re]})}}return i})();var YD=QC(),Eb=class{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=lt(-this._previousScrollPosition.left),t.style.top=lt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,e=this._document.body,n=t.style,r=e.style,o=n.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),YD&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),YD&&(n.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};var Ib=class{constructor(t,e,n,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(Ae(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},eh=class{enable(){}disable(){}attach(){}};function kb(i,t){return t.some(e=>{let n=i.bottom<e.top,r=i.top>e.bottom,o=i.right<e.left,s=i.left>e.right;return n||r||o||s})}function KD(i,t){return t.some(e=>{let n=i.top<e.top,r=i.bottom>e.bottom,o=i.left<e.left,s=i.right>e.right;return n||r||o||s})}var Mb=class{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();kb(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},ij=(()=>{class i{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new eh,this.close=s=>new Ib(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new Eb(this._viewportRuler,this._document),this.reposition=s=>new Mb(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static{this.\u0275fac=function(n){return new(n||i)(_(DD),_(pr),_(U),_(ae))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),gr=class{constructor(t){if(this.scrollStrategy=new eh,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let e=Object.keys(t);for(let n of e)t[n]!==void 0&&(this[n]=t[n])}}};var Sb=class{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}};var tE=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}static{this.\u0275fac=function(n){return new(n||i)(_(ae))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),nj=(()=>{class i extends tE{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=r=>{let o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){let a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(n){return new(n||i)(_(ae),_(U,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),rj=(()=>{class i extends tE{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=ni(o)},this._clickListener=o=>{let s=ni(o),a=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let c=this._attachedOverlays.slice();for(let l=c.length-1;l>-1;l--){let d=c[l];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(QD(d.overlayElement,s)||QD(d.overlayElement,a))break;let u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(e){if(super.add(e),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(n){return new(n||i)(_(ae),_(Fe),_(U,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function QD(i,t){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=t;for(;n;){if(n===i)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var ys=(()=>{class i{constructor(e,n){this._platform=n,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Wa()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}let n=this._document.createElement("div");n.classList.add(e),Wa()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}static{this.\u0275fac=function(n){return new(n||i)(_(ae),_(Fe))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Rn=class{constructor(t,e,n,r,o,s,a,c,l,d=!1,u){this._portalOutlet=t,this._host=e,this._pane=n,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=c,this._outsideClickDispatcher=l,this._animationsDisabled=d,this._injector=u,this._backdropElement=null,this._backdropClick=new $,this._attachments=new $,this._detachments=new $,this._locationChanges=Ne.EMPTY,this._backdropClickHandler=f=>this._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new $,this._outsidePointerEvents=new $,this._renders=new $,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=mi(()=>Qs(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=ki(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=k(k({},this._config),t),this._updateElementSize()}setDirection(t){this._config=De(k({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=lt(this._config.width),t.height=lt(this._config.height),t.minWidth=lt(this._config.minWidth),t.minHeight=lt(this._config.minHeight),t.maxWidth=lt(this._config.maxWidth),t.maxHeight=lt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,n){let r=fs(e||[]).filter(o=>!!o);r.length&&(n?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(Le(Vt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},ZD="cdk-overlay-connected-position-bounding-box",oj=/([A-Za-z%]+)$/,Ab=class{get positions(){return this._preferredPositions}constructor(t,e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new $,this._resizeSubscription=Ne.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(ZD),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(t,r,a),l=this._getOverlayPoint(c,e,a),d=this._getOverlayFit(l,e,n,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(d,l,n)){o.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleArea<d.visibleArea)&&(s={overlayFit:d,overlayPoint:l,originPoint:c,position:a,overlayRect:e})}if(o.length){let a=null,c=-1;for(let l of o){let d=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);d>c&&(c=d,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&so(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ZD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,n){let r;if(n.originX=="center")r=t.left+t.width/2;else{let s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r=n.originX=="start"?s:a}e.left<0&&(r-=e.left);let o;return n.originY=="center"?o=t.top+t.height/2:o=n.originY=="top"?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,n){let r;n.overlayX=="center"?r=-e.width/2:n.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return n.overlayY=="center"?o=-e.height/2:o=n.overlayY=="top"?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,n,r){let o=JD(e),{x:s,y:a}=t,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let d=0-s,u=s+o.width-n.width,f=0-a,h=a+o.height-n.height,m=this._subtractOverflows(o.width,d,u),p=this._subtractOverflows(o.height,f,h),v=m*p;return{visibleArea:v,isCompletelyWithinViewport:o.width*o.height===v,fitsInViewportVertically:p===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){let r=n.bottom-e.y,o=n.right-e.x,s=XD(this._overlayRef.getConfig().minHeight),a=XD(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportVertically||s!=null&&s<=r,l=t.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let r=JD(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),c=Math.max(o.top-n.top-t.y,0),l=Math.max(o.left-n.left-t.x,0),d=0,u=0;return r.width<=o.width?d=l||-s:d=t.x<this._viewportMargin?o.left-n.left-t.x:0,r.height<=o.height?u=c||-a:u=t.y<this._viewportMargin?o.top-n.top-t.y:0,this._previousPushAmount={x:d,y:u},{x:t.x+d,y:t.y+u}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!sj(this._lastScrollVisibility,n)){let r=new Sb(t,n);this._positionChanges.next(r)}this._lastScrollVisibility=n}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,r=t.overlayY;t.overlayX==="center"?n="center":this._isRtl()?n=t.overlayX==="start"?"right":"left":n=t.overlayX==="start"?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(t,e){let n=this._viewportRect,r=this._isRtl(),o,s,a;if(e.overlayY==="top")s=t.y,o=n.height-s+this._viewportMargin;else if(e.overlayY==="bottom")a=n.height-t.y+this._viewportMargin*2,o=n.height-a+this._viewportMargin;else{let h=Math.min(n.bottom-t.y+n.top,t.y),m=this._lastBoundingBoxSize.height;o=h*2,s=t.y-h,o>m&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-m/2)}let c=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,l=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,u,f;if(l)f=n.width-t.x+this._viewportMargin*2,d=t.x-this._viewportMargin;else if(c)u=t.x,d=n.right-t.x;else{let h=Math.min(n.right-t.x+n.left,t.x),m=this._lastBoundingBoxSize.width;d=h*2,u=t.x-h,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-m/2)}return{top:s,left:u,bottom:a,right:f,width:d,height:o}}_setBoundingBoxStyles(t,e){let n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=lt(n.height),r.top=lt(n.top),r.bottom=lt(n.bottom),r.width=lt(n.width),r.left=lt(n.left),r.right=lt(n.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=lt(o)),s&&(r.maxWidth=lt(s))}this._lastBoundingBoxSize=n,so(this._boundingBox.style,r)}_resetBoundingBoxStyles(){so(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){so(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){let n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();so(n,this._getExactOverlayY(e,t,d)),so(n,this._getExactOverlayX(e,t,d))}else n.position="static";let a="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),n.transform=a.trim(),s.maxHeight&&(r?n.maxHeight=lt(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(r?n.maxWidth=lt(s.maxWidth):o&&(n.maxWidth="")),so(this._pane.style,n)}_getExactOverlayY(t,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),t.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=lt(o.y);return r}_getExactOverlayX(t,e,n){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));let s;if(this._isRtl()?s=t.overlayX==="end"?"left":"right":s=t.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=lt(o.x);return r}_getScrollVisibility(){let t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:KD(t,n),isOriginOutsideView:kb(t,n),isOverlayClipped:KD(e,n),isOverlayOutsideView:kb(e,n)}}_subtractOverflows(t,...e){return e.reduce((n,r)=>n-Math.max(r,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return e==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&fs(t).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof Q)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}};function so(i,t){for(let e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function XD(i){if(typeof i!="number"&&i!=null){let[t,e]=i.split(oj);return!e||e==="px"?parseFloat(t):null}return i||null}function JD(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function sj(i,t){return i===t?!0:i.isOriginClipped===t.isOriginClipped&&i.isOriginOutsideView===t.isOriginOutsideView&&i.isOverlayClipped===t.isOverlayClipped&&i.isOverlayOutsideView===t.isOverlayOutsideView}var eE="cdk-global-overlay-wrapper",Tb=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(eE),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=n,c=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",h="",m="",p="";c?p="flex-start":d==="center"?(p="center",f?m=u:h=u):f?d==="left"||d==="end"?(p="flex-end",h=u):(d==="right"||d==="start")&&(p="flex-start",m=u):d==="left"||d==="start"?(p="flex-start",h=u):(d==="right"||d==="end")&&(p="flex-end",m=u),t.position=this._cssPosition,t.marginLeft=c?"0":h,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=c?"0":m,e.justifyContent=p,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(eE),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},aj=(()=>{class i{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new Tb}flexibleConnectedTo(e){return new Ab(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(n){return new(n||i)(_(pr),_(ae),_(Fe),_(ys))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),cj=0,Dt=(()=>{class i{constructor(e,n,r,o,s,a,c,l,d,u,f,h){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=h}create(e){let n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),s=new gr(e);return s.direction=s.direction||this._directionality.value,new Rn(o,n,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(xt))}position(){return this._positionBuilder}_createPaneElement(e){let n=this._document.createElement("div");return n.id=`cdk-overlay-${cj++}`,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Zt)),new Wu(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(n){return new(n||i)(_(ij),_(ys),_(Yt),_(aj),_(nj),_(be),_(U),_(ae),_(ri),_(Xi),_(rj),_(ot,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),lj=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],iE=new M("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let i=x(Dt);return()=>i.scrollStrategies.reposition()}}),Ja=(()=>{class i{constructor(e){this.elementRef=e}static{this.\u0275fac=function(n){return new(n||i)(g(Q))}}static{this.\u0275dir=K({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return i})(),Rb=(()=>{class i{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,n,r,o,s){this._overlay=e,this._dir=s,this._backdropSubscription=Ne.EMPTY,this._attachSubscription=Ne.EMPTY,this._detachSubscription=Ne.EMPTY,this._positionSubscription=Ne.EMPTY,this._disposeOnNavigation=!1,this._ngZone=x(U),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new Y,this.positionChange=new Y,this.attach=new Y,this.detach=new Y,this.overlayKeydown=new Y,this.overlayOutsideClick=new Y,this._templatePortal=new An(n,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=lj);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Ft(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let r=this._getOriginElement(),o=ni(n);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new gr({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){let n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Ja?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ja?this.origin.elementRef.nativeElement:this.origin instanceof Q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe($h(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||i)(g(Dt),g(Ct),g(gt),g(iE),g(ri,8))}}static{this.\u0275dir=K({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",fe],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",fe],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",fe],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",fe],push:[2,"cdkConnectedOverlayPush","push",fe],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",fe]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[it,Qe]})}}return i})();function dj(i){return()=>i.scrollStrategies.reposition()}var uj={provide:iE,deps:[Dt],useFactory:dj},br=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({providers:[Dt,uj],imports:[dr,Tn,vb,vb]})}}return i})();function hj(i,t){if(i&1){let e=Te();y(0,"div",1)(1,"button",2),z("click",function(){j(e);let r=T();return V(r.action())}),q(2),b()()}if(i&2){let e=T();D(2),ct(" ",e.data.action," ")}}var fj=["label"];function mj(i,t){}var pj=Math.pow(2,31)-1,tc=class{constructor(t,e){this._overlayRef=e,this._afterDismissed=new $,this._afterOpened=new $,this._onAction=new $,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,pj))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},nE=new M("MatSnackBarData"),ws=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},gj=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=K({type:i,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}}return i})(),bj=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=K({type:i,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}}return i})(),vj=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=K({type:i,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}}return i})(),rE=(()=>{class i{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static{this.\u0275fac=function(n){return new(n||i)(g(tc),g(nE))}}static{this.\u0275cmp=de({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[He],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(y(0,"div",0),q(1),b(),J(2,hj,3,1,"div",1)),n&2&&(D(),ct(" ",r.data.message,`
12
+ `),D(),Je(r.hasAction?2:-1))},dependencies:[_s,gj,bj,vj],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}}return i})(),_j={snackBarState:Hr("state",[Ur("void, hidden",Wt({transform:"scale(0.8)",opacity:0})),Ur("visible",Wt({transform:"scale(1)",opacity:1})),Cn("* => visible",ir("150ms cubic-bezier(0, 0, 0.2, 1)")),Cn("* => void, * => hidden",ir("75ms cubic-bezier(0.4, 0.0, 1, 1)",Wt({opacity:0})))])},yj=0,wj=(()=>{class i extends fr{constructor(e,n,r,o,s){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._document=x(ae),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new $,this._onExit=new $,this._onEnter=new $,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${yj++}`,this.attachDomPortal=a=>{this._assertNotAttached();let c=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),c},s.politeness==="assertive"&&!s.announcementMessage?this._live="assertive":s.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}onAnimationEnd(e){let{fromState:n,toState:r}=e;if((r==="void"&&n!=="void"||r==="hidden")&&this._completeExit(),r==="visible"){let o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(s=>e.classList.add(s)):e.classList.add(n)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<n.length;r++){let o=n[r],s=o.getAttribute("aria-owns");this._trackedModals.add(o),s?s.indexOf(e)===-1&&o.setAttribute("aria-owns",s+" "+e):o.setAttribute("aria-owns",e)}}_clearFromModals(){this._trackedModals.forEach(e=>{let n=e.getAttribute("aria-owns");if(n){let r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static{this.\u0275fac=function(n){return new(n||i)(g(U),g(Q),g(Ue),g(Fe),g(ws))}}static{this.\u0275cmp=de({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(n&1&&(_e(mr,7),_e(fj,7)),n&2){let o;ne(o=re())&&(r._portalOutlet=o.first),ne(o=re())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,r){n&1&&$m("@state.done",function(s){return r.onAnimationEnd(s)}),n&2&&Um("@state",r._animationState)},standalone:!0,features:[Ge,He],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(y(0,"div",1)(1,"div",2,0)(3,"div",3),J(4,mj,0,0,"ng-template",4),b(),ie(5,"div"),b()()),n&2&&(D(5),Pe("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[mr],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-app-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-app-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-app-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-app-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-app-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-app-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[_j.snackBarState]}})}}return i})();function xj(){return new ws}var Cj=new M("mat-snack-bar-default-options",{providedIn:"root",factory:xj}),Nb=(()=>{class i{get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,n,r,o,s,a){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=rE,this.snackBarContainerComponent=wj,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){let o=k(k({},this._defaultConfig),r);return o.data={message:e,action:n},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let r=n&&n.viewContainerRef&&n.viewContainerRef.injector,o=be.create({parent:r||this._injector,providers:[{provide:ws,useValue:n}]}),s=new Sn(this.snackBarContainerComponent,n.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=n,a.instance}_attach(e,n){let r=k(k(k({},new ws),this._defaultConfig),n),o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new tc(s,o);if(e instanceof Ct){let c=new An(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(c)}else{let c=this._createInjector(r,a),l=new Sn(e,void 0,c),d=s.attachComponentPortal(l);a.instance=d.instance}return this._breakpointObserver.observe(tD.HandsetPortrait).pipe(Le(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){let n=new gr;n.direction=e.direction;let r=this._overlay.position().global(),o=e.direction==="rtl",s=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,a=!s&&e.horizontalPosition!=="center";return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return be.create({parent:r||this._injector,providers:[{provide:tc,useValue:n},{provide:nE,useValue:e.data}]})}static{this.\u0275fac=function(n){return new(n||i)(_(Dt),_(ju),_(be),_(Su),_(i,12),_(Cj))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var oE=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({providers:[Nb],imports:[br,Tn,Ju,Re,rE,Re]})}}return i})();var Ej=["input"],Ij=["label"],kj=["*"],Mj=new M("mat-checkbox-default-options",{providedIn:"root",factory:aE});function aE(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Mt=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(Mt||{}),Sj={provide:_a,useExisting:Kt(()=>xs),multi:!0},Pb=class{},Aj=0,sE=aE(),xs=(()=>{class i{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new Pb;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,s,a){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=r,this._animationMode=s,this._options=a,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Y,this.indeterminateChange=new Y,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Mt.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||sE,this.color=this._options.color||sE.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++Aj}`,this.disabledInteractive=a?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let n=e!=this._indeterminate;this._indeterminate=e,n&&(this._indeterminate?this._transitionCheckState(Mt.Indeterminate):this._transitionCheckState(this.checked?Mt.Checked:Mt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,r=this._getAnimationTargetElement();if(!(n===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Mt.Checked:Mt.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationMode==="NoopAnimations")return"";switch(e){case Mt.Init:if(n===Mt.Checked)return this._animationClasses.uncheckedToChecked;if(n==Mt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Mt.Unchecked:return n===Mt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Mt.Checked:return n===Mt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Mt.Indeterminate:return n===Mt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(Ue),g(U),Yi("tabindex"),g(ot,8),g(Mj,8))}}static{this.\u0275cmp=de({type:i,selectors:[["mat-checkbox"]],viewQuery:function(n,r){if(n&1&&(_e(Ej,5),_e(Ij,5),_e(hr,5)),n&2){let o;ne(o=re())&&(r._inputElement=o.first),ne(o=re())&&(r._labelElement=o.first),ne(o=re())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,r){n&2&&(Mi("id",r.id),Pe("tabindex",null)("aria-label",null)("aria-labelledby",null),fi(r.color?"mat-"+r.color:"mat-accent"),Ie("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",fe],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",fe],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Qi(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",fe],checked:[2,"checked","checked",fe],disabled:[2,"disabled","disabled",fe],indeterminate:[2,"indeterminate","indeterminate",fe]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[nt([Sj,{provide:Qr,useExisting:i,multi:!0}]),it,Qe,He],ngContentSelectors:kj,decls:15,vars:20,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,r){if(n&1){let o=Te();bt(),y(0,"div",3),z("click",function(a){return j(o),V(r._preventBubblingFromLabel(a))}),y(1,"div",4,0)(3,"div",5),z("click",function(){return j(o),V(r._onTouchTargetClick())}),b(),y(4,"input",6,1),z("blur",function(){return j(o),V(r._onBlur())})("click",function(){return j(o),V(r._onInputClick())})("change",function(a){return j(o),V(r._onInteractionEvent(a))}),b(),ie(6,"div",7),y(7,"div",8),Br(),y(8,"svg",9),ie(9,"path",10),b(),bm(),ie(10,"div",11),b(),ie(11,"div",12),b(),y(12,"label",13,2),Be(14),b()()}if(n&2){let o=Si(2);S("labelPosition",r.labelPosition),D(4),Ie("mdc-checkbox--selected",r.checked),S("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),Pe("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("name",r.name)("value",r.value),D(7),S("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),D(),S("for",r.inputId)}},dependencies:[hr,xD],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.cdk-high-contrast-active .mdc-checkbox--disabled{opacity:.5}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-app-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-app-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.cdk-high-contrast-active .mdc-checkbox--disabled .mdc-checkbox__checkmark,.cdk-high-contrast-active .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return i})();var cE=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({imports:[xs,Re,Re]})}}return i})();function Tj(i,t){}var ao=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var Lb=(()=>{class i extends fr{constructor(e,n,r,o,s,a,c,l){super(),this._elementRef=e,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=c,this._focusMonitor=l,this._platform=x(Fe),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=x(Ue),this._injector=x(be),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_trapFocus(){this._isDestroyed||ki(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let r=$a(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,n=$a();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=$a()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(Lu),g(ae,8),g(ao),g(qa),g(U),g(Rn),g(lr))}}static{this.\u0275cmp=de({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&_e(mr,7),n&2){let o;ne(o=re())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&Pe("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[Ge,He],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&J(0,Tj,0,0,"ng-template",0)},dependencies:[mr],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return i})(),ic=class{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new $,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!Ft(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=t.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(t,e){if(this.containerInstance){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(t),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}},Rj=new M("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=x(Dt);return()=>i.scrollStrategies.block()}}),Oj=new M("DialogData"),Nj=new M("DefaultDialogConfig");var Pj=0,jb=(()=>{class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,n,r,o,s,a){this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new $,this._afterOpenedAtThisLevel=new $,this._ariaHiddenElements=new Map,this.afterAllClosed=ji(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(It(void 0))),this._scrollStrategy=a}open(e,n){let r=this._defaultOptions||new ao;n=k(k({},r),n),n.id=n.id||`cdk-dialog-${Pj++}`,n.id&&this.getDialogById(n.id);let o=this._getOverlayConfig(n),s=this._overlay.create(o),a=new ic(s,n),c=this._attachContainer(s,a,n);return a.containerInstance=c,this._attachDialogContent(e,a,c,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Fb(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){Fb(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),Fb(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new gr({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,r){let o=r.injector||r.viewContainerRef?.injector,s=[{provide:ao,useValue:r},{provide:ic,useValue:n},{provide:Rn,useValue:e}],a;r.container?typeof r.container=="function"?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=Lb;let c=new Sn(a,r.viewContainerRef,be.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,n,r,o){if(e instanceof Ct){let s=this._createInjector(o,n,r,void 0),a={$implicit:o.data,dialogRef:n};o.templateContext&&(a=k(k({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new An(e,null,a,s))}else{let s=this._createInjector(o,n,r,this._injector),a=r.attachComponentPortal(new Sn(e,o.viewContainerRef,s,o.componentFactoryResolver));n.componentRef=a,n.componentInstance=a.instance}}_createInjector(e,n,r,o){let s=e.injector||e.viewContainerRef?.injector,a=[{provide:Oj,useValue:e.data},{provide:ic,useValue:n}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(n,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(ri,null,{optional:!0}))&&a.push({provide:ri,useValue:{value:e.direction,change:te()}}),be.create({parent:s||o,providers:a})}_removeOpenDialog(e,n){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){let o=n[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(n){return new(n||i)(_(Dt),_(be),_(Nj,8),_(i,12),_(ys),_(Rj))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Fb(i,t){let e=i.length;for(;e--;)t(i[e])}var dE=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({providers:[jb],imports:[br,Tn,dD,Tn]})}}return i})();function Fj(i,t){}var nc=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},Vb="mdc-dialog--open",uE="mdc-dialog--opening",hE="mdc-dialog--closing",Lj=150,jj=75,Vj=(()=>{class i extends Lb{constructor(e,n,r,o,s,a,c,l,d){super(e,n,r,o,s,a,c,d),this._animationMode=l,this._animationStateChanged=new Y,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?mE(this._config.enterAnimationDuration)??Lj:0,this._exitAnimationDuration=this._animationsEnabled?mE(this._config.exitAnimationDuration)??jj:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(fE,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(uE,Vb)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Vb),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Vb),this._animationsEnabled?(this._hostElement.style.setProperty(fE,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(hE)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(uE,hE)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static{this.\u0275fac=function(n){return new(n||i)(g(Q),g(Lu),g(ae,8),g(nc),g(qa),g(U),g(Rn),g(ot,8),g(lr))}}static{this.\u0275cmp=de({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,r){n&2&&(Mi("id",r._config.id),Pe("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),Ie("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[Ge,He],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(y(0,"div",0)(1,"div",1),J(2,Fj,0,0,"ng-template",2),b()())},dependencies:[mr],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}}return i})(),fE="--mat-dialog-transition-duration";function mE(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?cr(i.substring(0,i.length-2)):i.endsWith("s")?cr(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var th=function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i}(th||{}),On=class{constructor(t,e,n){this._ref=t,this._containerInstance=n,this._afterOpened=new $,this._beforeClosed=new $,this._state=th.OPEN,this.disableClose=e.disableClose,this.id=t.id,t.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Ae(r=>r.state==="opened"),_t(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Ae(r=>r.state==="closed"),_t(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Vt(this.backdropClick(),this.keydownEvents().pipe(Ae(r=>r.keyCode===27&&!this.disableClose&&!Ft(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),pE(this,r.type==="keydown"?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Ae(e=>e.state==="closing"),_t(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=th.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=th.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function pE(i,t,e){return i._closeInteractionType=t,i.close(e)}var rc=new M("MatMdcDialogData"),Bj=new M("mat-mdc-dialog-default-options"),zj=new M("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=x(Dt);return()=>i.scrollStrategies.block()}});var Hj=0,Nn=(()=>{class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,n,r,o,s,a,c,l){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new $,this._afterOpenedAtThisLevel=new $,this.dialogConfigClass=nc,this.afterAllClosed=ji(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(It(void 0))),this._dialog=n.get(jb),this._dialogRefConstructor=On,this._dialogContainerType=Vj,this._dialogDataToken=rc}open(e,n){let r;n=k(k({},this._defaultOptions||new nc),n),n.id=n.id||`mat-mdc-dialog-${Hj++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,De(k({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:ao,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(s,a,c)=>(r=new this._dialogRefConstructor(s,n,c),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static{this.\u0275fac=function(n){return new(n||i)(_(Dt),_(be),_(Xi,8),_(Bj,8),_(zj),_(i,12),_(ys),_(ot,8))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var gE=(()=>{class i{constructor(e,n,r){this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=bE(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){pE(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(n){return new(n||i)(g(On,8),g(Q),g(Nn))}}static{this.\u0275dir=K({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,r){n&1&&z("click",function(s){return r._onButtonClick(s)}),n&2&&Pe("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Qe]})}}return i})(),Uj=(()=>{class i{constructor(e,n,r){this._dialogRef=e,this._elementRef=n,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=bE(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(n){return new(n||i)(g(On,8),g(Q),g(Nn))}}static{this.\u0275dir=K({type:i,standalone:!0})}}return i})();var ih=(()=>{class i extends Uj{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Qt(i)))(r||i)}})()}static{this.\u0275dir=K({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,r){n&2&&Ie("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[Ge]})}}return i})();function bE(i,t){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?t.find(n=>n.id===e.id):null}var vE=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({providers:[Nn],imports:[dE,br,Tn,Re,Re]})}}return i})();var $j=["trigger"],Wj=["panel"],qj=[[["mat-select-trigger"]],"*"],Gj=["mat-select-trigger","*"];function Yj(i,t){if(i&1&&(y(0,"span",4),q(1),b()),i&2){let e=T();D(),$t(e.placeholder)}}function Kj(i,t){i&1&&Be(0)}function Qj(i,t){if(i&1&&(y(0,"span",11),q(1),b()),i&2){let e=T(2);D(),$t(e.triggerValue)}}function Zj(i,t){if(i&1&&(y(0,"span",5),J(1,Kj,1,0)(2,Qj,2,1,"span",11),b()),i&2){let e=T();D(),Je(e.customTrigger?1:2)}}function Xj(i,t){if(i&1){let e=Te();y(0,"div",12,1),z("@transformPanel.done",function(r){j(e);let o=T();return V(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){j(e);let o=T();return V(o._handleKeydown(r))}),Be(2,1),b()}if(i&2){let e=T();sd("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),S("ngClass",e.panelClass)("@transformPanel","showing"),Pe("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var Jj={transformPanelWrap:Hr("transformPanelWrap",[Cn("* => void",Qw("@transformPanel",[Kw()],{optional:!0}))]),transformPanel:Hr("transformPanel",[Ur("void",Wt({opacity:0,transform:"scale(1, 0.8)"})),Cn("void => showing",ir("120ms cubic-bezier(0, 0, 0.2, 1)",Wt({opacity:1,transform:"scale(1, 1)"}))),Cn("* => void",ir("100ms linear",Wt({opacity:0})))])};var _E=0,yE=new M("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=x(Dt);return()=>i.scrollStrategies.reposition()}});function eV(i){return()=>i.scrollStrategies.reposition()}var tV=new M("MAT_SELECT_CONFIG"),iV={provide:yE,deps:[Dt],useFactory:eV},nV=new M("MatSelectTrigger"),Bb=class{constructor(t,e){this.source=t,this.value=e}},wE=(()=>{class i{_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let r=this.panel.nativeElement,o=_D(e,this.options,this.optionGroups),s=n._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=yD(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Bb(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Jo.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,n,r,o,s,a,c,l,d,u,f,h,m,p){this._viewportRuler=e,this._changeDetectorRef=n,this._elementRef=s,this._dir=a,this._parentFormField=d,this.ngControl=u,this._liveAnnouncer=m,this._defaultOptions=p,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(v,E)=>v===E,this._uid=`mat-select-${_E++}`,this._triggerAriaLabelledBy=null,this._destroy=new $,this.stateChanges=new $,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${_E++}`,this._panelDoneAnimatingStream=new $,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new $,this.optionSelectionChanges=ji(()=>{let v=this.options;return v?v.changes.pipe(It(v),ut(()=>Vt(...v.map(E=>E.onSelectionChange)))):this._initialized.pipe(ut(()=>this.optionSelectionChanges))}),this.openedChange=new Y,this._openedStream=this.openedChange.pipe(Ae(v=>v),se(()=>{})),this._closedStream=this.openedChange.pipe(Ae(v=>!v),se(()=>{})),this.selectionChange=new Y,this.valueChange=new Y,this._trackedModal=null,this._skipPredicate=v=>this.panelOpen?!1:v.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),p?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._errorStateTracker=new bs(o,u,l,c,this.stateChanges),this._scrollStrategyFactory=h,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}ngOnInit(){this._selectionModel=new qu(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Io(),Le(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Le(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Le(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(It(null),Le(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&nb(this._trackedModal,"aria-owns",n),sD(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;nb(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,r=n===40||n===38||n===37||n===39,o=n===13||n===32,s=this._keyManager;if(!s.isTyping()&&o&&!Ft(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let a=this.selected;s.onKeydown(e);let c=this.selected;c&&a!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,r=e.keyCode,o=r===40||r===38,s=n.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!s&&(r===13||r===32)&&n.activeItem&&!Ft(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!s&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let a=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(a?c.select():c.deselect())})}else{let a=n.activeItemIndex;n.onKeydown(e),this._multiple&&o&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==a&&n.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(_t(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return r.value!=null&&this._compareWith(r.value,e)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Ja?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Ou(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=Vt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Le(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Vt(...this.options.map(n=>n._stateChanges)).pipe(Le(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let r=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(r=>r.value):n=this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let n=0;n<this.options.length;n++)if(!this.options.get(n).disabled){e=n;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static{this.\u0275fac=function(n){return new(n||i)(g(pr),g(Ue),g(U),g(Hu),g(Q),g(ri,8),g(ya,8),g(xa,8),g(Za,8),g(En,10),Yi("tabindex"),g(yE),g(ju),g(tV,8))}}static{this.\u0275cmp=de({type:i,selectors:[["mat-select"]],contentQueries:function(n,r,o){if(n&1&&(Pt(o,nV,5),Pt(o,Uu,5),Pt(o,mb,5)),n&2){let s;ne(s=re())&&(r.customTrigger=s.first),ne(s=re())&&(r.options=s),ne(s=re())&&(r.optionGroups=s)}},viewQuery:function(n,r){if(n&1&&(_e($j,5),_e(Wj,5),_e(Rb,5)),n&2){let o;ne(o=re())&&(r.trigger=o.first),ne(o=re())&&(r.panel=o.first),ne(o=re())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,r){n&1&&z("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),n&2&&(Pe("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),Ie("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",fe],disableRipple:[2,"disableRipple","disableRipple",fe],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Qi(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",fe],placeholder:"placeholder",required:[2,"required","required",fe],multiple:[2,"multiple","multiple",fe],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",fe],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Qi],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[nt([{provide:Qa,useExisting:i},{provide:fb,useExisting:i}]),it,Qe,He],ngContentSelectors:Gj,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,r){if(n&1){let o=Te();bt(qj),y(0,"div",2,0),z("click",function(){return j(o),V(r.open())}),y(3,"div",3),J(4,Yj,2,1,"span",4)(5,Zj,3,1,"span",5),b(),y(6,"div",6)(7,"div",7),Br(),y(8,"svg",8),ie(9,"path",9),b()()()(),J(10,Xj,3,9,"ng-template",10),z("backdropClick",function(){return j(o),V(r.close())})("attach",function(){return j(o),V(r._onAttached())})("detach",function(){return j(o),V(r.close())})}if(n&2){let o=Si(1);D(3),Pe("id",r._valueId),D(),Je(r.empty?4:5),D(6),S("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[Ja,Rb,Iw],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[Jj.transformPanel]},changeDetection:0})}}return i})();var xE=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i})}static{this.\u0275inj=Z({providers:[iV],imports:[pi,br,pb,Re,Gu,Xa,pb,Re]})}}return i})();var oV=["dialogPopup"],sV=["hueSlider"],aV=["alphaSlider"];function cV(i,t){if(i&1&&ie(0,"div"),i&2){let e=T();sd("arrow arrow-",e.cpUsePosition,""),Xe("left",e.cpArrowPosition)("top",e.arrowTop,"px")}}function lV(i,t){if(i&1){let e=Te();y(0,"div",28),z("newValue",function(r){j(e);let o=T();return V(o.onColorChange(r))})("dragStart",function(){j(e);let r=T();return V(r.onDragStart("saturation-lightness"))})("dragEnd",function(){j(e);let r=T();return V(r.onDragEnd("saturation-lightness"))}),ie(1,"div",16),b()}if(i&2){let e=T();Xe("background-color",e.hueSliderColor),S("rgX",1)("rgY",1),D(),Xe("top",e.slider==null?null:e.slider.v,"px")("left",e.slider==null?null:e.slider.s,"px")}}function dV(i,t){i&1&&(Br(),y(0,"svg",29),ie(1,"path",30)(2,"path",31),b())}function uV(i,t){if(i&1){let e=Te();y(0,"button",32),z("click",function(r){j(e);let o=T();return V(o.onAddPresetColor(r,o.selectedColor))}),q(1),b()}if(i&2){let e=T();fi(e.cpAddColorButtonClass),S("disabled",e.cpPresetColors&&e.cpPresetColors.length>=e.cpMaxPresetColorsLength),D(),ct(" ",e.cpAddColorButtonText," ")}}function hV(i,t){i&1&&ie(0,"div",33)}function fV(i,t){if(i&1){let e=Te();y(0,"input",39),z("keyup.enter",function(r){j(e);let o=T(2);return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T(2);return V(o.onAlphaInput(r))}),b()}if(i&2){let e=T(2);S("rg",1)("value",e.cmykText==null?null:e.cmykText.a)}}function mV(i,t){i&1&&(y(0,"div"),q(1,"A"),b())}function pV(i,t){if(i&1){let e=Te();y(0,"div",34)(1,"div",35)(2,"input",36),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onCyanInput(r))}),b(),y(3,"input",36),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onMagentaInput(r))}),b(),y(4,"input",36),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onYellowInput(r))}),b(),y(5,"input",36),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onBlackInput(r))}),b(),J(6,fV,1,2,"input",37),b(),y(7,"div",35)(8,"div"),q(9,"C"),b(),y(10,"div"),q(11,"M"),b(),y(12,"div"),q(13,"Y"),b(),y(14,"div"),q(15,"K"),b(),J(16,mV,2,0,"div",38),b()()}if(i&2){let e=T();Xe("display",e.format!==3?"none":"block"),D(2),S("rg",100)("value",e.cmykText==null?null:e.cmykText.c),D(),S("rg",100)("value",e.cmykText==null?null:e.cmykText.m),D(),S("rg",100)("value",e.cmykText==null?null:e.cmykText.y),D(),S("rg",100)("value",e.cmykText==null?null:e.cmykText.k),D(),S("ngIf",e.cpAlphaChannel!=="disabled"),D(10),S("ngIf",e.cpAlphaChannel!=="disabled")}}function gV(i,t){if(i&1){let e=Te();y(0,"input",39),z("keyup.enter",function(r){j(e);let o=T(2);return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T(2);return V(o.onAlphaInput(r))}),b()}if(i&2){let e=T(2);S("rg",1)("value",e.hslaText==null?null:e.hslaText.a)}}function bV(i,t){i&1&&(y(0,"div"),q(1,"A"),b())}function vV(i,t){if(i&1){let e=Te();y(0,"div",40)(1,"div",35)(2,"input",41),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onHueInput(r))}),b(),y(3,"input",36),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onSaturationInput(r))}),b(),y(4,"input",36),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onLightnessInput(r))}),b(),J(5,gV,1,2,"input",37),b(),y(6,"div",35)(7,"div"),q(8,"H"),b(),y(9,"div"),q(10,"S"),b(),y(11,"div"),q(12,"L"),b(),J(13,bV,2,0,"div",38),b()()}if(i&2){let e=T();Xe("display",e.format!==2?"none":"block"),D(2),S("rg",360)("value",e.hslaText==null?null:e.hslaText.h),D(),S("rg",100)("value",e.hslaText==null?null:e.hslaText.s),D(),S("rg",100)("value",e.hslaText==null?null:e.hslaText.l),D(),S("ngIf",e.cpAlphaChannel!=="disabled"),D(8),S("ngIf",e.cpAlphaChannel!=="disabled")}}function _V(i,t){if(i&1){let e=Te();y(0,"input",39),z("keyup.enter",function(r){j(e);let o=T(2);return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T(2);return V(o.onAlphaInput(r))}),b()}if(i&2){let e=T(2);S("rg",1)("value",e.rgbaText==null?null:e.rgbaText.a)}}function yV(i,t){i&1&&(y(0,"div"),q(1,"A"),b())}function wV(i,t){if(i&1){let e=Te();y(0,"div",42)(1,"div",35)(2,"input",43),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onRedInput(r))}),b(),y(3,"input",43),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onGreenInput(r))}),b(),y(4,"input",43),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onBlueInput(r))}),b(),J(5,_V,1,2,"input",37),b(),y(6,"div",35)(7,"div"),q(8,"R"),b(),y(9,"div"),q(10,"G"),b(),y(11,"div"),q(12,"B"),b(),J(13,yV,2,0,"div",38),b()()}if(i&2){let e=T();Xe("display",e.format!==1?"none":"block"),D(2),S("rg",255)("value",e.rgbaText==null?null:e.rgbaText.r),D(),S("rg",255)("value",e.rgbaText==null?null:e.rgbaText.g),D(),S("rg",255)("value",e.rgbaText==null?null:e.rgbaText.b),D(),S("ngIf",e.cpAlphaChannel!=="disabled"),D(8),S("ngIf",e.cpAlphaChannel!=="disabled")}}function xV(i,t){if(i&1){let e=Te();y(0,"input",39),z("keyup.enter",function(r){j(e);let o=T(2);return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T(2);return V(o.onAlphaInput(r))}),b()}if(i&2){let e=T(2);S("rg",1)("value",e.hexAlpha)}}function CV(i,t){i&1&&(y(0,"div"),q(1,"A"),b())}function DV(i,t){if(i&1){let e=Te();y(0,"div",44)(1,"div",35)(2,"input",45),z("blur",function(){j(e);let r=T();return V(r.onHexInput(null))})("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onHexInput(r))}),b(),J(3,xV,1,2,"input",37),b(),y(4,"div",35)(5,"div"),q(6,"Hex"),b(),J(7,CV,2,0,"div",38),b()()}if(i&2){let e=T();Xe("display",e.format!==0?"none":"block"),Ie("hex-alpha",e.cpAlphaChannel==="forced"),D(2),S("value",e.hexText),D(),S("ngIf",e.cpAlphaChannel==="forced"),D(4),S("ngIf",e.cpAlphaChannel==="forced")}}function EV(i,t){if(i&1){let e=Te();y(0,"input",39),z("keyup.enter",function(r){j(e);let o=T(2);return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T(2);return V(o.onAlphaInput(r))}),b()}if(i&2){let e=T(2);S("rg",1)("value",e.hslaText==null?null:e.hslaText.a)}}function IV(i,t){if(i&1){let e=Te();y(0,"div",46)(1,"div",35)(2,"input",36),z("keyup.enter",function(r){j(e);let o=T();return V(o.onAcceptColor(r))})("newValue",function(r){j(e);let o=T();return V(o.onValueInput(r))}),b(),J(3,EV,1,2,"input",37),b(),y(4,"div",35)(5,"div"),q(6,"V"),b(),y(7,"div"),q(8,"A"),b()()()}if(i&2){let e=T();D(2),S("rg",100)("value",e.hslaText==null?null:e.hslaText.l),D(),S("ngIf",e.cpAlphaChannel!=="disabled")}}function kV(i,t){if(i&1){let e=Te();y(0,"div",47)(1,"span",48),z("click",function(){j(e);let r=T();return V(r.onFormatToggle(-1))}),b(),y(2,"span",48),z("click",function(){j(e);let r=T();return V(r.onFormatToggle(1))}),b()()}}function MV(i,t){if(i&1){let e=Te();y(0,"span",55),z("click",function(r){j(e);let o=T().$implicit,s=T(3);return V(s.onRemovePresetColor(r,o))}),b()}if(i&2){let e=T(4);fi(e.cpRemoveColorButtonClass)}}function SV(i,t){if(i&1){let e=Te();y(0,"div",53),z("click",function(){let r=j(e).$implicit,o=T(3);return V(o.setColorFromString(r))}),J(1,MV,1,3,"span",54),b()}if(i&2){let e=t.$implicit,n=T(3);Xe("background-color",e),D(),S("ngIf",n.cpAddColorButton)}}function AV(i,t){if(i&1&&(y(0,"div"),J(1,SV,2,3,"div",52),b()),i&2){let e=T(2);fi(e.cpPresetColorsClass),D(),S("ngForOf",e.cpPresetColors)}}function TV(i,t){if(i&1&&(y(0,"div"),q(1),b()),i&2){let e=T(2);fi(e.cpPresetEmptyMessageClass),D(),$t(e.cpPresetEmptyMessage)}}function RV(i,t){if(i&1&&(y(0,"div",49),ie(1,"hr"),y(2,"div",50),q(3),b(),J(4,AV,2,4,"div",51)(5,TV,2,4,"div",51),b()),i&2){let e=T();D(3),$t(e.cpPresetLabel),D(),S("ngIf",e.cpPresetColors==null?null:e.cpPresetColors.length),D(),S("ngIf",!(e.cpPresetColors!=null&&e.cpPresetColors.length)&&e.cpAddColorButton)}}function OV(i,t){if(i&1){let e=Te();y(0,"button",58),z("click",function(r){j(e);let o=T(2);return V(o.onCancelColor(r))}),q(1),b()}if(i&2){let e=T(2);fi(e.cpCancelButtonClass),D(),$t(e.cpCancelButtonText)}}function NV(i,t){if(i&1){let e=Te();y(0,"button",58),z("click",function(r){j(e);let o=T(2);return V(o.onAcceptColor(r))}),q(1),b()}if(i&2){let e=T(2);fi(e.cpOKButtonClass),D(),$t(e.cpOKButtonText)}}function PV(i,t){if(i&1&&(y(0,"div",56),J(1,OV,2,4,"button",57)(2,NV,2,4,"button",57),b()),i&2){let e=T();D(),S("ngIf",e.cpCancelButton),D(),S("ngIf",e.cpOKButton)}}function FV(i,t){i&1&&Hm(0)}function LV(i,t){if(i&1&&(y(0,"div",59),J(1,FV,1,0,"ng-container",60),b()),i&2){let e=T();D(),S("ngTemplateOutlet",e.cpExtraTemplate)}}var Lt=function(i){return i[i.HEX=0]="HEX",i[i.RGBA=1]="RGBA",i[i.HSLA=2]="HSLA",i[i.CMYK=3]="CMYK",i}(Lt||{}),Pi=class{r;g;b;a;constructor(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}},Cs=class{h;s;v;a;constructor(t,e,n,r){this.h=t,this.s=e,this.v=n,this.a=r}},Pn=class{h;s;l;a;constructor(t,e,n,r){this.h=t,this.s=e,this.l=n,this.a=r}},co=class{c;m;y;k;a;constructor(t,e,n,r,o=1){this.c=t,this.m=e,this.y=n,this.k=r,this.a=o}};function jV(i,t){let e="right",n="bottom",{height:r,width:o}=i,{top:s,left:a}=t,c=s+t.height,l=a+t.width,d=s-r<0,u=c+r>(window.innerHeight||document.documentElement.clientHeight),f=a-o<0,h=l+o>(window.innerWidth||document.documentElement.clientWidth),m=d&&u&&f&&h;return u&&(n="top"),d&&(n="bottom"),f&&(e="right"),h&&(e="left"),m?["left","right","top","bottom"].reduce((v,E)=>i[v]>i[E]?v:E):f&&h?d?"bottom":u||s>c?"top":"bottom":d&&u?f?"right":h||a>l?"left":"right":`${n}-${e}`}function VV(){let i="";typeof navigator<"u"&&(i=navigator.userAgent.toLowerCase());let t=i.indexOf("msie ");return t>0?parseInt(i.substring(t+5,i.indexOf(".",t)),10):!1}var BV=(()=>{class i{rg;text;newValue=new Y;inputChange(e){let n=e.target.value;if(this.rg===void 0)this.newValue.emit(n);else{let r=parseFloat(n);this.newValue.emit({v:r,rg:this.rg})}}static \u0275fac=function(n){return new(n||i)};static \u0275dir=K({type:i,selectors:[["","text",""]],hostBindings:function(n,r){n&1&&z("input",function(s){return r.inputChange(s)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}})}return i})(),zV=(()=>{class i{elRef;listenerMove;listenerStop;rgX;rgY;slider;dragEnd=new Y;dragStart=new Y;newValue=new Y;mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.listenerMove=n=>this.move(n),this.listenerStop=()=>this.stop()}move(e){e.preventDefault(),this.setCursor(e)}start(e){this.setCursor(e),e.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(e){let n=this.elRef.nativeElement.getBoundingClientRect();return(e.pageX!==void 0?e.pageX:e.touches[0].pageX)-n.left-window.pageXOffset}getY(e){let n=this.elRef.nativeElement.getBoundingClientRect();return(e.pageY!==void 0?e.pageY:e.touches[0].pageY)-n.top-window.pageYOffset}setCursor(e){let n=this.elRef.nativeElement.offsetWidth,r=this.elRef.nativeElement.offsetHeight,o=Math.max(0,Math.min(this.getX(e),n)),s=Math.max(0,Math.min(this.getY(e),r));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:o/n,v:1-s/r,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:s/r,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:o/n,rgX:this.rgX})}static \u0275fac=function(n){return new(n||i)(g(Q))};static \u0275dir=K({type:i,selectors:[["","slider",""]],hostBindings:function(n,r){n&1&&z("mousedown",function(s){return r.mouseDown(s)})("touchstart",function(s){return r.touchStart(s)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}})}return i})(),rh=class{h;s;v;a;constructor(t,e,n,r){this.h=t,this.s=e,this.v=n,this.a=r}},oh=class{h;s;v;a;constructor(t,e,n,r){this.h=t,this.s=e,this.v=n,this.a=r}},zb=(()=>{class i{active=null;setActive(e){this.active&&this.active!==e&&this.active.cpDialogDisplay!=="inline"&&this.active.closeDialog(),this.active=e}hsva2hsla(e){let n=e.h,r=e.s,o=e.v,s=e.a;if(o===0)return new Pn(n,0,0,s);if(r===0&&o===1)return new Pn(n,1,1,s);{let a=o*(2-r)/2;return new Pn(n,o*r/(1-Math.abs(2*a-1)),a,s)}}hsla2hsva(e){let n=Math.min(e.h,1),r=Math.min(e.s,1),o=Math.min(e.l,1),s=Math.min(e.a,1);if(o===0)return new Cs(n,0,0,s);{let a=o+r*(1-Math.abs(2*o-1))/2;return new Cs(n,2*(a-o)/a,a,s)}}hsvaToRgba(e){let n,r,o,s=e.h,a=e.s,c=e.v,l=e.a,d=Math.floor(s*6),u=s*6-d,f=c*(1-a),h=c*(1-u*a),m=c*(1-(1-u)*a);switch(d%6){case 0:n=c,r=m,o=f;break;case 1:n=h,r=c,o=f;break;case 2:n=f,r=c,o=m;break;case 3:n=f,r=h,o=c;break;case 4:n=m,r=f,o=c;break;case 5:n=c,r=f,o=h;break;default:n=0,r=0,o=0}return new Pi(n,r,o,l)}cmykToRgb(e){let n=(1-e.c)*(1-e.k),r=(1-e.m)*(1-e.k),o=(1-e.y)*(1-e.k);return new Pi(n,r,o,e.a)}rgbaToCmyk(e){let n=1-Math.max(e.r,e.g,e.b);if(n===1)return new co(0,0,0,1,e.a);{let r=(1-e.r-n)/(1-n),o=(1-e.g-n)/(1-n),s=(1-e.b-n)/(1-n);return new co(r,o,s,n,e.a)}}rgbaToHsva(e){let n,r,o=Math.min(e.r,1),s=Math.min(e.g,1),a=Math.min(e.b,1),c=Math.min(e.a,1),l=Math.max(o,s,a),d=Math.min(o,s,a),u=l,f=l-d;if(r=l===0?0:f/l,l===d)n=0;else{switch(l){case o:n=(s-a)/f+(s<a?6:0);break;case s:n=(a-o)/f+2;break;case a:n=(o-s)/f+4;break;default:n=0}n/=6}return new Cs(n,r,u,c)}rgbaToHex(e,n){let r="#"+(16777216|e.r<<16|e.g<<8|e.b).toString(16).substr(1);return n&&(r+=(256|Math.round(e.a*255)).toString(16).substr(1)),r}normalizeCMYK(e){return new co(e.c/100,e.m/100,e.y/100,e.k/100,e.a)}denormalizeCMYK(e){return new co(Math.floor(e.c*100),Math.floor(e.m*100),Math.floor(e.y*100),Math.floor(e.k*100),e.a)}denormalizeRGBA(e){return new Pi(Math.round(e.r*255),Math.round(e.g*255),Math.round(e.b*255),e.a)}stringToHsva(e="",n=!1){let r=null;e=(e||"").toLowerCase();let o=[{re:/(rgb)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*%?,\s*(\d{1,3})\s*%?(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(s){return new Pi(parseInt(s[2],10)/255,parseInt(s[3],10)/255,parseInt(s[4],10)/255,isNaN(parseFloat(s[5]))?1:parseFloat(s[5]))}},{re:/(hsl)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(s){return new Pn(parseInt(s[2],10)/360,parseInt(s[3],10)/100,parseInt(s[4],10)/100,isNaN(parseFloat(s[5]))?1:parseFloat(s[5]))}}];n?o.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})?$/,parse:function(s){return new Pi(parseInt(s[1],16)/255,parseInt(s[2],16)/255,parseInt(s[3],16)/255,parseInt(s[4]||"FF",16)/255)}}):o.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,parse:function(s){return new Pi(parseInt(s[1],16)/255,parseInt(s[2],16)/255,parseInt(s[3],16)/255,1)}}),o.push({re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,parse:function(s){return new Pi(parseInt(s[1]+s[1],16)/255,parseInt(s[2]+s[2],16)/255,parseInt(s[3]+s[3],16)/255,1)}});for(let s in o)if(o.hasOwnProperty(s)){let a=o[s],c=a.re.exec(e),l=c&&a.parse(c);if(l)return l instanceof Pi?r=this.rgbaToHsva(l):l instanceof Pn&&(r=this.hsla2hsva(l)),r}return r}outputFormat(e,n,r){switch(n==="auto"&&(n=e.a<1?"rgba":"hex"),n){case"hsla":let o=this.hsva2hsla(e),s=new Pn(Math.round(o.h*360),Math.round(o.s*100),Math.round(o.l*100),Math.round(o.a*100)/100);return e.a<1||r==="always"?"hsla("+s.h+","+s.s+"%,"+s.l+"%,"+s.a+")":"hsl("+s.h+","+s.s+"%,"+s.l+"%)";case"rgba":let a=this.denormalizeRGBA(this.hsvaToRgba(e));return e.a<1||r==="always"?"rgba("+a.r+","+a.g+","+a.b+","+Math.round(a.a*100)/100+")":"rgb("+a.r+","+a.g+","+a.b+")";default:let c=r==="always"||r==="forced";return this.rgbaToHex(this.denormalizeRGBA(this.hsvaToRgba(e)),c)}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=I({token:i,factory:i.\u0275fac})}return i})(),CE=typeof window<"u"&&"ontouchstart"in window,HV=(()=>{class i{ngZone;elRef;cdRef;document;platformId;service;isIE10=!1;cmyk;hsva;width;height;cmykColor;outputColor;initialColor;fallbackColor;listenerResize;listenerMouseDown;directiveInstance;sliderH;sliderDimMax;directiveElementRef;dialogArrowSize=10;dialogArrowOffset=15;dialogInputFields=[Lt.HEX,Lt.RGBA,Lt.HSLA,Lt.CMYK];useRootViewContainer=!1;show;hidden;top;left;position;format;slider;hexText;hexAlpha;cmykText;hslaText;rgbaText;arrowTop;selectedColor;hueSliderColor;alphaSliderColor;cpWidth;cpHeight;cpColorMode;cpCmykEnabled;cpAlphaChannel;cpOutputFormat;cpDisableInput;cpDialogDisplay;cpIgnoredElements;cpSaveClickOutside;cpCloseClickOutside;cpPosition;cpUsePosition;cpPositionOffset;cpOKButton;cpOKButtonText;cpOKButtonClass;cpCancelButton;cpCancelButtonText;cpCancelButtonClass;cpEyeDropper;eyeDropperSupported;cpPresetLabel;cpPresetColors;cpPresetColorsClass;cpMaxPresetColorsLength;cpPresetEmptyMessage;cpPresetEmptyMessageClass;cpAddColorButton;cpAddColorButtonText;cpAddColorButtonClass;cpRemoveColorButtonClass;cpArrowPosition;cpTriggerElement;cpExtraTemplate;dialogElement;hueSlider;alphaSlider;handleEsc(e){this.show&&this.cpDialogDisplay==="popup"&&this.onCancelColor(e)}handleEnter(e){this.show&&this.cpDialogDisplay==="popup"&&this.onAcceptColor(e)}constructor(e,n,r,o,s,a){this.ngZone=e,this.elRef=n,this.cdRef=r,this.document=o,this.platformId=s,this.service=a,this.eyeDropperSupported=Js(this.platformId)&&"EyeDropper"in this.document.defaultView}ngOnInit(){this.slider=new rh(0,0,0,0);let e=this.hueSlider.nativeElement.offsetWidth||140,n=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new oh(e,this.cpWidth,130,n),this.cpCmykEnabled?this.format=Lt.CMYK:this.cpOutputFormat==="rgba"?this.format=Lt.RGBA:this.cpOutputFormat==="hsla"?this.format=Lt.HSLA:this.format=Lt.HEX,this.listenerMouseDown=r=>{this.onMouseDown(r)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){if(this.cpWidth!==230||this.cpDialogDisplay==="inline"){let e=this.hueSlider.nativeElement.offsetWidth||140,n=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new oh(e,this.cpWidth,130,n),this.updateColorPicker(!1),this.cdRef.detectChanges()}}openDialog(e,n=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(e),this.setColorFromString(e,n),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(e,n,r,o,s,a,c,l,d,u,f,h,m,p,v,E,A,C,N,L,B,W,ee,he,ze,H,Ye,Ve,st,St,w,O,P,oe,je,Ze,Ce,G){this.setInitialColor(r),this.setColorMode(l),this.isIE10=VV()===10,this.directiveInstance=e,this.directiveElementRef=n,this.cpDisableInput=h,this.cpCmykEnabled=d,this.cpAlphaChannel=u,this.cpOutputFormat=f,this.cpDialogDisplay=a,this.cpIgnoredElements=m,this.cpSaveClickOutside=p,this.cpCloseClickOutside=v,this.useRootViewContainer=E,this.width=this.cpWidth=parseInt(o,10),this.height=this.cpHeight=parseInt(s,10),this.cpPosition=A,this.cpPositionOffset=parseInt(C,10),this.cpOKButton=H,this.cpOKButtonText=Ve,this.cpOKButtonClass=Ye,this.cpCancelButton=st,this.cpCancelButtonText=w,this.cpCancelButtonClass=St,this.cpEyeDropper=Ze,this.fallbackColor=c||"#fff",this.setPresetConfig(L,B),this.cpPresetColorsClass=W,this.cpMaxPresetColorsLength=ee,this.cpPresetEmptyMessage=he,this.cpPresetEmptyMessageClass=ze,this.cpAddColorButton=O,this.cpAddColorButtonText=oe,this.cpAddColorButtonClass=P,this.cpRemoveColorButtonClass=je,this.cpTriggerElement=Ce,this.cpExtraTemplate=G,N||(this.dialogArrowOffset=0),a==="inline"&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),f==="hex"&&u!=="always"&&u!=="forced"&&(this.cpAlphaChannel="disabled")}setColorMode(e){switch(e.toString().toUpperCase()){case"1":case"C":case"COLOR":this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3;break;default:this.cpColorMode=1}}setInitialColor(e){this.initialColor=e}setPresetConfig(e,n){this.cpPresetLabel=e,this.cpPresetColors=n}setColorFromString(e,n=!0,r=!0){let o;this.cpAlphaChannel==="always"||this.cpAlphaChannel==="forced"?(o=this.service.stringToHsva(e,!0),!o&&!this.hsva&&(o=this.service.stringToHsva(e,!1))):o=this.service.stringToHsva(e,!1),!o&&!this.hsva&&(o=this.service.stringToHsva(this.fallbackColor,!1)),o&&(this.hsva=o,this.sliderH=this.hsva.h,this.cpOutputFormat==="hex"&&this.cpAlphaChannel==="disabled"&&(this.hsva.a=1),this.updateColorPicker(n,r))}onResize(){this.position==="fixed"?this.setDialogPosition():this.cpDialogDisplay!=="inline"&&this.closeColorPicker()}onDragEnd(e){this.directiveInstance.sliderDragEnd({slider:e,color:this.outputColor})}onDragStart(e){this.directiveInstance.sliderDragStart({slider:e,color:this.outputColor})}onMouseDown(e){this.show&&!this.isIE10&&this.cpDialogDisplay==="popup"&&e.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,e.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,e.target)&&this.cpIgnoredElements.filter(n=>n===e.target).length===0&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(e){e.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),this.cpDialogDisplay==="popup"&&this.closeColorPicker()}onCancelColor(e){this.hsva=null,e.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),this.cpDialogDisplay==="popup"&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){if(!this.eyeDropperSupported)return;new window.EyeDropper().open().then(n=>{this.setColorFromString(n.sRGBHex,!0)})}onFormatToggle(e){let n=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),r=((this.dialogInputFields.indexOf(this.format)+e)%n+n)%n;this.format=this.dialogInputFields[r]}onColorChange(e){this.hsva.s=e.s/e.rgX,this.hsva.v=e.v/e.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(e){this.hsva.h=e.v/e.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(e){this.hsva.v=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(e){this.hsva.a=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(e){if(e===null)this.updateColorPicker();else{e&&e[0]!=="#"&&(e="#"+e);let n=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;this.cpAlphaChannel==="always"&&(n=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);let r=n.test(e);r&&(e.length<5&&(e="#"+e.substring(1).split("").map(o=>o+o).join("")),this.cpAlphaChannel==="forced"&&(e+=Math.round(this.hsva.a*255).toString(16)),this.setColorFromString(e,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:r,value:e,color:this.outputColor})}}onRedInput(e){let n=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.r=e.v/e.rg,this.hsva=this.service.rgbaToHsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:r,value:n.r,color:this.outputColor})}onBlueInput(e){let n=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.b=e.v/e.rg,this.hsva=this.service.rgbaToHsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:r,value:n.b,color:this.outputColor})}onGreenInput(e){let n=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.g=e.v/e.rg,this.hsva=this.service.rgbaToHsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:r,value:n.g,color:this.outputColor})}onHueInput(e){let n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(this.hsva.h=e.v/e.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:n,value:this.hsva.h,color:this.outputColor})}onValueInput(e){let n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(this.hsva.v=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:n,value:this.hsva.v,color:this.outputColor})}onAlphaInput(e){let n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(this.hsva.a=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:n,value:this.hsva.a,color:this.outputColor})}onLightnessInput(e){let n=this.service.hsva2hsla(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.l=e.v/e.rg,this.hsva=this.service.hsla2hsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:r,value:n.l,color:this.outputColor})}onSaturationInput(e){let n=this.service.hsva2hsla(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.s=e.v/e.rg,this.hsva=this.service.hsla2hsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:r,value:n.s,color:this.outputColor})}onCyanInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.c=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.m=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.y=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.k=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(e,n){e.stopPropagation(),this.cpPresetColors.filter(r=>r===n).length||(this.cpPresetColors=this.cpPresetColors.concat(n),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(e,n){e.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(r=>r!==n),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{CE?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(CE?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(e=!0,n=!0,r=!1){if(this.sliderDimMax){this.cpColorMode===2&&(this.hsva.s=0);let o,s,a,c=this.outputColor;if(s=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(r?(a=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(a)):(a=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(a))),a=this.service.denormalizeRGBA(a),this.sliderH=this.hsva.h):a=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),o=this.service.denormalizeRGBA(this.service.hsvaToRgba(new Cs(this.sliderH||this.hsva.h,1,1,1))),n){this.hslaText=new Pn(Math.round(s.h*360),Math.round(s.s*100),Math.round(s.l*100),Math.round(s.a*100)/100),this.rgbaText=new Pi(a.r,a.g,a.b,Math.round(a.a*100)/100),this.cpCmykEnabled&&(this.cmykText=new co(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(this.cmyk.a*100)/100));let l=this.cpAlphaChannel==="always";this.hexText=this.service.rgbaToHex(a,l),this.hexAlpha=this.rgbaText.a}if(this.cpOutputFormat==="auto"&&this.format!==Lt.RGBA&&this.format!==Lt.CMYK&&this.format!==Lt.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?Lt.RGBA:Lt.HEX),this.hueSliderColor="rgb("+o.r+","+o.g+","+o.b+")",this.alphaSliderColor="rgb("+a.r+","+a.g+","+a.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==Lt.CMYK)this.cmykColor="";else if(this.cpAlphaChannel==="always"||this.cpAlphaChannel==="enabled"||this.cpAlphaChannel==="forced"){let l=Math.round(this.cmyk.a*100)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${l})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new rh((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),e&&c!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if(this.cpDialogDisplay==="inline")this.position="relative";else{let e="static",n="",r,o=null,s=null,a=this.directiveElementRef.nativeElement.parentNode,c=this.dialogElement.nativeElement.offsetHeight;for(;a!==null&&a.tagName!=="HTML";){if(r=window.getComputedStyle(a),e=r.getPropertyValue("position"),n=r.getPropertyValue("transform"),e!=="static"&&o===null&&(o=a),n&&n!=="none"&&s===null&&(s=a),e==="fixed"){o=s;break}a=a.parentNode}let l=this.createDialogBox(this.directiveElementRef.nativeElement,e!=="fixed");if(this.useRootViewContainer||e==="fixed"&&(!o||o instanceof HTMLUnknownElement))this.top=l.top,this.left=l.left;else{o===null&&(o=a);let E=this.createDialogBox(o,e!=="fixed");this.top=l.top-E.top,this.left=l.left-E.left}e==="fixed"&&(this.position="fixed");let d=this.cpPosition,u=this.dialogElement.nativeElement.getBoundingClientRect();if(this.cpPosition==="auto"){let E=this.cpTriggerElement.nativeElement.getBoundingClientRect();d=jV(u,E)}switch(this.arrowTop=d==="top"?c-1:void 0,this.cpArrowPosition=void 0,d){case"top":this.top-=c+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*l.width-this.dialogArrowOffset;break;case"bottom":this.top+=l.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*l.width-this.dialogArrowOffset;break;case"top-left":case"left-top":this.top-=c-l.height+l.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"top-right":case"right-top":this.top-=c-l.height+l.height*this.cpPositionOffset/100,this.left+=l.width+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"left":case"bottom-left":case"left-bottom":this.top+=l.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2;break;case"right":case"bottom-right":case"right-bottom":default:this.top+=l.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=l.width+this.dialogArrowSize-2;break}let f=window.innerHeight,h=window.innerWidth,m=this.elRef.nativeElement.getBoundingClientRect();this.top+u.height>f&&(this.top=f-u.height,this.cpArrowPosition=m.x/2-20),this.left+u.width>h&&(this.left=h-u.width,this.cpArrowPosition=m.x/2-20),this.cpUsePosition=d}}isDescendant(e,n){let r=n.parentNode;for(;r!==null;){if(r===e)return!0;r=r.parentNode}return!1}createDialogBox(e,n){let{top:r,left:o}=e.getBoundingClientRect();return{top:r+(n?window.pageYOffset:0),left:o+(n?window.pageXOffset:0),width:e.offsetWidth,height:e.offsetHeight}}static \u0275fac=function(n){return new(n||i)(g(U),g(Q),g(Ue),g(ae),g(Ut),g(zb))};static \u0275cmp=de({type:i,selectors:[["color-picker"]],viewQuery:function(n,r){if(n&1&&(_e(oV,7),_e(sV,7),_e(aV,7)),n&2){let o;ne(o=re())&&(r.dialogElement=o.first),ne(o=re())&&(r.hueSlider=o.first),ne(o=re())&&(r.alphaSlider=o.first)}},hostBindings:function(n,r){n&1&&z("keyup.esc",function(s){return r.handleEsc(s)},!1,Dm)("keyup.enter",function(s){return r.handleEnter(s)},!1,Dm)},decls:30,vars:51,consts:[["dialogPopup",""],["hueSlider",""],["valueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],[3,"left","class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"cursor"],[1,"value",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"alpha",3,"newValue","dragStart","dragEnd","slider","rgX"],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"newValue","dragStart","dragEnd","slider","rgX","rgY"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"click","disabled"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"keyup.enter","newValue","text","rg","value"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"keyup.enter","newValue","text","rg","value"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"keyup.enter","newValue","text","rg","value"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"keyup.enter","newValue","text","rg","value"],[1,"hex-text"],[3,"blur","keyup.enter","newValue","text","value"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(n,r){if(n&1){let o=Te();y(0,"div",4,0),z("click",function(a){return j(o),V(a.stopPropagation())}),J(2,cV,1,7,"div",5)(3,lV,2,8,"div",6),y(4,"div",7)(5,"div",8),ie(6,"div",9),y(7,"div",10),z("click",function(){return j(o),V(r.eyeDropperSupported&&r.cpEyeDropper&&r.onEyeDropper())}),J(8,dV,3,0,"svg",11),b(),J(9,uV,2,5,"button",12),b(),y(10,"div",13),J(11,hV,1,0,"div",14),y(12,"div",15,1),z("newValue",function(a){return j(o),V(r.onHueChange(a))})("dragStart",function(){return j(o),V(r.onDragStart("hue"))})("dragEnd",function(){return j(o),V(r.onDragEnd("hue"))}),ie(14,"div",16),b(),y(15,"div",17,2),z("newValue",function(a){return j(o),V(r.onValueChange(a))})("dragStart",function(){return j(o),V(r.onDragStart("value"))})("dragEnd",function(){return j(o),V(r.onDragEnd("value"))}),ie(17,"div",16),b(),y(18,"div",18,3),z("newValue",function(a){return j(o),V(r.onAlphaChange(a))})("dragStart",function(){return j(o),V(r.onDragStart("alpha"))})("dragEnd",function(){return j(o),V(r.onDragEnd("alpha"))}),ie(20,"div",16),b()()(),J(21,pV,17,12,"div",19)(22,vV,14,10,"div",20)(23,wV,14,10,"div",21)(24,DV,8,7,"div",22)(25,IV,9,3,"div",23)(26,kV,3,0,"div",24)(27,RV,6,3,"div",25)(28,PV,3,2,"div",26)(29,LV,2,1,"div",27),b()}n&2&&(Xe("display",r.show?"block":"none")("visibility",r.hidden?"hidden":"visible")("top",r.top,"px")("left",r.left,"px")("position",r.position)("height",r.cpHeight,"px")("width",r.cpWidth,"px"),Ie("open",r.show),D(2),S("ngIf",r.cpDialogDisplay==="popup"),D(),S("ngIf",(r.cpColorMode||1)===1),D(4),Xe("background-color",r.selectedColor)("cursor",r.eyeDropperSupported&&r.cpEyeDropper?"pointer":null),D(),S("ngIf",r.eyeDropperSupported&&r.cpEyeDropper),D(),S("ngIf",r.cpAddColorButton),D(2),S("ngIf",r.cpAlphaChannel==="disabled"),D(),Xe("display",(r.cpColorMode||1)===1?"block":"none"),S("rgX",1),D(2),Xe("left",r.slider==null?null:r.slider.h,"px"),D(),Xe("display",(r.cpColorMode||1)===2?"block":"none"),S("rgX",1),D(2),Xe("right",r.slider==null?null:r.slider.v,"px"),D(),Xe("display",r.cpAlphaChannel==="disabled"?"none":"block")("background-color",r.alphaSliderColor),S("rgX",1),D(2),Xe("left",r.slider==null?null:r.slider.a,"px"),D(),S("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),D(),S("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),D(),S("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),D(),S("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),D(),S("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===2),D(),S("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),D(),S("ngIf",(r.cpPresetColors==null?null:r.cpPresetColors.length)||r.cpAddColorButton),D(),S("ngIf",r.cpOKButton||r.cpCancelButton),D(),S("ngIf",r.cpExtraTemplate))},dependencies:[Ai,wd,Xs,BV,zV],styles:[`.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;user-select:none;background-color:#fff}.color-picker *{box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od5rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuzaHsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+7669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTjxymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion}
13
+ `],encapsulation:2})}return i})(),UV=!1,DE=(()=>{class i{injector;cfr;appRef;vcRef;elRef;_service;dialog;dialogCreated=!1;ignoreChanges=!1;cmpRef;viewAttachedToAppRef=!1;colorPicker;cpWidth="230px";cpHeight="auto";cpToggle=!1;cpDisabled=!1;cpIgnoredElements=[];cpFallbackColor="";cpColorMode="color";cpCmykEnabled=!1;cpOutputFormat="auto";cpAlphaChannel="enabled";cpDisableInput=!1;cpDialogDisplay="popup";cpSaveClickOutside=!0;cpCloseClickOutside=!0;cpUseRootViewContainer=!1;cpPosition="auto";cpPositionOffset="0%";cpPositionRelativeToArrow=!1;cpOKButton=!1;cpOKButtonText="OK";cpOKButtonClass="cp-ok-button-class";cpCancelButton=!1;cpCancelButtonText="Cancel";cpCancelButtonClass="cp-cancel-button-class";cpEyeDropper=!1;cpPresetLabel="Preset colors";cpPresetColors;cpPresetColorsClass="cp-preset-colors-class";cpMaxPresetColorsLength=6;cpPresetEmptyMessage="No colors added";cpPresetEmptyMessageClass="preset-empty-message";cpAddColorButton=!1;cpAddColorButtonText="Add color";cpAddColorButtonClass="cp-add-color-button-class";cpRemoveColorButtonClass="cp-remove-color-button-class";cpArrowPosition=0;cpExtraTemplate;cpInputChange=new Y(!0);cpToggleChange=new Y(!0);cpSliderChange=new Y(!0);cpSliderDragEnd=new Y(!0);cpSliderDragStart=new Y(!0);colorPickerOpen=new Y(!0);colorPickerClose=new Y(!0);colorPickerCancel=new Y(!0);colorPickerSelect=new Y(!0);colorPickerChange=new Y(!1);cpCmykColorChange=new Y(!0);cpPresetColorsChange=new Y(!0);handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(e){this.inputChange(e)}constructor(e,n,r,o,s,a){this.injector=e,this.cfr=n,this.appRef=r,this.vcRef=o,this.elRef=s,this._service=a}ngOnDestroy(){this.cmpRef!=null&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(e){e.cpToggle&&!this.cpDisabled&&(e.cpToggle.currentValue?this.openDialog():e.cpToggle.currentValue||this.closeDialog()),e.colorPicker&&(this.dialog&&!this.ignoreChanges&&(this.cpDialogDisplay==="inline"&&this.dialog.setInitialColor(e.colorPicker.currentValue),this.dialog.setColorFromString(e.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(e.cpPresetLabel||e.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let e=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"){let r=this.appRef.componentTypes[0],o=this.injector.get(r,be.NULL);o!==be.NULL?(e=o.vcRef||o.viewContainerRef||this.vcRef,UV&&e===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}let n=this.cfr.resolveComponentFactory(HV);if(this.viewAttachedToAppRef)this.cmpRef=n.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{let r=be.create({providers:[],parent:e.injector});this.cmpRef=e.createComponent(n,0,r,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==e&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&this.cpDialogDisplay==="popup"&&this.dialog.closeDialog()}cmykChanged(e){this.cpCmykColorChange.emit(e)}stateChanged(e){this.cpToggleChange.emit(e),e?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(e,n=!0){this.ignoreChanges=n,this.colorPickerChange.emit(e)}colorSelected(e){this.colorPickerSelect.emit(e)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){let e=this.elRef.nativeElement,n=this.cpIgnoredElements.filter(r=>r===e);!this.cpDisabled&&!n.length&&(typeof document<"u"&&e===document.activeElement?this.openDialog():!this.dialog||!this.dialog.show?this.openDialog():this.closeDialog())}inputChange(e){this.dialog?this.dialog.setColorFromString(e.target.value,!0):(this.colorPicker=e.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(e){this.cpInputChange.emit(e)}sliderChanged(e){this.cpSliderChange.emit(e)}sliderDragEnd(e){this.cpSliderDragEnd.emit(e)}sliderDragStart(e){this.cpSliderDragStart.emit(e)}presetColorsChanged(e){this.cpPresetColorsChange.emit(e)}static \u0275fac=function(n){return new(n||i)(g(be),g(Yt),g(Zt),g(gt),g(Q),g(zb))};static \u0275dir=K({type:i,selectors:[["","colorPicker",""]],hostBindings:function(n,r){n&1&&z("click",function(){return r.handleClick()})("focus",function(){return r.handleFocus()})("input",function(s){return r.handleInput(s)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[Qe]})}return i})(),EE=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=X({type:i});static \u0275inj=Z({providers:[zb],imports:[pi]})}return i})();var rn=(()=>{class i{constructor(){this._index=void 0,this._name=void 0,this._changeListeners=[],this._currentKey=0}get index(){return this._index}get name(){return this._name}notify(e,n){this._index=e,this._name=n,console.log("really happen");for(let r=0;r<this._changeListeners.length;++r)this._changeListeners[r].cb(e,n)}remove(e){for(let n=0;n<this._changeListeners.length;++n)if(this._changeListeners[n].key==e)return this._changeListeners.splice(n,1),!0;return!1}onChanged(e){return this._changeListeners.push({key:++this._currentKey,cb:e}),setTimeout(()=>{console.log("hello",this._index,this._name),e(this._index,this._name)},0),this._currentKey}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Qb=iv(Yb()),uo=500,ZV=30*60*1e3,HE=15*60,XV=60*1e3,JV=20*60*1e3,eB=90*1e3,tB=3e3,UE=200,lh=class{constructor(){this.builders=new Map,this.clients=new Map,this.jobs=new Map,this.history=[],this.events=[],this.stats=void 0,this.schedulerVersion=void 0,this.sessionStart=Date.now(),this.sessionHits=0,this.sessionCompiles=0,this.sessionStarted=0,this.sessionFailures=0,this.sessionDropped=0,this.compileMsEma=0,this.prediction={hits:0,misses:0,unpredictedHits:0},this.hasPredictions=!1,this.hasReleases=!1,this.highlight={name:"",fg:"",bg:""},this.listeners=[],this.buckets=[],this.pending={hits:0,compiled:0,failed:0},this.lastSample=0,this.sortedClientsCache=void 0,this.sortedBuildersCache=void 0}onEvent(t){return this.listeners.push(t),()=>{let e=this.listeners.indexOf(t);e!==-1&&this.listeners.splice(e,1)}}reset(){this.builders.clear(),this.clients.clear(),this.jobs.clear(),this.history=[],this.events=[],this.buckets=[],this.stats=void 0,this.pending={hits:0,compiled:0,failed:0},this.sessionStart=Date.now(),this.sessionHits=this.sessionCompiles=this.sessionStarted=this.sessionFailures=this.sessionDropped=0,this.compileMsEma=0,this.prediction={hits:0,misses:0,unpredictedHits:0},this.hasPredictions=this.hasReleases=!1,this.invalidate()}get capacity(){let t=0;return this.builders.forEach(e=>t+=e.slots),t}get scheduledCount(){let t=0;return this.jobs.forEach(e=>{e.state==="scheduled"&&++t}),t}get compilingCount(){return this.jobs.size-this.scheduledCount}sortedClients(){return this.sortedClientsCache||(this.sortedClientsCache=Array.from(this.clients.values()).sort((t,e)=>t.displayName.localeCompare(e.displayName))),this.sortedClientsCache}sortedBuilders(){return this.sortedBuildersCache||(this.sortedBuildersCache=Array.from(this.builders.values()).sort((t,e)=>t.displayName.localeCompare(e.displayName,void 0,{numeric:!0}))),this.sortedBuildersCache}setHighlight(t,e,n){this.highlight={name:t||"",fg:e||"",bg:n||""};let r=Array.from(this.clients.values()).sort((o,s)=>o.firstSeen-s.firstSeen);r.forEach(o=>o.color=""),r.forEach(o=>this.colorClient(o))}handle(t,e=Date.now()){switch(t.type){case"builderAdded":this.builderAdded(t,e);break;case"builderRemoved":this.builderRemoved(t);break;case"jobScheduled":this.jobScheduled(t,e);break;case"jobStarted":this.jobStarted(t,e);break;case"cacheHit":this.cacheHit(t,e),this.updateStats(t);break;case"jobFinished":this.jobDone(t,"compiled",e),this.updateStats(t);break;case"jobAborted":this.jobDone(t,"failed",e);break;case"jobReleased":{this.hasReleases=!0;let n=this.jobs.get(t.id);n&&!n.releasedAt&&(n.releasedAt=e);break}case"stats":this.updateStats(t);break;case"schedulerInfo":this.schedulerVersion=t.version;break}}tick(t=Date.now()){for(this.lastSample||(this.lastSample=t-uo);t-this.lastSample>=uo;)this.lastSample+=uo,t-this.lastSample>uo*4&&(this.lastSample=t),this.sample(this.lastSample);let e=[];this.jobs.forEach(r=>{(r.releasedAt&&t-r.releasedAt>tB||r.state==="scheduled"&&t-r.scheduledAt>XV||r.state==="compiling"&&t-(r.startedAt||r.scheduledAt)>JV)&&e.push(r)}),e.forEach(r=>{++this.sessionDropped,this.finishJob(r,"dropped",t)});let n=!1;this.clients.forEach((r,o)=>{!r.jobs.size&&t-r.lastActive>eB&&(this.clients.delete(o),n=!0)}),n&&this.invalidate()}windowStats(t,e=Date.now()){let n=Math.floor(e/1e3)-t,r={seconds:t,hits:0,started:0,compiled:0,failed:0,hitRate:0,throughput:0,avgCompileMs:0,avgWaitMs:0},o=0,s=0,a=0,c=0;for(let d=this.buckets.length-1;d>=0;--d){let u=this.buckets[d];if(u.sec<=n)break;r.hits+=u.hits,r.started+=u.started,r.compiled+=u.compiled,r.failed+=u.failed,o+=u.compileMs,s+=u.compileN,a+=u.waitMs,c+=u.waitN}let l=Math.max(1,Math.min(t,(e-this.sessionStart)/1e3));return r.hitRate=r.hits+r.started?r.hits/(r.hits+r.started):0,r.throughput=(r.hits+r.compiled)/l,r.avgCompileMs=s?o/s:0,r.avgWaitMs=c?a/c:0,r}builderKey(t){return typeof t.id=="number"?`#${t.id}`:`${t.ip}:${t.port}`}builderAdded(t,e){let n=this.builderKey(t),r=this.builders.get(n);r||(r={key:n,ip:t.ip,port:t.port,name:t.name||"",hostname:t.hostname||"",displayName:"",members:new Map,slots:0,labels:[],npmVersion:"",system:"",created:"",environments:[],cells:[],cellFx:[],overflow:[],totalHits:0,totalCompiles:0,totalFailures:0,lastHit:0,added:e},this.builders.set(n,r),this.invalidate()),r.labels=t.labels||[],r.npmVersion=t.npmVersion||"",r.system=t.system||"",r.created=t.created||"",r.environments=t.environments||[];let o=r.members.size;r.members.set(String(t.created||""),t.slots||0),o!==r.members.size&&this.invalidate(),this.resizeBuilder(r,$E(r.members))}builderRemoved(t){let e=this.builderKey(t),n=this.builders.get(e);if(!n)return;if(typeof t.id!="number"&&n.members.delete(String(t.created||"")),typeof t.id!="number"&&n.members.size){this.resizeBuilder(n,$E(n.members)),this.invalidate();return}n.cells.filter(o=>o).concat(n.overflow).forEach(o=>{o.builder=void 0,this.removeJob(o)}),this.builders.delete(e),this.invalidate()}resizeBuilder(t,e){if(e===t.slots)return;let n=t.cells.filter(r=>r).concat(t.overflow);t.slots=e,t.cells=new Array(e).fill(void 0),t.cellFx=new Array(e).fill(void 0),t.overflow=[],n.forEach(r=>this.placeJob(t,r))}jobScheduled(t,e){let n=this.jobs.get(t.id);n&&this.removeJob(n);let r=this.client(t.client,e),o={id:t.id,state:"scheduled",client:r,cell:-1,sourcePath:t.sourcePath||"",scheduledAt:e,predictedHit:typeof t.objectCache=="boolean"?t.objectCache:void 0};o.predictedHit!==void 0&&(this.hasPredictions=!0),this.jobs.set(o.id,o),r.jobs.add(o),++r.scheduled;let s=this.findBuilder(t.builder);s&&this.placeJob(s,o),this.stats&&++this.stats.jobsScheduled}jobStarted(t,e){let n=this.jobs.get(t.id);if(!n){let r=this.client(t.client,e);n={id:t.id,state:"scheduled",client:r,cell:-1,sourcePath:t.sourcePath||"",scheduledAt:e},this.jobs.set(n.id,n),r.jobs.add(n),++r.scheduled;let o=this.findBuilder(t.builder);o&&this.placeJob(o,n)}if(n.state==="scheduled"){n.state="compiling",n.startedAt=e,--n.client.scheduled,++n.client.compiling;let r=this.bucket(e);++r.started,r.waitMs+=e-n.scheduledAt,++r.waitN,n.predictedHit&&++this.prediction.misses,++this.sessionStarted,++n.client.totalCompiles,n.builder&&++n.builder.totalCompiles}n.client.lastActive=e,this.stats&&++this.stats.jobsStarted}cacheHit(t,e){++this.sessionHits,++this.pending.hits,++this.bucket(e).hits;let n=this.jobs.get(t.id);if(n){n.predictedHit===!0?++this.prediction.hits:n.predictedHit===!1&&++this.prediction.unpredictedHits,this.finishJob(n,"hit",e);return}let r=this.client(t.client,e);++r.totalHits,r.lastHit=e;let o=this.findBuilder(t.builder);o&&(++o.totalHits,o.lastHit=e),this.emit({t:e,outcome:"hit",client:r,builder:o,cell:-1,sourcePath:t.sourcePath||""})}jobDone(t,e,n){if(e==="compiled"){++this.sessionCompiles,++this.pending.compiled;let o=this.bucket(n);++o.compiled,typeof t.compileDuration=="number"&&t.compileDuration>=0&&(o.compileMs+=t.compileDuration,++o.compileN,this.compileMsEma=this.compileMsEma?this.compileMsEma*.98+t.compileDuration*.02:t.compileDuration)}else++this.sessionFailures,++this.pending.failed,++this.bucket(n).failed;let r=this.jobs.get(t.id);r&&this.finishJob(r,e,n,t.compileDuration)}updateStats(t){if(typeof t.cacheHits!="number")return;let e=this.stats||{};this.stats=Object.assign({},e,t),delete this.stats.type,delete this.stats.client,delete this.stats.builder,delete this.stats.id,delete this.stats.sourcePath}finishJob(t,e,n,r){let o=t.builder,s=t.cell,a=t.client;a.lastActive=n,e==="hit"?(++a.totalHits,a.lastHit=n,o&&(++o.totalHits,o.lastHit=n)):e==="failed"&&(++a.totalFailures,o&&++o.totalFailures),o&&s>=0&&(o.cellFx[s]={outcome:e,client:a,t:n}),r===void 0&&t.startedAt?r=n-t.startedAt:r===void 0&&(r=n-t.scheduledAt),this.removeJob(t),e!=="dropped"&&this.emit({t:n,outcome:e,client:a,builder:o,cell:s,sourcePath:t.sourcePath,duration:r})}removeJob(t){this.jobs.delete(t.id);let e=t.client;e.jobs.delete(t)&&(t.state==="scheduled"?--e.scheduled:--e.compiling);let n=t.builder;if(n)if(t.cell>=0&&n.cells[t.cell]===t){n.cells[t.cell]=void 0;let r=n.overflow.shift();r&&(n.cells[t.cell]=r,r.cell=t.cell)}else{let r=n.overflow.indexOf(t);r!==-1&&n.overflow.splice(r,1)}t.builder=void 0,t.cell=-1}placeJob(t,e){e.builder=t;let n=t.cells.indexOf(void 0);n!==-1?(t.cells[n]=e,e.cell=n):(t.overflow.push(e),e.cell=-1)}findBuilder(t){if(!t)return;let e=this.builders.get(this.builderKey(t));if(e)return e;let n;if(this.builders.forEach(o=>{!n&&o.ip===t.ip&&o.port===t.port&&(n=o)}),n)return n;let r;return this.builders.forEach(o=>{r||t.port!==void 0&&o.port!==t.port||(t.hostname&&o.hostname===t.hostname||t.name&&o.name===t.name)&&(r=o)}),r}client(t,e){t=t||{};let n=t.ip||"",r=t.name||"",o=`${n}|${r}`,s=this.clients.get(o);if(s)return s.lastActive=e,s;let a=nB(t);return s={key:o,ip:n,name:r,hostname:t.hostname||"",user:t.user||"",baseName:a.name,displayName:a.name,url:a.url,color:"",fg:"",jobs:new Set,compiling:0,scheduled:0,totalHits:0,totalCompiles:0,totalFailures:0,firstSeen:e,lastActive:e,lastHit:0},this.colorClient(s),this.clients.set(o,s),this.invalidate(),s}colorClient(t){let e=this.highlight;if(e.name&&e.bg&&(e.name===t.ip||e.name===t.name||e.name===t.hostname||e.name===t.baseName||e.name===t.displayName)){t.color=e.bg,t.fg=e.fg||WE(e.bg);return}let n=new Set;this.clients.forEach(o=>{o!==t&&o.color&&n.add(o.color)});let r=Math.floor((0,Qb.default)(t.ip+t.name)()*ch.length);t.color=void 0;for(let o=0;o<ch.length;++o){let s=ch[(r+o)%ch.length];if(!n.has(s)){t.color=s;break}}t.color||(t.color=rB(t.ip+t.name)),t.fg=WE(t.color)}sample(t){let e=new Map,n=0;this.clients.forEach(s=>{s.compiling>0&&e.set(s,s.compiling),n+=s.scheduled}),this.history.push({t,capacity:this.capacity,scheduled:n,compiling:e,hits:this.pending.hits,compiled:this.pending.compiled,failed:this.pending.failed}),this.pending={hits:0,compiled:0,failed:0};let r=t-ZV,o=0;for(;o<this.history.length&&this.history[o].t<r;)++o;o&&this.history.splice(0,o)}bucket(t){let e=Math.floor(t/1e3),n=this.buckets[this.buckets.length-1];if(n&&n.sec===e)return n;let r={sec:e,hits:0,started:0,compiled:0,failed:0,compileMs:0,compileN:0,waitMs:0,waitN:0};return this.buckets.push(r),this.buckets.length>HE&&this.buckets.splice(0,this.buckets.length-HE),r}emit(t){this.events.push(t),this.events.length>UE&&this.events.splice(0,this.events.length-UE);for(let e=0;e<this.listeners.length;++e)this.listeners[e](t)}invalidate(){this.sortedClientsCache=void 0,this.sortedBuildersCache=void 0,this.labelBuilders(),this.labelClients()}labelClients(){let t=new Map;this.clients.forEach(e=>{let n=t.get(e.baseName)||[];n.push(e),t.set(e.baseName,n)}),t.forEach((e,n)=>{if(e.length===1){e[0].displayName=n;return}let r=e.map(a=>(a.hostname||a.ip).split("-")),o=Math.max(...r.map(a=>a.length)),s=[];for(let a=1;a<=o&&(s=r.map(c=>c.slice(-a).join("-")),new Set(s).size!==s.length);++a);new Set(s).size!==s.length&&(s=e.map(a=>`${a.hostname||""} ${a.ip}`.trim())),e.forEach((a,c)=>a.displayName=`${n} @${s[c]}`)})}labelBuilders(){let t=new Map;this.builders.forEach(e=>{let n=e.name||e.hostname;t.set(n,(t.get(n)||0)+1)}),this.builders.forEach(e=>{let n=e.name||e.hostname,r=n&&t.get(n)===1?n:e.ip;e.displayName=e.members.size>1?`${r} x${e.members.size}`:r})}};function $E(i){let t=0;return i.forEach(e=>t+=e),t}var qE={dark:!0,bg:"#11141b",panel:"#181d27",panelEdge:"#252c3a",tile:"#1d2330",tileFocus:"#232b3a",grid:"#262d3b",cellEmpty:"#222937",crosshair:"rgba(255,255,255,0.4)",text:"#d7deea",dim:"#7c8699",faint:"#4a5263",hit:"#34d399",compile:"#60a5fa",queued:"#fbbf24",fail:"#f87171",capacity:"#94a3b8"},iB={dark:!1,bg:"#f3f4f7",panel:"#ffffff",panelEdge:"#dde1e8",tile:"#f6f7f9",tileFocus:"#eef1f6",grid:"#eceef2",cellEmpty:"#e3e6ec",crosshair:"rgba(0,0,0,0.35)",text:"#1f2533",dim:"#667085",faint:"#a3aab8",hit:"#10b981",compile:"#3b82f6",queued:"#f59e0b",fail:"#ef4444",capacity:"#64748b"},R=Object.assign({},qE);function GE(i){Object.assign(R,i==="light"?iB:qE)}function nB(i){let t=i.name||"",e=i.hostname||"",n=i.user||"nobody";if(!t)return{name:e||i.ip||"unknown"};if(t===e)return{name:`dev:${n}@${e}`};if(t[0]==="-")return{name:`dev:${n}${t}`};if(t[0]==="{")try{let r=JSON.parse(t);if(r&&typeof r=="object"&&"name"in r)return{name:String(r.name),url:r.href}}catch{}return{name:t}}var ch=["#818cf8","#f472b6","#22d3ee","#fb923c","#c084fc","#7c3aed","#6366f1","#f9a8d4","#0ea5e9","#e879f9","#9333ea","#db2777","#a5b4fc","#ea580c","#67e8f9","#94a3b8"],Kb=[[175,345],[16,34]];function rB(i){let t=(0,Qb.default)(i),e=Kb.reduce((a,c)=>a+c[1]-c[0],0),n=t()*e,r=Kb[0][0];for(let[a,c]of Kb){if(n<=c-a){r=a+n;break}n-=c-a}let o=55+t()*35,s=52+t()*16;return oB(r,o,s)}function oB(i,t,e){t/=100,e/=100;let n=a=>(a+i/30)%12,r=t*Math.min(e,1-e),o=a=>e-r*Math.max(-1,Math.min(n(a)-3,Math.min(9-n(a),1))),s=a=>("0"+Math.round(a*255).toString(16)).slice(-2);return"#"+s(o(0))+s(o(8))+s(o(4))}function WE(i){if(!/^#[0-9a-fA-F]{6}$/.test(i))return"black";let t=parseInt(i.substring(1),16);return .2126*(t>>16&255)+.7152*(t>>8&255)+.0722*(t&255)<140?"white":"black"}function oc(i){if(!i)return"";let t=i.lastIndexOf("/");return t===-1?i:i.substring(t+1)}function vt(i){if(!isFinite(i)||i<=0)return"-";if(i<1e3)return`${Math.round(i)}ms`;if(i<6e4)return`${(i/1e3).toFixed(i<1e4?1:0)}s`;let t=Math.floor(i/6e4);return t<60?`${t}m ${Math.floor(i/1e3)%60}s`:`${Math.floor(t/60)}h ${t%60}m`}var Fn=(()=>{class i{constructor(){this.reset()}addListener(e,n){this.socket.addEventListener(e,n),this.allListeners.push([e,n])}removeListeners(){for(let e=0;e<this.allListeners.length;++e){let n=this.allListeners[e];this.socket.removeEventListener(n[0],n[1])}this.allListeners=[]}get isOpen(){return this.socket&&this.socket.readyState==WebSocket.OPEN}static websocketLocation(e,n){let r=e.get("scheduler",n.hostname),o=n.protocol==="https:",s=parseInt(e.get("port"));return s||(s=parseInt(n.port)||(o?8098:8097)),e.get("portExplicit",!1)||(o&&s===8097?s=8098:!o&&s===8098&&(s=8097)),{host:r,port:s,secure:o}}open(e,n,r){if(!this.isopen){try{this.socket=new WebSocket(`${r?"wss":"ws"}://${e}:${n}/monitor`)}catch(o){this.socket=void 0;for(let s=0;s<this.errorListeners.length;++s)this.errorListeners[s](o);console.log("ws connect error",o);return}console.log("ws connected"),this.addListener("open",o=>{if(console.log("ws open"),this.isopen=!0,this.pending!==void 0){for(let s=0;s<this.pending.length;++s)this.socket.send(this.pending[s]);this.pending=void 0}for(let s=0;s<this.openListeners.length;++s)this.openListeners[s]()}),this.addListener("message",o=>{let s;try{s=JSON.parse(o.data)}catch{console.error("unable to parse json",o.data);return}for(let a=0;a<this.messageListeners.length;++a)this.messageListeners[a](s)}),this.addListener("close",()=>{console.log("ws close");let o=this.closeListeners;this.removeListeners(),this.reset();for(let s=0;s<o.length;++s)o[s]()}),this.addListener("error",o=>{console.log("ws error",o),this.socket&&this.socket.close();let s=this.errorListeners;this.removeListeners(),this.reset();for(let a=0;a<s.length;++a)s[a](o)})}}on(e,n){e=="message"?this.messageListeners.push(n):e=="open"?this.openListeners.push(n):e=="close"?this.closeListeners.push(n):e=="error"&&this.errorListeners.push(n)}send(e){this.isopen?this.socket.send(JSON.stringify(e)):this.pending.push(JSON.stringify(e))}close(e,n){this.socket&&this.socket.close(e,n),this.removeListeners(),this.reset()}reset(){this.socket=void 0,this.pending=[],this.messageListeners=[],this.closeListeners=[],this.errorListeners=[],this.openListeners=[],this.isopen=!1,this.allListeners=[]}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var dh=(()=>{class i{constructor(){this.backoffs={},this.serials={}}backoff(e,n,r){if(e in this.backoffs)return!1;e in this.serials?++this.serials[e]:this.serials[e]=0;let o=this.serials[e];this.backoffs[e]=-1;let s=a=>{console.log("reconnecting",a),r().then(c=>{if(o===this.serials[e])if(c)delete this.backoffs[e];else{let l=n(a);this.backoffs[e]=setTimeout(()=>{s(l)},l)}}).catch(c=>{o===this.serials[e]&&delete this.backoffs[e],console.error(c)})};return s(0),!0}stop(e){if(e in this.backoffs){let n=this.backoffs[e];n!==-1&&clearTimeout(n),delete this.backoffs[e]}}running(e){return e in this.backoffs}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var _i=(()=>{class i{constructor(){this.changeListeners=[],this.cache={},this.currentKey=0}set(e,n,r){if(this.cache[e]=n,localStorage.setItem(e,JSON.stringify(n)),!(r!==void 0&&!r))for(let o=0;o<this.changeListeners.length;++o)this.changeListeners[o].cb(e)}get(e,n){if(e in this.cache)return this.cache[e];let r,o=localStorage.getItem(e);if(o!==null)try{r=JSON.parse(o),this.cache[e]=r}catch{r=n,n!==void 0&&this.set(e,n,!1)}else r=n,n!==void 0&&this.set(e,n,!1);return r}onChange(e){return this.changeListeners.push({key:++this.currentKey,cb:e}),this.currentKey}remove(e){for(var n=0;n<this.changeListeners.length;++n)if(this.changeListeners[n].key==e)return this.changeListeners.splice(n,1),!0;return!1}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var yi=(()=>{class i{get host(){return this._host}get port(){return this._port}constructor(e,n,r,o){this.ws=e,this.backoff=n,this.config=r,this.httpClient=o,this.pendingConnect=[],this.dataListeners=[],this.openListeners=[],this.schedulerListeners=[],this._currentKey=0;let s=window.location.pathname.replace(/[^/]*$/,"package.json");this.httpClient.get(`${window.location.protocol}//${window.location.host}/${s}`,{responseType:"json"}).subscribe({next:c=>{c&&this.emit(this.dataListeners,{type:"uiInfo",package:c})},error:()=>console.log("no package.json next to the UI")});let a=Fn.websocketLocation(r,window.location);this._host=a.host,this._port=a.port,this._secure=a.secure,this._host!==void 0&&this.open(this._host,this._port,this._secure),this.config.onChange(c=>{switch(c){case"scheduler":case"port":this.close();let l=Fn.websocketLocation(r,window.location);this._host=l.host,this._port=l.port,this._secure=l.secure,this._host!==void 0&&this.open(this._host,this._port,this._secure),this.emit(this.schedulerListeners,c);break}})}get isOpen(){return this.ws.isOpen}open(e,n,r){console.log("reoping"),this.ws.on("message",o=>{this.emit(this.dataListeners,o)}),this.ws.on("close",()=>{this.reconnect(e,n,r)}),this.ws.on("error",()=>{this.reconnect(e,n,r)}),this.ws.on("open",()=>{this.emit(this.openListeners),this.resolvePending(!0),console.log("ok")}),this.ws.open(e,n,r)}close(e,n){this.backoff.stop("fisk"),this.ws.close(e,n)}on(e,n){switch(e){case"data":this.dataListeners.push({key:++this._currentKey,cb:n});break;case"open":this.openListeners.push({key:++this._currentKey,cb:n});break;case"scheduler":this.schedulerListeners.push({key:++this._currentKey,cb:n});break;default:return-1}return this._currentKey}remove(e,n){let r=(o,s)=>{for(let a=0;a<o.length;++a)if(o[a].key==s)return o.splice(a,1),!0;return!1};switch(e){case"data":return r(this.dataListeners,n);case"open":return r(this.openListeners,n);case"scheduler":return r(this.schedulerListeners,n)}return!1}send(e){this.ws.send(e)}reconnect(e,n,r){if(this.backoff.running("fisk")){this.resolvePending(!1);return}let o=s=>s?Math.min(3e4,s*2):1e3;this.backoff.backoff("fisk",o,()=>new Promise((s,a)=>{this.pendingConnect.push({resolve:s,reject:a}),this.open(e,n,r)}))}resolvePending(e){this.pendingConnect.length>0&&this.pendingConnect.shift().resolve(e)}emit(e,n){for(let r=0;r<e.length;++r)e[r].cb(n)}static{this.\u0275fac=function(n){return new(n||i)(_(Fn),_(dh),_(_i),_(mp))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var uh=(()=>{class i{constructor(e,n,r){this.fisk=e,this.config=n,this.model=new lh,this.applyHighlight(),this.fisk.on("data",o=>{this.model.handle(o)}),this.fisk.on("open",()=>{this.model.reset(),this.fisk.send({type:"sendInfo"})}),this.fisk.on("scheduler",()=>{this.model.reset()}),this.fisk.isOpen&&this.fisk.send({type:"sendInfo"}),this.config.onChange(o=>{(o==="client"||o==="fgcolor"||o==="bgcolor")&&this.applyHighlight()}),r.runOutsideAngular(()=>{setInterval(()=>this.model.tick(),250)})}applyHighlight(){this.model.setHighlight(this.config.get("client",""),this.config.get("fgcolor")||"#ffffff",this.config.get("bgcolor")||"#ff0000")}static{this.\u0275fac=function(n){return new(n||i)(_(yi),_(_i),_(U))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var cB=["fiskTabGroup"];function lB(i,t){if(i&1&&(y(0,"a",4,1),q(2),b()),i&2){let e=t.$implicit,n=Si(1);S("routerLink",e.path)("active",n.isActive),D(2),ct(" ",e.label," ")}}var KE=(()=>{class i{constructor(e,n,r,o){this.tabChanged=e,this.router=n,this.live=r,this.vcRef=o,this.currentTab=void 0,this.currentName=void 0,this.navLinks=[{path:"/live",label:"Live"},{path:"/pie-chart",label:"Pie Chart"},{path:"/logs",label:"Logs"},{path:"/compilers",label:"Compilers"},{path:"/config",label:"Config"}],n.events.forEach(s=>{if(s instanceof ii){let a=s.urlAfterRedirects;for(let c=0;c<this.navLinks.length;++c)this.navLinks[c].path==a&&(this.currentTab=c,this.currentName=this.navLinks[c].label,this.tabChanged.notify(this.currentTab,this.currentName),console.log("here?",this.currentTab,this.currentName))}})}ngAfterViewInit(){}onTabChanged(e){this.currentTab=e.index,this.currentName=e.tab.textLabel}onAnimationDone(){this.tabChanged.notify(this.currentTab,this.currentName)}static{this.\u0275fac=function(n){return new(n||i)(g(rn),g(Oi),g(uh),g(gt))}}static{this.\u0275cmp=de({type:i,selectors:[["app-root"]],viewQuery:function(n,r){if(n&1&&_e(cB,5),n&2){let o;ne(o=re())&&(r.tabGroup=o.first)}},decls:5,vars:1,consts:[["fiskTabGroup",""],["rla","routerLinkActive"],["mat-tab-nav-bar","",1,"fisk-tab-group"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"]],template:function(n,r){n&1&&(y(0,"mat-card")(1,"nav",2,0),J(3,lB,3,3,"a",3),b(),ie(4,"router-outlet"),b()),n&2&&(D(3),S("ngForOf",r.navLinks))},dependencies:[Ai,Mn,Cb,Db,zg,Eu,$C]})}}return i})();var hh=(()=>{class i{constructor(e){this.snackBar=e}showMessage(e,n){this.snackBar.open(e,void 0,{duration:n||3e3})}static{this.\u0275fac=function(n){return new(n||i)(_(Nb))}}static{this.\u0275prov=I({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var QE=(()=>{class i{constructor(e,n){this.config=e,this.tabChanged=n,this.minHeight="",this.inited=!1,this.timers={};let r=Fn.websocketLocation(e,window.location);this.port=r.port,this.scheduler=r.host,this.chartLegendSpace=e.get("chart-legend-space",400),this.liveWindow=e.get("live-window",300),this.liveTheme=e.get("live-theme","dark"),this.client=e.get("client",""),this.fgcolor=e.get("fgcolor")||"#ffffff",this.bgcolor=e.get("bgcolor")||"#ff0000",this.pieBuilding=e.get("pieBuilding",!1),this.noAnimate=e.get("noAnimate",!1),this.config.onChange(o=>{switch(o){case"scheduler":this.scheduler=e.get("scheduler");break;case"port":this.port=e.get("port");break;case"chart-legend-space":this.chartLegendSpace=e.get("chart-legend-space");break;case"live-window":this.liveWindow=e.get("live-window");break;case"live-theme":this.liveTheme=e.get("live-theme");break;case"client":this.client=e.get("client");break;case"fgcolor":this.fgcolor=e.get("fgcolor");break;case"bgcolor":this.bgcolor=e.get("bgcolor");break;case"pieBuilding":this.pieBuilding=e.get("pieBuilding");break;case"noAnimate":this.noAnimate=e.get("noAnimate");break}}),this.tabChanged.onChanged((o,s)=>{if(s!="Config"||this.inited)return;this.inited=!0;let c=document.getElementById("configTab").getBoundingClientRect();this.minHeight=window.innerHeight-c.y-50+"px"})}update(e,n){let r=!1;switch(e){case"scheduler":case"client":case"fgcolor":case"bgcolor":r=!0,this[e]=n;break}r&&(e in this.timers&&clearTimeout(this.timers[e]),this.timers[e]=setTimeout(()=>{delete this.timers[e],this.config.set(e,n)},500))}updateInt(e,n){let r=!1,o,s=e;switch(e){case"chartLegendSpace":s="chart-legend-space";case"liveWindow":e==="liveWindow"&&(s="live-window");case"port":o=parseInt(n),isNaN(o)||(r=!0,this[e]=o);break}r&&(e in this.timers&&clearTimeout(this.timers[e]),this.timers[e]=setTimeout(()=>{delete this.timers[e],e==="port"&&this.config.set("portExplicit",!0,!1),this.config.set(s,o)},500))}updateTheme(e){this.liveTheme=e,this.config.set("live-theme",e)}updateBool(e,n){let r=!1,o;switch(typeof n=="boolean"?o=n:typeof n=="string"&&n==="true"?o=!0:o=!1,e){case"pieBuilding":case"noAnimate":r=!0,this[e]=o;break}r&&this.config.set(e,o)}static{this.\u0275fac=function(n){return new(n||i)(g(_i),g(rn))}}static{this.\u0275cmp=de({type:i,selectors:[["app-config"]],decls:60,vars:20,consts:[["id","configTab",1,"space"],[1,"full-width"],["matInput","",3,"ngModelChange","ngModel"],["matInput","","type","number","max","65536",3,"ngModelChange","ngModel"],["matInput","","type","number","min","30","max","1800",3,"ngModelChange","ngModel"],[3,"selectionChange","value"],["value","dark"],["value","light"],["value","auto"],[1,"colors"],["matInput","","cpPosition","bottom","readonly","",3,"colorPickerChange","value","colorPicker","cpUseRootViewContainer"],["matSuffix","",1,"swatch"],[3,"ngModelChange","ngModel"]],template:function(n,r){n&1&&(y(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),q(3,"Scheduler"),b(),y(4,"input",2),z("ngModelChange",function(s){return r.update("scheduler",s)}),b(),y(5,"mat-hint"),q(6,"Host name of the fisk scheduler"),b()(),y(7,"mat-form-field",1)(8,"mat-label"),q(9,"Port"),b(),y(10,"input",3),z("ngModelChange",function(s){return r.updateInt("port",s)}),b(),y(11,"mat-hint"),q(12,"Scheduler port, usually 8097 (8098 for https)"),b()(),y(13,"mat-form-field",1)(14,"mat-label"),q(15,"Legend space"),b(),y(16,"input",3),z("ngModelChange",function(s){return r.updateInt("chartLegendSpace",s)}),b(),y(17,"mat-hint"),q(18,"Width in pixels of the client list (pie chart legend and Live view client column)"),b()(),y(19,"mat-form-field",1)(20,"mat-label"),q(21,"Live view history (seconds)"),b(),y(22,"input",4),z("ngModelChange",function(s){return r.updateInt("liveWindow",s)}),b(),y(23,"mat-hint"),q(24,"Time span of the Live view timeline, 30 to 1800 seconds"),b()(),y(25,"mat-form-field",1)(26,"mat-label"),q(27,"Live view theme"),b(),y(28,"mat-select",5),z("selectionChange",function(s){return r.updateTheme(s.value)}),y(29,"mat-option",6),q(30,"Dark"),b(),y(31,"mat-option",7),q(32,"Light"),b(),y(33,"mat-option",8),q(34,"Match system setting"),b()(),y(35,"mat-hint"),q(36,"Color scheme of the Live view"),b()(),y(37,"mat-form-field",1)(38,"mat-label"),q(39,"Highlighted client"),b(),y(40,"input",2),z("ngModelChange",function(s){return r.update("client",s)}),b(),y(41,"mat-hint"),q(42,"Client name, host name or IP to draw in the colors below"),b()(),y(43,"div",9)(44,"mat-form-field")(45,"mat-label"),q(46,"Background color"),b(),y(47,"input",10),z("colorPickerChange",function(s){return r.update("bgcolor",s)}),b(),ie(48,"span",11),b(),y(49,"mat-form-field")(50,"mat-label"),q(51,"Foreground color"),b(),y(52,"input",10),z("colorPickerChange",function(s){return r.update("fgcolor",s)}),b(),ie(53,"span",11),b()(),y(54,"div")(55,"mat-checkbox",12),z("ngModelChange",function(s){return r.updateBool("pieBuilding",s)}),q(56,"Represent 100% of pie chart as currently building jobs"),b()(),y(57,"div")(58,"mat-checkbox",12),z("ngModelChange",function(s){return r.updateBool("noAnimate",s)}),q(59,"Don't animate the charts"),b()()()),n&2&&(Xe("min-height",r.minHeight),D(4),S("ngModel",r.scheduler),D(6),S("ngModel",r.port),D(6),S("ngModel",r.chartLegendSpace),D(6),S("ngModel",r.liveWindow),D(6),S("value",r.liveTheme),D(12),S("ngModel",r.client),D(7),S("value",r.bgcolor)("colorPicker",r.bgcolor)("cpUseRootViewContainer",!0),D(),Xe("background",r.bgcolor),D(4),S("value",r.fgcolor)("colorPicker",r.fgcolor)("cpUseRootViewContainer",!0),D(),Xe("background",r.fgcolor),D(2),S("ngModel",r.pieBuilding),D(3),S("ngModel",r.noAnimate))},dependencies:[DE,es,ag,ru,lg,cg,wa,xs,Xu,Zu,vs,Qu,HD,wE,Uu],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:8px}.colors[_ngcontent-%COMP%]{display:flex;gap:16px}.swatch[_ngcontent-%COMP%]{display:inline-block;width:20px;height:20px;margin-right:12px;border-radius:4px;border:1px solid rgba(0,0,0,.3)}"]})}}return i})();var ZE=(()=>{class i{constructor(e){this.fisk=e,this.fisk.on("data",n=>{switch(n.type){case"logFile":this.contents=`
14
+ `+n.contents;break}})}ngAfterViewInit(){this.fisk.send({type:"logFile",file:this.file}),console.log("after view init",this.file)}static{this.\u0275fac=function(n){return new(n||i)(g(yi))}}static{this.\u0275cmp=de({type:i,selectors:[["app-log"]],inputs:{file:"file"},decls:2,vars:1,consts:[[1,"contents"]],template:function(n,r){n&1&&(y(0,"div",0),q(1),b()),n&2&&(D(),ct(" ",r.contents,`
15
+ `))},styles:[".contents[_ngcontent-%COMP%]{font-size:.6em;font-family:monospace;white-space:pre-wrap;background-color:#eee}"]})}}return i})();function hB(i,t){if(i&1&&(y(0,"div"),ie(1,"app-log",4),b()),i&2){let e=T().$implicit;D(),S("file",e)}}function fB(i,t){if(i&1){let e=Te();y(0,"div",1),z("click",function(){let r=j(e).$implicit,o=T();return V(o.onClicked(r))}),y(1,"div",2),q(2),J(3,hB,2,1,"div",3),b()()}if(i&2){let e=t.$implicit,n=T();D(2),ct(" ",e," "),D(),S("ngIf",e==n.expanded)}}var XE=(()=>{class i{constructor(e){this.fisk=e,this.expanded="",this.fisk.on("data",n=>{switch(n.type){case"logFiles":this.files=n.files;break}})}onClicked(e){this.expanded=e,console.log("clicked",e)}ngAfterViewInit(){console.log("logs!"),this.fisk.send({type:"logFiles"})}static{this.\u0275fac=function(n){return new(n||i)(g(yi))}}static{this.\u0275cmp=de({type:i,selectors:[["app-logs"]],decls:2,vars:1,consts:[["class","spacing",3,"click",4,"ngFor","ngForOf"],[1,"spacing",3,"click"],[1,"file"],[4,"ngIf"],[3,"file"]],template:function(n,r){n&1&&(y(0,"mat-card"),J(1,fB,4,2,"div",0),b()),n&2&&(D(),S("ngForOf",r.files))},dependencies:[Ai,wd,Mn,ZE],styles:[".spacing[_ngcontent-%COMP%]{padding-bottom:10px}.file[_ngcontent-%COMP%]{font-size:1.5em;cursor:pointer}"]})}}return i})();function mB(i,t){if(i&1&&(y(0,"div",5)(1,"div",6),q(2),b(),y(3,"div",7),q(4),b(),y(5,"div",8),q(6),b()()),i&2){let e=t.$implicit;D(2),ct(" ",e.sourceBasename," "),D(2),ct(" ",e.builder.ip," "),D(2),ct(" ",e.date," ")}}var fh=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n,this.jobs=[],this.client=n.client,n.jobs.forEach(r=>{if(r.client.name==this.client.name){let o=r.sourcePath||r.sourceFile||"",s=o.lastIndexOf("/");r.sourceBasename=s!==-1?o.substring(s+1):o,this.jobs.push(r)}})}onCloseClick(){this.dialogRef.close()}static{this.\u0275fac=function(n){return new(n||i)(g(On),g(rc))}}static{this.\u0275cmp=de({type:i,selectors:[["app-builder-info"]],decls:7,vars:2,consts:[[1,"scroll"],[1,"info"],["class","table",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","",3,"click"],[1,"table"],[1,"pre"],[1,"pre","table-mid"],[1,"pre","table-end"]],template:function(n,r){n&1&&(y(0,"mat-card",0)(1,"div",1),q(2),b(),J(3,mB,7,3,"div",2),y(4,"div",3)(5,"button",4),z("click",function(){return r.onCloseClick()}),q(6,"Close"),b()()()),n&2&&(D(2),$t(r.client.modifiedName),D(),S("ngForOf",r.jobs))},dependencies:[Ai,_s,Mn,ih],styles:[".scroll[_ngcontent-%COMP%]{overflow:auto;max-height:70vh!important;min-width:70vw!important}.table[_ngcontent-%COMP%]{display:flex}.info[_ngcontent-%COMP%]{white-space:pre-line;padding:5px;font-size:2em;margin-bottom:10px}.pre[_ngcontent-%COMP%]{font-family:monospace,monospace;flex:1}.table-mid[_ngcontent-%COMP%]{text-align:center}.table-end[_ngcontent-%COMP%]{text-align:right}"]})}}return i})();var JE=iv(Yb());var eI=(()=>{class i{constructor(e,n,r,o,s,a){this.fisk=e,this.config=n,this.tabChanged=r,this.message=o,this.changeRef=s,this.dialog=a,this.view={width:0,height:0},this.maxJobs=0,this.maxJobsData={},this.jobs=new Map,this.builders=new Set,this.clientJobs=[],this.minTime=5e3,this.inited=!1,this.destroyed=!1,this.onTabChange=void 0,this.onConfig=void 0,this.fiskData=void 0,this.fiskOpen=void 0,this.fiskScheduler=void 0,this.onResize=this._onResize.bind(this),window.jobs=this.jobs,this.fiskData=this.fisk.on("data",c=>{switch(c.type){case"builderAdded":this._builderAdded(c);break;case"builderRemoved":this._builderRemoved(c);break;case"jobStarted":this._jobStarted(c);break;case"jobFinished":this._updateStats(c);case"jobAborted":this._jobFinished(c);break;case"cacheHit":this._cacheHit(c);case"stats":this._updateStats(c);break;case"schedulerInfo":console.log("got scheduler info",c);break;case"jobScheduled":case"jobReleased":break;case"uiInfo":console.log("got ui version",c.package.version);break;default:console.error(`unexpected fisk message type ${c.type}`);break}}),this.fisk.isOpen&&this.fisk.send({type:"sendInfo"}),this.fiskOpen=this.fisk.on("open",()=>{this._reset(),this.message.showMessage("connected to "+this.fisk.host+":"+this.fisk.port),this.fisk.send({type:"sendInfo"})}),this.fiskScheduler=this.fisk.on("scheduler",()=>{this._reset()}),window.addEventListener("resize",this.onResize),this.onConfig=this.config.onChange(c=>{c=="client"||c=="fgcolor"||c=="bgcolor"?(this.clientColor={name:this.config.get("client"),fgcolor:this.config.get("fgcolor"),bgcolor:this.config.get("bgcolor")},this.clientJobs.forEach(l=>{delete l.color})):(c=="pieBuilding"||c=="noAnimate")&&(this[c]=this.config.get(c))}),this.onTabChange=this.tabChanged.onChanged((c,l)=>{if(l!="Pie Chart"||this.inited)return;let d=document.getElementById("canvas-chart");if(!d)return;let u=(C,N,L)=>C>=L.x&&C<=L.x+L.width&&N>=L.y&&N<=L.y+L.height;d.addEventListener("click",C=>{let L=document.getElementById("canvas-chart").getBoundingClientRect(),B=C.pageX-L.x,W=C.pageY-L.y;this.clientJobs.forEach(ee=>{u(B,W,ee.client.rect)&&ee.client.url&&window.open(ee.client.url,"_blank")})}),d.addEventListener("contextmenu",C=>{let L=document.getElementById("canvas-chart").getBoundingClientRect(),B=C.pageX-L.x,W=C.pageY-L.y,ee=!0;return this.clientJobs.forEach(he=>{u(B,W,he.client.rect)&&(C.preventDefault(),ee=!1,this.dialog.open(fh,{data:{client:he.client,jobs:this.jobs}}))}),ee},!1),this.inited=!0;let f=d.getBoundingClientRect();this.view.width=window.innerWidth-f.x*2,this.view.height=window.innerHeight-f.y-50,this.changeRef.detectChanges(),this.ctx=d.getContext("2d",{alpha:!1});let h=.25,m=(C,N,L,B)=>{let W=C[N];if(this.noAnimate||!(L in C)){C[L]=W;return}let ee=C[L];ee!=W&&(ee<W?ee=Math.min(ee+h*B,W):ee=Math.max(ee-h*B,W),C[L]=ee)};this.clientColor={name:this.config.get("client"),fgcolor:this.config.get("fgcolor"),bgcolor:this.config.get("bgcolor")},this.pieBuilding=this.config.get("pieBuilding"),this.noAnimate=this.config.get("noAnimate");let p=1/60*1e3,v=0,E,A=C=>{if(this.destroyed)return;let N=d.getBoundingClientRect().top;N!==E&&(E=N,this._onResize(),this.changeRef.detectChanges());let L=this.config.get("chart-legend-space",400),B=this.view.width-L+10,W=30,ee=Math.min(this.view.width-L,this.view.height-W-10)-20,he=(C-v)/p;v=C;let ze=Ce=>Ce/(180/Math.PI),H=this.ctx;H.fillStyle="white",H.beginPath(),H.rect(0,0,this.view.width,this.view.height),H.fill();let Ye=10,Ve=ee/2+Ye,st=ee/2-Ye*2;if(H.fillStyle="#ddd",H.beginPath(),H.moveTo(Ve,Ve),H.arc(Ve,Ve,st,0,Math.PI*2,!1),H.fill(),!this.maxJobs){this.clientJobs.forEach(Ce=>{Ce.start=Ce.animatedStart=ze(270),Ce.jobs=Ce.animatedJobs=0}),window.requestAnimationFrame(A);return}H.font="16px sans-serif";let St=ze(270),w=40;w+=40,H.fillStyle="black",H.fillText(this.maxJobsData.text,10,31);let O=this.pieBuilding?this.jobs.size:this.maxJobs;if(!O){window.requestAnimationFrame(A);return}let P={hits:0,misses:0},oe=new Date().valueOf();for(let Ce=0;Ce<this.clientJobs.length;++Ce){let G=this.clientJobs[Ce];if(G.expired){if(!G.jobs&&!G.cacheJobs&&oe-G.ts>=this.minTime){this.clientJobs.splice(Ce,1),--Ce;continue}(G.jobs||G.cacheJobs)&&(G.expired=!1)}if(G.start=St,m(G,"start","animatedStart",he),m(G,"jobs","animatedJobs",he),!G.color&&(this.clientColor.name&&this.clientColor.fgcolor&&this.clientColor.bgcolor&&(this.clientColor.name==G.client.ip||this.clientColor.name==G.client.name||this.clientColor.name==G.client.hostname)&&(G.color=this.clientColor.bgcolor,G.fg=this.clientColor.fgcolor),!G.color)){G.color=this._color(G.client.ip,!1);let Is=parseInt(G.color.substring(1),16),_h=Is>>16&255,cI=Is>>8&255,lI=Is>>0&255;var je=.2126*_h+.7152*cI+.0722*lI;je<128?G.fg="white":G.fg="black"}H.fillStyle=G.color,H.beginPath(),H.moveTo(Ve,Ve),H.arc(Ve,Ve,st,G.animatedStart,G.animatedStart+Math.PI*2*(G.animatedJobs/O),!1),H.lineTo(Ve,Ve),H.fill(),H.beginPath(),H.rect(B,w-20,L,30),H.fill(),"rect"in G.client?(G.client.rect.x=B,G.client.rect.y=w-20):G.client.rect={x:B,y:w-20,width:L,height:30},H.fillStyle=G.fg,H.fillText(G.client.modifiedName,B+2,w),P.hits+=G.cacheJobs,P.misses+=G.jobs;let Se=0,vr=L*((G.totalCacheJobs||0)/((G.totalCacheJobs||0)+G.totalJobs)),bh=L*(G.totalJobs/((G.totalCacheJobs||0)+G.totalJobs));H.fillStyle="#3d3",H.beginPath(),H.rect(B,w-20+31,vr,4),H.fill(),H.fillStyle="#33d",H.beginPath(),H.rect(B+vr,w-20+31,bh,4),H.fill(),Se=8;let ft=(G.cacheJobs||0)+" / "+G.jobs+" ("+Math.round(G.jobs/O*1e3)/10+"%)",on=H.measureText(ft),At=(Is,_h)=>("000000000"+Is).substr(-_h),_r=oe-G.ts,mo="("+At(Math.floor(_r/1e3/60),2)+":"+At(Math.floor(_r/1e3)%60,2)+")",Jb=H.measureText(mo),vh=on.width+Jb.width+10;H.fillStyle=G.color,H.beginPath(),H.rect(B+L-vh-15,w-20,vh+15,30),H.fill(),H.fillStyle=G.fg,H.fillText(ft,B+L-vh-10,w),H.fillText(mo,B+L-Jb.width-10,w),St+=Math.PI*2*(G.animatedJobs/O),w+=30+Se}if(P.hits>0||P.misses>0){w=0;let Ce=L*(P.hits/(P.hits+P.misses)),G=L*(P.misses/(P.hits+P.misses));H.fillStyle="#3d3",H.beginPath(),H.rect(B,w-20+31,Ce,30),H.fill(),H.fillStyle="#33d",H.beginPath(),H.rect(B+Ce,w-20+31,G,30),H.fill();let Se=`${P.hits} / ${P.misses}`,vr=H.measureText(Se);H.fillStyle="#fff",H.fillText("Cache usage",B+2,w+31),H.fillText(Se,B+L-vr.width-15,w+31)}H.fillStyle="#fff",H.fillRect(0,this.view.height-W-10,this.view.width,W+10);let Ze=0;if(this.stats&&(Ze=this.stats.cacheHits+this.stats.jobsFailed+this.stats.jobsStarted),Ze>0){let Ce=5,G=5;H.fillStyle="#3d3",H.fillRect(Ce,this.view.height-W-5,(this.view.width-10)*(this.stats.cacheHits/Ze),W),Ce+=(this.view.width-10)*(this.stats.cacheHits/Ze);let Se="Hits "+Number(this.stats.cacheHits).toLocaleString()+" "+(this.stats.cacheHits/Ze*100).toFixed(1)+"%";H.fillText(Se,G,this.view.height-W-10),G+=H.measureText(Se).width+30,H.fillStyle="#33d",H.fillRect(Ce,this.view.height-W-5,(this.view.width-10)*(this.stats.jobsStarted/Ze),W),Ce+=(this.view.width-10)*(this.stats.jobsStarted/Ze),Se="Compiles "+Number(this.stats.jobsStarted).toLocaleString()+" "+(this.stats.jobsStarted/Ze*100).toFixed(1)+"%",H.fillText(Se,G,this.view.height-W-10),this.stats.jobsFailed>0&&(G+=H.measureText(Se).width+30,H.fillStyle="#d33",H.fillRect(Ce,this.view.height-W-5,(this.view.width-10)*(this.stats.jobsFailed/Ze),W),Se="Failures "+Number(this.stats.jobsFailed).toLocaleString()+" "+(this.stats.jobsFailed/Ze*100).toFixed(1)+"%",H.fillText(Se,G,this.view.height-W-10))}window.requestAnimationFrame(A)};window.requestAnimationFrame(A)})}ngOnDestroy(){console.log("destroyed"),this.tabChanged.remove(this.onTabChange),this.config.remove(this.onConfig),this.fisk.remove("open",this.fiskOpen),this.fisk.remove("data",this.fiskData),this.fisk.remove("scheduler",this.fiskScheduler),window.removeEventListener("resize",this.onResize),this.destroyed=!0}_onResize(){let e=document.getElementById("canvas-chart");if(e){let n=e.getBoundingClientRect();this.view.width=window.innerWidth-n.x*2,this.view.height=window.innerHeight-n.y-50}}_reset(){this.maxJobs=0,this.maxJobsData={},this.jobs=new Map,this.builders=new Set,this.clientJobs=[]}_color(e,n){function r(p,v,E){return p+E()*(v-p)}function o(p){return("0"+Number(p).toString(16)).slice(-2)}let s=(0,JE.default)(e);var a=r(1,360,s),c=r(0,100,s),l=r(45,100,s);n&&(c=100-c),a/=360,c/=100,l/=100;var d,u,f;if(c==0)d=u=f=l;else{let p=(v,E,A)=>(A<0&&(A+=1),A>1&&(A-=1),A<.16666666666666666?v+(E-v)*6*A:A<.5?E:A<.6666666666666666?v+(E-v)*(.6666666666666666-A)*6:v);var h=l<.5?l*(1+c):l+c-l*c,m=2*l-h;d=p(m,h,a+1/3),u=p(m,h,a),f=p(m,h,a-1/3)}return"#"+o(d*255)+o(u*255)+o(f*255)}_clientJobIndex(e){for(let n=0;n<this.clientJobs.length;++n)if(this.clientJobs[n].client.ip===e.ip&&this.clientJobs[n].client.name===e.name)return n;return-1}_adjustClients(e,n,r){let o=this._clientJobIndex(e);if(o==-1){if(n<0||r<0)return console.error("no client job for job client",e),!1;if(e.name===e.hostname)e.modifiedName="dev:"+(e.user||"nobody")+"@"+e.hostname;else if(e.name.length>0&&e.name[0]==="-")e.modifiedName="dev:"+(e.user||"nobody")+e.name;else{try{let s=JSON.parse(e.name);typeof s=="object"&&"name"in s&&(e.modifiedName=s.name,e.url=s.href)}catch{}e.modifiedName||(e.modifiedName=e.name)}this.clientJobs.push({client:e,jobs:n,cacheJobs:r,totalJobs:n,totalCacheJobs:r,ts:new Date().valueOf(),expired:!1}),this.clientJobs.sort((s,a)=>s.client.modifiedName.localeCompare(a.client.modifiedName))}else{let s=this.clientJobs[o];s.jobs+=n,n>0&&(s.totalJobs+=n),s.cacheJobs+=r,r>0&&(s.totalCacheJobs+=r),!s.jobs&&!s.cacheJobs&&(new Date().valueOf()-s.ts<this.minTime?s.expired=!0:this.clientJobs.splice(o,1))}return!0}_builderId(e){return e.ip+":"+e.port}_builderAdded(e){let n=this._builderId(e);this.builders.has(n)||(this.builders.add(n),this.maxJobs+=e.slots,this._updateMaxJobsData())}_builderRemoved(e){if(!this.builders.delete(this._builderId(e)))return;if(this.maxJobs-=e.slots,this._updateMaxJobsData(),this.maxJobs<0)throw new Error("Negative jobs reached!");let n=this._builderId(e);this.jobs.forEach((r,o)=>{n==this._builderId(r.builder)&&(this.jobs.delete(o),this._adjustClients(r.client,-1,0))}),this._updateMaxJobsData()}_updateMaxJobsData(){this.maxJobsData.text=`Slots ${this.jobs.size} / ${this.maxJobs} (${(this.jobs.size/this.maxJobs*100).toFixed(1)}%)`,this.maxJobsData.width=this.ctx.measureText(this.maxJobsData.text).width}_jobStarted(e){let n=r=>{let o=r.indexOf("(");return o!==-1?r.substr(0,o):r};e.date=n(new Date().toTimeString()).trim(),this.jobs.set(e.id,e),this._adjustClients(e.client,1,0),this._updateMaxJobsData()}_jobFinished(e){if(!this.jobs.has(e.id)){console.error("No such job ",e),console.error(JSON.stringify(Array.from(this.jobs.keys())));return}let n=this.jobs.get(e.id);this.jobs.delete(e.id),this._adjustClients(n.client,-1,0),this._updateMaxJobsData()}_updateStats(e){this.stats=e}_cacheHit(e){this._adjustClients(e.client,0,1),setTimeout(()=>this._adjustClients(e.client,0,-1),5e3)}static{this.\u0275fac=function(n){return new(n||i)(g(yi),g(_i),g(rn),g(hh),g(Ue),g(Nn))}}static{this.\u0275cmp=de({type:i,selectors:[["app-pie-chart"]],decls:1,vars:2,consts:[["id","canvas-chart",3,"width","height"]],template:function(n,r){n&1&&ie(0,"canvas",0),n&2&&S("width",r.view.width)("height",r.view.height)}})}}return i})();var dt="system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",Gt=12,Ds=40,Zb=17,pB=700,gB=300,Es={hit:70,compiled:25,failed:20},gh=class{constructor(t,e){this.canvas=t,this.model=e,this.width=0,this.height=0,this.windowMs=5*60*1e3,this.sideWidth=360,this.animate=!0,this.focus=void 0,this.hoverX=void 0,this.dpr=1,this.tiles=[],this.tileByBuilder=new Map,this.rows=[],this.rowByClient=new Map,this.moreRow=void 0,this.timelinePlot=void 0,this.kpis=[],this.visibleSamples=[],this.particles=[],this.textCache=new Map,this.tokens={hit:0,compiled:0,failed:0,t:0},this.ctx=t.getContext("2d",{alpha:!1}),this.unsubscribe=e.onEvent(n=>this.spawn(n))}destroy(){this.unsubscribe()}resize(t,e,n){this.width=Math.max(320,Math.floor(t)),this.height=Math.max(320,Math.floor(e)),this.dpr=n||1,this.canvas.width=Math.floor(this.width*this.dpr),this.canvas.height=Math.floor(this.height*this.dpr),this.canvas.style.width=this.width+"px",this.canvas.style.height=this.height+"px",this.textCache.clear()}hitTest(t,e){for(let r of this.tiles)if(mh(t,e,r)){let o=Math.floor((t-r.cellX)/(r.cell+r.gap)),s=Math.floor((e-r.cellY)/(r.cell+r.gap)),a;if(o>=0&&o<r.cols&&s>=0){let c=s*r.cols+o;c<r.builder.cells.length&&(a=r.builder.cells[c])}return{kind:"builder",builder:r.builder,job:a}}for(let r of this.kpis)if(mh(t,e,r))return{kind:"kpi",key:r.key};for(let r of this.rows)if(mh(t,e,r))return r.client?{kind:"client",client:r.client}:{kind:"more"};let n=this.timelinePlot;if(n&&mh(t,e,n)&&this.visibleSamples.length){let r=Date.now()-(n.x+n.w-t)/n.w*this.windowMs,o=this.visibleSamples[0];for(let s of this.visibleSamples)Math.abs(s.t-r)<Math.abs(o.t-r)&&(o=s);return{kind:"timeline",sample:o}}}draw(t){let e=this.ctx;e.setTransform(this.dpr,0,0,this.dpr,0,0),e.fillStyle=R.bg,e.fillRect(0,0,this.width,this.height),e.textBaseline="alphabetic";let n=this.width,r=this.height,o={x:Gt,y:Gt,w:n-Gt*2,h:72},s=o.y+o.h+Gt,a=Math.round(Math.max(240,Math.min(this.sideWidth,n*.38))),c={x:Gt,y:s,w:n-a-Gt*3,h:r-s-Gt},l={x:c.x+c.w+Gt,y:s,w:a,h:r-s-Gt},d=Math.round(Math.max(170,Math.min(c.h*.45,340))),u={x:c.x,y:c.y,w:c.w,h:d},f={x:c.x,y:c.y+d+Gt,w:c.w,h:c.h-d-Gt},h=Zb*6+34,m=34+Math.max(2,this.model.clients.size)*Ds+4,p=Math.round(Math.max(Math.min(m,l.h-h-Gt),Math.min(160,l.h*.5))),v={x:l.x,y:l.y,w:l.w,h:p},E={x:l.x,y:v.y+v.h+Gt,w:l.w,h:l.h-p-Gt};this.drawKpis(o,t),this.drawTimeline(u,t),this.drawBuilders(f,t),this.drawClients(v,t),this.drawFeed(E,t),this.drawParticles(t)}drawKpis(t,e){let n=this.model,r=n.windowStats(60,e),o=n.capacity,s=n.scheduledCount,a=n.jobs.size-s,c=n.stats,l=c&&c.cacheHits||0,d=c&&c.jobsStarted||0,u=l+d?l/(l+d):0,f=r.avgCompileMs||n.compileMsEma,h=n.sessionHits+n.sessionStarted?n.sessionHits/(n.sessionHits+n.sessionStarted):0,m=[{prio:0,key:"slots",label:"SLOTS IN USE",value:`${a+s} / ${o}`,sub:`${o?Math.round((a+s)/o*100):0}% - ${a} compiling, ${s} waiting`,bar:[[a,R.compile],[s,R.queued],[Math.max(0,o-a-s),R.cellEmpty]]},{prio:0,key:"cache",label:"CACHE HIT RATE (60s)",value:r.hits+r.started?ph(r.hitRate):"-",color:R.hit,sub:`session ${ph(h)} - lifetime ${ph(u)} of ${Ln(l+d)}`,bar:[[r.hits,R.hit],[r.started,R.compile]]},{prio:1,key:"throughput",label:"THROUGHPUT (60s)",value:`${r.throughput.toFixed(r.throughput<10?1:0)}/s`,sub:`${(r.hits/Math.min(60,Math.max(1,(e-n.sessionStart)/1e3))).toFixed(1)} hits/s + ${(r.compiled/Math.min(60,Math.max(1,(e-n.sessionStart)/1e3))).toFixed(1)} compiles/s`},{prio:2,key:"compile",label:"AVG COMPILE",value:vt(f),sub:`dispatch wait ${vt(r.avgWaitMs)}`},{prio:1,key:"saved",label:"SAVED BY CACHE",value:f?"~"+vt(n.sessionHits*f):"-",color:R.hit,sub:`${Ln(n.sessionHits)} hits since ${nI(n.sessionStart)}`},{prio:2,key:"failures",label:"FAILURES (60s)",value:String(r.failed),color:r.failed?R.fail:void 0,sub:`session ${Ln(n.sessionFailures)} - lifetime ${Ln(c&&c.jobsFailed||0)}`},{prio:3,key:"builders",label:"BUILDERS",value:String(n.builders.size),sub:n.schedulerVersion?`scheduler ${n.schedulerVersion}`:`${Ln(n.clients.size)} clients`}],p=10,v=m;for(let C=3;C>0&&!((t.w-(v.length-1)*p)/v.length>=150);--C)v=v.filter(L=>L.prio<C);let E=(t.w-(v.length-1)*p)/v.length,A=this.ctx;this.kpis=[],v.forEach((C,N)=>{let L=t.x+N*(E+p);this.kpis.push({key:C.key,x:L,y:t.y,w:E,h:t.h}),this.panel({x:L,y:t.y,w:E,h:t.h}),A.fillStyle=R.dim,A.font=`600 10px ${dt}`,A.fillText(this.fit(C.label,E-20),L+10,t.y+17),A.fillStyle=C.color||R.text,A.font=`600 22px ${dt}`,A.fillText(this.fit(C.value,E-20),L+10,t.y+42),A.fillStyle=R.dim,A.font=`11px ${dt}`,A.fillText(this.fit(C.sub,E-20),L+10,t.y+58),C.bar&&this.ratioBar(L+10,t.y+t.h-8,E-20,3,C.bar)})}drawTimeline(t,e){let n=this.ctx;this.panel(t),this.title(t,`Activity - last ${vt(this.windowMs)}`,[]);let r={x:t.x+44,y:t.y+30,w:t.w-56,h:t.h-52};this.timelinePlot=r;let o=r.y+Math.round(r.h*.64),s=o-r.y,a=r.y+r.h-o,c=e-this.windowMs,l=this.model.history,d=l.length;for(;d>0&&l[d-1].t>=c-uo;)--d;let u=l.slice(d);this.visibleSamples=u;let f=new Map;this.model.clients.forEach(w=>{w.compiling&&f.set(w,w.compiling)});let h=u.concat([{t:e,capacity:this.model.capacity,scheduled:this.model.scheduledCount,compiling:f,hits:0,compiled:0,failed:0}]),m=w=>r.x+r.w-(e-w)/this.windowMs*r.w,p=1,v=0,E=new Set,A=new Float64Array(h.length);h.forEach((w,O)=>{let P=0;w.compiling.forEach((oe,je)=>{P+=oe,E.add(je)}),A[O]=P,p=Math.max(p,P+w.scheduled),v=Math.max(v,w.capacity)});let C=v>0&&v<=p*2.5;p=iI(Math.max(p*1.15,C?v*1.05:0,4));let N=w=>o-w/p*(s-4),L=4,B=u.map((w,O)=>{let P=0,oe=0,je=0,Ze=0;for(let G=Math.max(0,O-L+1);G<=O;++G,++Ze)P+=u[G].hits,oe+=u[G].compiled,je+=u[G].failed;let Ce=1e3/(uo*Math.max(1,Ze));return[P*Ce,oe*Ce,je*Ce]}),W=1;B.forEach(w=>W=Math.max(W,w[0]+w[1]+w[2])),W=iI(W*1.1);let ee=w=>o+w/W*(a-2);n.save(),n.beginPath(),n.rect(r.x,r.y,r.w,r.h),n.clip(),n.strokeStyle=R.grid,n.lineWidth=1;let he=_B(this.windowMs);n.font=`10px ${dt}`;for(let w=Math.ceil(c/he)*he;w<=e;w+=he){let O=Math.round(m(w))+.5;n.beginPath(),n.moveTo(O,r.y),n.lineTo(O,r.y+r.h),n.stroke()}[.5,1].forEach(w=>{let O=Math.round(N(p*w))+.5;n.beginPath(),n.moveTo(r.x,O),n.lineTo(r.x+r.w,O),n.stroke()});let ze=Array.from(E).sort((w,O)=>w.displayName.localeCompare(O.displayName)),H=new Float64Array(h.length);for(let w of ze){n.beginPath();for(let O=0;O<h.length;++O){let P=h[O].compiling.get(w)||0,oe=m(h[O].t),je=N(H[O]+P);O===0?n.moveTo(oe,je):n.lineTo(oe,je)}for(let O=h.length-1;O>=0;--O)n.lineTo(m(h[O].t),N(H[O]));n.closePath(),n.globalAlpha=this.focus&&this.focus!==w?.15:.9,n.fillStyle=w.color,n.fill();for(let O=0;O<h.length;++O)H[O]+=h[O].compiling.get(w)||0}n.globalAlpha=1,n.beginPath();for(let w=0;w<h.length;++w){let O=m(h[w].t),P=N(A[w]+h[w].scheduled);w===0?n.moveTo(O,P):n.lineTo(O,P)}for(let w=h.length-1;w>=0;--w)n.lineTo(m(h[w].t),N(A[w]));n.closePath(),n.fillStyle=fo(R.queued,.35),n.fill(),n.beginPath(),h.forEach((w,O)=>{let P=m(w.t),oe=Math.round(N(Math.min(w.capacity,p)))+.5;O===0?n.moveTo(P,oe):(n.lineTo(P,Math.round(N(Math.min(h[O-1].capacity,p)))+.5),n.lineTo(P,oe))}),n.setLineDash([4,3]),n.strokeStyle=C?R.capacity:fo(R.capacity,.35),n.stroke(),n.setLineDash([]),!C&&v&&(n.fillStyle=R.dim,n.font=`10px ${dt}`,n.textAlign="right",n.fillText(`capacity ${Ln(v)} (above scale)`,r.x+r.w-4,r.y+12),n.textAlign="left");let Ye=[[0,R.hit],[1,R.compile],[2,R.fail]],Ve=new Float64Array(u.length);for(let[w,O]of Ye){if(!u.length)break;n.beginPath();for(let P=0;P<u.length;++P){let oe=m(u[P].t),je=ee(Ve[P]+B[P][w]);P===0?n.moveTo(oe,je):n.lineTo(oe,je)}for(let P=u.length-1;P>=0;--P)n.lineTo(m(u[P].t),ee(Ve[P]));n.closePath(),n.fillStyle=fo(O,w===1?.55:.9),n.fill();for(let P=0;P<u.length;++P)Ve[P]+=B[P][w]}this.hoverX!==void 0&&this.hoverX>=r.x&&this.hoverX<=r.x+r.w&&(n.strokeStyle=R.crosshair,n.beginPath(),n.moveTo(Math.round(this.hoverX)+.5,r.y),n.lineTo(Math.round(this.hoverX)+.5,r.y+r.h),n.stroke()),n.restore(),n.strokeStyle=R.faint,n.beginPath(),n.moveTo(r.x,o+.5),n.lineTo(r.x+r.w,o+.5),n.stroke(),n.fillStyle=R.dim,n.font=`10px ${dt}`,n.textAlign="right",n.fillText(Ln(p),r.x-6,N(p)+4),n.fillText(Ln(p/2),r.x-6,N(p/2)+4),n.fillText("0",r.x-6,o+4),n.fillText(`${Ln(W)}/s`,r.x-6,r.y+r.h),n.textAlign="center";for(let w=Math.ceil(c/he)*he;w<=e;w+=he)e-w<he*.4||n.fillText(nI(w,he<6e4),m(w),r.y+r.h+14);n.textAlign="right",n.fillText("now",r.x+r.w,r.y+r.h+14),n.textAlign="left";let st=[" \xB7 ",R.faint],St=C?r.w-12:r.w-190;this.caption(r.x+6,r.y+4,St,[["Busy slots",R.text],[" by client",R.dim],st,["waiting to start",R.queued],st,["- - capacity",R.capacity]]),this.caption(r.x+6,r.y+r.h-20,r.w-12,[["Finished per second",R.text],st,["cache hits",R.hit],st,["compiled",R.compile],st,["failed",R.fail]])}caption(t,e,n,r){let o=this.ctx,s=r.map((d,u)=>u===0?`600 11px ${dt}`:`11px ${dt}`),a=0,c=0;for(let d=0;d<r.length;++d){let u=this.measure(r[d][0],s[d]);if(c+u>n-12)break;c+=u,++a}for(;a>1&&r[a-1][0].trim()==="\xB7";)--a,c-=this.measure(r[a][0],s[a]);if(!a)return;o.globalAlpha=.82,o.fillStyle=R.panel,ho(o,t,e,c+12,16,4),o.fill(),o.globalAlpha=1;let l=t+6;for(let d=0;d<a;++d)o.font=s[d],o.fillStyle=r[d][1],o.fillText(r[d][0],l,e+12),l+=this.measure(r[d][0],s[d])}drawBuilders(t,e){let n=this.ctx;this.panel(t);let r=this.model.sortedBuilders();if(this.title(t,`Builders (${r.length}) - ${this.model.capacity} slots`,[["compiling",R.compile],["waiting",R.queued],["cache hit",R.hit],["failed",R.fail]]),this.tiles=[],this.tileByBuilder.clear(),!r.length){this.empty(t,"No builders connected");return}let o={x:t.x+10,y:t.y+30,w:t.w-20,h:t.h-38},s;for(let c=26;c>=4&&(s=this.layoutTiles(r,o,c,c===4),!s);--c);let a=this.animate;for(let c of s){if(c.y>t.y+t.h)continue;let l=c.builder;this.tiles.push(c),this.tileByBuilder.set(l,c),n.fillStyle=R.tile,ho(n,c.x,c.y,c.w,c.h,4),n.fill(),n.strokeStyle=R.panelEdge,ho(n,c.x+.5,c.y+.5,c.w-1,c.h-1,4),n.stroke();let d=c.cell>=10?11:9;n.font=`${d}px ${dt}`;let u=0;l.cells.forEach(E=>{E&&++u});let f=l.overflow.length?`+${l.overflow.length}`:`${u}/${l.slots}`,h=this.measure(f,n.font);n.fillStyle=l.overflow.length?R.queued:R.dim,n.fillText(f,c.x+c.w-6-h,c.cellY-5),n.fillStyle=R.text,n.fillText(this.fit(l.displayName,c.w-16-h,!0),c.x+6,c.cellY-5);let m=c.cell+c.gap;for(let E=0;E<l.slots;++E){let A=c.cellX+E%c.cols*m,C=c.cellY+Math.floor(E/c.cols)*m,N=l.cells[E];if(!N)n.fillStyle=R.cellEmpty,n.fillRect(A,C,c.cell,c.cell);else{let B=this.focus&&this.focus!==N.client;n.globalAlpha=B?.18:1,N.state==="compiling"?(n.fillStyle=N.client.color,n.fillRect(A,C,c.cell,c.cell)):(n.fillStyle=R.cellEmpty,n.fillRect(A,C,c.cell,c.cell),n.fillStyle=fo(N.client.color,.3),n.fillRect(A,C,c.cell,c.cell),n.strokeStyle=N.predictedHit?R.hit:R.queued,n.strokeRect(A+.5,C+.5,c.cell-1,c.cell-1)),n.globalAlpha=1}let L=a?l.cellFx[E]:void 0;if(L){let B=(e-L.t)/pB;B>=1||B<0?l.cellFx[E]=void 0:(n.globalAlpha=Math.pow(1-B,1.5),n.fillStyle=L.outcome==="hit"?R.hit:L.outcome==="failed"?R.fail:L.outcome==="dropped"?R.dim:L.client.color,n.fillRect(A,C,c.cell,c.cell),L.outcome==="hit"&&c.cell>=8&&(n.globalAlpha=(1-B)*.7,n.strokeStyle=R.hit,n.beginPath(),n.arc(A+c.cell/2,C+c.cell/2,c.cell*(.45+B*.6),0,Math.PI*2),n.stroke()),n.globalAlpha=1)}}let p=l.totalHits+l.totalCompiles,v=c.y+c.h-7;p?this.ratioBar(c.x+6,v,c.w-12,3,[[l.totalHits,R.hit],[Math.max(0,l.totalCompiles-l.totalFailures),fo(R.compile,.7)],[Math.min(l.totalFailures,l.totalCompiles),R.fail]]):(n.fillStyle=R.cellEmpty,n.fillRect(c.x+6,v,c.w-12,3))}this.tiles.length<r.length&&(n.fillStyle=R.dim,n.font=`11px ${dt}`,n.textAlign="right",n.fillText(`+${r.length-this.tiles.length} more builders`,t.x+t.w-10,t.y+t.h-6),n.textAlign="left")}layoutTiles(t,e,n,r){let o=n>=8?2:1,s=n>=10?18:14,a=6,c=[],l=e.x,d=e.y,u=0,f=8;for(let h of t){let m=Math.max(1,h.slots),p=Math.min(m,Math.ceil(Math.sqrt(m*3))),v=n>=10?96:70;for(;p<m&&p*(n+o)-o+a*2<v;)++p;let E=Math.ceil(m/p),A=Math.max(v,p*(n+o)-o+a*2),C=s+E*(n+o)-o+a+8;if(A>e.w&&!r)return;l+A>e.x+e.w&&l>e.x&&(l=e.x,d+=u+f,u=0),c.push({builder:h,x:l,y:d,w:A,h:C,cellX:l+a,cellY:d+s,cell:n,gap:o,cols:p}),l+=A+f,u=Math.max(u,C)}if(!(!r&&d+u>e.y+e.h))return c}drawClients(t,e){let n=this.ctx;this.panel(t);let r=this.model.sortedClients(),o=r.filter(h=>h.jobs.size).length;if(this.title(t,`Clients (${o} active)`,[]),this.rows=[],this.rowByClient.clear(),this.moreRow=void 0,!r.length){this.empty(t,"No client activity");return}let s=t.y+30,a=Math.max(1,Math.floor((t.h-34)/Ds)),c=r;c.length>a&&(c=r.filter(h=>h.jobs.size||h===this.focus));let l=r.length-c.length;c.length>a&&(l+=c.length-(a-1),c=c.slice(0,a-1));let d=Math.max(1,this.model.capacity),u=t.x+8,f=t.w-16;if(c.forEach((h,m)=>{let p=s+m*Ds,v={x:u,y:p,w:f,h:Ds-4,client:h};this.rows.push(v),this.rowByClient.set(h,v);let E=!h.jobs.size,A=this.focus&&this.focus!==h||E;n.fillStyle=this.focus===h?R.tileFocus:R.tile,ho(n,u,p,f,v.h,4),n.fill(),this.focus===h&&(n.strokeStyle=h.color,ho(n,u+.5,p+.5,f-1,v.h-1,4),n.stroke()),n.globalAlpha=A?.45:1,n.fillStyle=h.color,n.fillRect(u,p,5,v.h),n.font=`600 13px ${dt}`;let C=String(h.compiling),N=this.measure(C,n.font);n.font=`11px ${dt}`;let L=h.scheduled?` +${h.scheduled}`:"",B=L?this.measure(L,n.font):0,W=u+f-8;n.fillStyle=R.queued,n.fillText(L,W-B,p+16),n.fillStyle=R.text,n.font=`600 13px ${dt}`,n.fillText(C,W-B-N,p+16),n.font=`13px ${dt}`,n.fillStyle=R.text,n.fillText(this.fit(h.displayName+(h.url?" \u2197":""),f-30-N-B),u+12,p+16);let ee=p+v.h-11,he=Math.round((f-20)*.55);n.fillStyle=R.cellEmpty,n.fillRect(u+12,ee,he,5),n.fillStyle=h.color,n.fillRect(u+12,ee,Math.min(he,he*h.compiling/d),5),n.fillStyle=fo(R.queued,.8),n.fillRect(u+12+Math.min(he,he*h.compiling/d),ee,Math.max(0,Math.min(he*(1-h.compiling/d),he*h.scheduled/d)),5);let ze=h.totalHits+h.totalCompiles,H=u+20+he,Ye=u+f-8-H;n.font=`10px ${dt}`;let Ve=ze?`${ph(h.totalHits/ze)} hit`:"",st=this.measure(Ve,n.font);ze&&(n.fillStyle=h.totalHits?R.hit:R.dim,n.fillText(Ve,u+f-8-st,ee+6),this.ratioBar(H,ee+1,Math.max(0,Ye-st-6),3,[[h.totalHits,R.hit],[h.totalCompiles,fo(R.compile,.7)]])),n.globalAlpha=1}),l>0){let h=s+c.length*Ds;this.moreRow={x:u,y:h,w:f,h:Ds-4},this.rows.push(this.moreRow),n.fillStyle=R.dim,n.font=`12px ${dt}`,n.fillText(`+${l} more (idle clients hidden)`,u+12,h+22)}}drawFeed(t,e){let n=this.ctx;this.panel(t),this.title(t,"Recent",[["hit",R.hit],["compiled",R.compile],["failed",R.fail]]);let r=this.model.events,o=Math.floor((t.h-34)/Zb),s=t.x+10,a=t.w-20,c=t.y+30+12;n.font=`11px ${dt}`;let l=0;for(let d=r.length-1;d>=0&&l<o;--d){let u=r[d];if(this.focus&&u.client!==this.focus)continue;++l;let f=e-u.t;n.globalAlpha=f<400?1:Math.max(.55,1-(f-400)/2e4);let h=u.outcome==="hit"?R.hit:u.outcome==="failed"?R.fail:R.compile;n.fillStyle=h,n.beginPath(),n.arc(s+4,c-4,3.5,0,Math.PI*2),n.fill();let m=u.outcome==="hit"?"HIT":u.outcome==="failed"?"FAIL":vt(u.duration),p=this.measure(m,n.font);n.fillText(m,s+a-p,c);let v=u.client?u.client.displayName:"",E=Math.min(a*.35,this.measure(v,n.font)),A=this.fit(v,E),C=this.measure(A,n.font);n.fillStyle=u.client?bB(u.client.color):R.dim,n.fillText(A,s+a-p-10-C,c),n.fillStyle=R.text,n.fillText(this.fit(oc(u.sourcePath)||`job ${u.cell}`,a-26-p-C-10),s+14,c),c+=Zb}n.globalAlpha=1,l||this.empty(t,"Waiting for jobs...")}spawn(t){if(!this.animate||t.outcome==="dropped"||!t.builder||t.cell<0)return;let e=this.tileByBuilder.get(t.builder);if(!e)return;let n=t.outcome==="hit",r=Date.now(),o=this.tokens,s=Math.min(1,(r-o.t)/1e3);if(o.t=r,o.hit=Math.min(Es.hit/4,o.hit+s*Es.hit),o.compiled=Math.min(Es.compiled/4,o.compiled+s*Es.compiled),o.failed=Math.min(Es.failed/4,o.failed+s*Es.failed),o[t.outcome]<1||this.particles.length>=gB)return;--o[t.outcome];let a=e.cell+e.gap,c=e.cellX+t.cell%e.cols*a+e.cell/2,l=e.cellY+Math.floor(t.cell/e.cols)*a+e.cell/2,d=t.client&&this.rowByClient.get(t.client)||this.moreRow;if(!d)return;let u=d.x+3,f=d.y+d.h/2;this.particles.push({x0:c,y0:l,x1:u,y1:f,cx:c+(u-c)*(.75+Math.random()*.2),cy:l+(f-l)*Math.random()*.15,t0:r,dur:750+Math.random()*350,color:n?R.hit:t.outcome==="failed"?R.fail:t.client?t.client.color:R.compile,r:n||t.outcome==="failed"?3:1.6,client:t.client})}drawParticles(t){if(!this.particles.length)return;let e=this.ctx,n=[];for(let r of this.particles){let o=(t-r.t0)/r.dur;if(!(o>=1)&&(n.push(r),!(this.focus&&r.client!==this.focus))){e.fillStyle=r.color;for(let s=3;s>=0;--s){let a=vB(Math.max(0,o-s*.035)),c=1-a,l=c*c*r.x0+2*c*a*r.cx+a*a*r.x1,d=c*c*r.y0+2*c*a*r.cy+a*a*r.y1;e.globalAlpha=(s===0?1:.5-s*.12)*(r.r<2?.7:1),e.beginPath(),e.arc(l,d,r.r*(1-s*.18),0,Math.PI*2),e.fill()}}}e.globalAlpha=1,this.particles=n}panel(t){let e=this.ctx;e.fillStyle=R.panel,ho(e,t.x,t.y,t.w,t.h,6),e.fill(),e.strokeStyle=R.panelEdge,e.lineWidth=1,ho(e,t.x+.5,t.y+.5,t.w-1,t.h-1,6),e.stroke()}title(t,e,n){let r=this.ctx;r.font=`600 12px ${dt}`,r.fillStyle=R.text,r.fillText(e,t.x+10,t.y+19);let o=t.x+t.w-10;r.font=`10px ${dt}`;let s=t.x+20+this.measure(e,`600 12px ${dt}`);for(let a=n.length-1;a>=0;--a){let[c,l]=n[a],d=this.measure(c,r.font);if(o-d-14<s)break;o-=d,r.fillStyle=R.dim,r.fillText(c,o,t.y+18),r.fillStyle=l,r.fillRect(o-12,t.y+10,8,8),o-=24}}empty(t,e){let n=this.ctx;n.fillStyle=R.faint,n.font=`13px ${dt}`,n.textAlign="center",n.fillText(e,t.x+t.w/2,t.y+t.h/2+10),n.textAlign="left"}ratioBar(t,e,n,r,o){let s=this.ctx,a=o.reduce((l,d)=>l+d[0],0);if(s.fillStyle=R.cellEmpty,s.fillRect(t,e,n,r),!a)return;let c=t;for(let[l,d]of o){let u=n*l/a;s.fillStyle=d,s.fillRect(c,e,u,r),c+=u}}measure(t,e){let n=e+`
16
+ `+t,r=this.textCache.get(n);if(r===void 0){this.textCache.size>2e4&&this.textCache.clear();let o=this.ctx.font;this.ctx.font=e,r=this.ctx.measureText(t).width,this.ctx.font=o,this.textCache.set(n,r)}return r}fit(t,e,n){let r=this.ctx.font;if(e<=0)return"";if(this.measure(t,r)<=e)return t;let o=c=>n?"..."+t.substring(t.length-c):t.substring(0,c)+"...",s=0,a=t.length;for(;s<a;){let c=s+a+1>>1;this.measure(o(c),r)<=e?s=c:a=c-1}return s?o(s):""}};function mh(i,t,e){return i>=e.x&&i<=e.x+e.w&&t>=e.y&&t<=e.y+e.h}function ho(i,t,e,n,r,o){o=Math.min(o,n/2,r/2),i.beginPath(),i.moveTo(t+o,e),i.arcTo(t+n,e,t+n,e+r,o),i.arcTo(t+n,e+r,t,e+r,o),i.arcTo(t,e+r,t,e,o),i.arcTo(t,e,t+n,e,o),i.closePath()}var tI=new Map;function bB(i){if(R.dark||!/^#[0-9a-fA-F]{6}$/.test(i))return i;let t=tI.get(i);if(!t){let e=parseInt(i.substring(1),16),n=r=>("0"+Math.round(r*.62).toString(16)).slice(-2);t="#"+n(e>>16&255)+n(e>>8&255)+n(e&255),tI.set(i,t)}return t}function fo(i,t){if(!/^#[0-9a-fA-F]{6}$/.test(i))return i;let e=parseInt(i.substring(1),16);return`rgba(${e>>16&255},${e>>8&255},${e&255},${Math.max(0,Math.min(1,t))})`}function vB(i){return i<.5?2*i*i:1-Math.pow(-2*i+2,2)/2}function iI(i){if(i<=1)return 1;let t=Math.pow(10,Math.floor(Math.log10(i)));for(let e of[1,1.5,2,2.5,3,4,5,6,8,10])if(e*t>=i)return e*t;return 10*t}function _B(i){let t=i/6e4;return t<=2?15e3:t<=5?6e4:t<=15?2*6e4:5*6e4}function ph(i){return isFinite(i)?`${(i*100).toFixed(i<.1&&i>0?1:0)}%`:"-"}function Ln(i){return i>=1e6?`${(i/1e6).toFixed(1)}M`:i>=1e4?`${(i/1e3).toFixed(1)}k`:String(Math.round(i*10)/10)}function nI(i,t){let e=new Date(i),n=r=>("0"+r).slice(-2);return`${n(e.getHours())}:${n(e.getMinutes())}`+(t?`:${n(e.getSeconds())}`:"")}var yB=["canvas"],wB=["host"],xB=["tooltip"],rI=(()=>{class i{constructor(e,n,r,o){this.live=e,this.config=n,this.zone=r,this.dialog=o,this.destroyed=!1,this.onResize=()=>this.resize(),this.mouse=void 0,this.lastTooltip=0,this.lastSize="",this.darkQuery=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):void 0,this.onSystemTheme=()=>this.applyTheme()}ngAfterViewInit(){let e=this.canvasRef.nativeElement;this.renderer=new gh(e,this.live.model),this.applyConfig(),this.configKey=this.config.onChange(()=>this.applyConfig()),this.darkQuery&&this.darkQuery.addEventListener("change",this.onSystemTheme),this.zone.runOutsideAngular(()=>{window.addEventListener("resize",this.onResize),e.addEventListener("mousemove",r=>this.onMouseMove(r)),e.addEventListener("mouseleave",()=>this.onMouseLeave()),e.addEventListener("click",r=>this.onClick(r)),e.addEventListener("dblclick",r=>this.onDoubleClick(r)),e.addEventListener("contextmenu",r=>this.onContextMenu(r));let n=r=>{if(this.destroyed)return;this.resize();let o=Date.now();this.renderer.draw(o),this.mouse&&o-this.lastTooltip>200&&this.updateTooltip(),window.requestAnimationFrame(n)};window.requestAnimationFrame(n)})}ngOnDestroy(){this.destroyed=!0,window.removeEventListener("resize",this.onResize),this.darkQuery&&this.darkQuery.removeEventListener("change",this.onSystemTheme),this.config.remove(this.configKey),this.renderer&&this.renderer.destroy()}applyConfig(){let e=this.renderer;e.sideWidth=this.config.get("chart-legend-space",400),e.windowMs=Math.max(30,Math.min(1800,this.config.get("live-window",300)||300))*1e3,e.animate=!this.config.get("noAnimate",!1),this.applyTheme()}applyTheme(){let e=this.config.get("live-theme","dark"),n=e==="light"||e==="auto"&&!!this.darkQuery&&!this.darkQuery.matches;GE(n?"light":"dark"),this.hostRef.nativeElement.classList.toggle("light",n)}resize(){if(this.destroyed)return;let e=this.hostRef.nativeElement,n=e.getBoundingClientRect(),r=e.clientWidth,o=Math.max(420,window.innerHeight-n.top-24),s=window.devicePixelRatio||1,a=`${r}x${o}@${s}`;a!==this.lastSize&&(this.lastSize=a,this.renderer.resize(r,o,s))}pos(e){let n=this.canvasRef.nativeElement.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}onMouseMove(e){this.mouse=this.pos(e),this.updateTooltip()}onMouseLeave(){this.mouse=void 0,this.renderer.hoverX=void 0,this.tooltipRef.nativeElement.style.display="none",this.canvasRef.nativeElement.style.cursor="default"}onClick(e){let n=this.renderer.hitTest(this.pos(e).x,this.pos(e).y);n&&n.kind==="client"?this.renderer.focus=this.renderer.focus===n.client?void 0:n.client:n&&n.kind==="builder"&&n.job?this.renderer.focus=this.renderer.focus===n.job.client?void 0:n.job.client:n||(this.renderer.focus=void 0),this.updateTooltip()}onDoubleClick(e){let n=this.renderer.hitTest(this.pos(e).x,this.pos(e).y);n&&n.kind==="client"&&n.client.url&&window.open(n.client.url,"_blank")}onContextMenu(e){let n=this.renderer.hitTest(this.pos(e).x,this.pos(e).y),r=n&&n.kind==="client"?n.client:n&&n.kind==="builder"&&n.job?n.job.client:void 0;if(!r)return;e.preventDefault();let o=Array.from(r.jobs).map(s=>({client:{name:r.name},sourcePath:s.sourcePath,builder:{ip:s.builder?s.builder.displayName:"?"},date:`${s.state} ${vt(Date.now()-(s.startedAt||s.scheduledAt))}`}));this.zone.run(()=>{this.dialog.open(fh,{data:{client:{name:r.name,modifiedName:r.displayName},jobs:o}})})}updateTooltip(){this.lastTooltip=Date.now();let e=this.tooltipRef.nativeElement;if(!this.mouse){e.style.display="none";return}let n=this.renderer.hitTest(this.mouse.x,this.mouse.y);this.renderer.hoverX=n&&n.kind==="timeline"?this.mouse.x:void 0,this.canvasRef.nativeElement.style.cursor=n&&(n.kind==="client"||n.kind==="builder")?"pointer":"default";let r=n?this.tooltipHtml(n):"";if(!r){e.style.display="none";return}e.innerHTML=r,e.style.display="block";let o=this.hostRef.nativeElement,s=e.offsetWidth,a=e.offsetHeight,c=this.mouse.x+16,l=this.mouse.y+16;c+s>o.clientWidth-4&&(c=this.mouse.x-s-16),l+a>this.renderer.height-4&&(l=Math.max(4,this.renderer.height-a-4)),e.style.left=Math.max(4,c)+"px",e.style.top=l+"px"}tooltipHtml(e){switch(e.kind){case"builder":return this.builderTip(e.builder,e.job);case"client":return this.clientTip(e.client);case"timeline":return this.sampleTip(e.sample);case"kpi":return this.kpiTip(e.key);default:return""}}builderTip(e,n){let r=Date.now(),o=[];n&&(o.push(`<div class="h">${Et(oc(n.sourcePath))}</div>`),o.push(`<div class="dim">${Et(n.sourcePath)}</div>`),o.push(ye("client",Xb(n.client.color)+Et(n.client.displayName))),o.push(ye("state",n.state==="compiling"?`compiling for ${vt(r-n.startedAt)}`:`<span style="color:${R.queued}">waiting ${vt(r-n.scheduledAt)}</span> (upload / builder queue)`)),n.startedAt&&o.push(ye("dispatch",vt(n.startedAt-n.scheduledAt))),n.predictedHit!==void 0&&o.push(ye("routing",n.predictedHit?`<span style="color:${R.hit}">builder has it cached</span>`:"by load (not cached anywhere)")),o.push('<div class="sep"></div>'));let s=0;e.cells.forEach(c=>{c&&++s});let a=e.totalHits+e.totalCompiles;return o.push(`<div class="h">${Et(e.displayName)}</div>`),o.push(ye("address",Et(`${e.hostname?e.hostname+" ":""}${e.ip}:${e.port}`))),o.push(ye("slots",`${s} / ${e.slots}`+(e.overflow.length?` <span style="color:${R.queued}">+${e.overflow.length} queued</span>`:""))),o.push(ye("session",`<span style="color:${R.hit}">${e.totalHits} hits</span>, ${e.totalCompiles} compiles`+(e.totalFailures?`, <span style="color:${R.fail}">${e.totalFailures} failed</span>`:"")+(a?` (${Math.round(e.totalHits/a*100)}% hit)`:""))),e.labels.length&&o.push(ye("labels",Et(e.labels.join(", ")))),e.npmVersion&&o.push(ye("version",Et(e.npmVersion))),e.system&&o.push(ye("system",Et(e.system))),n||o.push('<div class="dim">click a slot to focus its client</div>'),o.join("")}clientTip(e){let n=Date.now(),r=[];r.push(`<div class="h">${Xb(e.color)}${Et(e.displayName)}</div>`),r.push(ye("host",Et(`${e.user?e.user+"@":""}${e.hostname||""} ${e.ip}`))),r.push(ye("now",`${e.compiling} compiling`+(e.scheduled?`, <span style="color:${R.queued}">${e.scheduled} waiting</span>`:"")));let o=e.totalHits+e.totalCompiles;r.push(ye("session",`<span style="color:${R.hit}">${e.totalHits} hits</span>, ${e.totalCompiles} compiles`+(e.totalFailures?`, <span style="color:${R.fail}">${e.totalFailures} failed</span>`:"")+(o?` (${Math.round(e.totalHits/o*100)}% hit)`:""))),r.push(ye("seen",`${vt(n-e.firstSeen)} ago`));let s=Array.from(e.jobs).sort((a,c)=>a.scheduledAt-c.scheduledAt).slice(0,8);return s.length&&(r.push('<div class="sep"></div>'),s.forEach(a=>{let c=a.state==="compiling"?vt(n-a.startedAt):`<span style="color:${R.queued}">waiting</span>`;r.push(ye(Et(oc(a.sourcePath)),`${c} on ${Et(a.builder?a.builder.displayName:"?")}`))}),e.jobs.size>s.length&&r.push(`<div class="dim">... ${e.jobs.size-s.length} more</div>`)),r.push(`<div class="dim">click to focus${e.url?", double-click to open":""}, right-click for job list</div>`),r.join("")}kpiTip(e){let n=this.live.model,r=Date.now(),o=n.windowStats(60,r),s=n.windowStats(10,r),a=n.stats||{},c=u=>`<span style="color:${R.hit}">${u.toLocaleString()}</span>`,l=(u,f)=>u+f?` (${(u/(u+f)*100).toFixed(1)}%)`:"",d=[];switch(e){case"slots":{let u=n.scheduledCount;d.push('<div class="h">Slots</div>'),d.push(ye("compiling",String(n.jobs.size-u))),d.push(ye("waiting",`${u} <span class="dim">(reserved, not started yet)</span>`)),d.push(ye("capacity",`${n.capacity} on ${n.builders.size} builders`));let f=Object.keys(a).filter(h=>a[h]&&typeof a[h]=="object"&&"activeJobs"in a[h]);f.length&&(d.push('<div class="sep"></div><div class="dim">peaks reported by the scheduler</div>'),f.forEach(h=>d.push(ye(Et(h),`${a[h].activeJobs} jobs, ${(a[h].utilization*100).toFixed(1)}%`))));break}case"cache":{if(d.push('<div class="h">Cache hits</div>'),d.push(ye("last 10s",`${c(s.hits)} / ${s.started} compiles${l(s.hits,s.started)}`)),d.push(ye("last 60s",`${c(o.hits)} / ${o.started} compiles${l(o.hits,o.started)}`)),d.push(ye("this session",`${c(n.sessionHits)} / ${n.sessionStarted} compiles${l(n.sessionHits,n.sessionStarted)}`)),a.cacheHits!==void 0&&d.push(ye("scheduler lifetime",`${c(a.cacheHits)} / ${(a.jobsStarted||0).toLocaleString()} compiles${l(a.cacheHits,a.jobsStarted||0)}`)),d.push('<div class="sep"></div>'),n.hasPredictions){let u=n.prediction;d.push('<div class="dim">routed to a builder that had the object cached:</div>'),d.push(ye("came back as hits",`${c(u.hits)}${l(u.hits,u.misses)}`)),d.push(ye("compiled anyway",`${u.misses} <span class="dim">(stale cache info)</span>`)),d.push(ye("unexpected hits",String(u.unpredictedHits)))}else d.push(`<div class="dim">This scheduler doesn't say which jobs it routed for a cache hit (jobScheduled.objectCache needs a newer fisk).</div>`);break}case"throughput":d.push('<div class="h">Finished jobs per second</div>'),d.push(ye("last 10s",`${s.throughput.toFixed(1)}/s`)),d.push(ye("last 60s",`${o.throughput.toFixed(1)}/s`)),d.push(ye("jobs scheduled",(a.jobsScheduled||0).toLocaleString()+' <span class="dim">lifetime</span>'));break;case"compile":d.push('<div class="h">Timing</div>'),d.push(ye("compile, 60s avg",vt(o.avgCompileMs))),d.push(ye("compile, long run avg",vt(n.compileMsEma))),d.push(ye("dispatch wait, 60s",vt(o.avgWaitMs))),d.push('<div class="dim">dispatch wait: from the scheduler picking a builder until the builder starts compiling (upload and builder queue)</div>');break;case"saved":d.push('<div class="h">Estimated compile time saved</div>'),d.push(ye("this session",`${n.sessionHits.toLocaleString()} hits x ${vt(o.avgCompileMs||n.compileMsEma)}`)),a.cacheHits&&n.compileMsEma&&d.push(ye("scheduler lifetime",`~${vt(a.cacheHits*n.compileMsEma)}`)),d.push('<div class="dim">builder CPU time, using the average compile duration</div>');break;case"failures":d.push('<div class="h">Failures</div>'),d.push(ye("last 60s",String(o.failed))),d.push(ye("this session",String(n.sessionFailures))),d.push(ye("scheduler lifetime",(a.jobsFailed||0).toLocaleString())),d.push(ye("dropped",`${n.sessionDropped} <span class="dim">(${n.hasReleases?"released without a result":"timed out without a result"})</span>`));break;case"builders":{d.push('<div class="h">Builders</div>');let u=new Map;n.builders.forEach(h=>u.set(h.npmVersion||"?",(u.get(h.npmVersion||"?")||0)+h.members.size)),u.forEach((h,m)=>d.push(ye(Et(m),String(h))));let f=Array.from(n.builders.values()).filter(h=>h.members.size>1);f.length&&(d.push('<div class="sep"></div>'),f.forEach(h=>d.push(`<div class="dim">${h.members.size} builders share ${Et(h.ip)}:${h.port}; shown as one tile</div>`))),n.schedulerVersion&&d.push(ye("scheduler",Et(n.schedulerVersion)));break}}return d.join("")}sampleTip(e){let n=[],r=Date.now()-e.t,o=0,s=[];e.compiling.forEach((l,d)=>{o+=l,s.push([d,l])}),s.sort((l,d)=>d[1]-l[1]);let a=new Date(e.t);n.push(`<div class="h">${a.toLocaleTimeString()} <span class="dim">(${vt(r)} ago)</span></div>`),n.push(ye("slots",`${o} compiling, <span style="color:${R.queued}">${e.scheduled} waiting</span> of ${e.capacity}`));let c=1e3/500;return n.push(ye("done/s",`<span style="color:${R.hit}">${e.hits*c} hits</span>, ${e.compiled*c} compiles`+(e.failed?`, <span style="color:${R.fail}">${e.failed*c} failed</span>`:""))),s.length&&(n.push('<div class="sep"></div>'),s.slice(0,10).forEach(([l,d])=>n.push(ye(Xb(l.color)+Et(l.displayName),String(d)))),s.length>10&&n.push(`<div class="dim">... ${s.length-10} more</div>`)),n.join("")}static{this.\u0275fac=function(n){return new(n||i)(g(uh),g(_i),g(U),g(Nn))}}static{this.\u0275cmp=de({type:i,selectors:[["app-live"]],viewQuery:function(n,r){if(n&1&&(_e(yB,5),_e(wB,5),_e(xB,5)),n&2){let o;ne(o=re())&&(r.canvasRef=o.first),ne(o=re())&&(r.hostRef=o.first),ne(o=re())&&(r.tooltipRef=o.first)}},decls:6,vars:0,consts:[["host",""],["canvas",""],["tooltip",""],[1,"live-host"],[1,"live-tooltip"]],template:function(n,r){n&1&&(y(0,"div",3,0),ie(2,"canvas",null,1)(4,"div",4,2),b())},styles:[".live-host[_ngcontent-%COMP%]{--tip-bg: rgba(12, 15, 21, .96);--tip-border: #333c4d;--tip-text: #d7deea;--tip-dim: #7c8699;--tip-sep: #2a3242;--tip-shadow: rgba(0, 0, 0, .45);position:relative;width:100%;margin-top:8px}.live-host.light[_ngcontent-%COMP%]{--tip-bg: rgba(255, 255, 255, .97);--tip-border: #d5dae3;--tip-text: #1f2533;--tip-dim: #667085;--tip-sep: #e4e7ec;--tip-shadow: rgba(16, 24, 40, .18)}canvas[_ngcontent-%COMP%]{display:block;border-radius:6px}.live-tooltip[_ngcontent-%COMP%]{display:none;position:absolute;z-index:10;pointer-events:none;max-width:420px;padding:8px 10px;border-radius:6px;border:1px solid var(--tip-border);background:var(--tip-bg);color:var(--tip-text);font:12px system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.45;box-shadow:0 6px 20px var(--tip-shadow)}.live-tooltip[_ngcontent-%COMP%] .h{font-weight:600;font-size:13px;word-break:break-all}.live-tooltip[_ngcontent-%COMP%] .dim{color:var(--tip-dim);word-break:break-all}.live-tooltip[_ngcontent-%COMP%] .row{display:flex;gap:12px;justify-content:space-between}.live-tooltip[_ngcontent-%COMP%] .k{color:var(--tip-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-tooltip[_ngcontent-%COMP%] .v{text-align:right}.live-tooltip[_ngcontent-%COMP%] .sep{height:1px;margin:6px 0;background:var(--tip-sep)}.live-tooltip[_ngcontent-%COMP%] .sw{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:2px}"]})}}return i})();function Et(i){return String(i??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function ye(i,t){return`<div class="row"><span class="k">${i}</span><span class="v">${t}</span></div>`}function Xb(i){return`<span class="sw" style="background:${i}"></span>`}function CB(i,t){if(i&1){let e=Te();y(0,"div",1),z("click",function(){let r=j(e).$implicit,o=T();return V(o.onClicked(r))}),y(1,"div",2),q(2),b()()}if(i&2){let e=t.$implicit;D(2),ad(" ",e.hash," ",e.compiler.name," ",e.compiler.version," (",e.target,") ")}}var DB=(i,t)=>({checked:i,args:t});function EB(i,t){if(i&1){let e=Te();y(0,"div",6)(1,"mat-checkbox",7),ld("ngModelChange",function(r){let o=j(e).$implicit,s=T();return qm(s.checked[o.hash],r)||(s.checked[o.hash]=r),V(r)}),b(),q(2),ie(3,"br"),y(4,"mat-form-field",8)(5,"mat-label"),q(6,"Arguments"),b(),y(7,"input",9),ld("ngModelChange",function(r){let o=j(e).$implicit,s=T();return qm(s.args[o.hash],r)||(s.args[o.hash]=r),V(r)}),b()()()}if(i&2){let e=t.$implicit,n=T();D(),cd("ngModel",n.checked[e.hash]),D(),ad(" ",e.hash," ",e.compiler.name," ",e.compiler.version," (",e.target,")"),D(5),cd("ngModel",n.args[e.hash])}}var oI=(()=>{class i{constructor(e,n,r){this.fisk=e,this.tabChanged=n,this.dialog=r,this.fisk.on("data",o=>{if(o.type==="listEnvironments"){let s=[];console.log(o.environments),this.links=o.environments.links;for(let a in o.environments){let c=o.environments[a];if(typeof c=="object"&&"system"in c){"hash"in c||(c.hash=a);let l={name:void 0,major:void 0,minor:void 0,patch:void 0,version:""},d=(c.info||"").split(`
17
+ `),u=/(Apple LLVM|clang|gcc) version (\d+)(?:\.(\d+))?(?:\.(\d+))?/,f=/^Target: (.*)$/,h=null,m=null;for(let p=0;p<d.length&&(!h||!m);++p)m||(m=u.exec(d[p])),h||(h=f.exec(d[p]));if(m?(l.name=m[1],l.major=parseInt(m[2],10)||0,l.minor=m[3]&&parseInt(m[3],10)||0,l.patch=m[4]&&parseInt(m[4],10)||0,l.version=`${l.major}.${l.minor}.${l.patch}`):console.log("failed to parse compiler version from info:",d),h&&(c.target=h[1]),c.compilerInfo&&c.compilerInfo.version){let p=c.compilerInfo.version;c.compilerInfo.type!=="unknown"&&(l.name=c.compilerInfo.type),l.major=p.major||0,l.minor=p.minor||0,l.patch=p.patch||0,l.version=`${l.major}.${l.minor}.${l.patch}`;let v=/^target=(.*)$/m.exec(c.compilerInfo.input||"");v&&(c.target=v[1])}c.compiler=l,s.push(c)}}console.log(s),this.environments=s}}),this.tabChanged.onChanged((o,s)=>{s=="Compilers"&&this.fisk.send({type:"listEnvironments"})})}onClicked(e){this.dialog.open(IB,{data:{current:e,environments:this.environments,links:this.links[e.hash]}}).afterClosed().subscribe(r=>{if(r){for(let o in r.checked)if(r.checked[o]){let s=r.args[o]&&r.args[o].split(" ");this.fisk.send({type:"linkEnvironments",srcHash:e.hash,targetHash:o,arguments:s})}}})}static{this.\u0275fac=function(n){return new(n||i)(g(yi),g(rn),g(Nn))}}static{this.\u0275cmp=de({type:i,selectors:[["app-compilers"]],decls:2,vars:1,consts:[["class","spacing",3,"click",4,"ngFor","ngForOf"],[1,"spacing",3,"click"],[1,"env"]],template:function(n,r){n&1&&(y(0,"mat-card"),J(1,CB,3,4,"div",0),b()),n&2&&(D(),S("ngForOf",r.environments))},dependencies:[Ai,Mn],styles:[".env[_ngcontent-%COMP%]{cursor:pointer;font-family:monospace}"]})}}return i})(),IB=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n,this.others=[],this.checked={},this.args={},this.info="";for(let r=0;r<n.environments.length;++r)n.current!=n.environments[r]?(this.others.push(n.environments[r]),this.checked[n.environments[r].hash]=!1):this.info=n.environments[r].info;if(n.links)for(let r in n.links){let o=n.links[r];o.arguments&&(this.args[r]=o.arguments.join(" ")),this.checked[r]=!0}}onNoClick(){this.dialogRef.close()}static{this.\u0275fac=function(n){return new(n||i)(g(On),g(rc))}}static{this.\u0275cmp=de({type:i,selectors:[["app-compilers-dialog"]],decls:9,vars:6,consts:[[1,"scroll"],[1,"info"],["class","env",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],[1,"env"],["matInput","",3,"ngModelChange","ngModel"],[1,"fullwidth"],["matInput","",1,"fullwidth",3,"ngModelChange","ngModel"]],template:function(n,r){n&1&&(y(0,"mat-card",0)(1,"div",1),q(2),b(),J(3,EB,8,6,"div",2),y(4,"div",3)(5,"button",4),z("click",function(){return r.onNoClick()}),q(6,"Cancel"),b(),y(7,"button",5),q(8,"Ok"),b()()()),n&2&&(D(2),ct(" ",r.info," "),D(),S("ngForOf",r.others),D(4),S("mat-dialog-close",Gm(3,DB,r.checked,r.args)))},dependencies:[Ai,es,ru,wa,_s,Mn,xs,gE,ih,Xu,Zu,vs],styles:[".env[_ngcontent-%COMP%]{cursor:pointer;font-family:monospace}.fullwidth[_ngcontent-%COMP%]{min-width:100%}.scroll[_ngcontent-%COMP%]{overflow:auto;max-height:70vh!important}.info[_ngcontent-%COMP%]{white-space:pre-line;margin-bottom:2em;border:1px dashed #ccc;padding:5px}"]})}}return i})();var kB=[{path:"live",component:rI},{path:"config",component:QE},{path:"pie-chart",component:eI},{path:"logs",component:XE},{path:"compilers",component:oI},{path:"",redirectTo:"/live",pathMatch:"full"}],sI=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=X({type:i,bootstrap:[KE]})}static{this.\u0275inj=Z({providers:[jw(),Fn,dh,yi,_i,hh,rn],imports:[Ix,Ad,EE,iC,Ju,CD,cE,vE,WD,AD,xE,oE,MD,YC.forRoot(kB)]})}}return i})();var aI={production:!1};aI.production&&void 0;Ww().bootstrapModule(sI).catch(i=>console.log(i));