1var v$7=Object.create;var p$9=Object.defineProperty,w$5=Object.defineProperties,x$4=Object.getOwnPropertyDescriptor,y$7=Object.getOwnPropertyDescriptors,z$3=Object.getOwnPropertyNames,o$5=Object.getOwnPropertySymbols,A$8=Object.getPrototypeOf,s$2=Object.prototype.hasOwnProperty,u$3=Object.prototype.propertyIsEnumerable;var r$5=(a,b)=>(b=Symbol[a])?b:Symbol.for("Symbol."+a);var t$4=(a,b,c)=>b in a?p$9(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,D$6=(a,b)=>{for(var c in b||={})s$2.call(b,c)&&t$4(a,c,b[c]);if(o$5)for(var c of o$5(b))u$3.call(b,c)&&t$4(a,c,b[c]);return a},E$7=(a,b)=>w$5(a,y$7(b));var F$8=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var G$7=a=>typeof a=="symbol"?a:a+"",H$4=(a,b)=>{var c={};for(var d in a)s$2.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&o$5)for(var d of o$5(a))b.indexOf(d)<0&&u$3.call(a,d)&&(c[d]=a[d]);return c};var I$5=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),J$5=(a,b)=>{for(var c in b)p$9(a,c,{get:b[c],enumerable:true});},B$7=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let f of z$3(b))!s$2.call(a,f)&&f!==c&&p$9(a,f,{get:()=>b[f],enumerable:!(d=x$4(b,f))||d.enumerable});return a};var K$3=(a,b,c)=>(c=a!=null?v$7(A$8(a)):{},B$7(b||!a||!a.__esModule?p$9(c,"default",{value:a,enumerable:true}):c,a));var L$7=(a,b,c)=>new Promise((d,f)=>{var g=e=>{try{h(c.next(e));}catch(i){f(i);}},k=e=>{try{h(c.throw(e));}catch(i){f(i);}},h=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,k);h((c=c.apply(a,b)).next());}),C$5=function(a,b){this[0]=a,this[1]=b;},M$7=(a,b,c)=>{var d=(h,e,i,l)=>{try{var m=c[h](e),n=(e=m.value)instanceof C$5,q=m.done;Promise.resolve(n?e[0]:e).then(j=>n?d(h==="return"?h:"next",e[1]?{done:j.done,value:j.value}:j,i,l):i({value:j,done:q})).catch(j=>d("throw",j,i,l));}catch(j){l(j);}},f=(h,e,i,l)=>k[h]=m=>(e=new Promise((n,q,j)=>(j=()=>d(h,m,n,q),g?g.then(j):j())),l=()=>g===i&&(g=0),g=i=e.then(l,l),e),g,k={};return c=c.apply(a,b),k[r$5("asyncIterator")]=()=>k,f("next"),f("throw"),f("return"),k};var N$7=(a,b,c)=>(b=a[r$5("asyncIterator")])?b.call(a):(a=a[r$5("iterator")](),b={},c=(d,f)=>(f=a[d])&&(b[d]=g=>new Promise((k,h,e)=>(g=f.call(a,g),e=g.done,Promise.resolve(g.value).then(i=>k({value:i,done:e}),h)))),c("next"),c("return"),b);function S$9(e){return typeof e=="function"}function sr$2(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack;});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var mi$3=sr$2(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: 2${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` 3 `)}`:"",this.name="UnsubscriptionError",this.errors=n;});function vn$3(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var W$4=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(S$9(r))try{r();}catch(i){t=i instanceof mi$3?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{hf$1(i);}catch(s){t=t??[],s instanceof mi$3?t=[...t,...s.errors]:t.push(s);}}if(t)throw new mi$3(t)}}add(t){var n;if(t&&t!==this)if(this.closed)hf$1(t);else {if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this);}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t);}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t;}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&vn$3(n,t);}remove(t){let{_finalizers:n}=this;n&&vn$3(n,t),t instanceof e&&t._removeParent(this);}};W$4.EMPTY=(()=>{let e=new W$4;return e.closed=true,e})();var ec$2=W$4.EMPTY;function yi$3(e){return e instanceof W$4||e&&"closed"in e&&S$9(e.remove)&&S$9(e.add)&&S$9(e.unsubscribe)}function hf$1(e){S$9(e)?e():e.unsubscribe();}var We$3={Promise:void 0};var ar$2={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function vi$2(e){ar$2.setTimeout(()=>{throw e});}function Dn$3(){}function cr$2(e){e();}var In$3=class In extends W$4{constructor(t){super(),this.isStopped=false,t?
vendor: 9,834 bytes, line 3
3(this.destination=t,yi$3(t)&&t.add(this)):this.destination=TD;}static create(t,n,r){return new qe$6(t,n,r)}next(t){this.isStopped?rc$1():this._next(t);}error(t){this.isStopped?rc$1():(this.isStopped=true,this._error(t));}complete(){this.isStopped?rc$1():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,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();}}};var oc$2=class oc{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){Di$3(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){Di$3(r);}else Di$3(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){Di$3(n);}}},qe$6=class qe extends In$3{constructor(t,n,r){super();let o;if(S$9(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new oc$2(o);}};function Di$3(e){vi$2(e);}function bD$1(e){throw e}function rc$1(e,t){}var TD={closed:true,next:Dn$3,error:bD$1,complete:Dn$3};var ur$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ae$5(e){return e}function _D$1(...e){return ic$2(e)}function ic$2(e){return e.length===0?Ae$5:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R$4=(()=>{class e{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=MD(n)?n:new qe$6(n,r,o);return cr$2(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i));}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r);}}forEach(n,r){return r=Df$1(r),new r((o,i)=>{let s=new qe$6({next:a=>{try{n(a);}catch(c){i(c),s.unsubscribe();}},error:i,complete:o});this.subscribe(s);})}_subscribe(n){var r;return (r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ur$3](){return this}pipe(...n){return ic$2(n)(this)}toPromise(n){return n=Df$1(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i));})}}return e.create=t=>new e(t),e})();function Df$1(e){var t;return (t=e??We$3.Promise)!==null&&t!==void 0?t:Promise}function SD(e){return e&&S$9(e.next)&&S$9(e.error)&&S$9(e.complete)}function MD(e){return e&&e instanceof In$3||SD(e)&&yi$3(e)}var Ef$1=sr$2(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ye$5=(()=>{class e extends R$4{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new Ei$4(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ef$1}next(n){cr$2(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){cr$2(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){cr$2(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,this.observers=this.currentObservers=null;}get observed(){var n;return ((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ec$2:(this.currentObservers=null,i.push(n),new W$4(()=>{this.currentObservers=null,vn$3(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new R$4;return n.source=this,n}}return e.create=(t,n)=>new Ei$4(t,n),e})(),Ei$4=class Ei extends ye$5{constructor(t,n){super(),this.destination=t,this.source=n;}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t);}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t);}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t);}_subscribe(t){var n,r;return (r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ec$2}};var wn$2=new R$4(e=>e.complete());function Ii$5(e){return e&&S$9(e.schedule)}function sc$2(e){return e[e.length-1]}function wi$3(e){return S$9(sc$2(e))?e.pop():void 0}function ut$5(e){return Ii$5(sc$2(e))?e.pop():void 0}function If$1(e,t){return typeof sc$2(e)=="number"?e.pop():t}function G0$1(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function Cf$1(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i);})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l));}catch(d){s(d);}}function c(l){try{u(r.throw(l));}catch(d){s(d);}}function u(l){l.done?i(l.value):o(l.value).then(a,c);}u((r=r.apply(e,[])).next());})}function wf$1(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cn$2(e){return this instanceof Cn$2?(this.v=e,this):new Cn$2(e)}function bf$1(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(m){return new Promise(function(D,C){i.push([f,m,D,C])>1||c(f,m);})},h&&(o[f]=h(o[f])));}function c(f,h){try{u(r[f](h));}catch(m){p(i[0][3],m);}}function u(f){f.value instanceof Cn$2?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f);}function l(f){c("next",f);}function d(f){c("throw",f);}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function Tf$1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof wf$1=="function"?wf$1(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value);})};}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a});},s);}}var lr$3=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ci$3(e){return S$9(e?.then)}function bi$3(e){return S$9(e[ur$3])}function Ti$3(e){return Symbol.asyncIterator&&S$9(e?.[Symbol.asyncIterator])}function _i$3(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function ND(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Si$3=ND();function Mi$3(e){return S$9(e?.[Si$3])}function Ni$2(e){return bf$1(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Cn$2(n.read());if(o)return yield Cn$2(void 0);yield yield Cn$2(r);}}finally{n.releaseLock();}})}function xi$3(e){return S$9(e?.getReader)}function F$7(e){if(e instanceof R$4)return e;if(e!=null){if(bi$3(e))return xD(e);if(lr$3(e))return AD(e);if(Ci$3(e))return RD(e);if(Ti$3(e))return _f$1(e);if(Mi$3(e))return OD(e);if(xi$3(e))return kD(e)}throw _i$3(e)}function xD(e){return new R$4(t=>{let n=e[ur$3]();if(S$9(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function AD(e){return new R$4(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function RD(e){return new R$4(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,vi$2);})}function OD(e){return new R$4(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function _f$1(e){return new R$4(t=>{FD(e,t).catch(n=>t.error(n));})}function kD(e){return _f$1(Ni$2(e))}function FD(e,t){var n,r,o,i;return Cf$1(this,void 0,void 0,function*(){try{for(n=Tf$1(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s};}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n));}finally{if(o)throw o.error}}t.complete();})}function Te$6(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function ac$1(e){return S$9(e?.lift)}function T$4(e){return t=>{if(ac$1(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r);}});throw new TypeError("Unable to lift unknown Observable type")}}function _$a(e,t,n,r,o){return new cc$2(e,t,n,r,o)}var cc$2=class cc extends In$3{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){t.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){t.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){t.error(a);}finally{this.unsubscribe();}}:super._complete;}
3unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function Ai$5(e,t=0){return T$4((n,r)=>{n.subscribe(_$a(r,o=>Te$6(r,e,()=>r.next(o),t),()=>Te$6(r,e,()=>r.complete(),t),o=>Te$6(r,e,()=>r.error(o),t)));})}function Ri$2(e,t=0){return T$4((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function Sf$1(e,t){return F$7(e).pipe(Ri$2(t),Ai$5(t))}function Mf$1(e,t){return F$7(e).pipe(Ri$2(t),Ai$5(t))}function Nf$1(e,t){return new R$4(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function xf$1(e,t){return new R$4(n=>{let r;return Te$6(n,t,()=>{r=e[Si$3](),Te$6(n,t,()=>{let o,i;try{({value:o,done:i}=r.next());}catch(s){n.error(s);return}i?n.complete():n.next(o);},0,true);}),()=>S$9(r?.return)&&r.return()})}function Oi$3(e,t){if(!e)throw new Error("Iterable cannot be null");return new R$4(n=>{Te$6(n,t,()=>{let r=e[Symbol.asyncIterator]();Te$6(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function Af$1(e,t){return Oi$3(Ni$2(e),t)}function Rf$1(e,t){if(e!=null){if(bi$3(e))return Sf$1(e,t);if(lr$3(e))return Nf$1(e,t);if(Ci$3(e))return Mf$1(e,t);if(Ti$3(e))return Oi$3(e,t);if(Mi$3(e))return xf$1(e,t);if(xi$3(e))return Af$1(e,t)}throw _i$3(e)}function lt$3(e,t){return t?Rf$1(e,t):F$7(e)}function ki$3(...e){let t=ut$5(e);return lt$3(e,t)}function PD(e,t){let n=S$9(e)?e:()=>e,r=o=>o.error(n());return new R$4(r)}function ve$4(e,t){return T$4((n,r)=>{let o=0;n.subscribe(_$a(r,i=>{r.next(e.call(t,i,o++));}));})}function Of$1(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,p=()=>{d&&!c.length&&!u&&t.complete();},f=m=>u<r?h(m):c.push(m),h=m=>{u++;let D=false;F$7(n(m,l++)).subscribe(_$a(t,C=>{t.next(C);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let C=c.shift();s?Te$6(t,s,()=>h(C)):h(C);}p();}catch(C){t.error(C);}}));};return e.subscribe(_$a(t,f,()=>{d=true,p();})),()=>{}}function Ze$3(e,t,n=1/0){return S$9(t)?Ze$3((r,o)=>ve$4((i,s)=>t(r,i,o,s))(F$7(e(r,o))),n):(typeof t=="number"&&(n=t),T$4((r,o)=>Of$1(r,o,e,n)))}function Zr$1(e=1/0){return Ze$3(Ae$5,e)}function kf$1(){return Zr$1(1)}function dr$3(...e){return kf$1()(lt$3(e,ut$5(e)))}var{isArray:LD}=Array,{getPrototypeOf:jD,prototype:BD,keys:VD}=Object;function Fi$4(e){if(e.length===1){let t=e[0];if(LD(t))return {args:t,keys:null};if(HD(t)){let n=VD(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function HD(e){return e&&typeof e=="object"&&jD(e)===BD}var{isArray:UD}=Array;function $D(e,t){return UD(t)?e(...t):e(t)}function fr$3(e){return ve$4(t=>$D(e,t))}function Pi$2(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function zD(...e){let t=wi$3(e),{args:n,keys:r}=Fi$4(e),o=new R$4(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=false;F$7(n[l]).subscribe(_$a(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Pi$2(r,a):a),i.complete());}));}});return t?o.pipe(fr$3(t)):o}var Li$4=class Li extends W$4{constructor(t,n){super();}schedule(t,n=0){return this}};var Yr$1={setInterval(e,t,...n){let{delegate:r}=Yr$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var qt$5=class qt extends Li$4{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Yr$1.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&Yr$1.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;
3this.work=this.state=this.scheduler=null,this.pending=false,vn$3(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Qr$1={now(){return (Qr$1.delegate||Date).now()},delegate:void 0};var pr$4=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};pr$4.now=Qr$1.now;var Zt$5=class Zt extends pr$4{constructor(t,n=pr$4.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Ye$5=new Zt$5(qt$5),Ff$1=Ye$5;function Pf$1(e){return e instanceof Date&&!isNaN(e)}function xt$2(e=0,t,n=Ff$1){let r=-1;return t!=null&&(Ii$5(t)?n=t:r=t),new R$4(o=>{let i=Pf$1(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function GD(e=0,t=Ye$5){return e<0&&(e=0),xt$2(e,e,t)}function WD(...e){let t=ut$5(e),n=If$1(e,1/0),r=e;return r.length?r.length===1?F$7(r[0]):Zr$1(n)(lt$3(r,t)):wn$2}function Yt$5(e,t){return T$4((n,r)=>{let o=0;n.subscribe(_$a(r,i=>e.call(t,i,o++)&&r.next(i)));})}function Lf$1(e){return T$4((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};t.subscribe(_$a(n,u=>{r=!0,o=u,i||F$7(e(u)).subscribe(i=_$a(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function qD(e,t=Ye$5){return Lf$1(()=>xt$2(e,t))}function uc$1(e){return T$4((t,n)=>{let r=null,o=!1,i;r=t.subscribe(_$a(n,void 0,void 0,s=>{i=F$7(e(s,uc$1(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}function jf$1(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(_$a(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l);},(()=>{a&&s.next(c),s.complete();})));}}function Kr$1(e,t){return T$4(jf$1(e,t,arguments.length>=2,!1,!0))}var ZD$1=(e,t)=>(e.push(t),e);function YD(){return T$4((e,t)=>{Kr$1(ZD$1,[])(e).subscribe(t);})}function ji$2(e,t){return S$9(t)?Ze$3(e,t,1):Ze$3(e,1)}function Bf$1(e,t=Ye$5){return T$4((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u);}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a();}n.subscribe(_$a(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function bn$3(e){return e<=0?()=>wn$2:T$4((t,n)=>{let r=0;t.subscribe(_$a(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function Vf$1(e,t=Ae$5){return e=e??QD,T$4((n,r)=>{let o,i=!0;n.subscribe(_$a(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function QD(e,t){return e===t}function Xr$1(e){return T$4((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function Bi$1(e,t){return T$4((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(_$a(r,c=>{o?.unsubscribe();let u=0,l=i++;F$7(e(c,l)).subscribe(o=_$a(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Hf$1(e){return T$4((t,n)=>{F$7(e).subscribe(_$a(n,()=>n.complete(),Dn$3)),!n.closed&&t.subscribe(n);})}function Uf$1(e,t,n){let r=S$9(e)||t||n?{next:e,error:t,complete:n}:e;return r?T$4((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(_$a(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c);},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete();},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c);},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r);}));}):Ae$5}function $f$1(){return T$4((e,t)=>{let n=null;e._refCount++;let r=_$a(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe();});e.subscribe(r),r.closed||(n=e.connect());})}var lc$2=class lc extends R$4{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ac$1(t)&&(this.lift=t.lift);}
3_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 W$4;let n=this.getSubject();t.add(this.source.subscribe(_$a(n,void 0,()=>{this._teardown(),n.complete();},r=>{this._teardown(),n.error(r);},()=>this._teardown()))),t.closed&&(this._connection=null,t=W$4.EMPTY);}return t}refCount(){return $f$1()(this)}};var hr$2={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame;let o=t(i=>{n=void 0,e(i);});return new W$4(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=hr$2;return (t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){return (cancelAnimationFrame)(...e)},delegate:void 0};var Jr$1=class Jr extends ye$5{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};var eo$2=class eo extends ye$5{constructor(t=1/0,n=1/0,r=Qr$1){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};var KD=1,dc$2,fc$2={};function zf$1(e){return e in fc$2?(delete fc$2[e],true):false}var Gf$1={setImmediate(e){let t=KD++;return fc$2[t]=true,dc$2||(dc$2=Promise.resolve()),dc$2.then(()=>zf$1(t)&&e()),t},clearImmediate(e){zf$1(e);}};var{setImmediate:XD$1,clearImmediate:JD$1}=Gf$1,to$2={setImmediate(...e){let{delegate:t}=to$2;return (t?.setImmediate||XD$1)(...e)},clearImmediate(e){return (JD$1)(e)},delegate:void 0};var Vi$3=class Vi extends qt$5{constructor(t,n){super(t,n),this.scheduler=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=to$2.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(to$2.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0));}};var Hi$3=class Hi extends Zt$5{flush(t){this._active=true;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var eE$1=new Hi$3(Vi$3);var Ui$1=class Ui extends qt$5{constructor(t,n){super(t,n),this.scheduler=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=hr$2.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(hr$2.cancelAnimationFrame(n),t._scheduled=void 0);}};var $i$3=class $i extends Zt$5{flush(t){this._active=true;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var tE$1=new $i$3(Ui$1);function nE(e){return !!e&&(e instanceof R$4||S$9(e.lift)&&S$9(e.subscribe))}var At$3=sr$2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function rE(e,t){return new Promise((r,o)=>{let i=false,s;e.subscribe({next:a=>{s=a,i=true;},error:o,complete:()=>{i?r(s):o(new At$3);}});})}function oE(e,t){return new Promise((r,o)=>{let i=new qe$6({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{o(new At$3);}});e.subscribe(i);})}function iE(...e){let t=ut$5(e),n=wi$3(e),{args:r,keys:o}=Fi$4(e);if(r.length===0)return lt$3([],t);let i=new R$4(sE$1(r,t,o?s=>Pi$2(o,s):Ae$5));return n?i.pipe(fr$3(n)):i}function sE$1(e,t,n=Ae$5){return r=>{Wf$1(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Wf$1(t,()=>{let u=lt$3(e[c],t),l=false;u.subscribe(_$a(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}
3function Wf$1(e,t,n){e?Te$6(n,e,t):t();}function aE(e){return new R$4(t=>{F$7(e()).subscribe(t);})}var cE=["addListener","removeListener"],uE=["addEventListener","removeEventListener"],lE=["on","off"];function pc$2(e,t,n,r){if(S$9(n)&&(r=n,n=void 0),r)return pc$2(e,t,n).pipe(fr$3(r));let[o,i]=pE(e)?uE.map(s=>a=>e[s](t,a,n)):dE(e)?cE.map(qf$1(e,t)):fE(e)?lE.map(qf$1(e,t)):[];if(!o&&lr$3(e))return Ze$3(s=>pc$2(s,t,n))(F$7(e));if(!o)throw new TypeError("Invalid event target");return new R$4(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function qf$1(e,t){return n=>r=>e[n](t,r)}function dE(e){return S$9(e.addListener)&&S$9(e.removeListener)}function fE(e){return S$9(e.on)&&S$9(e.off)}function pE(e){return S$9(e.addEventListener)&&S$9(e.removeEventListener)}function hE(e){return Kr$1((t,n,r)=>t+1,0)}function Zf$1(e){return T$4((t,n)=>{let r=!1;t.subscribe(_$a(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function Yf$1(){return T$4((e,t)=>{e.subscribe(_$a(t,Dn$3));})}function hc$2(e){return ve$4(()=>e)}function gc$2(e,t){return t?n=>dr$3(t.pipe(bn$3(1),Yf$1()),n.pipe(gc$2(e))):Ze$3((n,r)=>F$7(e(n,r)).pipe(bn$3(1),hc$2(n)))}function Qf$1(e,t=Ye$5){let n=xt$2(e,t);return gc$2(()=>n)}function Kf$1(e=gE){return T$4((t,n)=>{let r=!1;t.subscribe(_$a(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function gE(){return new At$3}function mE(e,t){return T$4((n,r)=>{let o=0;n.subscribe(_$a(r,i=>{e.call(t,i,o++,n)||(r.next(!1),r.complete());},()=>{r.next(!0),r.complete();}));})}function yE(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Yt$5((o,i)=>e(o,i,r)):Ae$5,bn$3(1),n?Zf$1(t):Kf$1(()=>new At$3))}function vE(e){return e<=0?()=>wn$2:T$4((t,n)=>{let r=[];t.subscribe(_$a(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function DE(){return T$4((e,t)=>{let n,r=!1;e.subscribe(_$a(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0;}));})}function yc$2(e={}){let{connector:t=()=>new ye$5,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,p=()=>{a?.unsubscribe(),a=void 0;},f=()=>{p(),s=c=void 0,l=d=false;},h=()=>{let m=s;f(),m?.unsubscribe();};return T$4((m,D)=>{u++,!d&&!l&&p();let C=c=c??t();D.add(()=>{u--,u===0&&!d&&!l&&(a=mc$2(h,o));}),C.subscribe(D),!s&&u>0&&(s=new qe$6({next:w=>C.next(w),error:w=>{d=!0,p(),a=mc$2(f,n,w),C.error(w);},complete:()=>{l=!0,p(),a=mc$2(f,r),C.complete();}}),F$7(m).subscribe(s));})(i)}}function mc$2(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new qe$6({next:()=>{r.unsubscribe(),e();}});return F$7(t(...n)).subscribe(r)}function Xf$1(e,t,n){let r,o=false;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=false,scheduler:n}=e:r=e??1/0,yc$2({connector:()=>new eo$2(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function EE(e){return Yt$5((t,n)=>e<=n)}function Jf(...e){let t=ut$5(e);return T$4((n,r)=>{(t?dr$3(e,n,t):dr$3(e,n)).subscribe(r);})}function ep$2(e,t=false){return T$4((n,r)=>{let o=0;n.subscribe(_$a(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}function tp$2(e,t){return T$4((n,r)=>{let{leading:o=!0,trailing:i=!1}=t??{},s=!1,a=null,c=null,u=!1,l=()=>{c?.unsubscribe(),c=null,i&&(f(),u&&r.complete());},d=()=>{c=null,u&&r.complete();},p=h=>c=F$7(e(h)).subscribe(_$a(r,l,d)),f=()=>{if(s){s=!1;let h=a;a=null,r.next(h),!u&&p(h);}};n.subscribe(_$a(r,h=>{s=!0,a=h,!(c&&!c.closed)&&(o?f():p(h));},()=>{u=!0,!(i&&s&&c&&!c.closed)&&r.complete();}));})}function np$2(e,t=Ye$5,n){let r=xt$2(e,t);return tp$2(()=>r,n)}var de$5=null,zi$2=false,vc$2=1,ee$6=Symbol("SIGNAL");function b$5(e){let t=de$5;return de$5=e,t}function Gi$3(){return de$5}var Qt$4={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Rt$5(e){if(zi$2)throw new Error("");
vendor: 52,736 bytes, lines 3-4
3if(de$5===null)return;de$5.consumerOnSignalRead(e);let t=de$5.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=de$5.recomputing;if(r&&(n=t!==void 0?t.nextProducer:de$5.producers,n!==void 0&&n.producer===e)){de$5.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===de$5&&(!r||CE(o,de$5)))return;let i=yr$2(de$5),s={producer:e,consumer:de$5,nextProducer:n,prevConsumer:void 0,lastReadVersion:e.version,nextConsumer:void 0};de$5.producersTail=s,t!==void 0?t.nextProducer=s:de$5.producers=s,i&&sp$2(e,s);}function rp$2(){vc$2++;}function Sn$2(e){if(!(yr$2(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===vc$2)){if(!e.producerMustRecompute(e)&&!mr$2(e)){gr$3(e);return}e.producerRecomputeValue(e),gr$3(e);}}function Dc$2(e){if(e.consumers===void 0)return;let t=zi$2;zi$2=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||wE(r);}}finally{zi$2=t;}}function Ec$2(){return de$5?.consumerAllowSignalWrites!==false}function wE(e){e.dirty=true,Dc$2(e),e.consumerMarkedDirty?.(e);}function gr$3(e){e.dirty=false,e.lastCleanEpoch=vc$2;}function Ot$2(e){return e&&op$2(e),b$5(e)}function op$2(e){e.producersTail=void 0,e.recomputing=true;}function Kt$4(e,t){b$5(t),e&&ip$2(e);}function ip$2(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(yr$2(e))do n=Ic$2(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function mr$2(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Sn$2(n),r!==n.version))return true}return false}function Xt$6(e){if(yr$2(e)){let t=e.producers;for(;t!==void 0;)t=Ic$2(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function sp$2(e,t){let n=e.consumersTail,r=yr$2(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)sp$2(o.producer,o);}function Ic$2(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!yr$2(t)){let i=t.producers;for(;i!==void 0;)i=Ic$2(i);}return n}function yr$2(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function CE(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return true;if(r===n)break;r=r.nextProducer;}while(r!==void 0)}return false}function ro$2(e,t){return Object.is(e,t)}function oo$2(e,t){let n=Object.create(bE);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Sn$2(n),Rt$5(n),n.value===dt$4)throw n.error;return n.value};return r[ee$6]=n,r}var Tn$2=Symbol("UNSET"),_n$2=Symbol("COMPUTING"),dt$4=Symbol("ERRORED"),bE=E$7(D$6({},Qt$4),{value:Tn$2,dirty:true,error:null,equal:ro$2,kind:"computed",producerMustRecompute(e){return e.value===Tn$2||e.value===_n$2},producerRecomputeValue(e){if(e.value===_n$2)throw new Error("");let t=e.value;e.value=_n$2;let n=Ot$2(e),r,o=false;try{r=e.computation(),b$5(null),o=t!==Tn$2&&t!==dt$4&&r!==dt$4&&e.equal(t,r);}catch(i){r=dt$4,e.error=i;}finally{Kt$4(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function TE(){throw new Error}var ap$2=TE;function cp$1(e){ap$2(e);}function wc$2(e){ap$2=e;}function Cc$2(e,t){let n=Object.create(io$2);n.value=e,t!==void 0&&(n.equal=t);let r=()=>up$2(n);return r[ee$6]=n,[r,s=>Jt$6(n,s),s=>Wi$2(n,s)]}function up$2(e){return Rt$5(e),e.value}function Jt$6(e,t){Ec$2()||cp$1(e),e.equal(e.value,t)||(e.value=t,SE(e));}function Wi$2(e,t){Ec$2()||cp$1(e),Jt$6(e,t(e.value));}var io$2=E$7(D$6({},Qt$4),{equal:ro$2,value:void 0,kind:"signal"});function SE(e){e.version++,rp$2(),Dc$2(e);}var bc$2=E$7(D$6({},Qt$4),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function Tc$2(e){if(e.dirty=false,e.version>0&&!mr$2(e))return;e.version++;let t=Ot$2(e);try{e.cleanup(),e.fn();}finally{Kt$4(e,t);}}var _c$2;function qi$4(){return _c$2}function ft$5(e){let t=_c$2;return _c$2=e,t}var lp$2=Symbol("NotFound");function vr$3(e){return e===lp$2||e?.name==="\u0275NotFound"}function Sc$2(e,t,n){let r=Object.create(ME$1);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Sn$2(r),Rt$5(r),r.value===dt$4)throw r.error;return r.value};return i[ee$6]=r,i}function dp$2(e,t){Sn$2(e),Jt$6(e,t),gr$3(e);}function fp$2(e,t){if(Sn$2(e),e.value===dt$4)throw e.error;Wi$2(e,t),gr$3(e);}var ME$1=E$7(D$6({},Qt$4),{value:Tn$2,dirty:true,error:null,equal:ro$2,kind:"linkedSignal",producerMustRecompute(e){return e.value===Tn$2||e.value===_n$2},producerRecomputeValue(e){if(e.value===_n$2)throw new Error("");let t=e.value;e.value=_n$2;let n=Ot$2(e),r,o=false;try{let i=e.source(),s=t!==Tn$2&&t!==dt$4,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,b$5(null),o=s&&r!==dt$4&&e.equal(t,r);}catch(i){r=dt$4,e.error=i;}finally{Kt$4(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function pp$2(e){let t=b$5(null);try{return e()}finally{b$5(t);}}var es="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",y$6=class y extends Error{code;constructor(t,n){super(pt$4(t,n)),this.code=t;}};function NE(e){return `NG0${Math.abs(e)}`}function pt$4(e,t){return `${NE(e)}${t?": "+t:""}`}function U$5(e){for(let t in e)if(e[t]===U$5)return t;throw Error("")}function vp$2(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function fo$4(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(fo$4).join(", ")}]`;if(e==null)return ""+e;let t=e.overriddenName||e.name;if(t)return `${t}`;let n=e.toString();if(n==null)return ""+n;let r=n.indexOf(` 4`);return r>=0?n.slice(0,r):n}function ts(e,t){return e?t?`${e} ${t}`:e:t||""}var xE=U$5({__forward_ref__:U$5});function ns(e){return e.__forward_ref__=ns,e}function ce$4(e){return Vc$2(e)?e():e}function Vc$2(e){return typeof e=="function"&&e.hasOwnProperty(xE)&&e.__forward_ref__===ns}function x$3(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ir$3(e){return {providers:e.providers||[],imports:e.imports||[]}}function po$3(e){return RE(e,rs)}function AE(e){return po$3(e)!==null}function RE(e,t){return e.hasOwnProperty(t)&&e[t]||null}function OE(e){let t=e?.[rs]??null;return t||null}function Nc$2(e){return e&&e.hasOwnProperty(Yi$2)?e[Yi$2]:null}var rs=U$5({\u0275prov:U$5}),Yi$2=U$5({\u0275inj:U$5}),I$4=class I{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=x$3({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function Hc$2(e){return e&&!!e.\u0275providers}var Uc$2=U$5({\u0275cmp:U$5}),$c$1=U$5({\u0275dir:U$5}),zc$2=U$5({\u0275pipe:U$5}),Gc$2=U$5({\u0275mod:U$5}),ao$2=U$5({\u0275fac:U$5}),Rn$2=U$5({__NG_ELEMENT_ID__:U$5}),hp$2=U$5({__NG_ENV_ID__:U$5});function Dp$2(e){return os(e),e[Gc$2]||null}function ht$5(e){return os(e),e[Uc$2]||null}function ho$3(e){return os(e),e[$c$1]||null}function Wc$2(e){return os(e),e[zc$2]||null}function os(e,t){if(e==null)throw new y$6(-919,false)}function ie$5(e){return typeof e=="string"?e:e==null?"":String(e)}var Ep$2=U$5({ngErrorCode:U$5}),kE=U$5({ngErrorMessage:U$5});U$5({ngTokenPath:U$5});function qc$2(e,t){return Ip$2("",-200)}function is(e,t){throw new y$6(-201,false)}function Ip$2(e,t,n){let r=new y$6(t,e);return r[Ep$2]=t,r[kE]=e,r}function PE(e){return e[Ep$2]}var xc$2;function wp$2(){return xc$2}function De$4(e){let t=xc$2;return xc$2=e,t}function Zc$2(e,t,n){let r=po$3(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;is();}var je$3=globalThis;var LE={},Mn$3=LE,jE="__NG_DI_FLAG__",Ac$2=class Ac{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=Nn$3(n)||0;try{return this.injector.get(t,r&8?null:Mn$3,r)}catch(o){if(vr$3(o))return o;throw o}}};function BE(e,t=0){let n=qi$4();if(n===void 0)throw new y$6(-203,false);if(n===null)return Zc$2(e,void 0,t);{let r=VE(t),o=n.retrieve(e,r);if(vr$3(o)){if(r.optional)return null;throw o}return o}}function M$6(e,t=0){return (wp$2()||BE)(ce$4(e),t)}function g$4(e,t){return M$6(e,Nn$3(t))}function Nn$3(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function VE(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Rc$2(e){let t=[];for(let n=0;n<e.length;n++){let r=ce$4(e[n]);if(Array.isArray(r)){if(r.length===0)throw new y$6(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=HE(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(M$6(o,i));}else t.push(M$6(r));}return t}function HE(e){return e[jE]}function en$3(e,t){let n=e.hasOwnProperty(ao$2);return n?e[ao$2]:null}function Cp$2(e,t,n){if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return false}return true}function bp$2(e){return e.flat(Number.POSITIVE_INFINITY)}function ss(e,t){e.forEach(n=>Array.isArray(n)?ss(n,t):t(n));}function Yc$2(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function go$4(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Tp$2(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function _p$2(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else {for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--;}e[t]=n,e[t+1]=r;}}function as(e,t,n){let r=wr$4(e,t);return r>=0?e[r|1]=n:(r=~r,_p$2(e,r,t,n)),r}function cs(e,t){let n=wr$4(e,t);if(n>=0)return e[n|1]}function wr$4(e,t){return UE(e,t,1)}function UE(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1;}return ~(o<<n)}var nn$2={},fe$6=[],rn$2=new I$4(""),mo$4=new I$4("",-1),Qc$2=new I$4(""),Er$4=class Er{get(t,n=Mn$3){if(n===Mn$3){let o=Ip$2("",-201);throw o.name="\u0275NotFound",o}return n}};function On$3(e){return {\u0275providers:e}}function Sp$2(...e){return {\u0275providers:us$1(true,e),\u0275fromNgModule:true}}function us$1(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return ss(t,s=>{let a=s;Qi$2(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Mp$2(o,i),n}function Mp$2(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Kc$2(o,i=>{t(i,r);});}}function Qi$2(e,t,n,r){if(e=ce$4(e),!e)return false;let o=null,i=Nc$2(e),s=!i&&ht$5(e);if(!i&&!s){let c=e.ngModule;if(i=Nc$2(c),i)o=c;else return false}else {if(s&&!s.standalone)return false;o=e;}let a=r.has(o);if(s){if(a)return false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Qi$2(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;ss(i.imports,l=>{Qi$2(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Mp$2(u,t);}if(!a){let u=en$3(o)||(()=>new o);t({provide:o,useFactory:u,deps:fe$6},o),t({provide:Qc$2,useValue:o,multi:true},o),t({provide:rn$2,useValue:()=>M$6(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;Kc$2(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function Kc$2(e,t){for(let n of e)Hc$2(n)&&(n=n.\u0275providers),Array.isArray(n)?Kc$2(n,t):t(n);}var $E=U$5({provide:String,useValue:U$5});function Np$2(e){return e!==null&&typeof e=="object"&&$E in e}function zE(e){return !!(e&&e.useExisting)}function GE(e){return !!(e&&e.useFactory)}function xn$3(e){return typeof e=="function"}function xp$2(e){return !!e.useClass}var yo$3=new I$4(""),Zi$3={},gp$2={},Mc$2;function Cr$3(){return Mc$2===void 0&&(Mc$2=new Er$4),Mc$2}var pe$6=class pe{},An$3=class An extends pe$6{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,kc$2(t,s=>this.processProvider(s)),this.records.set(mo$4,Dr$1(void 0,this)),o.has("environment")&&this.records.set(pe$6,Dr$1(void 0,this));let i=this.records.get(yo$3);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Qc$2,fe$6,{self:true}));}retrieve(t,n){let r=Nn$3(n)||0;try{return this.get(t,Mn$3,r)}catch(o){if(vr$3(o))return o;throw o}}destroy(){so$2(this),this._destroyed=true;let t=b$5(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b$5(t);}}onDestroy(t){return so$2(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){so$2(this);let n=ft$5(this),r=De$4(void 0);try{return t()}finally{ft$5(n),De$4(r);}}get(t,n=Mn$3,r){if(so$2(this),t.hasOwnProperty(hp$2))return t[hp$2](this);let o=Nn$3(r),s=ft$5(this),a=De$4(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=QE(t)&&po$3(t);l&&this.injectableDefInScope(l)?u=Dr$1(Oc$2(t),Zi$3):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Cr$3():this.parent;return n=o&8&&n===Mn$3?null:n,c.get(t,n)}catch(c){let u=PE(c);throw u===-200||u===-201?new y$6(u,null):c}finally{De$4(a),ft$5(s);}}resolveInjectorInitializers(){let t=b$5(null),n=ft$5(this),r=De$4(void 0);try{let i=this.get(rn$2,fe$6,{self:!0});for(let s of i)s();}finally{ft$5(n),De$4(r),b$5(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=ce$4(t);let n=xn$3(t)?t:ce$4(t&&t.provide),r=qE(t);if(!xn$3(t)&&t.multi===true){let o=this.records.get(n);o||(o=Dr$1(void 0,Zi$3,true),o.factory=()=>Rc$2(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=b$5(null);try{if(n.value===gp$2)throw qc$2("");return n.value===Zi$3&&(n.value=gp$2,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&YE(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b$5(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=ce$4(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function Oc$2(e){let t=po$3(e),n=t!==null?t.factory:en$3(e);if(n!==null)return n;if(e instanceof I$4)throw new y$6(-204,false);if(e instanceof Function)return WE(e);throw new y$6(-204,false)}function WE(e){if(e.length>0)throw new y$6(-204,false);let n=OE(e);return n!==null?()=>n.factory(e):()=>new e}function qE(e){if(Np$2(e))return Dr$1(void 0,e.useValue);{let t=Xc$2(e);return Dr$1(t,Zi$3)}}function Xc$2(e,t,n){let r;if(xn$3(e)){let o=ce$4(e);return en$3(o)||Oc$2(o)}else if(Np$2(e))r=()=>ce$4(e.useValue);else if(GE(e))r=()=>e.useFactory(...Rc$2(e.deps||[]));else if(zE(e))r=(o,i)=>M$6(ce$4(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=ce$4(e&&(e.useClass||e.provide));if(ZE(e))r=()=>new o(...Rc$2(e.deps));else return en$3(o)||Oc$2(o)}return r}function so$2(e){if(e.destroyed)throw new y$6(-205,false)}function Dr$1(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function ZE(e){return !!e.deps}function YE(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function QE(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function kc$2(e,t){for(let n of e)Array.isArray(n)?kc$2(n,t):n&&Hc$2(n)?kc$2(n.\u0275providers,t):t(n);}function br$3(e,t){let n;e instanceof An$3?(so$2(e),n=e):n=new Ac$2(e);let o=ft$5(n),i=De$4(void 0);try{return t()}finally{ft$5(o),De$4(i);}}function Ap$2(){return wp$2()!==void 0||qi$4()!=null}var Ke$7=0,E$6=1,N$6=2,oe$5=3,Be$2=4,he$3=5,kn$3=6,Tr$2=7,te$7=8,ue$5=9,Xe$3=10,H$3=11,_r$1=12,Jc$2=13,Fn$2=14,ge$3=15,on$2=16,Pn$3=17,gt$5=18,Je$5=19,eu$2=20,Ft$3=21,ls=22,tn$3=23,Re$4=24,Ln$2=25,et$3=26,P$4=27,Rp$2=1,sn$2=6,an$3=7,vo$3=8,jn$3=9,J$4=10;function Lt$4(e){return Array.isArray(e)&&typeof e[Rp$2]=="object"}function Ve$3(e){return Array.isArray(e)&&e[Rp$2]===true}function tu$2(e){return (e.flags&4)!==0}function mt$6(e){return e.componentOffset>-1}function Sr$3(e){return (e.flags&1)===1}function tt$3(e){return !!e.template}function Mr$1(e){return (e[N$6]&512)!==0}function cn$2(e){return (e[N$6]&256)===256}var nu$2="svg",Op$2="math";function He$5(e){for(;Array.isArray(e);)e=e[Ke$7];return e}function ru$2(e,t){return He$5(t[e])}function _e$3(e,t){return He$5(t[e.index])}function Nr(e,t){return e.data[t]}function Bn$3(e,t){return e[t]}function Do$3(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Ue$5(e,t){let n=t[e];return Lt$4(n)?n:n[Ke$7]}function kp$2(e){return (e[N$6]&4)===4}function ds(e){return (e[N$6]&128)===128}function Fp$2(e){return Ve$3(e[oe$5])}function Oe$4(e,t){return t==null?null:e[t]}function ou$2(e){e[Pn$3]=0;}function fs(e){e[N$6]&1024||(e[N$6]|=1024,ds(e)&&Vn$2(e));}function Pp$2(e,t){for(;e>0;)t=t[Fn$2],e--;return t}function Eo$2(e){return !!(e[N$6]&9216||e[Re$4]?.dirty)}function ps(e){e[Xe$3].changeDetectionScheduler?.notify(8),e[N$6]&64&&(e[N$6]|=1024),Eo$2(e)&&Vn$2(e);}function Vn$2(e){e[Xe$3].changeDetectionScheduler?.notify(0);let t=Pt$4(e);for(;t!==null&&!(t[N$6]&8192||(t[N$6]|=8192,!ds(t)));)t=Pt$4(t);}function Io$2(e,t){if(cn$2(e))throw new y$6(911,false);e[Ft$3]===null&&(e[Ft$3]=[]),e[Ft$3].push(t);}function iu$2(e,t){if(e[Ft$3]===null)return;let n=e[Ft$3].indexOf(t);n!==-1&&e[Ft$3].splice(n,1);}function Pt$4(e){let t=e[oe$5];return Ve$3(t)?t[oe$5]:t}function su$2(e){return e[Tr$2]??=[]}function au$2(e){return e.cleanup??=[]}function Lp$2(e,t,n,r){let o=su$2(t);o.push(n),e.firstCreatePass&&au$2(e).push(r,o.length-1);}var A$7={lFrame:Yp$2(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Fc$2=false;function jp$2(){return A$7.lFrame.elementDepthCount}function Bp$2(){A$7.lFrame.elementDepthCount++;}function cu$2(){A$7.lFrame.elementDepthCount--;}function hs(){return A$7.bindingsEnabled}function uu$2(){return A$7.skipHydrationRootTNode!==null}function lu$2(e){return A$7.skipHydrationRootTNode===e}function du$2(){A$7.skipHydrationRootTNode=null;}function v$6(){return A$7.lFrame.lView}function j$3(){return A$7.lFrame.tView}function Vp$2(e){return A$7.lFrame.contextLView=e,e[te$7]}function Hp$2(e){return A$7.lFrame.contextLView=null,e}function Z$4(){let e=fu$2();for(;e!==null&&e.type===64;)e=e.parent;return e}function fu$2(){return A$7.lFrame.currentTNode}function Up$2(){let e=A$7.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Hn$2(e,t){let n=A$7.lFrame;n.currentTNode=e,n.isParent=t;}function pu$1(){return A$7.lFrame.isParent}function hu$2(){A$7.lFrame.isParent=false;}function gu$2(){return A$7.lFrame.contextLView}function mu$2(){return Fc$2}function co$4(e){let t=Fc$2;return Fc$2=e,t}function Ie$3(){let e=A$7.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function wo$3(){return A$7.lFrame.bindingIndex}function $p$2(e){return A$7.lFrame.bindingIndex=e}function yt$4(){return A$7.lFrame.bindingIndex++}function Un$3(e){let t=A$7.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function zp$2(){return A$7.lFrame.inI18n}function Gp$2(e,t){let n=A$7.lFrame;n.bindingIndex=n.bindingRootIndex=e,gs(t);}function Wp$2(){return A$7.lFrame.currentDirectiveIndex}function gs(e){A$7.lFrame.currentDirectiveIndex=e;}function qp$2(e){let t=A$7.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ms$1(){return A$7.lFrame.currentQueryIndex}function Co$3(e){A$7.lFrame.currentQueryIndex=e;}function KE(e){let t=e[E$6];return t.type===2?t.declTNode:t.type===1?e[he$3]:null}function yu$2(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=KE(i),o===null||(i=i[Fn$2],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=A$7.lFrame=Zp$2();return r.currentTNode=t,r.lView=e,true}function ys(e){let t=Zp$2(),n=e[E$6];A$7.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Zp$2(){let e=A$7.lFrame,t=e===null?null:e.child;return t===null?Yp$2(e):t}function Yp$2(e){let t={currentTNode:null,isParent:true,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:false};return e!==null&&(e.child=t),t}function Qp$2(){let e=A$7.lFrame;return A$7.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vu$2=Qp$2;function vs(){let e=Qp$2();e.isParent=true,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0;}function Kp$2(e){return (A$7.lFrame.contextLView=Pp$2(e,A$7.lFrame.contextLView))[te$7]}function Se$5(){return A$7.lFrame.selectedIndex}function un$1(e){A$7.lFrame.selectedIndex=e;}function $n$3(){let e=A$7.lFrame;return Nr(e.tView,e.selectedIndex)}function Xp$2(){A$7.lFrame.currentNamespace=nu$2;}function Jp$2(){XE$1();}function XE$1(){A$7.lFrame.currentNamespace=null;}function Du$2(){return A$7.lFrame.currentNamespace}var eh$1=true;function Ds$1(){return eh$1}function bo$3(e){eh$1=e;}function Eu$2(){let e,t;return {promise:new Promise((r,o)=>{e=r,t=o;}),resolve:e,reject:t}}function Pc$2(e,t=null,n=null,r){let o=Iu$2(e,t,n);return o.resolveInjectorInitializers(),o}function Iu$2(e,t=null,n=null,r,o=new Set){let i=[n||fe$6,Sp$2(e)];return new An$3(i,t||Cr$3(),null,o)}var Ee$4=class e{static THROW_IF_NOT_FOUND=Mn$3;static NULL=new Er$4;static create(t,n){if(Array.isArray(t))return Pc$2({name:""},n,t);{let r=t.name??"";return Pc$2({name:r},t.parent,t.providers)}}static \u0275prov=x$3({token:e,providedIn:"any",factory:()=>M$6(mo$4)});static __NG_ELEMENT_ID__=-1},Y$3=new I$4(""),$e$3=(()=>{class e{static __NG_ELEMENT_ID__=JE;static __NG_ENV_ID__=n=>n}return e})(),Ki$3=class Ki extends $e$3{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return cn$2(this._lView)}onDestroy(t){let n=this._lView;return Io$2(n,t),()=>iu$2(n,t)}};function JE(){return new Ki$3(v$6())}var wu$2=false,th$1=new I$4(""),ln$2=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Jr$1(false);debugTaskTracker=g$4(th$1,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new R$4(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=x$3({token:e,providedIn:"root",factory:()=>new e})}return e})(),Lc$2=class Lc extends ye$5{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,Ap$2()&&(this.destroyRef=g$4($e$3,{optional:true})??void 0,this.pendingTasks=g$4(ln$2,{optional:true})??void 0);}emit(t){let n=b$5(null);try{super.next(t);}finally{b$5(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c);}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof W$4&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},kt$3=Lc$2;function Xi$2(...e){}function Cu$2(e){let t,n;function r(){e=Xi$2;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch(o){}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function nh$1(e){return queueMicrotask(()=>e()),()=>{e=Xi$2;}}var bu$2="isAngularZone",uo$4=bu$2+"_ID",eI=0,q$3=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new kt$3(false);onMicrotaskEmpty=new kt$3(false);onStable=new kt$3(false);onError=new kt$3(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=wu$2}=t;if(typeof Zone>"u")throw new y$6(908,false);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=false,s.scheduleInRootZone=i,rI(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(bu$2)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new y$6(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new y$6(909,false)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,tI$1,Xi$2,Xi$2);try{return i.runTask(s,n,r)}finally{i.cancelTask(s);}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},tI$1={};function Tu$2(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null);}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null));}finally{e.isStable=true;}}}function nI(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Cu$2(()=>{e.callbackScheduled=false,jc$2(e),e.isCheckStableRunning=true,Tu$2(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),jc$2(e);}function rI(e){let t=()=>{nI(e);},n=eI++;e._inner=e._inner.fork({name:"angular",properties:{[bu$2]:true,[uo$4]:n,[uo$4+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(oI(c))return r.invokeTask(i,s,a,c);try{return mp$2(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),yp$2(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return mp$2(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!iI$1(c)&&t(),yp$2(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,jc$2(e),Tu$2(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function jc$2(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function mp$2(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function yp$2(e){e._nesting--,Tu$2(e);}var lo$2=class lo{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new kt$3;onMicrotaskEmpty=new kt$3;onStable=new kt$3;onError=new kt$3;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function oI(e){return rh$1(e,"__ignore_ng_zone__")}function iI$1(e){return rh$1(e,"__scheduler_tick__")}function rh$1(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Le$4=class Le{_console=console;handleError(t){this._console.error("ERROR",t);}},vt$7=new I$4("",{factory:()=>{let e=g$4(q$3),t=g$4(pe$6),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Le$4),n.handleError(r));});}}}),oh$1={provide:rn$2,useValue:()=>{g$4(Le$4,{optional:true});},multi:true};function Es$1(e,t){let [n,r,o]=Cc$2(e,t?.equal),i=n;i[ee$6];return i.set=r,i.update=o,i.asReadonly=To$2.bind(i),i}function To$2(){let e=this[ee$6];if(e.readonlyFn===void 0){let t=()=>this();t[ee$6]=e,e.readonlyFn=t;}return e.readonlyFn}var _o$4=new I$4("",{factory:()=>sI}),sI="ng";var Is$1=new I$4(""),So$3=new I$4("",{providedIn:"platform",factory:()=>"unknown"}),aI=new I$4(""),Mo$3=new I$4("",{factory:()=>g$4(Y$3).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var xr$2=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=cI}return e})();function cI(){return new xr$2(v$6(),Z$4())}var Qe$5=class Qe{},Ar$2=new I$4("",{factory:()=>true});var ws$1=new I$4(""),Cs$1=(()=>{class e{static \u0275prov=x$3({token:e,providedIn:"root",factory:()=>new Bc$2})}return e})(),Bc$2=class Bc{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t);}schedule(t){t.dirty&&this.dirtyEffectCount++;}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--);}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t);}flush(){for(;this.dirtyEffectCount>0;){let t=false;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0);}}flushQueue(t){let n=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},Ji$3=class Ji{[ee$6];constructor(t){this[ee$6]=t;}destroy(){this[ee$6].destroy();}};function ih$1(e,t){let n=t?.injector??g$4(Ee$4),r=t?.manualCleanup!==true?n.get($e$3):null,o,i=n.get(xr$2,null,{optional:true}),s=n.get(Qe$5);return i!==null?(o=dI(i.view,s,e),r instanceof Ki$3&&r._lView===i.view&&(r=null)):o=fI(e,n.get(Cs$1),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ji$3(o)}var sh$1=E$7(D$6({},bc$2),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=co$4(false);try{Tc$2(this);}finally{co$4(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=b$5(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],b$5(e);}}}),uI=E$7(D$6({},sh$1),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Xt$6(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),lI=E$7(D$6({},sh$1),{consumerMarkedDirty(){this.view[N$6]|=8192,Vn$2(this.view),this.notifier.notify(13);},destroy(){if(Xt$6(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[tn$3]?.delete(this);}});function dI(e,t,n){let r=Object.create(lI);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=ah$1(r,n),e[tn$3]??=new Set,e[tn$3].add(r),r.consumerMarkedDirty(r),r}function fI(e,t,n){let r=Object.create(uI);return r.fn=ah$1(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function ah$1(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function No$1(e){return typeof e=="function"&&e[ee$6]!==void 0}function bs(e){return No$1(e)&&typeof e.set=="function"}var zn$3=(()=>{class e{internalPendingTasks=g$4(ln$2);scheduler=g$4(Qe$5);errorHandler=g$4(vt$7);add(){let n=this.internalPendingTasks.add();return ()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n));}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=x$3({token:e,providedIn:"root",factory:()=>new e})}return e})();function $o$1(e){return {toString:e}.toString()}var Fs$1=class Fs{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function rg$1(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var El$2=(()=>{let e=()=>og$1;return e.ngInherit=true,e})();function og$1(e){return e.type.prototype.ngOnChanges&&(e.setInput=CI),wI}function wI(){let e=ig$1(this),t=e?.current;if(t){let n=e.previous;if(n===nn$2)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function CI(e,t,n,r,o){let i=this.declaredInputs[r],s=ig$1(e)||bI(e,{previous:nn$2,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Fs$1(u&&u.currentValue,n,c===nn$2),rg$1(e,t,o,n);}var ju$2="__ngSimpleChanges__";function ig$1(e){return Object.hasOwn(e,ju$2)&&e[ju$2]||null}function bI(e,t){return e[ju$2]=t}var ch$1=[];var B$6=function(e,t=null,n){for(let r=0;r<ch$1.length;r++){let o=ch$1[r];o(e,t,n);}},k$4=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(k$4||{});function TI$1(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=og$1(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s);}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i));}function sg$1(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l);}}function Ns$1(e,t,n){ag$1(e,t,3,n);}function xs(e,t,n,r){(e[N$6]&3)===n&&ag$1(e,t,n,r);}function _u$2(e,t){let n=e[N$6];(n&3)===t&&(n&=16383,n+=1,e[N$6]=n);}function ag$1(e,t,n,r){let o=r!==void 0?e[Pn$3]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Pn$3]+=65536),(a<i||i==-1)&&(_I(e,n,t,c),e[Pn$3]=(e[Pn$3]&4294901760)+c+2),c++;}function uh$1(e,t){B$6(k$4.LifecycleHookStart,e,t);let n=b$5(null);try{t.call(e);}finally{b$5(n),B$6(k$4.LifecycleHookEnd,e,t);}}function _I(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[N$6]>>14<e[Pn$3]>>16&&(e[N$6]&3)===t&&(e[N$6]+=16384,uh$1(a,i)):uh$1(a,i);}var Or$1=-1,Zn$3=class Zn{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function SI(e){return (e.flags&8)!==0}function MI(e){return (e.flags&16)!==0}function NI(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i);}else {let i=o,s=n[++r];xI(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function cg$1(e){return e===3||e===4||e===6}function xI(e){return e.charCodeAt(0)===64}function kr$1(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?lh$1(e,n,o,null,t[++r]):lh$1(e,n,o,null,null));}}return e}function lh$1(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++;}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o);}function ug$1(e){return e!==Or$1}function Ps$1(e){return e&32767}function AI$1(e){return e>>16}function Ls$1(e,t){let n=AI$1(e),r=t;for(;n>0;)r=r[Fn$2],n--;return r}var Bu$2=true;function js$2(e){let t=Bu$2;return Bu$2=e,t}var RI$1=256,lg$1=RI$1-1,dg$1=5,OI=0,Dt$4={};function kI(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Rn$2)&&(r=n[Rn$2]),r==null&&(r=n[Rn$2]=OI++);let o=r&lg$1,i=1<<o;t.data[e+(o>>dg$1)]|=i;}function Bs$1(e,t){let n=fg$1(e,t);if(n!==-1)return n;let r=t[E$6];r.firstCreatePass&&(e.injectorIndex=t.length,Su$2(r.data,e),Su$2(t,null),Su$2(r.blueprint,null));let o=Il$2(e,t),i=e.injectorIndex;if(ug$1(o)){let s=Ps$1(o),a=Ls$1(o,t),c=a[E$6].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Su$2(e,t){e.push(0,0,0,0,0,0,0,0,t);}function fg$1(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Il$2(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=vg(o),r===null)return Or$1;if(n++,o=o[Fn$2],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Or$1}function Vu$2(e,t,n){kI(e,t,n);}function FI(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(cg$1(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else {if(i===t)return n[o+1];o=o+2;}}}return null}function pg$1(e,t,n){if(n&8||e!==void 0)return e;is();}function hg$1(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[ue$5],i=De$4(void 0);try{return o?o.get(t,r,n&8):Zc$2(t,r,n&8)}finally{De$4(i);}}return pg$1(r,t,n)}function gg$1(e,t,n,r=0,o){if(e!==null){if(t[N$6]&2048&&!(r&2)){let s=BI(e,t,n,r,Dt$4);if(s!==Dt$4)return s}let i=mg$1(e,t,n,r,Dt$4);if(i!==Dt$4)return i}return hg$1(t,n,r,o)}function mg$1(e,t,n,r,o){let i=LI(n);if(typeof i=="function"){if(!yu$2(t,e,r))return r&1?pg$1(o,n,r):hg$1(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))is(n);else return s}finally{vu$2();}}else if(typeof i=="number"){let s=null,a=fg$1(e,t),c=Or$1,u=r&1?t[ge$3][he$3]:null;for((a===-1||r&4)&&(c=a===-1?Il$2(e,t):t[a+8],c===Or$1||!fh$1(r,false)?a=-1:(s=t[E$6],a=Ps$1(c),t=Ls$1(c,t)));a!==-1;){let l=t[E$6];if(dh$1(i,a,l.data)){let d=PI(a,t,n,s,r,u);if(d!==Dt$4)return d}c=t[a+8],c!==Or$1&&fh$1(r,t[E$6].data[a+8]===u)&&dh$1(i,a,t)?(s=l,a=Ps$1(c),t=Ls$1(c,t)):a=-1;}}return o}function PI(e,t,n,r,o,i){let s=t[E$6],a=s.data[e+8],c=r==null?mt$6(a)&&Bu$2:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=As$1(a,s,n,c,u);return l!==null?Po$2(t,s,l,a,o):Dt$4}function As$1(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&tt$3(f)&&f.type===n)return c}return null}function Po$2(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Zn$3){let a=i;if(a.resolving)throw qc$2();let c=js$2(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?De$4(a.injectImpl):null;yu$2(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&TI$1(n,s[n],t);}finally{d!==null&&De$4(d),js$2(c),a.resolving=false,vu$2();}}return i}function LI(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Rn$2)?e[Rn$2]:void 0;return typeof t=="number"?t>=0?t&lg$1:jI:t}function dh$1(e,t,n){let r=1<<e;return !!(n[t+(e>>dg$1)]&r)}function fh$1(e,t){return !(e&2)&&!(e&1&&t)}var fn$2=class fn{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return gg$1(this._tNode,this._lView,t,Nn$3(r),n)}};function jI(){return new fn$2(Z$4(),v$6())}function yg(e){return $o$1(()=>{let t=e.prototype.constructor,n=t[ao$2]||Hu$2(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[ao$2]||Hu$2(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function Hu$2(e){return Vc$2(e)?()=>{let t=Hu$2(ce$4(e));return t&&t()}:en$3(e)}function BI(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[N$6]&2048&&!Mr$1(s);){let a=mg$1(i,s,n,r|2,Dt$4);if(a!==Dt$4)return a;let c=i.parent;if(!c){let u=s[eu$2];if(u){let l=u.get(n,Dt$4,r&-5);if(l!==Dt$4)return l}c=vg(s),s=s[Fn$2];}i=c;}return o}function vg(e){let t=e[E$6],n=t.type;return n===2?t.declTNode:n===1?e[he$3]:null}function wl$2(e){return FI(Z$4(),e)}function we$6(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function VI(){return jr$2(Z$4(),v$6())}function jr$2(e,t){return new Vt$3(_e$3(e,t))}var Vt$3=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=VI}return e})();function Dg(e){return e instanceof Vt$3?e.nativeElement:e}function HI(){return this._results[Symbol.iterator]()}var Vs$2=class Vs{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ye$5}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=bp$2(t);(this._changesDetected=!Cp$2(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(t){this._onDirty=t;}setDirty(){this.dirty=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=HI};function Eg(e){return (e.flags&128)===128}var Cl$2=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Cl$2||{}),Ig=new Map,UI$1=0;function $I(){return UI$1++}function zI(e){Ig.set(e[Je$5],e);}function Uu$2(e){Ig.delete(e[Je$5]);}var ph$1="__ngContext__";function Fr$1(e,t){Lt$4(t)?(e[ph$1]=t[Je$5],zI(t)):e[ph$1]=t;}function wg(e){return bg$1(e[_r$1])}function Cg(e){return bg$1(e[Be$2])}function bg$1(e){for(;e!==null&&!Ve$3(e);)e=e[Be$2];return e}var $u$2;function bl$2(e){$u$2=e;}function Tl$2(){if($u$2!==void 0)return $u$2;if(typeof document<"u")return document;throw new y$6(210,false)}var Tg="r";var _l$2="di",Sl$2="s";var GI$1=new I$4(""),_g$1=false,Sg=new I$4("",{factory:()=>_g$1});var Mg=new I$4("");var Ng$1=new I$4("");var hh$1=new WeakMap;function WI(e,t){if(e==null||typeof e!="object")return;let n=hh$1.get(e);n||(n=new WeakSet,hh$1.set(e,n)),n.add(t);}var xg=new I$4("");function ta$3(e){return (e.flags&32)===32}var YI=()=>null;function Ag(e,t,n=false){return YI()}function Ml$2(e){return e.get(Mg,false,{optional:true})}function Rg(e,t){let n=e.contentQueries;if(n!==null){let r=b$5(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Co$3(i),a.contentQueries(2,t[s],s);}}}finally{b$5(r);}}}function zu$2(e,t,n){Co$3(0);let r=b$5(null);try{t(e,n);}finally{b$5(r);}}function Nl$2(e,t,n){if(tu$2(t)){let r=b$5(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{b$5(r);}}}var ot$4=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(ot$4||{});var Ts$1;function QI(){if(Ts$1===void 0&&(Ts$1=null,je$3.trustedTypes))try{Ts$1=je$3.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Ts$1}function na$3(e){return QI()?.createHTML(e)||e}var _s;function Og$1(){if(_s===void 0&&(_s=null,je$3.trustedTypes))try{_s=je$3.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return _s}function gh$1(e){return Og$1()?.createHTML(e)||e}function mh$1(e){return Og$1()?.createScriptURL(e)||e}var jt$4=class jt{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${es})`}},Gu$2=class Gu extends jt$4{getTypeName(){return "HTML"}},Wu$2=class Wu extends jt$4{getTypeName(){return "Style"}},qu$2=class qu extends jt$4{getTypeName(){return "Script"}},Zu$2=class Zu extends jt$4{getTypeName(){return "URL"}},Yu$2=class Yu extends jt$4{getTypeName(){return "ResourceURL"}};function ke$4(e){return e instanceof jt$4?e.changingThisBreaksApplicationSecurity:e}function It$2(e,t){let n=kg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${es})`)}return n===t}function kg(e){return e instanceof jt$4&&e.getTypeName()||null}function xl$2(e){return new Gu$2(e)}function Al$2(e){return new Wu$2(e)}function Rl$2(e){return new qu$2(e)}function Ol$2(e){return new Zu$2(e)}function kl$2(e){return new Yu$2(e)}function KI(e){let t=new Ku$2(e);return XI()?new Qu$2(t):t}var Qu$2=class Qu{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(na$3(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},Ku$2=class Ku{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=na$3(t),n}};function XI(){try{return !!new window.DOMParser().parseFromString(na$3(""),"text/html")}catch(e){return false}}var JI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function zo$1(e){return e=String(e),e.match(JI)?e:"unsafe:"+e}function Ht$5(e){let t={};for(let n of e.split(","))t[n]=true;return t}function Go$2(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Fg=Ht$5("area,br,col,hr,img,wbr"),Pg$1=Ht$5("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Lg$1=Ht$5("rp,rt"),ew=Go$2(Lg$1,Pg$1),tw=Go$2(Pg$1,Ht$5("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),nw=Go$2(Lg$1,Ht$5("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),yh$1=Go$2(Fg,tw,nw,ew),jg=Ht$5("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rw=Ht$5("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ow=Ht$5("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),iw=Go$2(jg,rw,ow),sw=Ht$5("script,style,template"),Xu$2=class Xu{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=uw(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=cw(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=vh$1(t).toLowerCase();if(!yh$1.hasOwnProperty(n))return this.sanitizedSomething=true,!sw.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!iw.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;jg[a]&&(c=zo$1(c)),this.buf.push(" ",s,'="',Dh$1(c),'"');}return this.buf.push(">"),true}endElement(t){let n=vh$1(t).toLowerCase();yh$1.hasOwnProperty(n)&&!Fg.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Dh$1(t));}};function aw(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function cw(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Bg$1(t);return t}function uw(e){let t=e.firstChild;if(t&&aw(e,t))throw Bg$1(t);return t}function vh$1(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Bg$1(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var lw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dw=/([^\#-~ |!])/g;function Dh$1(e){return e.replace(/&/g,"&").replace(lw,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(dw,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Ss$1;function ra$3(e,t){let n=null;try{Ss$1=Ss$1||KI(e);let r=t?String(t):"";n=Ss$1.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Ss$1.getInertBodyElement(r);}while(r!==i);let a=new Xu$2().sanitizeChildren(Eh$1(n)||n);return na$3(a)}finally{if(n){let r=Eh$1(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Eh$1(e){return "content"in e&&fw(e)?e.content:null}function fw(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var pw=/^>|^->|<!--|-->|--!>|<!-$/g,hw=/(<|>)/g,gw="\u200B$1\u200B";function mw(e){return e.replace(pw,t=>t.replace(hw,gw))}function yw(e,t){return e.createText(t)}function vw(e,t,n){e.setValue(t,n);}function Dw(e,t){return e.createComment(mw(t))}function Vg(e,t,n){return e.createElement(t,n)}function Hs$3(e,t,n,r,o){e.insertBefore(t,n,r,o);}function Hg(e,t,n){e.appendChild(t,n);}function Ih$1(e,t,n,r,o){r!==null?Hs$3(e,t,n,r,o):Hg(e,t,n);}function Ug(e,t,n,r){e.removeChild(null,t,n,r);}function Ew(e,t,n){e.setAttribute(t,"style",n);}function Iw(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function $g(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&NI(e,t,r),o!==null&&Iw(e,t,o),i!==null&&Ew(e,t,i);}var ze$3=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(ze$3||{});function ww(e){let t=Fl$2();return t?gh$1(t.sanitize(ze$3.HTML,e)||""):It$2(e,"HTML")?gh$1(ke$4(e)):ra$3(Tl$2(),ie$5(e))}function zg$1(e){let t=Fl$2();return t?t.sanitize(ze$3.URL,e)||"":It$2(e,"URL")?ke$4(e):zo$1(ie$5(e))}function Gg(e){let t=Fl$2();if(t)return mh$1(t.sanitize(ze$3.RESOURCE_URL,e)||"");if(It$2(e,"ResourceURL"))return mh$1(ke$4(e));
4throw new y$6(904,false)}var Cw={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function bw(e,t){return Cw[e.toLowerCase()]?.[t.toLowerCase()]===true?Gg:zg$1}function Tw(e,t,n){return bw(t,n)(e)}function Fl$2(){let e=v$6();return e&&e[Xe$3].sanitizer}function _w(e){return e.ownerDocument.defaultView}function Sw(e){return e.ownerDocument}function Mw(e){return e instanceof Function?e():e}function Nw$1(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1;}}var Wg$1="ng-template";function xw$1(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Nw$1(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Pl$2(e))return false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return true}return false}function Pl$2(e){return e.type===4&&e.value!==Wg$1}function Aw(e,t,n){let r=e.type===4&&!n?Wg$1:e.value;return t===r}function Rw(e,t,n){let r=4,o=e.attrs,i=o!==null?Fw(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!nt$4(r)&&!nt$4(c))return false;if(s&&nt$4(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Aw(e,c,n)||c===""&&t.length===1){if(nt$4(r))return false;s=true;}}else if(r&8){if(o===null||!xw$1(e,o,c,n)){if(nt$4(r))return false;s=true;}}else {let u=t[++a],l=Ow(c,o,Pl$2(e),n);if(l===-1){if(nt$4(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(nt$4(r))return false;s=true;}}}}return nt$4(r)||s}function nt$4(e){return (e&1)===0}function Ow(e,t,n,r){if(t===null)return -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else {if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2;}return -1}else return Pw(t,e)}function qg(e,t,n=false){for(let r=0;r<t.length;r++)if(Rw(e,t[r],n))return true;return false}function kw(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function Fw(e){for(let t=0;t<e.length;t++){let n=e[t];if(cg$1(n))return t}return e.length}function Pw(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return -1;if(r===t)return n;n++;}return -1}function Lw(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return true}}return false}function wh$1(e,t){return e?":not("+t.trim()+")":t}function jw(e){let t=e[0],n=1,r=2,o="",i=false;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]";}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!nt$4(s)&&(t+=wh$1(i,o),o=""),r=s,i=i||!nt$4(r);n++;}return o!==""&&(t+=wh$1(i,o)),t}function Bw(e){return e.map(jw).join(",")}function Vw(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else {if(!nt$4(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var ne$6={},it$4=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(it$4||{}),Hw;function Ll$2(e,t){return Hw(e,t)}var Zg=new I$4("",{factory:()=>false});var Uw=false,jl$2=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function $w(e){return e[ue$5].get(Zg,Uw)}function zw$1(e){let t=Ju$2.get(e);if(t){for(let n of t.cleanupFns)n();Ju$2.delete(e);}Oo$1.delete(e);}var Ju$2=new WeakMap,Oo$1=new WeakMap,Lo$1=new WeakMap,Ao$1=new WeakSet;function Ch$1(e,t){let n=Lo$1.get(e);if(n&&n.length>0){let r=n.findIndex(o=>o===t);r>-1&&n.splice(r,1);}n?.length===0&&Lo$1.delete(e);}function Gw(e,t){let n=Lo$1.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),Ao$1.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),s.parentNode?.removeChild(s));}}
4function Yg(e,t){let n=Lo$1.get(e);n?n.includes(t)||n.push(t):Lo$1.set(e,[t]);}function oa$3(e){let t=e[et$3]??={};return t.leave??=new Map}function Ww(e){let t=typeof e=="function"?e():e,n=Array.isArray(t)?t:null;return typeof t=="string"&&(n=t.trim().split(/\s+/).filter(r=>r)),n}function qw(e,t){if(!jl$2)return;let n=Ju$2.get(e);if(n&&n.classList.length>0&&Zw(e,n.classList))for(let r of n.classList)t.removeClass(e,r);zw$1(e);}function Zw(e,t){for(let n of t)if(e.classList.contains(n))return true;return false}function Qg(e){return e.composedPath?e.composedPath()[0]:e.target}function Yw(e,t){let n=Oo$1.get(t);return n===void 0?true:t===Qg(e)&&(n.animationName!==void 0&&e.animationName===n.animationName||n.propertyName!==void 0&&(n.propertyName==="all"||e.propertyName===n.propertyName))}function Qw(e,t,n){let r=e.get(t.index)??{animateFns:[]};r.animateFns.push(n),e.set(t.index,r);}function bh$1(e,t){if(e)for(let n of e)n();for(let n of t)n();}function Th$1(e,t){let n=oa$3(e).get(t.index);n&&(n.resolvers=void 0);}function Us$2(e){if(!e)return 0;let t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function Gn$3(e,t){return e.getPropertyValue(t).split(",").map(r=>r.trim())}function Kw(e){let t=Gn$3(e,"transition-property"),n=Gn$3(e,"transition-duration"),r=Gn$3(e,"transition-delay"),o={propertyName:"",duration:0,animationName:void 0};for(let i=0;i<t.length;i++){let s=Us$2(r[i])+Us$2(n[i]);s>o.duration&&(o.propertyName=t[i],o.duration=s);}return o}function Xw(e){let t=Gn$3(e,"animation-name"),n=Gn$3(e,"animation-delay"),r=Gn$3(e,"animation-duration"),o=Gn$3(e,"animation-iteration-count"),i={animationName:"",propertyName:void 0,duration:0};for(let s=0;s<t.length;s++){let a=Us$2(n[s])+Us$2(r[s]),c=o[s];a>i.duration&&c!=="infinite"&&(i.animationName=t[s],i.duration=a);}return i}function Kg(e,t){return e!==void 0&&e.duration>t.duration}function Xg(e){return (e.animationName!=null||e.propertyName!=null)&&e.duration>0}function Jw(e,t){let n=getComputedStyle(e),r=Xw(n),o=Kw(n),i=r.duration>o.duration?r:o;Kg(t.get(e),i)||Xg(i)&&t.set(e,i);}function eC(e,t,n){if(!n)return;let r=e.getAnimations();return r.length===0?Jw(e,t):tC(e,t,r)}function tC(e,t,n){let r={animationName:void 0,propertyName:void 0,duration:0};for(let o of n){let i=o.effect?.getTiming();if(i?.iterations===1/0)continue;let s=typeof i?.duration=="number"?i.duration:0,a=(i?.delay??0)+s,c=o.playbackRate;c!==void 0&&c!==0&&c!==1&&(a/=Math.abs(c));let u,l;o.animationName?l=o.animationName:u=o.transitionProperty,a>=r.duration&&(r={animationName:l,propertyName:u,duration:a});}Kg(t.get(e),r)||Xg(r)&&t.set(e,r);}var Bt$2=new Set,ia$3=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(ia$3||{}),st$4=new I$4(""),_h$1=new Set;function Ne$4(e){_h$1.has(e)||(_h$1.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var sa$3=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=x$3({token:e,providedIn:"root",factory:()=>new e})}return e})(),Bl$2=[0,1,2,3],Vl$2=(()=>{class e{ngZone=g$4(q$3);scheduler=g$4(Qe$5);errorHandler=g$4(Le$4,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g$4(st$4,{optional:true});}execute(){let n=this.sequences.size>0;n&&B$6(k$4.AfterRenderHooksStart),this.executing=true;for(let r of Bl$2)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot));}catch(i){o.erroredOrDestroyed=true,this.errorHandler?.handleError(i);}this.executing=false;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&B$6(k$4.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[Ln$2]??=[]).push(n),Vn$2(r),r[N$6]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n);}addSequence(n){this.sequences.add(n),this.scheduler.notify(7);}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(ia$3.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x$3({token:e,providedIn:"root",factory:()=>new e})}return e})(),jo$1=class jo{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Ln$2];t&&(this.view[Ln$2]=t.filter(n=>n!==this));}};function nC(e,t){let n=t?.injector??g$4(Ee$4);return Ne$4("NgAfterRender"),em$2(e,n,t,false)}function Jg(e,t){let n=t?.injector??g$4(Ee$4);return Ne$4("NgAfterNextRender"),em$2(e,n,t,true)}function rC$1(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function em$2(e,t,n,r){let o=t.get(sa$3);o.impl??=t.get(Vl$2);let i=t.get(st$4,null,{optional:true}),s=n?.manualCleanup!==true?t.get($e$3):null,a=t.get(xr$2,null,{optional:true}),c=new jo$1(o.impl,rC$1(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Wo$1=new I$4("",{factory:()=>{let e=g$4(pe$6),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function tm$2(e,t,n){let r=e.get(Wo$1);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e);}function oC(e,t){let n=e.get(Wo$1);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function iC(e,t){let n=e.get(Wo$1);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function sC(e){let t=e.get(Wo$1);t.isScheduled||(Jg(()=>{t.isScheduled=false;for(let n of t.queue)n();t.queue.clear();},{injector:t.injector}),t.isScheduled=true);}function aC$1(e){let t=e.get(Wo$1);
vendor: 20,616 bytes, line 4
4t.scheduler=sC,t.scheduler(e);}function cC(e,t){for(let[n,r]of t)tm$2(e,r.animateFns);}function Sh$1(e,t,n,r){let o=e?.[et$3]?.enter;t!==null&&o&&o.has(n.index)&&cC(r,o);}function Mh$1(e,t,n,r){try{n.get(mo$4);}catch(s){return r(false)}let o=e?.[et$3];o?.enter?.has(t.index)&&oC(n,o.enter.get(t.index).animateFns);let i=uC(e,t,o);if(i.size===0){let s=false;if(e){let a=[];aa$2(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Bt$2.add(e[Je$5]),tm$2(n,()=>lC(e,t,o||void 0,i,r),o||void 0);}function uC(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E$6].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function lC(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:u}=c();i.push(u);}n.detachedLeaveAnimationFns=void 0;}if(e&&aa$2(e,t,i),i.length>0){let s=n||e?.[et$3];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),fC(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Bt$2.delete(e[Je$5]),o(true);});}else e&&Bt$2.delete(e[Je$5]),o(false);}function aa$2(e,t,n){if(t.type&12){let o=e[t.index];if(Ve$3(o))for(let i=J$4;i<o.length;i++){let s=o[i];s[E$6].type===2&&dC(s,n);}}let r=t.child;for(;r;)aa$2(e,r,n),r=r.next;}function dC(e,t){let n=e[et$3];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[E$6].firstChild;for(;r;)aa$2(e,r,t),r=r.next;}function fC(e,t,n){t.then(()=>{e[et$3]?.running===t&&(e[et$3].running=void 0,Bt$2.delete(e[Je$5])),n(true);});}function Rr$3(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Ve$3(o)?c=o:Lt$4(o)&&(u=true,o=o[Ke$7]);let l=He$5(o);e===0&&r!==null?(Sh$1(a,r,i,n),s==null?Hg(t,r,l):Hs$3(t,r,l,s||null,true)):e===1&&r!==null?(Sh$1(a,r,i,n),Hs$3(t,r,l,s||null,true),Gw(i,l)):e===2?(a?.[et$3]?.leave?.has(i.index)&&Yg(i,l),Ao$1.delete(l),Mh$1(a,i,n,d=>{if(Ao$1.has(l)){Ao$1.delete(l);return}Ug(t,l,u,d);})):e===3&&(Ao$1.delete(l),Mh$1(a,i,n,()=>{t.destroyNode(l);})),c!=null&&wC$1(t,e,n,c,i,r,s);}}function pC(e,t){nm$2(e,t),t[Ke$7]=null,t[he$3]=null;}function hC(e,t,n,r,o,i){r[Ke$7]=o,r[he$3]=t,ua$2(e,r,n,1,o,i);}function nm$2(e,t){t[Xe$3].changeDetectionScheduler?.notify(9),ua$2(e,t,t[H$3],2,null,null);}function gC(e){let t=e[_r$1];if(!t)return Mu$2(e[E$6],e);for(;t;){let n=null;if(Lt$4(t))n=t[_r$1];else {let r=t[J$4];r&&(n=r);}if(!n){for(;t&&!t[Be$2]&&t!==e;)Lt$4(t)&&Mu$2(t[E$6],t),t=t[oe$5];t===null&&(t=e),Lt$4(t)&&Mu$2(t[E$6],t),n=t&&t[Be$2];}t=n;}}function Hl$2(e,t){let n=e[jn$3],r=n.indexOf(t);n.splice(r,1);}function ca$1(e,t){if(cn$2(t))return;let n=t[H$3];n.destroyNode&&ua$2(e,t,n,3,null,null),gC(t);}function Mu$2(e,t){if(cn$2(t))return;let n=b$5(null);try{t[N$6]&=-129,t[N$6]|=256,t[Re$4]&&Xt$6(t[Re$4]),yC(e,t),mC(e,t),t[E$6].type===1&&t[H$3].destroy();let r=t[on$2];if(r!==null&&Ve$3(t[oe$5])){r!==t[oe$5]&&Hl$2(r,t);let o=t[gt$5];o!==null&&o.detachView(e);}Uu$2(t);}finally{b$5(n);}}function mC(e,t){let n=e.cleanup,r=t[Tr$2];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2;}else {let a=r[n[s+1]];n[s].call(a);}r!==null&&(t[Tr$2]=null);let o=t[Ft$3];if(o!==null){t[Ft$3]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[tn$3];if(i!==null){t[tn$3]=null;for(let s of i)s.destroy();}}function yC(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Zn$3)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];B$6(k$4.LifecycleHookStart,a,c);try{c.call(a);}finally{B$6(k$4.LifecycleHookEnd,a,c);}}else {B$6(k$4.LifecycleHookStart,o,i);try{i.call(o);}finally{B$6(k$4.LifecycleHookEnd,o,i);}}}}}function rm$2(e,t,n){return vC(e,t.parent,n)}function vC(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ke$7];if(mt$6(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===ot$4.None||o===ot$4.Emulated)return null}return _e$3(r,n)}function om$2(e,t,n){return EC(e,t,n)}function DC(e,t,n){return e.type&40?_e$3(e,n):null}var EC=DC;function Ul$1(e,t,n,r){let o=rm$2(e,r,t),i=t[H$3],s=r.parent||t[he$3],a=om$2(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Ih$1(i,o,n[c],a,false);else Ih$1(i,o,n,a,false);}function Ro$1(e,t){if(t!==null){let n=t.type;if(n&3)return _e$3(t,e);if(n&4)return el$2(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Ro$1(e,r);{let o=e[t.index];return Ve$3(o)?el$2(-1,o):He$5(o)}}else {if(n&128)return Ro$1(e,t.next);if(n&32)return Ll$2(t,e)()||He$5(e[t.index]);{let r=im$2(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Pt$4(e[ge$3]);return Ro$1(o,r)}else return Ro$1(e,t.next)}}}return null}function im$2(e,t){if(t!==null){let r=e[ge$3][he$3],o=t.projection;return r.projection[o]}return null}function el$2(e,t){let n=J$4+e+1;if(n<t.length){let r=t[n],o=r[E$6].firstChild;if(o!==null)return Ro$1(r,o)}return t[an$3]}function $l$1(e,t,n,r,o,i,s){for(;n!=null;){let a=r[ue$5];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&Fr$1(He$5(c),r),n.flags|=2),!ta$3(n))if(u&8)$l$1(e,t,n.child,r,o,i,false),Rr$3(t,e,a,o,c,n,i,r);else if(u&32){let l=Ll$2(n,r),d;for(;d=l();)Rr$3(t,e,a,o,d,n,i,r);Rr$3(t,e,a,o,c,n,i,r);}else u&16?sm$2(e,t,r,n,o,i):Rr$3(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function ua$2(e,t,n,r,o,i){$l$1(n,r,e.firstChild,t,o,i,false);}function IC(e,t,n){let r=t[H$3],o=rm$2(e,n,t),i=n.parent||t[he$3],s=om$2(i,n,t);sm$2(r,0,t,n,o,s);}function sm$2(e,t,n,r,o,i){let s=n[ge$3],c=s[he$3].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Rr$3(t,e,n[ue$5],o,l,r,i,n);}else {let u=c,l=s[oe$5];Eg(r)&&(u.flags|=128),$l$1(e,t,u,l,o,i,true);}}function wC$1(e,t,n,r,o,i,s){let a=r[an$3],c=He$5(r);a!==c&&Rr$3(t,e,n,i,a,o,s);for(let u=J$4;u<r.length;u++){let l=r[u];ua$2(l[E$6],l,e,t,i,a);}}function CC(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:it$4.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=it$4.Important),e.setStyle(n,r,o,i));}}function zl$2(e,t,n,r,o,i,s,a,c,u,l){let d=P$4+r,p=d+o,f=bC(d,p),h=typeof u=="function"?u():u;return f[E$6]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:false,ssrId:l}}function bC(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ne$6);return n}function TC(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=zl$2(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Gl$2(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ke$7]=o,d[N$6]=r|4|128|8|64|1024,(u!==null||e&&e[N$6]&2048)&&(d[N$6]|=2048),ou$2(d),d[oe$5]=d[Fn$2]=e,d[te$7]=n,d[Xe$3]=s||e&&e[Xe$3],d[H$3]=a||e&&e[H$3],d[ue$5]=c||e&&e[ue$5]||null,d[he$3]=i,d[Je$5]=$I(),d[kn$3]=l,d[eu$2]=u,d[ge$3]=t.type==2?e[ge$3]:d,d}function _C(e,t,n){let r=_e$3(t,e),o=TC(n),i=e[Xe$3].rendererFactory,s=Wl$2(e,Gl$2(e,o,null,am$2(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function am$2(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function cm$2(e,t,n,r){if(n===0)return -1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Wl$2(e,t){return e[_r$1]?e[Jc$2][Be$2]=t:e[_r$1]=t,e[Jc$2]=t,t}function SC(e=1){um$2(j$3(),v$6(),Se$5()+e);}function um$2(e,t,n,r){if((t[N$6]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ns$1(t,i,n);}else {let i=e.preOrderHooks;i!==null&&xs(t,i,0,n);}un$1(n);}var la$2=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(la$2||{});function Yn$3(e,t,n,r){let o=b$5(null);try{let[i,s,a]=e.inputs[n],c=null;(s&la$2.SignalBased)!==0&&(c=t[i][ee$6]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):rg$1(t,c,i,r);}finally{b$5(o);}}function lm$2(e,t,n,r,o){let i=Se$5(),s=r&2;try{un$1(-1),s&&t.length>P$4&&um$2(e,t,P$4,!1);let a=s?k$4.TemplateUpdateStart:k$4.TemplateCreateStart;B$6(a,o,n),n(r,o);}finally{un$1(i);let a=s?k$4.TemplateUpdateEnd:k$4.TemplateCreateEnd;B$6(a,o,n);}}function da$2(e,t,n){RC(e,t,n),(n.flags&64)===64&&OC(e,t,n);}function Br$1(e,t,n=_e$3){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a;}}}function MC(e,t,n,r){let i=r.get(Sg,_g$1)||n===ot$4.ShadowDom||n===ot$4.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);if(s.tagName.toLowerCase()==="script")throw new y$6(905,false);return s}function AC(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function dm$2(e,t,n,r,o,i){let s=t[E$6];if(ha$2(e,s,t,n,r)){mt$6(e)&&pm$2(t,e.index);return}e.type&3&&(n=AC(n)),fm$2(e,t,n,r,o,i);}function fm$2(e,t,n,r,o,i){if(e.type&3){let s=_e$3(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function pm$2(e,t){let n=Ue$5(t,e);n[N$6]&16||(n[N$6]|=64);}function RC(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mt$6(n)&&_C(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Bs$1(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Po$2(t,e,s,n);if(Fr$1(c,t),i!==null&&PC(t,s-r,c,a,n,i),tt$3(a)){let u=Ue$5(n.index,t);u[te$7]=Po$2(t,e,s,n);}}}function OC(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Wp$2();try{un$1(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];gs(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&kC(c,u);}}finally{un$1(-1),gs(s);}}function kC(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function ql$2(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];qg(t,i.selectors,false)&&(r??=[],tt$3(i)?r.unshift(i):r.push(i));}return r}function FC(e,t,n,r,o,i){let s=_e$3(e,t);hm$2(t[H$3],s,i,e.value,n,r,o);}function hm$2(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?ie$5(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function PC(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Yn$3(r,n,c,u);}}function fa$1(e,t,n,r,o){let i=P$4+n,s=t[E$6],a=o(s,t,e,r,n);t[i]=a,Hn$2(e,true);let c=e.type===2;return c?($g(t[H$3],a,e),(jp$2()===0||Sr$3(e))&&Fr$1(a,t),Bp$2()):Fr$1(a,t),Ds$1()&&(!c||!ta$3(e))&&Ul$1(s,t,a,e),e}function pa$2(e){let t=e;return pu$1()?hu$2():(t=t.parent,Hn$2(t,false)),t}function Zl$2(e,t){let n=e[ue$5];if(!n)return;let r;try{r=n.get(vt$7,null);}catch(o){r=null;}r?.(t);}function ha$2(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];Yn$3(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Yn$3(l,u,r,o),a=true;}return a}function LC(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=t.data[f],m=d[p+1];Yn$3(h,n[f],m,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(Yn$3(r,n[s],o,i),u=true),u}function jC$1(e,t){let n=Ue$5(t,e),r=n[E$6];BC(r,n);let o=n[Ke$7];o!==null&&n[kn$3]===null&&(n[kn$3]=Ag(o,n[ue$5])),B$6(k$4.ComponentStart);try{Yl$2(r,n,n[te$7]);}finally{B$6(k$4.ComponentEnd,n[te$7]);}}function BC(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function Yl$2(e,t,n){ys(t);try{let r=e.viewQuery;r!==null&&zu$2(1,r,n);let o=e.template;o!==null&&lm$2(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[gt$5]?.finishViewCreation(e),e.staticContentQueries&&Rg(e,t),e.staticViewQueries&&zu$2(2,e.viewQuery,n);let i=e.components;i!==null&&VC(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[N$6]&=-5,vs();}}function VC(e,t){for(let n=0;n<t.length;n++)jC$1(e,t[n]);}function Vr$1(e,t,n,r){let o=b$5(null);try{let i=t.tView,a=e[N$6]&4096?4096:16,c=Gl$2(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[on$2]=u;let l=e[gt$5];return l!==null&&(c[gt$5]=l.createEmbeddedView(i)),Yl$2(i,c,n),c}finally{b$5(o);}}function Qn$3(e,t){return !t||t.firstChild===null||Eg(e)}function Bo$2(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(He$5(i)),Ve$3(i)&&gm$2(i,r);let s=n.type;if(s&8)Bo$2(e,t,n.child,r);else if(s&32){let a=Ll$2(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=im$2(t,n);if(Array.isArray(a))r.push(...a);else {let c=Pt$4(t[ge$3]);Bo$2(c[E$6],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function gm$2(e,t){for(let n=J$4;n<e.length;n++){let r=e[n],o=r[E$6].firstChild;o!==null&&Bo$2(r[E$6],r,o,t);}e[an$3]!==e[Ke$7]&&t.push(e[an$3]);}function mm$2(e){if(e[Ln$2]!==null){for(let t of e[Ln$2])t.impl.addSequence(t);e[Ln$2].length=0;}}var ym$2=[];function HC(e){return e[Re$4]??UC(e)}function UC(e){let t=ym$2.pop()??Object.create(zC);return t.lView=e,t}function $C(e){e.lView[Re$4]!==e&&(e.lView=null,ym$2.push(e));}var zC=E$7(D$6({},Qt$4),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{Vn$2(e.lView);},consumerOnSignalRead(){this.lView[Re$4]=this;}});function GC$1(e){let t=e[Re$4]??Object.create(WC);return t.lView=e,t}var WC=E$7(D$6({},Qt$4),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Pt$4(e.lView);for(;t&&!vm$2(t[E$6]);)t=Pt$4(t);t&&fs(t);},consumerOnSignalRead(){this.lView[Re$4]=this;}});function vm$2(e){return e.type!==2}function Dm$2(e){if(e[tn$3]===null)return;let t=true;for(;t;){let n=false;for(let r of e[tn$3])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[N$6]&8192);}}var qC=100;function Em$2(e,t=0){let r=e[Xe$3].rendererFactory;r.begin?.();try{ZC(e,t);}finally{r.end?.();}}function ZC(e,t){let n=mu$2();try{co$4(!0),tl$2(e,t);let r=0;for(;Eo$2(e);){if(r===qC)throw new y$6(103,!1);r++,tl$2(e,1);}}finally{co$4(n);}}function YC(e,t,n,r){if(cn$2(t))return;let o=t[N$6],i=false,s=false;ys(t);let a=true,c=null,u=null;(vm$2(e)?(u=HC(t),c=Ot$2(u)):Gi$3()===null?(a=false,u=GC$1(t),c=Ot$2(u)):t[Re$4]&&(Xt$6(t[Re$4]),t[Re$4]=null));try{ou$2(t),$p$2(e.bindingStartIndex),n!==null&&lm$2(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Ns$1(t,f,null);}else {let f=e.preOrderHooks;f!==null&&xs(t,f,0,null),_u$2(t,0);}if(s||QC(t),Dm$2(t),Im$2(t,0),e.contentQueries!==null&&Rg(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Ns$1(t,f);}else {let f=e.contentHooks;f!==null&&xs(t,f,1),_u$2(t,1);}XC(e,t);let d=e.components;d!==null&&Cm$2(t,d,0);let p=e.viewQuery;if(p!==null&&zu$2(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Ns$1(t,f);}else {let f=e.viewHooks;f!==null&&xs(t,f,2),_u$2(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ls]){for(let f of t[ls])f();t[ls]=null;}i||(mm$2(t),t[N$6]&=-73);}catch(l){throw Vn$2(t),l}finally{u!==null&&(Kt$4(u,c),a&&$C(u)),vs();}}function Im$2(e,t){for(let n=wg(e);n!==null;n=Cg(n))for(let r=J$4;r<n.length;r++){let o=n[r];wm$2(o,t);}}function QC(e){for(let t=wg(e);t!==null;t=Cg(t)){if(!(t[N$6]&2))continue;let n=t[jn$3];for(let r=0;r<n.length;r++){let o=n[r];fs(o);}}}function KC(e,t,n){B$6(k$4.ComponentStart);let r=Ue$5(t,e);try{wm$2(r,n);}finally{B$6(k$4.ComponentEnd,r[te$7]);}}function wm$2(e,t){ds(e)&&tl$2(e,t);}function tl$2(e,t){let r=e[E$6],o=e[N$6],i=e[Re$4],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&mr$2(i)),s||=false,i&&(i.dirty=false),e[N$6]&=-9217,s)YC(r,e,r.template,e[te$7]);else if(o&8192){let a=b$5(null);try{Dm$2(e),Im$2(e,1);let c=r.components;c!==null&&Cm$2(e,c,1),mm$2(e);}finally{b$5(a);}}}function Cm$2(e,t,n){for(let r=0;r<t.length;r++)KC(e,t[r],n);}function XC(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)un$1(~o);else {let i=o,s=n[++r],a=n[++r];Gp$2(s,i);let c=t[i];B$6(k$4.HostBindingsUpdateStart,c);try{a(2,c);}finally{B$6(k$4.HostBindingsUpdateEnd,c);}}}}finally{un$1(-1);}}function Ql$1(e,t){let n=mu$2()?64:1088;for(e[Xe$3].changeDetectionScheduler?.notify(t);e;){e[N$6]|=n;let r=Pt$4(e);if(Mr$1(e)&&!r)return e;e=r;}return null}function bm$2(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Tm$1(e,t){let n=J$4+t;if(n<e.length)return e[n]}function Hr$1(e,t,n,r=true){let o=t[E$6];if(JC(o,t,e,n),r){let s=el$2(n,e),a=t[H$3],c=a.parentNode(e[an$3]);c!==null&&hC(o,e[he$3],a,t,c,s);}let i=t[kn$3];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function Kl$2(e,t){let n=Vo$1(e,t);return n!==void 0&&ca$1(n[E$6],n),n}function Vo$1(e,t){if(e.length<=J$4)return;let n=J$4+t,r=e[n];if(r){let o=r[on$2];o!==null&&o!==e&&Hl$2(o,r),t>0&&(e[n-1][Be$2]=r[Be$2]);let i=go$4(e,J$4+t);pC(r[E$6],r);let s=i[gt$5];s!==null&&s.detachView(i[E$6]),r[oe$5]=null,r[Be$2]=null,r[N$6]&=-129;}return r}function JC(e,t,n,r){let o=J$4+r,i=n.length;r>0&&(n[o-1][Be$2]=t),r<i-J$4?(t[Be$2]=n[o],Yc$2(n,J$4+r,t)):(n.push(t),t[Be$2]=null),t[oe$5]=n;let s=t[on$2];s!==null&&n!==s&&_m$2(s,t);let a=t[gt$5];a!==null&&a.insertView(e),ps(t),t[N$6]|=128;}function _m$2(e,t){let n=e[jn$3],r=t[oe$5];if(Lt$4(r))e[N$6]|=2;else {let o=r[oe$5][ge$3];t[ge$3]!==o&&(e[N$6]|=2);}n===null?e[jn$3]=[t]:n.push(t);}var pn$3=class pn{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E$6];return Bo$2(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[te$7]}set context(t){this._lView[te$7]=t;}get destroyed(){return cn$2(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[oe$5];if(Ve$3(t)){let n=t[vo$3],r=n?n.indexOf(this):-1;r>-1&&(Vo$1(t,r),go$4(n,r));}this._attachedToViewContainer=false;}ca$1(this._lView[E$6],this._lView);}onDestroy(t){Io$2(this._lView,t);}markForCheck(){Ql$1(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[N$6]&=-129;}reattach(){ps(this._lView),this._lView[N$6]|=128;}detectChanges(){this._lView[N$6]|=1024,Em$2(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y$6(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Mr$1(this._lView),n=this._lView[on$2];n!==null&&!t&&Hl$2(n,this._lView),nm$2(this._lView[E$6],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new y$6(902,false);this._appRef=t;let n=Mr$1(this._lView),r=this._lView[on$2];r!==null&&!n&&_m$2(r,this._lView),ps(this._lView);}};var Et$3=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=eb;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Vr$1(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new pn$3(i)}}return e})();function eb(){return ga$1(Z$4(),v$6())}function ga$1(e,t){return e.type&4?new Et$3(t,e,jr$2(e,t)):null}function nr$2(e,t,n,r,o){let i=e.data[t];if(i===null)i=tb(e,t,n,r,o),zp$2()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Up$2();i.injectorIndex=s===null?-1:s.injectorIndex;}return Hn$2(i,true),i}function tb(e,t,n,r,o){let i=fu$2(),s=pu$1(),a=s?i:i&&i.parent,c=e.data[t]=rb(e,a,n,t,r,o);return nb(e,c,i,s),c}function nb(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n));}function rb(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return uu$2()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOff
4set:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Du$2(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex: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 ob(e){let t=e[sn$2]??[],r=e[oe$5][H$3],o=[];for(let i of t)i.data[_l$2]!==void 0?o.push(i):ib(i,r);e[sn$2]=o;}function ib(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Tg];for(;n<o;){let i=r.nextSibling;Ug(t,r,false),r=i,n++;}}}var sb=()=>null,ab=()=>null;function $s$1(e,t){return sb()}function Sm$2(e,t,n){return ab()}var Mm$2=class Mm{},Kn$3=class Kn{},qo$1=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>cb()}return e})();function cb(){let e=v$6(),t=Z$4(),n=Ue$5(t.index,e);return (Lt$4(n)?n:e)[H$3]}var Nm$2=(()=>{class e{static \u0275prov=x$3({token:e,providedIn:"root",factory:()=>null})}return e})();function xm$2(e){return e.debugInfo?.className||e.type.name||null}var Rs$1={},Wn$3=class Wn{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,Rs$1,r);return o!==Rs$1||n===Rs$1?o:this.parentInjector.get(t,n,r)}};function Xl$2(e){return ma$2(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:false}function Am$2(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else {let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value);}}function ma$2(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function wt$4(e,t,n){return e[t]=n}function Zo$2(e,t){return e[t]}function le$3(e,t,n){if(n===ne$6)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function Pr$1(e,t,n,r){let o=le$3(e,t,n);return le$3(e,t+1,r)||o}function Jl$1(e,t,n,r,o){let i=Pr$1(e,t,n,r);return le$3(e,t+2,o)||i}function hn$2(e,t,n,r,o,i){let s=Pr$1(e,t,n,r);return Pr$1(e,t+2,o,i)||s}function qn$3(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&WI(o,i);let s=mt$6(e)?Ue$5(e.index,t):t;Ql$1(s,5);let a=t[te$7],c=xh$1(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=xh$1(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function xh$1(e,t,n,r){let o=b$5(null);try{return B$6(k$4.OutputStart,t,n),n(r)!==!1}catch(i){return Zl$2(e,i),false}finally{B$6(k$4.OutputEnd,t,n),b$5(o);}}function ed$2(e,t,n,r,o,i,s,a){let c=Sr$3(e),u=false,l=null;if(!r&&c&&(l=lb(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=_e$3(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!ub(i)){let h=r?m=>r(He$5(m[e.index])):e.index;Rm$2(h,t,n,i,a,f,false);}}return u}function ub(e){return e.startsWith("animation")||e.startsWith("transition")}function lb(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Tr$2],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function Rm$2(e,t,n,r,o,i,s){let a=t.firstCreatePass?au$2(t):null,c=su$2(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function Ah$1(e,t,n,r,o){let i=null,s=null,a=null,c=false,u=e.directiveToIndex.get(n.type);if(typeof u=="number"?i=u:[i,s,a]=u,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let l=e.hostDirectiveOutputs[r];for(let d=0;d<l.length;d+=2){let p=l[d];if(p>=s&&p<=a)c=true,zs$2(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,zs$2(e,t,i,r,r,o)),c}function zs$2(e,t,n,r,o,i){let s=t[n],a=t[E$6],u=a.data[n].outputs[r],d=s[u].subscribe(i);Rm$2(e.index,a,t,o,i,d,true);}function db(){fb();}function fb(){let e=v$6(),t=j$3(),n=Z$4();if(t.firstCreatePass&&gb(t,n),n.controlDirectiveIndex===-1)return;Ne$4("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Gs$2(e,t,n));}function pb(){hb();}function hb(){let e=v$6(),t=j$3(),n=$n$3();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Gs$2(e,t,n));}var Gs$2=class Gs{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096);}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return _e$3(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Ah$1(this.tNode,this.lView,r,t,qn$3(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Ah$1(this.tNode,this.lView,r,n,qn$3(this.tNode,this.lView,t));}listenToDom(t,n){ed$2(this.tNode,this.tView,this.lView,void 0,this.lView[H$3],t,n,qn$3(this.tNode,this.lView,n));}
4setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return false;let i=false;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];Yn$3(a,c,t,n),i=true;}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],u=this.tView.data[a],l=this.lView[a];Yn$3(u,l,c,n),i=true;}return i}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";LC(this.tNode,this.tView,this.lView,n,r,t);}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return false;let n=this.tView.data[this.tNode.customControlIndex];return (n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===true}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=true;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=true;let i=Rh$1(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=true;}let s=Rh$1(i.directive);s!==null&&r.push(...s);}}}return n}};function Rh$1(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function gb(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}mb(e,t);}function mb(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(Oh$1(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Oh$1(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let u=0;u<s.length;u+=2){let l=s[u];if(c===l)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return t.flags|=o,t.customControlIndex=p,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function Oh$1(e,t){return yb(e,t)&&vb(e,t+"Change")}function yb(e,t){return t in e.inputs}function vb(e,t){return t in e.outputs}var nl$2=Symbol("BINDING");var rr$3=new I$4("");function Ws$1(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=ts(o,a);else if(i==2){let c=a,u=t[++s];r=ts(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function V$3(e,t=0){let n=v$6();if(n===null)return M$6(e,t);let r=Z$4();return gg$1(r,n,ce$4(e),t)}function Db(){let e="invalid";throw new Error(e)}function Om$2(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}wb(e,t,n,a,i,c,u);}i!==null&&r!==null&&Eb(n,r,i);}function Eb(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new y$6(-301,false);r.push(t[o],i);}}function Ib(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function wb(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&tt$3(f)&&(c=f,Ib(e,n,p)),Vu$2(Bs$1(n,t),e,f.type);}Mb(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let u=false,l=false,d=cm$2(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=kr$1(n.mergedAttrs,f.hostAttrs),bb(e,n,t,d,f),Sb(d,f,o),s!==null&&s.has(f)){let[m,D]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,D+n.directiveStart]);}else (i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}Cb(e,n,i);}function Cb(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))kh$1(0,t,o,r),kh$1(1,t,o,r),Ph$1(t,r,false);else {let i=n.get(o);Fh$1(0,t,i,r),Fh$1(1,t,i,r),Ph$1(t,r,true);}}}function kh$1(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),km$1(t,i);}}function Fh$1(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),km$1(t,s);}}
vendor: 2,277 bytes, line 4
4function km$1(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function Ph$1(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Pl$2(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2;}e.initialInputs??=[],e.initialInputs.push(s);}function bb(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=en$3(o.type)),s=new Zn$3(i,tt$3(o),V$3,null);e.blueprint[r]=s,n[r]=s,Tb(e,t,r,cm$2(e,n,o.hostVars,ne$6),o);}function Tb(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;_b(s)!=a&&s.push(a),s.push(n,r,i);}}function _b(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Sb(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;tt$3(t)&&(n[""]=e);}}function Mb(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function td$2(e,t,n,r,o,i,s,a){let c=t[E$6],u=c.consts,l=Oe$4(u,s),d=nr$2(c,e,n,r,l);return Om$2(c,t,d,Oe$4(u,a),o),d.mergedAttrs=kr$1(d.mergedAttrs,d.attrs),d.attrs!==null&&Ws$1(d,d.attrs,false),d.mergedAttrs!==null&&Ws$1(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function nd$2(e,t){sg$1(e,t),tu$2(t)&&e.queries.elementEnd(t);}function Fm$2(e,t,n,r,o,i){let s=t.consts,a=Oe$4(s,o),c=nr$2(t,e,n,r,a);if(c.mergedAttrs=kr$1(c.mergedAttrs,c.attrs),i!=null){let u=Oe$4(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&Ws$1(c,c.attrs,false),c.mergedAttrs!==null&&Ws$1(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Pm$1=typeof ShadowRoot<"u",Nb=typeof Document<"u";function xb(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&la$2.SignalBased)!==0};return o&&(i.transform=o),i})}function Ab(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}
4function Rb(e,t,n){let r=t instanceof pe$6?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Wn$3(n,r):n}function Ob$1(e){let t=e.get(Kn$3,null);if(t===null)throw new y$6(407,false);let n=e.get(Nm$2,null),r=e.get(Qe$5,null),o=e.get(st$4,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function kb(e,t){let n=Lm$2(e);return Vg(t,n,n==="svg"?nu$2:n==="math"?Op$2:null)}function Lm$2(e){return (e.selectors[0][0]||"div").toLowerCase()}var Xn$3=class Xn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=xb(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Ab(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Bw(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){B$6(k$4.DynamicComponentStart);let a=b$5(null);try{let c=this.componentDef,u=Rb(c,o||this.ngModule,t),l=Ob$1(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(xm$2(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{b$5(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=Fb(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?MC(u,o,a.encapsulation,n):kb(a,u),d=n.get(rr$3,null),p=Pb$1(l,()=>n.get(Y$3,null)??Tl$2());d&&d.addHost(p);let f=s?.some(Lh$1)||i?.some(D=>typeof D!="function"&&D.bindings.some(Lh$1)),h=Gl$2(null,c,null,512|am$2(a),null,null,t,u,n,null,Ag(l,n,true));d&&Pm$1&&p instanceof ShadowRoot&&Io$2(h,()=>{d.removeHost(p);}),h[P$4]=l,ys(h);let m=null;try{let D=td$2(P$4,h,2,"#host",()=>c.directiveRegistry,!0,0);$g(u,l,D),Fr$1(l,h),da$2(c,h,D),Nl$2(c,D,h),nd$2(c,D),r!==void 0&&jb(D,this.ngContentSelectors,r),m=Ue$5(D.index,h),h[te$7]=m[te$7],Yl$2(c,h,null);}catch(D){throw m!==null&&Uu$2(m),Uu$2(h),D}finally{B$6(k$4.DynamicComponentEnd),vs();}return new qs$2(this.componentType,h,!!f)}};function Fb(e,t,n,r){let o=e?["ng-version","22.0.1"]:Vw(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[nl$2].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let p of d.bindings){a+=p[nl$2].requiredVars;let f=l+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,p=ho$3(d);c.push(p);}return zl$2(0,null,Lb$1(i,s),1,a,c,null,null,null,[o],null)}function Pb$1(e,t){let n=e.getRootNode?.();return Nb&&n instanceof Document?n.head:n&&Pm$1&&n instanceof ShadowRoot?n:t().head}function Lb$1(e,t){return !e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update();}}function Lh$1(e){let t=e[nl$2].kind;return t==="input"||t==="twoWay"}var qs$2=class qs extends Mm$2{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Nr(n[E$6],P$4),this.location=jr$2(this._tNode,n),this.instance=Ue$5(this._tNode.index,n)[te$7],this.hostView=this.changeDetectorRef=new pn$3(n,void 0),this.componentType=t;}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;ha$2(r,o[E$6],o,t,n);this.previousInputValues.set(t,n);let s=Ue$5(r.index,o);Ql$1(s,1);}get injector(){return new fn$2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function jb(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null);}}var Ct$6=(()=>{class e{static __NG_ELEMENT_ID__=Bb}return e})();function Bb(){let e=Z$4();return jm$2(e,v$6())}var rl$2=class e extends Ct$6{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}
vendor: 4,567 bytes, line 4
4get element(){return jr$2(this._hostTNode,this._hostLView)}get injector(){return new fn$2(this._hostTNode,this._hostLView)}get parentInjector(){let t=Il$2(this._hostTNode,this._hostLView);if(ug$1(t)){let n=Ls$1(t,this._hostLView),r=Ps$1(t),o=n[E$6].data[r+8];return new fn$2(o,n)}else return new fn$2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=jh$1(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-J$4}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=$s$1(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Qn$3(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,u=n||{};c=u.index,r=u.injector,o=u.projectableNodes,i=u.environmentInjector||u.ngModuleRef,s=u.directives,a=u.bindings;let l=new Xn$3(ht$5(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let C=this.parentInjector.get(pe$6,null);C&&(i=C);}let p=ht$5(l.componentType??{}),f=$s$1(this._lContainer,p?.id??null),h=null,m=l.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,c,Qn$3(this._hostTNode,f)),m}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(Fp$2(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[oe$5],u=new e(c,c[he$3],c[oe$5]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return Hr$1(s,o,i,r),t.attachToViewContainerRef(),Yc$2(Nu$2(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=jh$1(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Vo$1(this._lContainer,n);r&&(go$4(Nu$2(this._lContainer),n),ca$1(r[E$6],r));}detach(t){let n=this._adjustIndex(t,-1),r=Vo$1(this._lContainer,n);return r&&go$4(Nu$2(this._lContainer),n)!=null?new pn$3(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function jh$1(e){return e[vo$3]}function Nu$2(e){return e[vo$3]||(e[vo$3]=[])}function jm$2(e,t){let n,r=t[e.index];return Ve$3(r)?n=r:(n=bm$2(r,t,null,e),t[e.index]=n,Wl$2(t,n)),Hb(n,t,e,r),new rl$2(n,e,t)}function Vb$1(e,t){let n=e[H$3],r=n.createComment(""),o=_e$3(t,e),i=n.parentNode(o);return Hs$3(n,i,r,n.nextSibling(o),false),r}var Hb=$b;function $b(e,t,n,r){if(e[an$3])return;let o;n.type&8?o=He$5(r):o=Vb$1(t,n),e[an$3]=o;}var ol$2=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},il$2=class e{queries;constructor(t=[]){this.queries=t;}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone());}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t);}detachView(t){this.dirtyQueriesWithMatches(t);}finishViewCreation(t){this.dirtyQueriesWithMatches(t);}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)od$2(t,n).matches!==null&&this.queries[n].setDirty();}},Zs$2=class Zs{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Zb(t):this.predicate=t;}},sl$2=class e{queries;constructor(t=[]){this.queries=t;}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n);}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t);}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i]);}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n);}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t);}},al$2=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n;}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n);}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}
4matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,zb(n,i)),this.matchTNodeWithReadOption(t,n,As$1(n,t,i,false,false));}else r===Et$3?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,As$1(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Vt$3||o===Ct$6||o===Et$3&&n.type&4)this.addMatch(n.index,-2);else {let i=As$1(n,t,o,false,false);i!==null&&this.addMatch(n.index,i);}else this.addMatch(n.index,r);}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n);}};function zb(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function Gb(e,t){return e.type&11?jr$2(e,t):e.type&4?ga$1(e,t):null}function Wb(e,t,n,r){return n===-1?Gb(t,e):n===-2?qb(e,t,r):Po$2(e,e[E$6],n,t)}function qb(e,t,n){if(n===Vt$3)return jr$2(t,e);if(n===Et$3)return ga$1(t,e);if(n===Ct$6)return jm$2(t,e)}function Vm$2(e,t,n,r){let o=t[gt$5].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else {let l=i[u];a.push(Wb(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function cl$2(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Vm$2(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else {let u=i[a+1],l=t[-c];for(let d=J$4;d<l.length;d++){let p=l[d];p[on$2]===p[oe$5]&&cl$2(p[E$6],p,u,r);}if(l[jn$3]!==null){let d=l[jn$3];for(let p=0;p<d.length;p++){let f=d[p];cl$2(f[E$6],f,u,r);}}}}}return r}function rd$2(e,t){return e[gt$5].queries[t].queryList}function Hm$2(e,t,n){let r=new Vs$2((n&4)===4);return Lp$2(e,t,r,r.destroy),(t[gt$5]??=new il$2).queries.push(new ol$2(r))-1}function Um$2(e,t,n){let r=j$3();return r.firstCreatePass&&(zm$2(r,new Zs$2(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Hm$2(r,v$6(),t)}function $m$2(e,t,n,r){let o=j$3();if(o.firstCreatePass){let i=Z$4();zm$2(o,new Zs$2(t,n,r),i.index),Yb(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Hm$2(o,v$6(),n)}function Zb(e){return e.split(",").map(t=>t.trim())}function zm$2(e,t,n){e.queries===null&&(e.queries=new sl$2),e.queries.track(new al$2(t,n));}function Yb(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t);}function od$2(e,t){return e.queries.getByIndex(t)}function Gm$2(e,t){let n=e[E$6],r=od$2(n,t);return r.crossesNgTemplate?cl$2(n,e,t,[]):Vm$2(n,e,r,t)}function id$2(e,t,n){let r,o=oo$2(()=>{r._dirtyCounter();let i=Qb(r,e);if(t&&i===void 0)throw new y$6(-951,false);return i});return r=o[ee$6],r._dirtyCounter=Es$1(0),r._flatValue=void 0,o}function sd$2(e){return id$2(true,false)}function ad$2(e){return id$2(true,true)}function Wm$2(e){return id$2(false,false)}function qm$2(e,t){let n=e[ee$6];n._lView=v$6(),n._queryIndex=t,n._queryList=rd$2(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function Qb(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[N$6]&4)return t?void 0:fe$6;let o=rd$2(n,r),i=Gm$2(n,r);return o.reset(i,Dg),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Yo$2(e){return !!e&&typeof e.then=="function"}function ya$1(e){return !!e&&typeof e.subscribe=="function"}var Jn$3=class Jn{},Zm$2=class Zm{};var Ys$2=class Ys extends Jn$3{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Dp$2(t);this._bootstrapComponents=Mw(i.bootstrap),this._r3Injector=Iu$2(t,n,[{provide:Jn$3,useValue:this},...r],fo$4(t),new Set(["environment"])),o&&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(n=>n()),this.destroyCbs=null;}onDestroy(t){this.destroyCbs.push(t);}},Qs$2=class Qs extends Zm$2{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new Ys$2(this.moduleType,t,[])}};var Ho$1=class Ho extends Jn$3{injector;instance=null;constructor(t){super();let n=new An$3([...t.providers,{provide:Jn$3,useValue:this}
vendor: 4,886 bytes, line 4
4],t.parent||Cr$3(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function cd$2(e,t,n=null){return new Ho$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var Kb=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n;}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=us$1(false,n.type),o=r.length>0?cd$2([r],this._injector,""):null;this.cachedInjectors.set(n,o);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static \u0275prov=x$3({token:e,providedIn:"environment",factory:()=>new e(M$6(pe$6))})}return e})();function Xb(e){return $o$1(()=>{let t=Ym$2(e),n=E$7(D$6({},t),{type:e.type,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Cl$2.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Kb).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||ot$4.Emulated,styles:e.styles||fe$6,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ne$4("NgStandalone"),Qm$2(n);let r=e.dependencies;return n.directiveDefs=Bh$1(r,Jb),n.pipeDefs=Bh$1(r,Wc$2),n.id=nT(n),n})}function Jb(e){return ht$5(e)||ho$3(e)}function Qo$2(e){return $o$1(()=>({type:e.type,bootstrap:e.bootstrap||fe$6,declarations:e.declarations||fe$6,imports:e.imports||fe$6,exports:e.exports||fe$6,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function eT(e,t){if(e==null)return nn$2;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=la$2.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function tT(e){if(e==null)return nn$2;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function bt$6(e){return $o$1(()=>{let t=Ym$2(e);return Qm$2(t),t})}function Fe$4(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ym$2(e){let t={};return {type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||nn$2,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||fe$6,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:eT(e.inputs,t),outputs:tT(e.outputs),debugInfo:null}}function Qm$2(e){e.features?.forEach(t=>t(e));}function Bh$1(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i);}return r}:null}function nT(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var ud$2=new I$4("");function rT(e){return On$3([{provide:ud$2,multi:true,useValue:e}])}var ld$2=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g$4(ud$2,{optional:true})??[];injector=g$4(Ee$4);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=br$3(this.injector,o);if(Yo$2(i))n.push(i);else if(ya$1(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static \u0275fac=function(r){return new(r||e)};static \u0275prov=we$6({token:e,factory:e.\u0275fac})}return e})();function oT(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function iT(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=sT,n.hostDirectives=r?e.map(ul$2):[e]):r?n.hostDirectives.unshift(...e.map(ul$2)):n.hostDirectives.unshift(e);};return t.ngInherit=true,t}function sT(e){let t=[],n=false,r=null,o=null;for(let i=0;i<e.length;i++){let s=e[i];if(s.hostDirectives!==null){let a=t.length;
4r??=new Map,o??=new Map,Km$2(s,t,r,e),o.set(s,[a,t.length-1]);}i===0&&tt$3(s)&&(n=true,t.push(s));}for(let i=n?1:0;i<e.length;i++)t.push(e[i]);return r!==null&&r.forEach((i,s)=>{aT(s.declaredInputs,i.inputs);}),[t,r,o]}function Km$2(e,t,n,r){if(e.hostDirectives!==null)for(let o of e.hostDirectives)if(typeof o=="function"){let i=o();for(let s of i)Vh$1(ul$2(s),t,n,r);}else Vh$1(o,t,n,r);}function Vh$1(e,t,n,r){let o=ho$3(e.directive);if(Km$2(o,t,n,r),n.has(o)){let i=n.get(o);Hh$1(i,e.inputs,"input"),Hh$1(i,e.outputs,"output");}else r.includes(o)||(n.set(o,e),t.push(o));}function Hh$1(e,t,n){let r=n==="input"?e.inputs:e.outputs;Object.keys(t).forEach(o=>{let i=t[o];(!r.hasOwnProperty(o)||r[o]===i)&&(r[o]=i);});}function ul$2(e){return typeof e=="function"?{directive:ce$4(e),inputs:{},outputs:{}}:{directive:ce$4(e.directive),inputs:Uh$1(e.inputs),outputs:Uh$1(e.outputs)}}function Uh$1(e){let t={};if(e!==void 0&&e.length>0)for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function aT(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];e[r]=o;}}function cT(e){return Object.getPrototypeOf(e.prototype).constructor}function Xm$2(e){let t=cT(e.type),n=true,r=[e];for(;t;){let o;if(tt$3(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new y$6(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;
4s.inputs=xu$2(e.inputs),s.declaredInputs=xu$2(e.declaredInputs),s.outputs=xu$2(e.outputs);let a=o.hostBindings;a&&pT(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&dT(e,c),u&&fT(e,u),uT(e,o),vp$2(e.outputs,o.outputs),tt$3(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation);}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===Xm$2&&(n=false);}}t=Object.getPrototypeOf(t);}lT(r);}function uT(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n]);}}function lT(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=kr$1(o.hostAttrs,n=kr$1(n,o.hostAttrs));}}function xu$2(e){return e===nn$2?{}:e===fe$6?[]:e}function dT(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function fT(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function pT(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function Jm$2(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=kr$1(e.mergedAttrs,e.attrs);let l=e.tView=zl$2(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e));}a&&(e.flags|=a),Hn$2(e,false);let c=gT(n,t);Ds$1()&&Ul$1(n,t,c,e),Fr$1(c,t);let u=bm$2(c,t,c,e);t[r+P$4]=u,Wl$2(t,u);}function hT(e,t,n,r,o,i,s,a,c,u,l){let d=n+P$4,p;return t.firstCreatePass?(p=nr$2(t,d,4,s||null,a||null),Om$2(t,e,p,Oe$4(t.consts,u),ql$2),sg$1(t,p)):p=t.data[d],Jm$2(p,e,t,n,r,o,i,c),Sr$3(p)&&da$2(t,e,p),u!=null&&Br$1(e,p,l),p}function er$3(e,t,n,r,o,i,s,a,c,u,l){let d=n+P$4,p;if(t.firstCreatePass){if(p=nr$2(t,d,4,s||null,a||null),u!=null){let f=Oe$4(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return Jm$2(p,e,t,n,r,o,i,c),u!=null&&Br$1(e,p,l),p}function ey$1(e,t,n,r,o,i,s,a){let c=v$6(),u=j$3(),l=Oe$4(u.consts,i);return hT(c,u,e,t,n,r,o,l,void 0,s,a),ey$1}function ty$1(e,t,n,r,o,i,s,a){let c=v$6(),u=j$3(),l=Oe$4(u.consts,i);return er$3(c,u,e,t,n,r,o,l,void 0,s,a),ty$1}var gT=mT;function mT(e,t,n,r){return bo$3(true),t[H$3].createComment("")}var Me$5=(function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED",e})(Me$5||{}),$h$1=0,yT=1,se$6=(function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e})(se$6||{}),ny$1=(function(e){return e[e.Initial=-1]="Initial",e})(ny$1||{}),vT=0,va$2=1;var DT=4,ET=5,IT=6,wT=7,Au$2=8,CT=9,dd$2=(function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e})(dd$2||{});function bT(e,t,n){let r=oy(e);t[r]===null&&(t[r]=[]),t[r].push(n);}function Os$1(e,t){let n=oy(e),r=t[n];if(r!==null){for(let o of r)o();t[n]=null;}}function ry(e){Os$1(1,e),Os$1(0,e),Os$1(2,e);}function oy(e){let t=DT;return e===1?t=ET:e===2&&(t=CT),t}function Da$1(e){return e+1}function Ko(e,t){e[E$6];let r=Da$1(t.index);return e[r]}function TT(e,t,n){e[E$6];let o=Da$1(t);e[o]=n;}function or$2(e,t){let n=Da$1(t.index);return e.data[n]}function _T(e,t,n){let r=Da$1(t);e.data[r]=n;}function ST(e,t,n){let r=t[E$6],o=or$2(r,n);switch(e){case se$6.Complete:return o.primaryTmplIndex;case se$6.Loading:return o.loadingTmplIndex;case se$6.Error:return o.errorTmplIndex;case se$6.Placeholder:return o.placeholderTmplIndex;default:return null}}function zh$1(e,t){return t===se$6.Placeholder?e.placeholderBlockConfig?.[$h$1]??null:t===se$6.Loading?e.loadingBlockConfig?.[$h$1]??null:null}function MT(e){return e.loadingBlockConfig?.[yT]??null}function Gh$1(e,t){if(!e||e.length===0)return t;let n=new Set(e);for(let r of t)n.add(r);return e.length===n.size?e:Array.from(n)}function NT(e,t){let n=t.primaryTmplIndex+P$4;return Nr(e,n)}var xT=(()=>{class e{cachedInjectors=new Map;getOrCreateInjector(n,r,o,i){if(!this.cachedInjectors.has(n)){let s=o.length>0?cd$2(o,r,i):null;this.cachedInjectors.set(n,s);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static \u0275prov=x$3({token:e,providedIn:"environment",factory:()=>new e})}return e})();var iy$1=new I$4("");function Ru$2(e,t,n){return e.get(xT).getOrCreateInjector(t,e,n,"")}function AT(e,t,n){if(e instanceof Wn$3){let o=e.injector,i=e.parentInjector,s=Ru$2(i,t,n);return new Wn$3(o,s)}let r=e.get(pe$6);if(r!==e){let o=Ru$2(r,t,n);return new Wn$3(e,o)}return Ru$2(e,t,n)}function dn$2(e,t,n,r=false){let o=n[oe$5],i=o[E$6];if(cn$2(o))return;let s=Ko(o,t),a=s[va$2],c=s[wT];if(!(c!==null&&e<c)&&Wh$1(a,e)&&Wh$1(s[vT]??-1,e)){let u=or$2(i,t),d=!r&&true&&(MT(u)!==null||zh$1(u,se$6.Loading)!==null||zh$1(u,se$6.Placeholder))?FT:OT;try{d(e,s,n,t,o);}catch(p){Zl$2(o,p);}}}function RT(e,t){let n=e[sn$2]?.findIndex(o=>o.data[Sl$2]===t[va$2])??-1;return {dehydratedView:n>-1?e[sn$2][n]:null,dehydratedViewIx:n}}function OT(e,t,n,r,o){B$6(k$4.DeferBlockStateStart);let i=ST(e,o,r);if(i!==null){t[va$2]=e;let s=o[E$6],a=i+P$4,c=Nr(s,a),u=0;Kl$2(n,u);let l;if(e===se$6.Complete){let h=or$2(s,r),m=h.providers;m&&m.length>0&&(l=AT(o[ue$5],h,m));}let{dehydratedView:d,dehydratedViewIx:p}=RT(n,t),f=Vr$1(o,c,null,{injector:l,dehydratedView:d});if(Hr$1(n,f,u,Qn$3(c,d)),fs(f),p>-1&&n[sn$2]?.splice(p,1),(e===se$6.Complete||e===se$6.Error)&&Array.isArray(t[Au$2])){for(let h of t[Au$2])h();t[Au$2]=null;}}B$6(k$4.DeferBlockStateEnd);}function Wh$1(e,t){return e<t}function kT(e,t){let n=e[t.index];dn$2(se$6.Placeholder,t,n);}function qh$1(e,t,n){e.loadingPromise.then(()=>{e.loadingState===Me$5.COMPLETE?dn$2(se$6.Complete,t,n):e.loadingState===Me$5.FAILED&&dn$2(se$6.Error,t,n);});}var FT=null;function PT(e,t){return t[ue$5].get(iy$1,null,{optional:true})?.behavior!==dd$2.Manual}var sy=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var fd$2=new I$4("");var pd$2=new I$4("");function ay(){wc$2(()=>{let e="";throw new y$6(600,e)});}var LT$1=10;var Ur$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g$4(vt$7);
4afterRenderManager=g$4(sa$3);zonelessEnabled=g$4(Ar$2);rootEffectScheduler=g$4(Cs$1);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ye$5;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g$4(ln$2);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ve$4(n=>!n))}constructor(){g$4(st$4,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g$4(pe$6);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Ee$4.NULL){return this._injector.get(q$3).run(()=>{if(B$6(k$4.BootstrapComponentStart),!this._injector.get(ld$2).done){let C="";throw new y$6(405,C)}let a=ht$5(n),c=this._injector.get(Jn$3),u=new Xn$3(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=jT(r),f=l||u.selector,h=u.create(o,[],f,c.injector,d,p),m=h.location.nativeElement,D=h.injector.get(fd$2,null);return D?.registerApplication(m),h.onDestroy(()=>{this.detachView(h.hostView),ko$3(this.components,h),D?.unregisterApplication(m);}),this._loadComponent(h),B$6(k$4.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){B$6(k$4.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ia$3.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw B$6(k$4.ChangeDetectionEnd),new y$6(101,false);let n=b$5(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,b$5(n),this.afterTick.next(),B$6(k$4.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Kn$3,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<LT$1;){B$6(k$4.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{B$6(k$4.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Eo$2(o))continue;let i=r&&!this.zonelessEnabled?0:1;Em$2(o,i),n=true;}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Eo$2(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8;}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this);}detachView(n){let r=n;ko$3(this._views,r),r.detachFromAppRef();}_loadComponent(n){this.attachView(n.hostView);try{this.tick();}catch(o){this.internalErrorHandler(o);}this.components.push(n),this._injector.get(pd$2,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>ko$3(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y$6(406,false);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy();}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=we$6({token:e,factory:e.\u0275fac})}return e})();function jT(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function ko$3(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function cy(e,t,n){let r=t[ue$5],o=t[E$6];if(e.loadingState!==Me$5.NOT_STARTED)return e.loadingPromise??Promise.resolve();let i=Ko(t,n),s=NT(o,e);e.loadingState=Me$5.IN_PROGRESS,Os$1(1,i);let a=e.dependencyResolverFn,c=r.get(zn$3).add();return a?(e.loadingPromise=Promise.allSettled(a()).then(u=>{let l=false,p=[],f=[];for(let h=0;h<u.length;h++){let m=u[h];if(m.status==="fulfilled"){let D=m.value,C=ht$5(D)||ho$3(D);if(C)p.push(C);else {let w=Wc$2(D);w&&f.push(w);}}else {l=true,m.reason instanceof Error?m.reason:new Error(String(m.reason));break}}if(l){if(e.loadingState=Me$5.FAILED,e.errorTmplIndex===null){let m="",D=new y$6(-750,m);Zl$2(t,D);}}else {e.loadingState=Me$5.COMPLETE;let h=s.tView;if(p.length>0){h.directiveRegistry=Gh$1(h.directiveRegistry,p);let m=p.map(C=>C.type),D=us$1(false,...m);e.providers=D;}f.length>0&&(h.pipeRegistry=Gh$1(h.pipeRegistry,f));}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,c();})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=Me$5.COMPLETE,c();}),e.loadingPromise)}function BT(e,t,n){let r=t[E$6],o=t[n.index];if(!PT(e,t))return;
4let i=Ko(t,n),s=or$2(r,n);switch(ry(i),s.loadingState){case Me$5.NOT_STARTED:dn$2(se$6.Loading,n,o),cy(s,t,n),s.loadingState===Me$5.IN_PROGRESS&&qh$1(s,n,o);break;case Me$5.IN_PROGRESS:dn$2(se$6.Loading,n,o),qh$1(s,n,o);break;case Me$5.COMPLETE:dn$2(se$6.Complete,n,o);break;case Me$5.FAILED:dn$2(se$6.Error,n,o);break;}}function VT$1(e,t,n){return Zh$1(t,n)}function HT(e){return e!=null&&(e&1)===1}function Zh$1(e,t){let n=e[ue$5],r=or$2(e[E$6],t),o=Ml$2(n),i=HT(r.flags),a=Ko(e,t)[IT]!==null;return !(i&&a&&o)}function UT(e,t,n,r,o,i,s,a,c,u){let l=v$6(),d=j$3(),p=e+P$4,f=er$3(l,d,e,null,0,0),h=l[ue$5],m=Ml$2(h);if(d.firstCreatePass){Ne$4("NgDefer");let L={primaryTmplIndex:t,loadingTmplIndex:null,placeholderTmplIndex:o,errorTmplIndex:null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:Me$5.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:0};_T(d,p,L);}let D=l[p];let C=null,w=null;if(D[sn$2]?.length>0){let L=D[sn$2][0].data;w=L[_l$2]??null,C=L[Sl$2];}let O=[null,ny$1.Initial,null,null,null,null,w,C,null,null];TT(l,p,O);let K=null;w!==null&&m&&(K=h.get(xg),K.add(w,{lView:l,tNode:f,lContainer:D}));let be=()=>{ry(O),w!==null&&K?.cleanup([w]);};bT(0,O,()=>iu$2(l,be)),Io$2(l,be);}function $T(){let e=v$6(),t=Z$4();if(!VT$1(0,e,t))return;or$2(e[E$6],t).loadingTmplIndex===null&&kT(e,t),BT(0,e,t);}function uy(e,t){let n=v$6(),r=yt$4();if(le$3(n,r,t)){let o=j$3(),i=$n$3();if(ha$2(i,o,n,e,t))mt$6(i)&&pm$2(n,i.index);else {let a=_e$3(i,n);hm$2(n[H$3],a,null,i.value,e,t,null);}}return uy}function ly(e,t,n,r){let o=v$6(),i=yt$4();if(le$3(o,i,t)){j$3();let a=$n$3();FC(a,o,e,t,n,r);}return ly}function ks$1(e){if(Ne$4("NgAnimateLeave"),!jl$2)return ks$1;let t=v$6();if($w(t))return ks$1;let r=Z$4(),o=t[ue$5].get(q$3);return Qw(oa$3(t),r,()=>zT(t,r,e,o)),aC$1(t[ue$5]),ks$1}function zT(e,t,n,r){let{promise:o,resolve:i}=Eu$2(),s=_e$3(t,e),a=e[H$3];Bt$2.add(e[Je$5]),(oa$3(e).get(t.index).resolvers??=[]).push(i);let c=Ww(n);return c&&c.length>0?GT(s,t,e,c,a,r):i(),{promise:o,resolve:i}}function GT(e,t,n,r,o,i){qw(e,o);let s=[],a=oa$3(n).get(t.index)?.resolvers,c,u=false,l=d=>{if(!(Qg(d)!==e&&d.type!=="animation-fallback")&&(d.type==="animation-fallback"||Yw(d,e))){if(u=true,c&&clearTimeout(c),d.type!=="animation-fallback"&&d.stopPropagation(),Oo$1.delete(e),Ch$1(t,e),Array.isArray(t.projection))for(let f of r)o.removeClass(e,f);bh$1(a,s),Th$1(n,t);}};i.runOutsideAngular(()=>{s.push(o.listen(e,"animationend",l)),s.push(o.listen(e,"transitionend",l));}),Yg(t,e);for(let d of r)o.addClass(e,d);i.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(u)return;eC(e,Oo$1,jl$2);let d=Oo$1.get(e);d?(c=setTimeout(()=>{l(new CustomEvent("animation-fallback"));},d.duration+50),s.push(()=>clearTimeout(c))):(Ch$1(t,e),bh$1(a,s),Th$1(n,t));});});}function WT(){return v$6()[ge$3][te$7]}var ll$2=class ll{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s);}else this.attach(r,i);}move(t,n){this.attach(n,this.detach(t));}};function Ou$2(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function qT(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){b$5(r);let u=t.length-1;for(b$5(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Ou$2(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],m=Ou$2(a,f,u,h,n);if(m!==0){m<0&&e.updateValue(a,h),a--,u--;continue}let D=n(s,l),C=n(a,f),w=n(s,d);if(Object.is(w,C)){let O=n(u,h);Object.is(O,D)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Ks$2,i??=Qh$1(e,s,a,n),dl$2(e,o,s,w))e.updateValue(s,d),s++,a++;else if(i.has(w))o.set(D,e.detach(s)),a--;else {let O=e.create(s,t[s]);e.attach(s,O),s++,a++;}}for(;s<=u;)Yh$1(e,o,n,s,t[s]),s++;}else if(t!=null){b$5(r);let u=t[Symbol.iterator]();b$5(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Ou$2(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new Ks$2,i??=Qh$1(e,s,a,n);let h=n(s,p);if(dl$2(e,o,s,h))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else {let m=n(s,d);o.set(m,e.detach(s)),a--;}}}for(;!l.done;)Yh$1(e,o,n,e.length,l.value),l=u.next();}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u);});}function dl$2(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function Yh$1(e,t,n,r,o){if(dl$2(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function Qh$1(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Ks$2=class Ks{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}
vendor: 4,154 bytes, line 4
4delete(t){if(!this.has(t))return false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function ZT(e,t,n,r,o,i,s,a){Ne$4("NgControlFlow");let c=v$6(),u=j$3(),l=Oe$4(u.consts,i);return er$3(c,u,e,t,n,r,o,l,256,s,a),hd$2}function hd$2(e,t,n,r,o,i,s,a){Ne$4("NgControlFlow");let c=v$6(),u=j$3(),l=Oe$4(u.consts,i);return er$3(c,u,e,t,n,r,o,l,512,s,a),hd$2}function YT(e,t){Ne$4("NgControlFlow");let n=v$6(),r=yt$4(),o=n[r]!==ne$6?n[r]:-1,i=o!==-1?Xs$2(n,P$4+o):void 0,s=0;if(le$3(n,r,e)){let a=b$5(null);try{if(i!==void 0&&Kl$2(i,s),e!==-1){let c=P$4+e,u=Xs$2(n,c),l=gl$2(n[E$6],c),d=Sm$2(u,l,n),p=Vr$1(n,l,t,{dehydratedView:d});Hr$1(u,p,s,Qn$3(l,d));}}finally{b$5(a);}}else if(i!==void 0){let a=Tm$1(i,s);a!==void 0&&(a[te$7]=t);}}var fl$2=class fl{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-J$4}};function QT(e){return e}function KT(e,t){return t}var pl$2=class pl{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function XT(e,t,n,r,o,i,s,a,c,u,l,d,p){Ne$4("NgControlFlow");let f=v$6(),h=j$3(),m=c!==void 0,D=v$6(),C=a?s.bind(D[ge$3][te$7]):s,w=new pl$2(m,C);D[P$4+e]=w,er$3(f,h,e+1,t,n,r,o,Oe$4(h.consts,i),256),m&&er$3(f,h,e+2,c,u,l,d,Oe$4(h.consts,p),512);}var hl$2=class hl extends ll$2{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-J$4}at(t){return this.getLView(t)[te$7].$implicit}attach(t,n){let r=n[kn$3];this.needsIndexUpdate||=t!==this.length,Hr$1(this.lContainer,n,t,Qn$3(this.templateTNode,r)),e_$1(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,t_$1(this.lContainer,t),n_$1(this.lContainer,t)}create(t,n){let r=$s$1(this.lContainer,this.templateTNode.tView.ssrId);return Vr$1(this.hostLView,this.templateTNode,new fl$2(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ca$1(t[E$6],t);}updateValue(t,n){this.getLView(t)[te$7].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[te$7].$index=t;}getLView(t){return r_$1(this.lContainer,t)}};function JT(e){let t=b$5(null),n=Se$5();try{let r=v$6(),o=r[E$6],i=r[n],s=n+1,a=Xs$2(r,s);if(i.liveCollection===void 0){let u=gl$2(o,s);i.liveCollection=new hl$2(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(qT(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=yt$4(),l=c.length===0;if(le$3(r,u,l)){let d=n+2,p=Xs$2(r,d);if(l){let f=gl$2(o,d),h=Sm$2(p,f,r),m=Vr$1(r,f,void 0,{dehydratedView:h});Hr$1(p,m,0,Qn$3(f,h));}else o.firstUpdatePass&&ob(p),Kl$2(p,0);}}}finally{b$5(t);}}function Xs$2(e,t){return e[t]}function e_$1(e,t){if(e.length<=J$4)return;let n=J$4+t,r=e[n],o=r?r[et$3]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[ue$5];iC(i,o),Bt$2.delete(r[Je$5]),o.detachedLeaveAnimationFns=void 0;}}function t_$1(e,t){if(e.length<=J$4)return;let n=J$4+t,r=e[n],o=r?r[et$3]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function n_$1(e,t){return Vo$1(e,t)}function r_$1(e,t){return Tm$1(e,t)}function gl$2(e,t){return Nr(e,t)}function dy(e,t,n){let r=v$6(),o=yt$4();if(le$3(r,o,t)){j$3();let s=$n$3();dm$2(s,r,e,t,r[H$3],n);}return dy}function ml$2(e,t,n,r,o){ha$2(t,e,n,o?"class":"style",r);}function Js$2(e,t,n,r){let o=v$6(),i=o[E$6],s=e+P$4,a=i.firstCreatePass?td$2(s,o,2,t,ql$2,hs(),n,r):i.data[s];if(mt$6(a)){let c=o[Xe$3].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOff
4set];return c.componentCreate(xm$2(u),()=>(Kh$1(e,t,o,a,r),Js$2))}}return Kh$1(e,t,o,a,r),Js$2}function Kh$1(e,t,n,r,o){if(fa$1(r,n,e,t,hy),Sr$3(r)){let i=n[E$6];da$2(i,n,r),Nl$2(i,r,n);}o!=null&&Br$1(n,r);}function gd$2(){let e=j$3(),t=Z$4(),n=pa$2(t);return e.firstCreatePass&&nd$2(e,n),lu$2(n)&&du$2(),cu$2(),n.classesWithoutHost!=null&&SI(n)&&ml$2(e,n,v$6(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&MI(n)&&ml$2(e,n,v$6(),n.stylesWithoutHost,false),gd$2}function fy(e,t,n,r){return Js$2(e,t,n,r),gd$2(),fy}function md$2(e,t,n,r){let o=v$6(),i=o[E$6],s=e+P$4,a=i.firstCreatePass?Fm$2(s,i,2,t,n,r):i.data[s];return fa$1(a,o,e,t,hy),r!=null&&Br$1(o,a),md$2}function yd$2(){let e=Z$4(),t=pa$2(e);return lu$2(t)&&du$2(),cu$2(),yd$2}function py(e,t,n,r){return md$2(e,t,n,r),yd$2(),py}var hy=(e,t,n,r,o)=>(bo$3(true),Vg(t[H$3],r,Du$2()));function vd$2(e,t,n){let r=v$6(),o=r[E$6],i=e+P$4,s=o.firstCreatePass?td$2(i,r,8,"ng-container",ql$2,hs(),t,n):o.data[i];if(fa$1(s,r,e,"ng-container",yy),Sr$3(s)){let a=r[E$6];da$2(a,r,s),Nl$2(a,s,r);}return n!=null&&Br$1(r,s),vd$2}function Ea$1(){let e=j$3(),t=Z$4(),n=pa$2(t);return e.firstCreatePass&&nd$2(e,n),Ea$1}function gy(e,t,n){return vd$2(e,t,n),Ea$1(),gy}function my(e,t,n){let r=v$6(),o=r[E$6],i=e+P$4,s=o.firstCreatePass?Fm$2(i,o,8,"ng-container",t,n):o.data[i];return fa$1(s,r,e,"ng-container",yy),n!=null&&Br$1(r,s),my}function o_$1(){let e=Z$4();pa$2(e);return Ea$1}var yy=(e,t,n,r,o)=>(bo$3(true),Dw(t[H$3],""));function i_$1(){return v$6()}function vy(e,t,n){let r=v$6(),o=yt$4();if(le$3(r,o,t)){j$3();let s=$n$3();fm$2(s,r,e,t,r[H$3],n);}return vy}var xo$3=void 0;function s_$1(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var a_$1=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],xo$3,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],xo$3,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",xo$3,xo$3,xo$3],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",s_$1],Fo$2=Object.create(null);function Dd$3(e,t,n){typeof t!="string"&&(n=t,t=e[Q$3.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Fo$2[t]=e,n&&(Fo$2[t][Q$3.ExtraData]=n);}function Ce$2(e){let t=c_$1(e),n=Xh$1(t);if(n)return n;let r=t.split("-")[0];if(n=Xh$1(r),n)return n;if(r==="en")return a_$1;throw new y$6(701,false)}function Xh$1(e){return e in Fo$2||(Fo$2[e]=je$3.ng&&je$3.ng.common&&je$3.ng.common.locales&&je$3.ng.common.locales[e]),Fo$2[e]}var Q$3={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,Currencies:18,ExtraData:21};function c_$1(e){return e.toLowerCase().replace(/_/g,"-")}var Xo$2="en-US",u_$1="USD";function Dy(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function Ey(e,t,n){let r=v$6(),o=j$3(),i=Z$4();return wy(o,r,r[H$3],i,e,t,n),Ey}function Iy(e,t,n){let r=v$6(),o=j$3(),i=Z$4();return (i.type&3||n)&&ed$2(i,o,r,n,r[H$3],e,t,qn$3(i,r,t)),Iy}function wy(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=qn$3(r,t,i),ed$2(r,e,t,s,n,o,i,c)&&(a=false)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let p=l[d],f=l[d+1];c??=qn$3(r,t,i),zs$2(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=qn$3(r,t,i),zs$2(r,t,d,o,o,c);}}function d_$1(e=1){return Kp$2(e)}function f_$1(e,t){let n=null,r=kw(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?qg(e,i,true):Lw(r,i))return o}return n}function p_$1(e){let t=v$6()[ge$3][he$3];
vendor: 2,152 bytes, line 4
4if(!t.projection){let n=e?e.length:1,r=t.projection=Tp$2(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?f_$1(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function h_$1(e,t=0,n,r,o,i){let s=v$6(),a=j$3(),c=r?e+1:null;c!==null&&er$3(s,a,c,r,o,i,null,n);let u=nr$2(a,P$4+e,16,null,n||null);u.projection===null&&(u.projection=t),hu$2();let d=!s[kn$3]||uu$2();s[ge$3][he$3].projection[u.projection]===null&&c!==null?g_$1(s,a,c):d&&!ta$3(u)&&IC(a,s,u);}function g_$1(e,t,n){let r=P$4+n,o=t.data[r],i=e[r],s=$s$1(i,o.tView.ssrId),a=Vr$1(e,o,void 0,{dehydratedView:s});Hr$1(i,a,0,Qn$3(o,s));}function Cy(e,t,n,r){return $m$2(e,t,n,r),Cy}function by(e,t,n){return Um$2(e,t,n),by}function m_$1(e){let t=v$6(),n=j$3(),r=ms$1();Co$3(r+1);let o=od$2(n,r);if(e.dirty&&kp$2(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Gm$2(t,r);e.reset(i,Dg),e.notifyOnChanges();}return true}return false}function y_$1(){return rd$2(v$6(),ms$1())}function Ty(e,t,n,r,o){return qm$2(t,$m$2(e,n,r,o)),Ty}function _y(e,t,n,r){return qm$2(e,Um$2(t,n,r)),_y}function v_$1(e=1){Co$3(ms$1()+e);}function D_$1(e){let t=gu$2();return Bn$3(t,P$4+e)}function Ms$1(e,t){return e<<17|t<<2}function tr$4(e){return e>>17&32767}function E_$1(e){return (e&2)==2}function I_$1(e,t){return e&131071|t<<17}function yl$2(e){return e|2}function Lr$1(e){return (e&131068)>>2}function ku$2(e,t){return e&-131069|t<<2}function w_$1(e){return (e&1)===1}function vl$2(e){return e|1}function C_$1(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=tr$4(s),c=Lr$1(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||wr$4(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=tr$4(e[a+1]);e[r+1]=Ms$1(p,a),p!==0&&(e[p+1]=ku$2(e[p+1],r)),e[a+1]=I_$1(e[a+1],r);}else e[r+1]=Ms$1(a,0),a!==0&&(e[a+1]=ku$2(e[a+1],r)),a=r;else e[r+1]=Ms$1(c,0),a===0?a=r:e[c+1]=ku$2(e[c+1],r),c=r;u&&(e[r+1]=yl$2(e[r+1])),Jh$1(e,l,r,true),Jh$1(e,l,r,false),b_$1(t,l,e,r,i),s=Ms$1(a,c),i?t.classBindings=s:t.styleBindings=s;}function b_$1(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&wr$4(i,t)>
vendor: 5,106 bytes, line 4
4=0&&(n[r+1]=vl$2(n[r+1]));}function Jh$1(e,t,n,r){let o=e[n+1],i=t===null,s=r?tr$4(o):Lr$1(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];T_$1(c,t)&&(a=true,e[s+1]=r?vl$2(u):yl$2(u)),s=r?tr$4(u):Lr$1(u);}a&&(e[n+1]=r?yl$2(o):vl$2(o));}function T_$1(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?wr$4(e,t)>=0:false}var rt$4={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function __$1(e){return e.substring(rt$4.key,rt$4.keyEnd)}function S_$1(e){return M_$1(e),Sy(e,My(e,0,rt$4.textEnd))}function Sy(e,t){let n=rt$4.textEnd;return n===t?-1:(t=rt$4.keyEnd=N_$1(e,rt$4.key=t,n),My(e,t,n))}function M_$1(e){rt$4.key=0,rt$4.keyEnd=0,rt$4.value=0,rt$4.valueEnd=0,rt$4.textEnd=e.length;}function My(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function N_$1(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Ny(e,t,n){return Ay(e,t,n,false),Ny}function xy(e,t){return Ay(e,t,null,true),xy}function x_$1(e){R_$1(j_$1,A_$1,e,true);}function A_$1(e,t){for(let n=S_$1(t);n>=0;n=Sy(t,n))as(e,__$1(t),true);}function Ay(e,t,n,r){let o=v$6(),i=j$3(),s=Un$3(2);if(i.firstUpdatePass&&Oy(i,e,s,r),t!==ne$6&&le$3(o,s,t)){let a=i.data[Se$5()];ky(i,a,o,o[H$3],e,o[s+1]=V_$1(t,n),r,s);}}function R_$1(e,t,n,r){let o=j$3(),i=Un$3(2);o.firstUpdatePass&&Oy(o,null,i,r);let s=v$6();if(n!==ne$6&&le$3(s,i,n)){let a=o.data[Se$5()];if(Fy(a,r)&&!Ry(o,i)){let c=a.classesWithoutHost;c!==null&&(n=ts(c,n||"")),ml$2(o,a,s,n,r);}else B_$1(o,a,s,s[H$3],s[i+1],s[i+1]=L_$1(e,t,n),r,i);}}function Ry(e,t){return t>=e.expandoStartIndex}function Oy(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Se$5()],s=Ry(e,n);Fy(i,r)&&t===null&&!s&&(t=false),t=O_$1(o,i,t,r),C_$1(o,i,t,n,s,r);}}function O_$1(e,t,n,r){let o=qp$2(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Fu$1(null,e,t,n,r),n=Uo$1(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Fu$1(o,e,t,n,r),i===null){let c=k_$1(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Fu$1(null,e,t,c[1],r),c=Uo$1(c,t.attrs,r),F_$1(e,t,r,c));}else i=P_$1(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function k_$1(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Lr$1(r)!==0)return e[tr$4(r)]}function F_$1(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[tr$4(o)]=r;}function P_$1(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Uo$1(r,s,n);}return Uo$1(r,t.attrs,n)}function Fu$1(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Uo$1(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Uo$1(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),as(e,s,n?true:t[++i]));}return e===void 0?null:e}function L_$1(e,t,n){if(n==null||n==="")return fe$6;let r=[],o=ke$4(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function j_$1(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&as(e,r,n);}function B_$1(e,t,n,r,o,i,s,a){o===ne$6&&(o=fe$6);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,h=null,m;l===d?(c+=2,u+=2,p!==f&&(h=d,m=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,m=f),h!==null&&ky(e,t,n,r,h,m,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function ky(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=w_$1(u)?eg(c,t,n,o,Lr$1(u),s):void 0;if(!ea$3(l)){ea$3(i)||E_$1(u)&&(i=eg(c,null,n,o,a,s));let d=ru$2(Se$5(),n);CC(r,s,d,o,i);}}function eg(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===ne$6&&(p=d?fe$6:void 0);let f=d?cs(p,r):l===r?p:void 0;if(u&&!ea$3(f)&&(f=cs(c,r)),ea$3(f)&&(a=f,s))return a;let h=e[o+1];o=s?tr$4(h):Lr$1(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=cs(c,r));}return a}function ea$3(e){return e!==void 0}function V_$1(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=fo$4(ke$4(e)))),e}function Fy(e,t){return (e.flags&(t?8:16))!==0}function H_$1(e,t=""){let n=v$6(),r=j$3(),o=e+P$4,i=r.firstCreatePass?nr$2(r,o,1,t,null):r.data[o],s=U_$1(r,n,i,t);n[o]=s,Ds$1()&&Ul$1(r,n,s,i),Hn$2(i,false);}var U_$1=(e,t,n,r)=>(bo$3(true),yw(t[H$3],r));function Py(e,t,n,r=""){return le$3(e,yt$4(),n)?t+ie$5(n)+r:ne$6}function Ly(e,t,n,r,o,i=""){let s=wo$3(),a=Pr$1(e,s,n,o);return Un$3(2),a?t+ie$5(n)+r+ie$5(o)+i:ne$6}function $_$1(e,t,n,r,o,i,s,a=""){let c=wo$3(),u=Jl$1(e,c,n,o,s);return Un$3(3),u?t+ie$5(n)+r+ie$5(o)+i+ie$5(s)+a:ne$6}function z_$1(e,t,n,r,o,i,s,a,c,u=""){let l=wo$3(),d=hn$2(e,l,n,o,s,c);return Un$3(4),d?t+ie$5(n)+r+ie$5(o)+i+ie$5(s)+a+ie$5(c)+u:ne$6}function G_$1(e,t,n,r,o,i,s,a,c,u,l,d=""){let p=wo$3(),f=hn$2(e,p,n,o,s,c
vendor: 4,599 bytes, line 4
4);return f=le$3(e,p+4,l)||f,Un$3(5),f?t+ie$5(n)+r+ie$5(o)+i+ie$5(s)+a+ie$5(c)+u+ie$5(l)+d:ne$6}function jy(e){return Ed$2("",e),jy}function Ed$2(e,t,n){let r=v$6(),o=Py(r,e,t,n);return o!==ne$6&&Jo$2(r,Se$5(),o),Ed$2}function By(e,t,n,r,o){let i=v$6(),s=Ly(i,e,t,n,r,o);return s!==ne$6&&Jo$2(i,Se$5(),s),By}function Vy(e,t,n,r,o,i,s){let a=v$6(),c=$_$1(a,e,t,n,r,o,i,s);return c!==ne$6&&Jo$2(a,Se$5(),c),Vy}function Hy(e,t,n,r,o,i,s,a,c){let u=v$6(),l=z_$1(u,e,t,n,r,o,i,s,a,c);return l!==ne$6&&Jo$2(u,Se$5(),l),Hy}function Uy(e,t,n,r,o,i,s,a,c,u,l){let d=v$6(),p=G_$1(d,e,t,n,r,o,i,s,a,c,u,l);return p!==ne$6&&Jo$2(d,Se$5(),p),Uy}function Jo$2(e,t,n){let r=ru$2(t,e);vw(e[H$3],r,n);}function $y(e,t,n){bs(t)&&(t=t());let r=v$6(),o=yt$4();if(le$3(r,o,t)){j$3();let s=$n$3();dm$2(s,r,e,t,r[H$3],n);}return $y}function W_$1(e,t){let n=bs(e);return n&&e.set(t),n}function zy(e,t){let n=v$6(),r=j$3(),o=Z$4();return wy(r,n,n[H$3],o,e,t),zy}var Gy={};function Wy(e){Ne$4("NgLet");let t=j$3(),n=v$6(),r=e+P$4,o=nr$2(t,r,128,null,null);return Hn$2(o,false),Do$3(t,n,r,Gy),Wy}function q_$1(e){let t=j$3(),n=v$6(),r=Se$5();return Do$3(t,n,r,e),e}function Z_$1(e){let t=gu$2(),n=Bn$3(t,P$4+e);if(n===Gy)throw new y$6(314,false);return n}function Y_$1(e){return le$3(v$6(),yt$4(),e)?ie$5(e):ne$6}function Q_$1(e,t,n=""){return Py(v$6(),e,t,n)}function K_$1(e,t,n,r,o=""){return Ly(v$6(),e,t,n,r,o)}function tg$1(e,t,n){let r=j$3();r.firstCreatePass&&qy(t,r.data,r.blueprint,tt$3(e),n);}function qy(e,t,n,r,o){if(e=ce$4(e),Array.isArray(e))for(let i=0;i<e.length;i++)qy(e[i],t,n,r,o);else {let i=j$3(),s=v$6(),a=Z$4(),c=xn$3(e)?e:ce$4(e.provide),u=Xc$2(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(xn$3(e)||!e.multi){let f=new Zn$3(u,o,V$3,null),h=Lu$2(c,t,o?l:l+p,d);h===-1?(Vu$2(Bs$1(a,s),i,c),Pu$2(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f);}else {let f=Lu$2(c,t,l+p,d),h=Lu$2(c,t,l,l+p),m=f>=0&&n[f],D=h>=0&&n[h];if(o&&!D||!o&&!m){Vu$2(Bs$1(a,s),i,c);let C=eS(o?J_$1:X_$1,n.length,o,r,u);!o&&D&&(n[h].providerFactory=C),Pu$2(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(C),s.push(C);}else {let C=Zy(n[o?h:f],u,!o&&r);Pu$2(i,e,f>-1?f:h,C);}!o&&r&&D&&n[h].componentProviders++;}}}function Pu$2(e,t,n,r){let o=xn$3(t),i=xp$2(t);if(o||i){let c=(i?ce$4(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c);}else u.push(n,c);}}}function Zy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Lu$2(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function X_$1(e,t,n,r,o){return Dl$2(this.multi,[])}function J_$1(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Po$2(r,r[E$6],this.providerFactory.index,o);s=c.slice(0,a),Dl$2(i,s);for(let u=a;u<c.length;u++)s.push(c[u]);}else s=[],Dl$2(i,s);return s}function Dl$2(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function eS(e,t,n,r,o,i){let s=new Zn$3(e,n,V$3,null);return s.multi=[],s.index=t,s.componentProviders=0,Zy(s,o,r&&!n),s}function tS(e,t){return n=>{n.providersResolver=(r,o)=>tg$1(r,o?o(e):e,false),t&&(n.viewProvidersResolver=(r,o)=>tg$1(r,o?o(t):t,true));}}function nS(e,t){let n=Ie$3()+e,r=v$6();return r[n]===ne$6?wt$4(r,n,t()):Zo$2(r,n)}function rS(e,t,n){return Yy(v$6(),Ie$3(),e,t,n)}function oS(e,t,n,r){return Qy(v$6(),Ie$3(),e,t,n,r)}function iS(e,t,n,r,o){return Ky(v$6(),Ie$3(),e,t,n,r,o)}function sS(e,t,n,r,o,i,s){return Xy(v$6(),Ie$3(),e,t,n,r,o,i)}function aS(e,t,n,r,o,i,s){let a=Ie$3()+e,c=v$6(),u=hn$2(c,a,n,r,o,i);return le$3(c,a+4,s)||u?wt$4(c,a+5,t(n,r,o,i,s)):Zo$2(c,a+5)}function cS(e,t,n,r,o,i,s,a){let c=Ie$3()+e,u=v$6(),l=hn$2(u,c,n,r,o,i);return Pr$1(u,c+4,s,a)||l?wt$4(u,c+6,t(n,r,o,i,s,a)):Zo$2(u,c+6)}function uS(e,t,n,r,o,i,s,a,c){let u=Ie$3()+e,l=v$6(),d=hn$2(l,u,n,r,o,i);return Jl$1(l,u+4,s,a,c)||d?wt$4(l,u+7,t(n,r,o,i,s,a,c)):Zo$2(l,u+7)}function lS(e,t,n,r,o,i,s,a,c,u){let l=Ie$3()+e,d=v$6(),p=hn$2(d,l,n,r,o,i);return hn$2(d,l+4,s,a,c,u)||p?wt$4(d,l+8,t(n,r,o,i,s,a,c,u)):Zo$2(d,l+8)}function dS(e,t,n){return fS$1(v$6(),Ie$3(),e,t,n)}function ei$4(e,t){let n=e[t];return n===ne$6?void 0:n}function Yy(e,t,n,r,o,i){let s=t+n;return le$3(e,s,o)?wt$4(e,s+1,i?r.call(i,o):r(o)):ei$4(e,s+1)}function Qy(e,t,n,r,o,i,s){let a=t+n;return Pr$1(e,a,o,i)?wt$4(e,a+2,s?r.call(s,o,i):r(o,i)):ei$4(e,a+2)}function Ky(e,t,n,r,o,i,s,a){let c=t+n;
4return Jl$1(e,c,o,i,s)?wt$4(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):ei$4(e,c+3)}function Xy(e,t,n,r,o,i,s,a,c){let u=t+n;return hn$2(e,u,o,i,s,a)?wt$4(e,u+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):ei$4(e,u+4)}function fS$1(e,t,n,r,o,i){let s=t+n,a=false;for(let c=0;c<o.length;c++)le$3(e,s++,o[c])&&(a=true);return a?wt$4(e,s,r.apply(i,o)):ei$4(e,s)}function pS(e,t){let n=j$3(),r,o=e+P$4;n.firstCreatePass?(r=hS(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=en$3(r.type)),a=De$4(V$3);try{let c=js$2(!1),u=i();return js$2(c),Do$3(n,v$6(),o,u),u}finally{De$4(a);}}function hS(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function gS$1(e,t,n){let r=e+P$4,o=v$6(),i=Bn$3(o,r);return Ia$1(o,r)?Yy(o,Ie$3(),t,i.transform,n,i):i.transform(n)}function mS(e,t,n,r){let o=e+P$4,i=v$6(),s=Bn$3(i,o);return Ia$1(i,o)?Qy(i,Ie$3(),t,s.transform,n,r,s):s.transform(n,r)}function yS$1(e,t,n,r,o){let i=e+P$4,s=v$6(),a=Bn$3(s,i);return Ia$1(s,i)?Ky(s,Ie$3(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function vS$1(e,t,n,r,o,i){let s=e+P$4,a=v$6(),c=Bn$3(a,s);return Ia$1(a,s)?Xy(a,Ie$3(),t,c.transform,n,r,o,i,c):c.transform(n,r,o,i)}function Ia$1(e,t){return e[E$6].data[t].pure}function DS(e,t){return ga$1(e,t)}var Jy=(()=>{class e{applicationErrorHandler=g$4(vt$7);appRef=g$4(Ur$1);taskService=g$4(ln$2);ngZone=g$4(q$3);zonelessEnabled=g$4(Ar$2);tracing=g$4(st$4,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new W$4;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(uo$4):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g$4(ws$1,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n);})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();}));}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?nh$1:Cu$2;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(){return !(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(uo$4+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=we$6({token:e,factory:e.\u0275fac})}return e})();function ev(){return [{provide:Qe$5,useExisting:Jy},{provide:q$3,useClass:lo$2},{provide:Ar$2,useValue:true}]}var ES=(()=>{class e{compileModuleSync(n){return new Qs$2(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=we$6({token:e,factory:e.\u0275fac})}return e})();function IS(){return typeof $localize<"u"&&$localize.locale||Xo$2}var gn$2=new I$4("",{factory:()=>g$4(gn$2,{optional:true,skipSelf:true})||IS()}),Id$2=new I$4("",{factory:()=>u_$1});var ti$4=class ti{destroyed=false;listeners=null;errorHandler=g$4(Le$4,{optional:true});destroyRef=g$4($e$3);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new y$6(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1);}}}emit(t){if(this.destroyed){console.warn(pt$4(953,false));return}if(this.listeners===null)return;let n=b$5(null);try{for(let r of this.listeners)try{r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{b$5(n);}}};function wS(e,t){return oo$2(e,t?.equal)}function wa$2(e){return pp$2(e)}var CS=e=>e;function bS$1(e,t){if(typeof e=="function"){let n=Sc$2(e,CS,t?.equal);return tv(n)}else {let n=Sc$2(e.source,e.computation,e.equal);return tv(n,e.debugName)}}function tv(e,t){let n=e[ee$6],r=e;return r.set=o=>dp$2(n,o),r.update=o=>fp$2(n,o),r.asReadonly=To$2.bind(e),r}var Ta$2=Symbol("InputSignalNode#UNSET"),pv=E$7(D$6({},io$2),{transformFn:void 0,applyValueToInputSignal(e,t){Jt$6(e,t);}});function hv(e,t){let n=Object.create(pv);n.value=e,n.transformFn=t?.transform;function r(){if(Rt$5(n),n.value===Ta$2){let o=null;throw new y$6(-950,o)}return n.value}return r[ee$6]=n,r}var nv=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>wl$2(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}},dU=(()=>{let e=new I$4("");return e.__NG_ELEMENT_ID__=t=>{let n=Z$4();if(n===null)throw new y$6(-204,false);
4if(n.type&2)return n.value;if(t&8)return null;throw new y$6(-204,false)},e})();function fU(e){return FS(e)?e.default:e}function FS(e){return e&&typeof e=="object"&&"default"in e}function pU(e){return new ti$4}function rv(e,t){return hv(e,t)}function PS(e){return hv(Ta$2,e)}var hU=(rv.required=PS,rv);function gv(e,t){let n=Object.create(pv),r=new ti$4;n.value=e;function o(){return Rt$5(n),ov(n.value),n.value}return o[ee$6]=n,o.asReadonly=To$2.bind(o),o.set=i=>{n.equal(n.value,i)||(Jt$6(n,i),r.emit(i));},o.update=i=>{ov(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function ov(e){if(e===Ta$2)throw new y$6(952,false)}function iv(e,t){return gv(e)}function LS(e){return gv(Ta$2)}var gU=(iv.required=LS,iv);function sv(e,t){return sd$2()}function jS(e,t){return ad$2()}var mU=(sv.required=jS,sv);function av(e,t){return sd$2()}function BS(e,t){return ad$2()}var yU=(av.required=BS,av);function vU(e,t){return Wm$2()}var Cd$2=class Cd{supports(t){return Xl$2(t)}create(t){return new bd$2(t)}},HS=(e,t)=>t,bd$2=class bd{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||HS;}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n);}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<cv$1(r,o,i)?n:r,a=cv$1(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else {i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let p=0;p<u;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;l<=h&&h<u&&(i[p]=f+1);}let d=s.previousIndex;i[d]=l-u;}}a!==c&&t(s,a,c);}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n);}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n);}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n);}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n);}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n);}diff(t){if(t==null&&(t=[]),!Xl$2(t))throw new y$6(900,false);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=false,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=true):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next;}else o=0,Am$2(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=true):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++;}),this.length=o;return this._truncate(n),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,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Td$2(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n;}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,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new ba$2),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ba$2),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,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Td$2=class Td{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n;}},_d$2=class _d{_head=null;_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,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},ba$2=class ba{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new _d$2,this.map.set(n,r)),r.add(t);}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear();}};
vendor: 4,566 bytes, line 4
4function cv$1(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var Sd$2=class Sd{supports(t){return t instanceof Map||ma$2(t)}create(){return new Md$2}},Md$2=class Md{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n);}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n);}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n);}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n);}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n);}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||ma$2(t)))throw new y$6(900,false);return this.check(t)?this:null}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else {let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i);}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null;}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new Nd$2(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null;}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t));}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t);}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t);}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r));}},Nd$2=class Nd{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t;}};function uv(){return new Rd$2([new Cd$2])}var Rd$2=(()=>{class e{factories;static \u0275prov=x$3({token:e,providedIn:"root",factory:uv});constructor(n){this.factories=n;}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o);}return new e(n)}static extend(n){return {provide:e,useFactory:()=>{let r=g$4(e,{optional:true,skipSelf:true});return e.create(n,r||uv())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new y$6(901,false)}}return e})();function lv(){return new _a$1([new Sd$2])}var _a$1=(()=>{class e{static \u0275prov=x$3({token:e,providedIn:"root",factory:lv});factories;constructor(n){this.factories=n;}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o);}return new e(n)}static extend(n){return {provide:e,useFactory:()=>{let r=g$4(e,{optional:true,skipSelf:true});return e.create(n,r||lv())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new y$6(901,false)}}return e})(),Od$2=(()=>{class e{static __NG_ELEMENT_ID__=US}return e})();function US(e){return $S(Z$4(),v$6(),(e&16)===16)}function $S(e,t,n){if(mt$6(e)&&!n){let r=Ue$5(e.index,t);return new pn$3(r,r)}else if(e.type&175){let r=t[ge$3];return new pn$3(r,t)}return null}var zS=(()=>{class e{zone=g$4(q$3);
4changeDetectionScheduler=g$4(Qe$5);applicationRef=g$4(Ur$1);applicationErrorHandler=g$4(vt$7);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick();}catch(n){this.applicationErrorHandler(n);}});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=we$6({token:e,factory:e.\u0275fac})}return e})(),GS$1=new I$4("",{factory:()=>false});function WS({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new q$3(E$7(D$6({},mv$1()),{scheduleInRootZone:t})),[{provide:Ar$2,useValue:false},{provide:q$3,useFactory:e},{provide:rn$2,multi:true,useFactory:()=>{let n=g$4(zS,{optional:true});return ()=>n.initialize()}},{provide:rn$2,multi:true,useFactory:()=>{let n=g$4(qS);return ()=>{n.initialize();}}},{provide:ws$1,useValue:t??wu$2}]}function EU(e){let t=e?.scheduleInRootZone,n=WS({ngZoneFactory:()=>{let r=mv$1(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&Ne$4("NgZone_CoalesceEvent"),new q$3(r)},scheduleInRootZone:t});return On$3([{provide:GS$1,useValue:true},n])}function mv$1(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var qS=(()=>{class e{subscription=new W$4;initialized=false;zone=g$4(q$3);pendingTasks=g$4(ln$2);initialize(){if(this.initialized)return;this.initialized=true;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{q$3.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{q$3.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=we$6({token:e,factory:e.\u0275fac})}return e})();var xd$2=new I$4(""),ZS=new I$4("");function ni$4(e){return !e.moduleRef}function YS(e){let t=ni$4(e)?e.r3Injector:e.moduleRef.injector,n=t.get(q$3);return n.run(()=>{ni$4(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(vt$7),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),ni$4(e)){let i=()=>t.destroy(),s=e.platformInjector.get(xd$2);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(xd$2);s.add(i),e.moduleRef.onDestroy(()=>{ko$3(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return KS(r,n,()=>{let i=t.get(ln$2),s=i.add(),a=t.get(ld$2);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(gn$2,Xo$2);if(Dy(c||Xo$2),!t.get(ZS,!0))return ni$4(e)?t.get(Ur$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ni$4(e)){let l=t.get(Ur$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return QS?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var QS;function KS(e,t,n){try{let r=n();return Yo$2(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Ca$2=null;function XS(e=[],t){return Ee$4.create({name:t,providers:[{provide:yo$3,useValue:"platform"},{provide:xd$2,useValue:new Set([()=>Ca$2=null])},...e]})}function JS(e=[]){if(Ca$2)return Ca$2;let t=XS(e);return Ca$2=t,ay(),eM$1(t),t}function eM$1(e){let t=e.get(Is$1,null);br$3(e,()=>{t?.forEach(n=>n());});}function yv(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;B$6(k$4.BootstrapApplicationStart);try{let i=o?.injector??JS(r),s=[ev(),oh$1,...n||[]],a=new Ho$1({providers:s,parent:i,debugName:"",runEnvironmentInitializer
4s:!1});return YS({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{B$6(k$4.BootstrapApplicationEnd);}}function tM$1(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function nM(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var wd$2=Symbol("NOT_SET"),vv=new Set,rM=E$7(D$6({},io$2),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:wd$2,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=true;}this.sequence.scheduler.notify(7);},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=false,this.value!==wd$2&&!mr$2(this))return this.signal;try{for(let o of this.cleanup??vv)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=Ot$2(this),r;try{r=this.userFn.apply(null,t);}finally{Kt$4(this,n);}return (this.value===wd$2||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Ad$2=class Ad extends jo$1{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,n,r,o,i,s=null){super(t,[void 0,void 0,void 0,void 0],r,false,i.get($e$3),s),this.scheduler=o;for(let a of Bl$2){let c=n[a];if(c===void 0)continue;let u=Object.create(rM);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(Rt$5(u),u.value),u.signal[ee$6]=u,u.registerCleanupFn=l=>(u.cleanup??=new Set).add(l),this.nodes[a]=u,this.hooks[a]=l=>u.phaseFn(l);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??vv)n();}finally{Xt$6(t);}}};function IU(e,t){let n=g$4(Ee$4),r=n.get(Qe$5),o=n.get(sa$3),i=n.get(st$4,null,{optional:true});o.impl??=n.get(Vl$2);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(xr$2,null,{optional:true}),c=new Ad$2(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function wU(e,t){let n=ht$5(e),r=t.elementInjector||Cr$3();return new Xn$3(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function CU(e){let t=ht$5(e);if(!t)return null;let n=new Xn$3(t);return {get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Dv=null;function Tt$4(){return Dv}function kd$2(e){Dv??=e;}var ri$3=class ri{},yn$2=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:()=>g$4(Ev),providedIn:"platform"})}return e})(),oM=new I$4(""),Ev=(()=>{class e extends yn$2{_location;_history;_doc=g$4(Y$3);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return Tt$4().getBaseHref(this._doc)}onPopState(n){let r=Tt$4().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Tt$4().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,false),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n;}pushState(n,r,o){this._history.pushState(n,r,o);}replaceState(n,r,o){this._history.replaceState(n,r,o);}forward(){this._history.forward();}back(){this._history.back();}historyGo(n=0){this._history.go(n);}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Sa$1(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Iv(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function at$4(e){return e&&e[0]!=="?"?`?${e}`:e}var $r$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:()=>g$4(Cv),providedIn:"root"})}return e})(),Ma$2=new I$4(""),Cv=(()=>{class e extends $r$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g$4(Y$3).location?.origin??"";}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.on
4HashChange(n));}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Sa$1(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+at$4(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+at$4(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+at$4(i));this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(M$6(yn$2),M$6(Ma$2,8))};static \u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var bv=(()=>{class e{_subject=new ye$5;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=aM(Iv(wv(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(true),pop:true,state:o.state,type:o.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(n=false){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+at$4(r))}normalize(n){return e.stripTrailingSlash(sM(this._basePath,wv(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+at$4(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+at$4(r)),o);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(n=0){this._locationStrategy.historyGo?.(n);}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state);}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r));}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=at$4;static joinWithSlash=Sa$1;static stripTrailingSlash=Iv;static \u0275fac=function(r){return new(r||e)(M$6($r$1))};static \u0275prov=x$3({token:e,factory:()=>iM(),providedIn:"root"})}return e})();function iM(){return new bv(M$6($r$1))}function sM(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function wv(e){return e.replace(/\/index\.html$/,"")}function aM(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var cM=(()=>{class e extends $r$1{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n));}getBaseHref(){return this._baseHref}path(n=false){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Sa$1(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+at$4(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+at$4(i))||this._platformLocation.pathname;this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(M$6(yn$2),M$6(Ma$2,8))};static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})(),Rv={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KGS:[void 0,"\u20C0"],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XCG:["Cg."],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},ci$4=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(ci$4||{});var me$5=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(me$5||{}),z$2=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(z$2||{}),xe$4=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(xe$4||{}),re$7={Decimal:0,Group:1,PercentSign:3,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function Ov(e){return Ce$2(e)[Q$3.LocaleId]}function kv(e,t,n){let r=Ce$2(e),o=[r[Q$3.DayPeriodsFormat],r[Q$3.DayPeriodsStandalone]],i=Ge$6(o,t);return Ge$6(i,n)}function Fv(e,t,n){let r=Ce$2(e),o=[r[Q$3.DaysFormat],r[Q$3.DaysStandalone]],i=Ge$6(o,t);return Ge$6(i,n)}function Pv(e,t,n){let r=Ce$2(e),o=[r[Q$3.MonthsFormat],r[Q$3.MonthsStandalone]],i=Ge$6(o,t);return Ge$6(i,n)}function Lv(e,t){let r=Ce$2(e)[Q$3.Eras];return Ge$6(r,t)}function oi$3(e,t){let n=Ce$2(e);return Ge$6(n[Q$3.DateFormat],t)}function ii$4(e,t){let n=Ce$2(e);return Ge$6(n[Q$3.TimeFormat],t)}function si$3(e,t){let r=Ce$2(e)[Q$3.DateTimeFormat];return Ge$6(r,t)}function Pe$4(e,t){let n=Ce$2(e),r=n[Q$3.NumberSymbols][t];if(typeof r>"u"){if(t===re$7.CurrencyDecimal)return n[Q$3.NumberSymbols][re$7.Decimal];if(t===re$7.CurrencyGroup)return n[Q$3.NumberSymbols][re$7.Group]}return r}function Ba(e,t){return Ce$2(e)[Q$3.NumberFormats][t]}function uM(e){return Ce$2(e)[Q$3.Currencies]}function jv(e){if(!e[Q$3.ExtraData])throw new y$6(2303,false)}function Bv(e){let t=Ce$2(e);return jv(t),(t[Q$3.ExtraData][2]||[]).map(r=>typeof r=="string"?Fd$2(r):[Fd$2(r[0]),Fd$2(r[1])])}function Vv(e,t,n){let r=Ce$2(e);jv(r);let o=[r[Q$3.ExtraData][0],r[Q$3.ExtraData][1]],i=Ge$6(o,t)||[];return Ge$6(i,n)||[]}function Ge$6(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new y$6(2304,false)}function Fd$2(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}function Hv(e,t,n="en"){let r=uM(n)[e]||Rv[e]||[],o=r[1];
vendor: 13,622 bytes, line 4
4return t==="narrow"&&typeof o=="string"?o:r[0]||e}var lM=2;function Uv(e){let t,n=Rv[e];return n&&(t=n[2]),typeof t=="number"?t:lM}var dM$1=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Na={},fM=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,pM=256;function $v(e,t,n,r){let o=CM(e);hM(t),t=Ut$5(n,t)||t;let s=[],a;for(;t;)if(a=fM.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l;}else {s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Gv(r,c),o=wM(o,r));let u="";return s.forEach(l=>{let d=EM(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function hM(e){if(e.length>pM)throw new y$6(2300,false)}function ka$2(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Ut$5(e,t){let n=Ov(e);if(Na[n]??={},Na[n][t])return Na[n][t];let r="";switch(t){case "shortDate":r=oi$3(e,xe$4.Short);break;case "mediumDate":r=oi$3(e,xe$4.Medium);break;case "longDate":r=oi$3(e,xe$4.Long);break;case "fullDate":r=oi$3(e,xe$4.Full);break;case "shortTime":r=ii$4(e,xe$4.Short);break;case "mediumTime":r=ii$4(e,xe$4.Medium);break;case "longTime":r=ii$4(e,xe$4.Long);break;case "fullTime":r=ii$4(e,xe$4.Full);break;case "short":let o=Ut$5(e,"shortTime"),i=Ut$5(e,"shortDate");r=xa$2(si$3(e,xe$4.Short),[o,i]);break;case "medium":let s=Ut$5(e,"mediumTime"),a=Ut$5(e,"mediumDate");r=xa$2(si$3(e,xe$4.Medium),[s,a]);break;case "long":let c=Ut$5(e,"longTime"),u=Ut$5(e,"longDate");r=xa$2(si$3(e,xe$4.Long),[c,u]);break;case "full":let l=Ut$5(e,"fullTime"),d=Ut$5(e,"fullDate");r=xa$2(si$3(e,xe$4.Full),[l,d]);break}return r&&(Na[n][t]=r),r}function xa$2(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function ct$3(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function gM(e,t){return ct$3(e,3).substring(0,t)}function ae$4(e,t,n=0,r=false,o=false){return function(i,s){let a=mM(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return gM(a,t);let c=Pe$4(s,re$7.MinusSign);return ct$3(a,t,c,r,o)}}function mM(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new y$6(2301,false)}}function G$6(e,t,n=me$5.Format,r=false){return function(o,i){return yM(o,i,e,t,n,r)}}function yM(e,t,n,r,o,i){switch(n){case 2:return Pv(t,o,r)[e.getMonth()];case 1:return Fv(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Bv(t),l=Vv(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,m=s>=f.hours&&a>=f.minutes,D=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(m&&D)return true}else if(m||D)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return kv(t,o,r)[s<12?0:1];case 3:return Lv(t,r)[e.getFullYear()<=0?0:1];default:throw new y$6(2302,false)}}function Aa$1(e){return function(t,n,r){let o=-1*r,i=Pe$4(n,re$7.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+ct$3(s,2,i)+ct$3(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+ct$3(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+ct$3(s,2,i)+":"+ct$3(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+ct$3(s,2,i)+":"+ct$3(Math.abs(o%60),2,i);default:throw new y$6(2310,false)}}}var vM=0,Oa=4;function DM(e){let t=ka$2(e,vM,1).getDay();return ka$2(e,0,1+(t<=Oa?Oa:Oa+7)-t)}function zv(e){let t=e.getDay(),n=t===0?-3:Oa-t;return ka$2(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Pd$2(e,t=false){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7);}else {let i=zv(n),s=DM(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return ct$3(o,e,Pe$4(r,re$7.MinusSign))}}function Ra$1(e,t=false){return function(n,r){let i=zv(n).getFullYear();return ct$3(i,e,Pe$4(r,re$7.MinusSign),t)}}var Ld$2={};function EM(e){if(Ld$2[e])return Ld$2[e];let t;switch(e){case "G":case "GG":case "GGG":t=G$6(3,z$2.Abbreviated);break;case "GGGG":t=G$6(3,z$2.Wide);break;case "GGGGG":t=G$6(3,z$2.Narrow);break;case "y":t=ae$4(0,1,0,false,true);break;case "yy":t=ae$4(0,2,0,true,true);break;case "yyy":t=ae$4(0,3,0,false,true);break;case "yyyy":t=ae$4(0,4,0,false,true);break;case "Y":t=Ra$1(1);break;case "YY":t=Ra$1(2,true);break;case "YYY":t=Ra$1(3);break;case "YYYY":t=Ra$1(4);break;case "M":case "L":t=ae$4(1,1,1);break;case "MM":case "LL":t=ae$4(1,2,1);break;case "MMM":t=G$6(2,z$2.Abbreviated);break;case "MMMM":t=G$6(2,z$2.Wide);break;case "MMMMM":t=G$6(2,z$2.Narrow);break;case "LLL":t=G$6(2,z$2.Abbreviated,me$5.Standalone);break;case "LLLL":t=G$6(2,z$2.Wide,me$5.Standalone);break;case "LLLLL":t=G$6(2,z$2.Narrow,me$5.Standalone);break;case "w":t=Pd$2(1);break;case "ww":t=Pd$2(2);break;case "W":t=Pd$2(1,true);break;case "d":t=ae$4(2,1);break;case "dd":t=ae$4(2,2);break;case "c":case "cc":t=ae$4(7,1);break;case "ccc":t=G$6(1,z$2.Abbreviated,me$5.Standalone);break;case "cccc":t=G$6(1,z$2.Wide,me$5.Standalone);break;case "ccccc":t=G$6(1,z$2.Narrow,me$5.Standalone);break;case "cccccc":t=G$6(1,z$2.Short,me$5.Standalone);break;case "E":case "EE":case "EEE":t=G$6(1,z$2.Abbreviated);break;case "EEEE":t=G$6(1,z$2.Wide);break;case "EEEEE":t=G$6(1,z$2.Narrow);break;case "EEEEEE":t=G$6(1,z$2.Short);break;case "a":case "aa":case "aaa":t=G$6(0,z$2.Abbreviated);break;case "aaaa":t=G$6(0,z$2.Wide);break;case "aaaaa":t=G$6(0,z$2.Narrow);break;case "b":case "bb":case "bbb":t=G$6(0,z$2.Abbreviated,me$5.Standalone,true);break;case "bbbb":t=G$6(0,z$2.Wide,me$5.Standalone,true);break;case "bbbbb":t=G$6(0,z$2.Narrow,me$5.Standalone,true);break;case "B":case "BB":case "BBB":t=G$6(0,z$2.Abbreviated,me$5.Format,true);break;case "BBBB":t=G$6(0,z$2.Wide,me$5.Format,true);break;case "BBBBB":t=G$6(0,z$2.Narrow,me$5.Format,true);break;case "h":t=ae$4(3,1,-12);break;case "hh":t=ae$4(3,2,-12);break;case "H":t=ae$4(3,1);break;case "HH":t=ae$4(3,2);break;case "m":t=ae$4(4,1);break;case "mm":t=ae$4(4,2);break;case "s":t=ae$4(5,1);break;case "ss":t=ae$4(5,2);break;case "S":t=ae$4(6,1);break;case "SS":t=ae$4(6,2);break;case "SSS":t=ae$4(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Aa$1(0);break;case "ZZZZZ":t=Aa$1(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Aa$1(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Aa$1(2);break;default:return null}return Ld$2[e]=t,t}function Gv(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function IM(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function wM(e,t,n){let o=e.getTimezoneOffset(),i=Gv(t,o);return IM(e,-1*(i-o))}function CM(e){if(Tv(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return ka$2(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(dM$1))return bM(r)}let t=new Date(e);if(!Tv(t))throw new y$6(2311,false);return t}function bM(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Tv(e){return e instanceof Date&&!isNaN(e.valueOf())}var TM=/^(\d+)?\.((\d+)(-(\d+))?)?$/,_v=22,Fa$1=".",ai$3="0",_M=";",SM=",",jd$2="#",Sv="\xA4",MM="%";function $d$2(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=Pe$4(n,re$7.Infinity);else {let u=xM(e);s&&(u=NM(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let w=i.match(TM);if(w===null)throw new y$6(2306,false);let O=w[1],K=w[3],be=w[5];O!=null&&(l=Bd$2(O)),K!=null&&(d=Bd$2(K)),be!=null?p=Bd$2(be):K!=null&&d>p&&(p=d);let L=100;if(l>L||d>L||p>L)throw new y$6(2306,false)}AM(u,d,p);let f=u.digits,h=u.integerLen,m=u.exponent,D=[];for(c=f.every(w=>!w);h<l;h++)f.unshift(0);for(;h<0;h++)f.unshift(0);h>0?D=f.splice(h,f.length):(D=f,f=[0]);let C=[];for(f.length>=t.lgSize&&C.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)C.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&C.unshift(f.join("")),a=C.join(Pe$4(n,r)),D.length&&(a+=Pe$4(n,o)+D.join("")),m&&(a+=Pe$4(n,re$7.Exponential)+"+"+m);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function Wv(e,t,n,r,o){let i=Ba(t,ci$4.Currency),s=zd$1(i,Pe$4(t,re$7.MinusSign));return s.minFrac=Uv(r),s.maxFrac=s.minFrac,$d$2(e,s,t,re$7.CurrencyGroup,re$7.CurrencyDecimal,o).replace(Sv,n).replace(Sv,"").trim()}function qv(e,t,n){let r=Ba(t,ci$4.Percent),o=zd$1(r,Pe$4(t,re$7.MinusSign));return $d$2(e,o,t,re$7.Group,re$7.Decimal,n,true).replace(new RegExp(MM,"g"),Pe$4(t,re$7.PercentSign))}function Zv(e,t,n){let r=Ba(t,ci$4.Decimal),o=zd$1(r,Pe$4(t,re$7.MinusSign));return $d$2(e,o,t,re$7.Group,re$7.Decimal,n)}function zd$1(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(_M),o=r[0],i=r[1],s=o.indexOf(Fa$1)!==-1?o.split(Fa$1):[o.substring(0,o.lastIndexOf(ai$3)+1),o.substring(o.lastIndexOf(ai$3)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(jd$2));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===ai$3?n.minFrac=n.maxFrac=l+1:d===jd$2?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(SM);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf(jd$2);n.negPre=i.substring(0,d).replace(/'/g,""),n.negSuf=i.slice(d+l).replace(/'/g,"");}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function NM(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function xM(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Fa$1))>-1&&(t=t.replace(Fa$1,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===ai$3;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===ai$3;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>_v&&(r=r.splice(0,_v-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function AM(e,t,n){if(t>n)throw new y$6(2307,false);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,p,f,h){return p=p+d,h[f]=p<10?p:p-10,c&&(h[f]===0&&f>=u?h.pop():c=false),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function Bd$2(e){let t=parseInt(e);if(isNaN(t))throw new y$6(2305,false);return t}var Vd$2=/\s+/,Mv=[],RM=(()=>{class e{_ngEl;_renderer;initialClasses=Mv;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r;}set klass(n){this.initialClasses=n!=null?n.trim().split(Vd$2):Mv;}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Vd$2):n;}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,true);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,true);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff();}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=true,o.enabled=r),o.touched=true):this.stateMap.set(n,{enabled:r,changed:true,touched:true});}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=false):o.touched||(o.enabled&&this._toggleClass(r,false),this.stateMap.delete(r)),o.touched=false;}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Vd$2).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o);});}static \u0275fac=function(r){return new(r||e)(V$3(Vt$3),V$3(qo$1))};static \u0275dir=bt$6({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var Pa$1=class Pa{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o;}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}},Yv=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=true;}set ngForTrackBy(n){this._trackByFn=n;}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=true;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o;}set ngForTemplate(n){n&&(this._template=n);}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=false;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy));}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n);}}_applyChanges(n){let r=this._viewContainer;
4n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Pa$1(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Nv(a,o);}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf;}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Nv(i,o);});}static ngTemplateContextGuard(n,r){return true}static \u0275fac=function(r){return new(r||e)(V$3(Ct$6),V$3(Et$3),V$3(Rd$2))};static \u0275dir=bt$6({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Nv(e,t){e.context.$implicit=t.item;}var OM=(()=>{class e{_viewContainer;_context=new La;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r;}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView();}set ngIfThen(n){xv(n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView();}set ngIfElse(n){xv(n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView();}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)));}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return true}static \u0275fac=function(r){return new(r||e)(V$3(Ct$6),V$3(Et$3))};static \u0275dir=bt$6({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),La=class{$implicit=null;ngIf=null};function xv(e,t){if(e&&!e.createEmbeddedView)throw new y$6(2020,false)}var ja=class{_viewContainerRef;_templateRef;_created=false;constructor(t,n){this._viewContainerRef=t,this._templateRef=n;}create(){this._created=true,this._viewContainerRef.createEmbeddedView(this._templateRef);}destroy(){this._created=false,this._viewContainerRef.clear();}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy();}},Gd$2=(()=>{class e{_defaultViews=[];_defaultUsed=false;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=false;_ngSwitch;set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(true);}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n);}_matchCase(n){let r=n===this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=false),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let r of this._defaultViews)r.enforceState(n);}}static \u0275fac=function(r){return new(r||e)};static \u0275dir=bt$6({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),kM=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(n,r,o){this.ngSwitch=o,o._addCase(),this._view=new ja(n,r);}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));}static \u0275fac=function(r){return new(r||e)(V$3(Ct$6),V$3(Et$3),V$3(Gd$2,9))};static \u0275dir=bt$6({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})(),FM=(()=>{class e{constructor(n,r,o){o._addDefault(new ja(n,r));}static \u0275fac=function(r){return new(r||e)(V$3(Ct$6),V$3(Et$3),V$3(Gd$2,9))};static \u0275dir=bt$6({type:e,selectors:[["","ngSwitchDefault",""]]})}return e})();var PM=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o;}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create());}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n);}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:it$4.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s);}
4_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue));}static \u0275fac=function(r){return new(r||e)(V$3(Vt$3),V$3(_a$1),V$3(qo$1))};static \u0275dir=bt$6({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),LM=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g$4(Ee$4);constructor(n){this._viewContainerRef=n;}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return !!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):false,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(V$3(Ct$6))};static \u0275dir=bt$6({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[El$2]})}return e})();function ir$2(e,t){return new y$6(2100,false)}var Hd$2=class Hd{createSubscription(t,n,r){return wa$2(()=>t.subscribe({next:n,error:r}))}dispose(t){wa$2(()=>t.unsubscribe());}},Ud$2=class Ud{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null;}}}dispose(t){t.unsubscribe();}},jM=new Ud$2,BM=new Hd$2,VM=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=true;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=g$4(vt$7);constructor(n){this._ref=n;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n);}finally{this.markForCheckOnValueUpdate=true;}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r),r=>this.applicationErrorHandler(r));}_selectStrategy(n){if(Yo$2(n))return jM;if(ya$1(n))return BM;throw ir$2()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static \u0275fac=function(r){return new(r||e)(V$3(Od$2,16))};static \u0275pipe=Fe$4({name:"async",type:e,pure:false})}return e})(),HM=(()=>{class e{transform(n){return n==null?null:(Wd$2(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Fe$4({name:"lowercase",type:e,pure:true})}return e})(),UM=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
40EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,$M=(()=>{class e{transform(n){return n==null?null:(Wd$2(e,n),n.replace(UM,r=>r[0].toUpperCase()+r.slice(1).toLowerCase()))}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Fe$4({name:"titlecase",type:e,pure:true})}return e})(),zM=(()=>{class e{transform(n){return n==null?null:(Wd$2(e,n),n.toUpperCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Fe$4({name:"uppercase",type:e,pure:true})}return e})();function Wd$2(e,t){if(typeof t!="string")throw ir$2()}var GM="mediumDate",Qv=new I$4(""),Kv=new I$4(""),WM=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o;}
4transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??GM,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return $v(n,s,i||this.locale,a)}catch(s){throw ir$2(e,s.message)}}static \u0275fac=function(r){return new(r||e)(V$3(gn$2,16),V$3(Qv,24),V$3(Kv,24))};static \u0275pipe=Fe$4({name:"date",type:e,pure:true})}return e})();var qM=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Fe$4({name:"json",type:e,pure:false})}return e})();function ZM(e,t){return {key:e,value:t}}var YM=(()=>{class e{differs;constructor(n){this.differs=n;}differ;keyValues=[];compareFn=Av;transform(n,r=Av){if(!n||!(n instanceof Map)&&typeof n!="object")return null;this.differ??=this.differs.find(n).create();let o=this.differ.diff(n),i=r!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(s=>{this.keyValues.push(ZM(s.key,s.currentValue));})),(o||i)&&(r&&this.keyValues.sort(r),this.compareFn=r),this.keyValues}static \u0275fac=function(r){return new(r||e)(V$3(_a$1,16))};static \u0275pipe=Fe$4({name:"keyvalue",type:e,pure:false})}return e})();function Av(e,t){let n=e.key,r=t.key;if(n===r)return 0;if(n==null)return 1;if(r==null)return -1;if(typeof n=="string"&&typeof r=="string")return n<r?-1:1;if(typeof n=="number"&&typeof r=="number")return n-r;if(typeof n=="boolean"&&typeof r=="boolean")return n<r?-1:1;let o=String(n),i=String(r);return o==i?0:o<i?-1:1}var QM=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!qd$2(n))return null;o||=this._locale;try{let i=Zd$2(n);return Zv(i,o,r)}catch(i){throw ir$2(e,i.message)}}static \u0275fac=function(r){return new(r||e)(V$3(gn$2,16))};static \u0275pipe=Fe$4({name:"number",type:e,pure:true})}return e})(),KM=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!qd$2(n))return null;o||=this._locale;try{let i=Zd$2(n);return qv(i,o,r)}catch(i){throw ir$2(e,i.message)}}static \u0275fac=function(r){return new(r||e)(V$3(gn$2,16))};static \u0275pipe=Fe$4({name:"percent",type:e,pure:true})}return e})(),XM=(()=>{class e{_locale;_defaultCurrencyCode;constructor(n,r="USD"){this._locale=n,this._defaultCurrencyCode=r;}transform(n,r=this._defaultCurrencyCode,o="symbol",i,s){if(!qd$2(n))return null;s||=this._locale,typeof o=="boolean"&&(o=o?"symbol":"code");let a=r||this._defaultCurrencyCode;o!=="code"&&(o==="symbol"||o==="symbol-narrow"?a=Hv(a,o==="symbol"?"wide":"narrow",s):a=o);try{let c=Zd$2(n);return Wv(c,s,a,r,i)}catch(c){throw ir$2(e,c.message)}}static \u0275fac=function(r){return new(r||e)(V$3(gn$2,16),V$3(Id$2,16))};static \u0275pipe=Fe$4({name:"currency",type:e,pure:true})}return e})();function qd$2(e){return !(e==null||e===""||e!==e)}function Zd$2(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new y$6(2309,false);return e}var JM=(()=>{class e{transform(n,r,o){if(n==null)return null;if(!(typeof n=="string"||Array.isArray(n)))throw ir$2();return n.slice(r,o)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Fe$4({name:"slice",type:e,pure:false})}return e})();var Xv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Qo$2({type:e});static \u0275inj=Ir$3({})}return e})();function ui$3(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var eN=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=we$6({token:e,factory:e.\u0275fac})}return e})(),Yd$2=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=M$6(eN),o},providedIn:"root"})}return e})();function T$(e,t,n){return Dd$3(e,t,n)}var Kd$1="browser";function _$(e){return e===Kd$1}var S$=(()=>{class e{static \u0275prov=x$3({token:e,providedIn:"root",factory:()=>new Qd$2(g$4(Y$3),window)})}return e})(),Qd$2=class Qd{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n;}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(t,n){this.window.scrollTo(E$7(D$6({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=tN(this.document,t);
4r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(pt$4(2400,false));}}scrollToElement(t,n){let r=t.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(E$7(D$6({},n),{left:o-s[0],top:i-s[1]}));}};function tN(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode();}}return null}var li$3=class li{_doc;constructor(t){this._doc=t;}manager},Va=(()=>{class e extends li$3{constructor(n){super(n);}supports(n){return true}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(M$6(Y$3))};static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})(),$a$1=new I$4(""),tf$1=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this;});let o=n.filter(s=>!(s instanceof Va));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Va);i&&this._plugins.push(i);}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new y$6(5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(M$6($a$1),M$6(q$3))};static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})(),Xd$2="ng-app-id";function Jv$1(e){for(let t of e)t.remove();}function eD$1(e,t){let n=t.createElement("style");return n.textContent=e,n}function nN(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Xd$2}="${t}"],link[${Xd$2}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Xd$2),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});return true}function ef$1(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var nf$1=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,nN(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,eD$1);r?.forEach(o=>this.addUsage(o,this.external,ef$1));}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external));}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))});}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Jv$1(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])Jv$1(n);this.hosts.clear();}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,eD$1(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,ef$1(r,this.doc)));}}removeHost(n){this.hosts.delete(n);for(let r of [...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o;}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(M$6(Y$3),M$6(_o$4),M$6(Mo$3,8),M$6(So$3))};static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})(),Jd$2={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"},rf$1=/%COMP%/g;var nD="%COMP%",rN=`_nghost-${nD}`,oN=`_ngcontent-${nD}`,iN=true,sN=new I$4("",{factory:()=>iN});function aN(e){return oN.replace(rf$1,e)}function cN(e){return rN.replace(rf$1,e)}function rD(e,t){return t.map(n=>n.replace(rf$1,e))}var of$1=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new di$3(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);
vendor: 4,631 bytes, line 4
4return o instanceof Ua?o.applyToHost(n):o instanceof fi$3&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case ot$4.Emulated:i=new Ua(c,u,r,this.appId,l,s,a,d);break;case ot$4.ShadowDom:return new Ha(c,n,r,s,a,this.nonce,d,u);case ot$4.ExperimentalIsolatedShadowDom:return new Ha(c,n,r,s,a,this.nonce,d);default:i=new fi$3(c,u,r,l,s,a,d);break}o.set(r.id,i);}return i}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(n){this.rendererByCompId.delete(n);}static \u0275fac=function(r){return new(r||e)(M$6(tf$1),M$6(rr$3),M$6(_o$4),M$6(sN),M$6(Y$3),M$6(q$3),M$6(Mo$3),M$6(st$4,8))};static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})(),di$3=class di{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Jd$2[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(tD$1(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(tD$1(t)?t.content:t).insertBefore(n,r);}removeChild(t,n){n.remove();}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new y$6(-5104,false);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Jd$2[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Jd$2[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`);}else t.removeAttribute(n);}addClass(t,n){t.classList.add(n);}removeClass(t,n){t.classList.remove(n);}setStyle(t,n,r,o){o&(it$4.DashCase|it$4.Important)?t.style.setProperty(n,r,o&it$4.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&it$4.DashCase?t.style.removeProperty(n):t.style[n]="";}setProperty(t,n,r){t!=null&&(t[n]=r);}setValue(t,n){t.nodeValue=n;}listen(t,n,r,o){if(typeof t=="string"&&(t=Tt$4().getGlobalEventTarget(this.doc,t),!t))throw new y$6(5102,false);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===false&&n.preventDefault();}}};function tD$1(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ha=class extends di$3{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=rD(r.id,u);for(let d of u){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=d,this.shadowRoot.appendChild(p);}let l=r.getExternalStyles?.();if(l)for(let d of l){let p=ef$1(d,o);s&&p.setAttribute("nonce",s),this.shadowRoot.appendChild(p);}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},fi$3=class fi extends di$3{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?rD(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Bt$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Ua=class extends fi$3{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=aN(u),this.hostAttr=cN(u);}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"");}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var za=class e extends ri$3{supportsDOMEvents=true;static makeCurrent(){kd$2(new e);}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o);}}
4dispatchEvent(t,n){t.dispatchEvent(n);}remove(t){t.remove();}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=uN();return n==null?null:lN(n)}resetBaseElement(){pi$3=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ui$3(document.cookie,t)}},pi$3=null;function uN(){return pi$3=pi$3||document.head.querySelector("base"),pi$3?pi$3.getAttribute("href"):null}function lN(e){return new URL(e,document.baseURI).pathname}var oD=["alt","control","meta","shift"],dN={"\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"},fN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},iD=(()=>{class e extends li$3{constructor(n){super(n);}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tt$4().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),oD.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".");}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=dN[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?false:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),oD.forEach(s=>{if(s!==o){let a=fN[s];a(n)&&(i+=s+".");}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i));}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(M$6(Y$3))};static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})();function pN(e,t,n){return L$7(this,null,function*(){let r=D$6({rootComponent:e},hN(t,n));return yv(r)})}function hN(e,t){return {platformRef:t?.platformRef,appProviders:[...DN,...e?.providers??[]],platformProviders:vN}}function gN(){za.makeCurrent();}function mN(){return new Le$4}function yN(){return bl$2(document),document}var vN=[{provide:So$3,useValue:Kd$1},{provide:Is$1,useValue:gN,multi:true},{provide:Y$3,useFactory:yN}];var DN=[{provide:yo$3,useValue:"root"},{provide:Le$4,useFactory:mN},{provide:$a$1,useClass:Va,multi:true},{provide:$a$1,useClass:iD,multi:true},of$1,{provide:rr$3,useClass:nf$1},{provide:nf$1,useExisting:rr$3},tf$1,{provide:Kn$3,useExisting:of$1},[]];var St$5=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` 5`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n);})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r);});}:this.headers=new Map;}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t);}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null));}
vendor: 6,122 bytes, line 5
5copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n));});}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case "a":case "s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case "d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else {let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s);}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n]);}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o);}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)));}};var Wa=class{map=new Map;set(t,n){return this.map.set(t,n),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()}},qa=class{encodeKey(t){return sD(t)}encodeValue(t){return sD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function EN(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c);}),n}var IN=/%(\d[a-f0-9])/gi,wN={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sD(e){return encodeURIComponent(e).replace(IN,(t,n)=>wN[n]??t)}function Ga(e){return `${e}`}var $t$4=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new qa,t.fromString){if(t.fromObject)throw new y$6(2805,false);this.map=EN(t.fromString,this.encoder);}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Ga):[Ga(r)];this.map.set(n,o);})):this.map=null;}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"});}):n.push({param:r,value:o,op:"a"});}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}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 n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Ga(t.value)),this.map.set(t.param,n);break;case "d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Ga(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param);}else {this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null);}};function CN(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function aD(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function cD$1(e){return typeof Blob<"u"&&e instanceof Blob}function uD$1(e){return typeof FormData<"u"&&e instanceof FormData}function bN(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var hi$4="Content-Type",Za$1="Accept",fD$1="text/plain",pD$1="application/json",hD$1=`${pD$1}, ${fD$1}, */*`,zr=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(CN(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new y$6(2822,"");this.timeout=i.timeout;}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache;}if(this.headers??=new St$5,this.context??=new Wa,!this.params)this.params=new $t$4,this.urlWithParams=n;else {let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else {let a=n,c="",u=n.indexOf("#");u!==-1&&(c=n.substring(u),a=n.substring(0,u));let l=a.indexOf("?"),d=l===-1?"?":l<a.length-1?"&":"";this.urlWithParams=a+d+s+c;}}}serializeBody(){return this.body===null?null:typeof this.body=="str
5ing"||aD(this.body)||cD$1(this.body)||uD$1(this.body)||bN(this.body)?this.body:this.body instanceof $t$4?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||uD$1(this.body)?null:cD$1(this.body)?this.body.type||null:aD(this.body)?null:typeof this.body=="string"?fD$1:this.body instanceof $t$4?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?pD$1:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,h=t.transferCache??this.transferCache,m=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,C=t.withCredentials??this.withCredentials,w=t.reportProgress??this.reportProgress,O=t.reportUploadProgress??this.reportUploadProgress,K=t.reportDownloadProgress??this.reportDownloadProgress,be=t.headers||this.headers,L=t.params||this.params,Gt=t.context??this.context;return t.setHeaders!==void 0&&(be=Object.keys(t.setHeaders).reduce((Wt,Mt)=>Wt.set(Mt,t.setHeaders[Mt]),be)),t.setParams&&(L=Object.keys(t.setParams).reduce((Wt,Mt)=>Wt.set(Mt,t.setParams[Mt]),L)),new e(n,r,D,{params:L,headers:be,context:Gt,reportProgress:w,reportUploadProgress:O,reportDownloadProgress:K,responseType:o,withCredentials:C,transferCache:h,keepalive:i,cache:a,priority:s,timeout:m,mode:c,redirect:u,credentials:l,referrer:d,integrity:p,referrerPolicy:f})}},zt$3=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(zt$3||{}),Gr$1=class Gr{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new St$5,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},gi$3=class e extends Gr$1{constructor(t={}){super(t);}type=zt$3.ResponseHeader;clone(t={}){return new e({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})}},Wr$1=class e extends Gr$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=zt$3.Response;clone(t={}){return new e({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,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},_t$5=class _t extends Gr$1{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),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;}},gD$1=200,TN=204;var _N=/^\)\]\}',?\n/,mD$1=new I$4("",{factory:()=>null}),Ya=(()=>{class e{fetchImpl=g$4(af$1,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g$4(q$3);destroyRef=g$4($e$3);maxResponseSize=g$4(mD$1);handle(n){return new R$4(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(cf$1,s=>r.error(new _t$5({error:s})));let i;return n.timeout&&(i=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"));},n.timeout))),()=>{i!==void 0&&clearTimeout(i),o.abort();}})}doRequest(n,r,o){return L$7(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,D$6({signal:r},i)));SN(D),o.next({type:zt$3.Sent}),s=yield D;}catch(D){o.error(new _t$5({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new St$5(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new gi$3({headers:a,status:l,statusText:c,url:u})),s.body){let D=s.headers.get("content-length"),C=D!==null?Number(D):NaN;this.maxResponseSize!==null&&Number.isFinite(C)&&C>this.maxResponseSize&&lD(this.maxResponseSize);let w=[],O=s.body.getReader(),K=0,be,L,Gt=typeof Zone<"u"&&Zone.current,Wt=false;if(yield this.ngZone.runOutsideAngular(()=>L$7(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield O.cancel(),Wt=true;break}let{done:qr,value:Ja}=yield O.read();if(qr)break;if(w.push(Ja),K+=Ja.length,this.maxResponseSize!==null&&K>this.maxResponseSize&&(yield O.cancel(),lD(this.maxResponseSize)),p){L=n.responseType==="text"?(L??"")+(be??=new TextDecoder).decode(Ja,{stream:true}):void 0;let pf=()=>o.next({type:zt$3.DownloadProgress,total:Number.isFinite(C)?C:void 0,loaded:K,partialText:L});Gt?Gt.run(pf):pf();}}}
5)),Wt){o.complete();return}let Mt=this.concatChunks(w,K);try{let qr=s.headers.get(hi$4)??"";d=this.parseBody(n,Mt,qr,l);}catch(qr){o.error(new _t$5({error:qr,headers:new St$5(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?gD$1:0);let f=l>=200&&l<300,h=s.redirected,m=s.type;f?(o.next(new Wr$1({body:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:m})),o.complete()):o.error(new _t$5({error:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:m}));})}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(_N,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case "text":return new TextDecoder().decode(r);case "blob":return new Blob([r],{type:o});case "arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new y$6(2824,false);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(Za$1)||(r[Za$1]=hD$1),!n.headers.has(hi$4)){let i=n.detectContentTypeHeader();i!==null&&(r[hi$4]=i);}return {body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=we$6({token:e,factory:e.\u0275fac})}return e})(),af$1=class af{};function cf$1(){}function SN(e){e.then(cf$1,cf$1);}function lD(e){throw new y$6(2825,false)}function yD(e,t){return t(e)}function MN(e,t){return (n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function NN(e,t,n){return (r,o)=>br$3(n,()=>t(r,i=>e(i,o)))}var vD$1=new I$4(""),lf=new I$4("",{factory:()=>[]}),DD=new I$4(""),df$1=new I$4("",{factory:()=>true});function xN(){let e=null;return (t,n)=>{e===null&&(e=(g$4(vD$1,{optional:true})??[]).reduceRight(MN,yD));let r=g$4(zn$3);if(g$4(df$1)){let i=r.add();return e(t,n).pipe(Xr$1(i))}else return e(t,n)}}var Ka$1=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=M$6(Ya),o},providedIn:"root"})}return e})();var Qa=(()=>{class e{backend;injector;chain=null;pendingTasks=g$4(zn$3);contributeToStability=g$4(df$1);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(lf),...this.injector.get(DD,[])]));this.chain=r.reduceRight((o,i)=>NN(o,i,this.injector),yD);}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Xr$1(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(M$6(Ka$1),M$6(pe$6))};static \u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ff$1=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=M$6(Qa),o},providedIn:"root"})}return e})();function sf$1(e,t){return D$6({body:t},e)}var ED=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof zr)i=n;else {let c;o.headers instanceof St$5?c=o.headers:c=new St$5(o.headers);let u;o.params&&(o.params instanceof $t$4?u=o.params:u=new $t$4({fromObject:o.params})),i=new zr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let s=ki$3(i).pipe(ji$2(c=>this.handler.handle(c)));if(n instanceof zr||o.observe==="events")return s;let a=s.pipe(Yt$5(c=>c instanceof Wr$1));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(ve$4(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new y$6(2806,false);return c.body}));case "blob":return a.pipe(ve$4(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new y$6(2807,false);return c.body}));case "text":return a.pipe(ve$4(c=>{if(c.body!==null&&typeof c.body!="string")throw new y$6(2808,false);return c.body}));default:return a.pipe(ve$4(c=>c.body))}case "response":return a;default:throw new y$6(2809,false)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new $t$4().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,sf$1(o,r))}post(n,r,o={}){return this.request("POST",n,sf$1(o,r))}put(n,r,o={}){return this.request("PUT",n,sf$1(o,r))}static \u0275fac=function(r){return new(r||e)(M$6(ff$1))};static \u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var AN=/^\)\]\}',?\n/;var uf$1=(()=>{class e{xhrFactory;tracingService=g$4(st$4,{optional:true});constructor(n){this.xhrFactory=n;}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new y$6(-2800,false);let r=this.xhrFactory;return ki$3(null).pipe(Bi$1(()=>new R$4(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=true),n.headers.forEac
5h((w,O)=>s.setRequestHeader(w,O.join(","))),n.headers.has(Za$1)||s.setRequestHeader(Za$1,hD$1),!n.headers.has(hi$4)){let w=n.detectContentTypeHeader();w!==null&&s.setRequestHeader(hi$4,w);}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let w=n.responseType.toLowerCase();s.responseType=w!=="json"?w:"text";}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let w=s.statusText||"OK",O=new St$5(s.getAllResponseHeaders()),K=s.responseURL||n.url;return c=new gi$3({headers:O,status:s.status,statusText:w,url:K}),c},l=this.maybePropagateTrace(()=>{let{headers:w,status:O,statusText:K,url:be}=u(),L=null;O!==TN&&(L=typeof s.response>"u"?s.responseText:s.response),O===0&&(O=L?gD$1:0);let Gt=O>=200&&O<300;if(n.responseType==="json"&&typeof L=="string"){let Wt=L;L=L.replace(AN,"");try{L=L!==""?JSON.parse(L):null;}catch(Mt){L=Wt,Gt&&(Gt=false,L={error:Mt,text:L});}}Gt?(i.next(new Wr$1({body:L,headers:w,status:O,statusText:K,url:be||void 0})),i.complete()):i.error(new _t$5({error:L,headers:w,status:O,statusText:K,url:be||void 0}));}),d=this.maybePropagateTrace(w=>{let{url:O}=u(),K=new _t$5({error:w,status:s.status||0,statusText:s.statusText||"Unknown Error",url:O||void 0});i.error(K);}),p=d;n.timeout&&(p=this.maybePropagateTrace(w=>{let{url:O}=u(),K=new _t$5({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:O||void 0});i.error(K);}));let f=false,h=this.maybePropagateTrace(w=>{f||(i.next(u()),f=true);let O={type:zt$3.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(O.total=w.total),n.responseType==="text"&&s.responseText&&(O.partialText=s.responseText),i.next(O);}),m=this.maybePropagateTrace(w=>{let O={type:zt$3.UploadProgress,loaded:w.loaded};w.lengthComputable&&(O.total=w.total),i.next(O);});s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",p),s.addEventListener("abort",d);let D=n.reportProgress||n.reportUploadProgress,C=n.reportProgress||n.reportDownloadProgress;return C&&s.addEventListener("progress",h),D&&a!==null&&s.upload&&s.upload.addEventListener("progress",m),s.send(a),i.next({type:zt$3.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",p),C&&s.removeEventListener("progress",h),D&&a!==null&&s.upload&&s.upload.removeEventListener("progress",m),s.readyState!==s.DONE&&s.abort();}})))}static \u0275fac=function(r){return new(r||e)(M$6(Yd$2))};static \u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),RN=new I$4("",{factory:()=>true}),ON="XSRF-TOKEN",kN=new I$4("",{factory:()=>ON}),FN="X-XSRF-TOKEN",PN=new I$4("",{factory:()=>FN}),LN=(()=>{class e{cookieName=g$4(kN);doc=g$4(Y$3);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ui$3(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=we$6({token:e,factory:e.\u0275fac})}return e})(),ID=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=M$6(LN),o},providedIn:"root"})}return e})();function jN(e,t){if(!g$4(RN)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g$4(yn$2).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=g$4(ID).getToken(),r=g$4(PN);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var Xa$1=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e[e.Xhr=7]="Xhr",e})(Xa$1||{});function wD(e,t){return {\u0275kind:e,\u0275providers:t}}function BN(...e){let t=[ED,Ya,Qa,{provide:ff$1,useExisting:Qa},{provide:Ka$1,useFactory:()=>g$4(Ya)},{provide:lf,useValue:jN,multi:true}];for(let n of e)t.push(...n.\u0275providers);return On$3(t)}var dD=new I$4("");function VN(){return wD(Xa$1.LegacyInterceptors,[{provide:dD,useFactory:xN},{provide:lf,useExisting:dD,multi:true}])}function HN(){return wD(Xa$1.Xhr,[uf$1,{provide:Ka$1,useExisting:uf$1}])}var Y8=(()=>{class e{_doc;_dom;
5constructor(n){this._doc=n,this._dom=Tt$4();}addTag(n,r=false){return n?this._getOrCreateElement(n,r):null}addTags(n,r=false){return n?n.reduce((o,i)=>(i&&o.push(this._getOrCreateElement(i,r)),o),[]):[]}getTag(n){if(!n)return null;let r=this._doc.querySelector(`meta[${n}]`);return r?.nodeName.toLowerCase()==="meta"?r:null}getTags(n){if(!n)return [];let r=this._doc.querySelectorAll(`meta[${n}]`);return r?[].slice.call(r).filter(o=>o.nodeName.toLowerCase()==="meta"):[]}updateTag(n,r){if(!n)return null;r=r||this._parseSelector(n);let o=this.getTag(r);return o?this._setMetaElementAttributes(n,o):this._getOrCreateElement(n,true)}removeTag(n){this.removeTagElement(this.getTag(n));}removeTagElement(n){n&&this._dom.remove(n);}_getOrCreateElement(n,r=false){if(!r){let s=this._parseSelector(n),a=this.getTags(s).filter(c=>this._containsAttributes(n,c))[0];if(a!==void 0)return a}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(n,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(n,r){return Object.keys(n).forEach(o=>r.setAttribute(this._getMetaKeyMap(o),n[o])),r}_parseSelector(n){let r=n.name?"name":"property";return `${r}=${this._escapeSelectorValue(String(n[r]))}`}_escapeSelectorValue(n){return `"${n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}_containsAttributes(n,r){return Object.keys(n).every(o=>r.getAttribute(this._getMetaKeyMap(o))===n[o])}_getMetaKeyMap(n){return UN[n]||n}static \u0275fac=function(r){return new(r||e)(M$6(Y$3))};static \u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),UN={httpEquiv:"http-equiv"},Q8=(()=>{class e{_doc;constructor(n){this._doc=n;}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||"";}static \u0275fac=function(r){return new(r||e)(M$6(Y$3))};static \u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var $N=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=M$6(zN),o},providedIn:"root"})}return e})(),zN=(()=>{class e extends $N{_doc=g$4(Y$3);sanitize(n,r){if(r==null)return null;switch(n){case ze$3.NONE:return r;case ze$3.HTML:return It$2(r,"HTML")?ke$4(r):ra$3(this._doc,String(r)).toString();case ze$3.STYLE:return It$2(r,"Style")?ke$4(r):r;case ze$3.SCRIPT:if(It$2(r,"Script"))return ke$4(r);throw new y$6(5200,false);case ze$3.URL:return It$2(r,"URL")?ke$4(r):zo$1(String(r));case ze$3.RESOURCE_URL:if(It$2(r,"ResourceURL"))return ke$4(r);throw new y$6(5201,false);default:throw new y$6(5202,false)}}bypassSecurityTrustHtml(n){return xl$2(n)}bypassSecurityTrustStyle(n){return Al$2(n)}bypassSecurityTrustScript(n){return Rl$2(n)}bypassSecurityTrustUrl(n){return Ol$2(n)}bypassSecurityTrustResourceUrl(n){return kl$2(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=we$6({token:e,factory:e.\u0275fac})}return e})();var f$7="primary",Ge$5=Symbol("RouteTitle"),er$2=class er{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function ue$4(t){return new er$2(t)}function Yt$4(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function Sn$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return Yt$4(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !Yt$4(o,t.slice(0,o.length),c)||!Yt$4(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function ht$4(t){return new Promise((n,e)=>{t.pipe(yE()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Si$2(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!q$2(t[e],n[e]))return false;return true}function q$2(t,n){let e=t?tr$3(t):void 0,r=n?tr$3(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Cn$1(t[i],n[i]))return false;return true}function tr$3(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Cn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ci$2(t){return t.length>0?t[t.length-1]:null}function he$2(t){return nE(t)?t:Yo$2(t)?lt$3(Promise.resolve(t)):ki$3(t)}
5function wn$1(t){return nE(t)?ht$4(t):Promise.resolve(t)}var wi$2={exact:An$2,subset:En$2},bn$2={exact:bi$2,subset:Ii$4,ignored:()=>true},In$2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rr$2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function fn$1(t,n,e){return wi$2[e.paths](t.root,n.root,e.matrixParams)&&bn$2[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function bi$2(t,n){return q$2(t,n)}function An$2(t,n,e){if(!ce$3(t.segments,n.segments)||!ct$2(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!An$2(t.children[r],n.children[r],e))return false;return true}function Ii$4(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Cn$1(t[e],n[e]))}function En$2(t,n,e){return Tn$1(t,n,n.segments,e)}function Tn$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!ce$3(i,e)||n.hasChildren()||!ct$2(i,e,r))}else if(t.segments.length===e.length){if(!ce$3(t.segments,e)||!ct$2(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!En$2(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !ce$3(t.segments,i)||!ct$2(t.segments,i,r)||!t.children[f$7]?false:Tn$1(t.children[f$7],n,o,r)}}function ct$2(t,n,e){return n.every((r,i)=>bn$2[e](t[i].parameters,r.parameters))}var U$4=class U{root;queryParams;fragment;_queryParamMap;constructor(n=new v$5([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=ue$4(this.queryParams),this._queryParamMap}toString(){return Ti$2.serialize(this)}},v$5=class v{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ut$4(this)}},X$3=class X{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=ue$4(this.parameters),this._parameterMap}toString(){return Mn$2(this)}};function Ai$4(t,n){return ce$3(t,n)&&t.every((e,r)=>q$2(e.parameters,n[r].parameters))}function ce$3(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function Ei$3(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f$7&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==f$7&&(e=e.concat(n(i,r)));}),e}var re$6=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:()=>new K$2})}return t})(),K$2=class K{parse(n){let e=new ir$1(n);return new U$4(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}
5serialize(n){let e=`/${Le$3(n.root,true)}`,r=Di$2(n.queryParams),i=typeof n.fragment=="string"?`#${Ni$1(n.fragment)}`:"";return `${e}${r}${i}`}},Ti$2=new K$2;function ut$4(t){return t.segments.map(n=>Mn$2(n)).join("/")}function Le$3(t,n){if(!t.hasChildren())return ut$4(t);if(n){let e=t.children[f$7]?Le$3(t.children[f$7],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f$7&&r.push(`${i}:${Le$3(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=Ei$3(t,(r,i)=>i===f$7?[Le$3(t.children[f$7],false)]:[`${i}:${Le$3(r,false)}`]);return Object.keys(t.children).length===1&&t.children[f$7]!=null?`${ut$4(t)}/${e[0]}`:`${ut$4(t)}/(${e.join("//")})`}}function Nn$2(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function at$3(t){return Nn$2(t).replace(/%3B/gi,";")}function Ni$1(t){return encodeURI(t)}function nr$1(t){return Nn$2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lt$2(t){return decodeURIComponent(t)}function pn$2(t){return lt$2(t.replace(/\+/g,"%20"))}function Mn$2(t){return `${nr$1(t.path)}${Mi$2(t.parameters)}`}function Mi$2(t){return Object.entries(t).map(([n,e])=>`;${nr$1(n)}=${nr$1(e)}`).join("")}function Di$2(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${at$3(e)}=${at$3(i)}`).join("&"):`${at$3(e)}=${at$3(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var _i$2=/^[^\/()?;#]+/;function Zt$4(t){let n=t.match(_i$2);return n?n[0]:""}var Ui=/^[^\/()?;=#]+/;function Oi$2(t){let n=t.match(Ui);return n?n[0]:""}var Pi$1=/^[^=?&#]+/;function Li$3(t){let n=t.match(Pi$1);return n?n[0]:""}var xi$2=/^[^&#]+/;function ji$1(t){let n=t.match(xi$2);return n?n[0]:""}var ir$1=class ir{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v$5([],{}):new v$5([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new y$6(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[f$7]=new v$5(e,r)),i}parseSegment(){let n=Zt$4(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new y$6(4009,false);return this.capture(n),new X$3(lt$2(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Oi$2(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Zt$4(this.remaining);i&&(r=i,this.capture(r));}n[lt$2(e)]=lt$2(r);}parseQueryParam(n){let e=Li$3(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=ji$1(this.remaining);a&&(r=a,this.capture(r));}let i=pn$2(e),o=pn$2(r);if(n.hasOwnProperty(i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Zt$4(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new y$6(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=f$7);let c=this.parseChildren(e+1);r[a??f$7]=Object.keys(c).length===1&&c[f$7]?c[f$7]:new v$5([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new y$6(4011,false)}};function Dn$2(t){return t.segments.length>0?new v$5([],{[f$7]:t}):t}function _n$1(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=_n$1(i);if(r===f$7&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new v$5(t.segments,n);return ki$2(e)}function ki$2(t){if(t.numberOfChildren===1&&t.children[f$7]){let n=t.children[f$7];return new v$5(t.segments.concat(n.segments),n.children)}return t}function ee$5(t){return t instanceof U$4}function Un$2(t,n,e=null,r=null,i=new K$2){let o=On$2(t);return Pn$2(o,n,e,r,i)}function On$2(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new v$5(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Dn$2(r);return n??i}function Pn$2(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Jt$5(o,o,o,e,r,i);let a=$i$2(n);if(a.toRoot())return Jt$5(o,o,new v$5([],{}),e,r,i);let c=zi$1(a,o,t),s=c.processChildren?je$2(c.segmentGroup,c.index,a.commands):xn$2(c.segmentGroup,c.index,a.commands);return Jt$5(o,c.segmentGroup,s,e,r,i)}function dt$3(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function $e$2(t){return typeof t=="object"&&t!=null&&t.outlets}function gn$1(t,n,e){t||="\u0275";let r=new U$4;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Jt$5(t,n,e,r,i,o){let a={};
5for(let[u,h]of Object.entries(r??{}))a[u]=Array.isArray(h)?h.map(m=>gn$1(u,m,o)):gn$1(u,h,o);let c;t===n?c=e:c=Ln$1(t,n,e);let s=Dn$2(_n$1(c));return new U$4(s,a,i)}function Ln$1(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Ln$1(o,n,e);}),new v$5(t.segments,r)}var ft$4=class ft{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&dt$3(r[0]))throw new y$6(4003,false);let i=r.find($e$2);if(i&&i!==Ci$2(r))throw new y$6(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $i$2(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ft$4(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new ft$4(e,n,r)}var Re$3=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function zi$1(t,n,e){if(t.isAbsolute)return new Re$3(n,true,0);if(!e)return new Re$3(n,false,NaN);if(e.parent===null)return new Re$3(e,true,0);let r=dt$3(t.commands[0])?0:1,i=e.segments.length-1+r;return Hi$2(e,i,t.numberOfDoubleDots)}function Hi$2(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new y$6(4005,false);i=r.segments.length;}return new Re$3(r,false,i-o)}function Fi$3(t){return $e$2(t[0])?t[0].outlets:{[f$7]:t}}function xn$2(t,n,e){if(t??=new v$5([],{}),t.segments.length===0&&t.hasChildren())return je$2(t,n,e);let r=qi$3(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v$5(t.segments.slice(0,r.pathIndex),{});return o.children[f$7]=new v$5(t.segments.slice(r.pathIndex),t.children),je$2(o,0,i)}else return r.match&&i.length===0?new v$5(t.segments,{}):r.match&&!t.hasChildren()?or$1(t,n,e):r.match?je$2(t,0,i):or$1(t,n,e)}function je$2(t,n,e){if(e.length===0)return new v$5(t.segments,{});{let r=Fi$3(e),i={};if(Object.keys(r).some(o=>o!==f$7)&&t.children[f$7]&&t.numberOfChildren===1&&t.children[f$7].segments.length===0){let o=je$2(t.children[f$7],n,e);return new v$5(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=xn$2(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new v$5(t.segments,i)}}function qi$3(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if($e$2(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!mn$2(s,u,a))return o;r+=2;}else {if(!mn$2(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function or$1(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if($e$2(o)){let s=Bi(o.outlets);return new v$5(r,s)}if(i===0&&dt$3(e[0])){let s=t.segments[n];r.push(new X$3(s.path,vn$2(e[0]))),i++;continue}let a=$e$2(o)?o.outlets[f$7]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&dt$3(c)?(r.push(new X$3(a,vn$2(c))),i+=2):(r.push(new X$3(a,{})),i++);}return new v$5(r,{})}function Bi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=or$1(new v$5([],{}),0,r));}),n}function vn$2(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function mn$2(t,n,e){return t==e.path&&q$2(n,e.parameters)}var Se$4="imperative",S$8=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S$8||{}),O$7=class O{id;url;constructor(n,e){this.id=n,this.url=e;}},te$6=class te extends O$7{type=S$8.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},k$3=class k extends O$7{urlAfterRedirects;type=S$8.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},b$4=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromRe
5solver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(b$4||{}),we$5=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we$5||{}),j$2=class j extends O$7{reason;code;type=S$8.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function jn$2(t){return t instanceof j$2&&(t.code===b$4.Redirect||t.code===b$4.SupersededByNewNavigation)}var B$5=class B extends O$7{reason;code;type=S$8.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},le$2=class le extends O$7{error;target;type=S$8.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ze$2=class ze extends O$7{urlAfterRedirects;state;type=S$8.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt$3=class pt extends O$7{urlAfterRedirects;state;type=S$8.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gt$4=class gt extends O$7{urlAfterRedirects;state;shouldActivate;type=S$8.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},vt$6=class vt extends O$7{urlAfterRedirects;state;type=S$8.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mt$5=class mt extends O$7{urlAfterRedirects;state;type=S$8.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$3=class yt{route;type=S$8.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},Rt$4=class Rt{route;type=S$8.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},St$4=class St{snapshot;type=S$8.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct$5=class Ct{snapshot;type=S$8.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wt$3=class wt{snapshot;type=S$8.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bt$5=class bt{snapshot;type=S$8.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},be$5=class be{routerEvent;position;anchor;scrollBehavior;type=S$8.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ie$2=class Ie{},He$4=class He{},Ae$4=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Vi$2(t){return !(t instanceof Ie$2)&&!(t instanceof Ae$4)&&!(t instanceof He$4)}var It$1=class It{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new de$4(this.rootInjector);}},de$4=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new It$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(M$6(pe$6))};static \u0275prov=x$3({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),At$2=class At{_root;constructor(n){this._root=n;}get root(){return this._root.value}
vendor: 6,043 bytes, line 5
5parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=ar$1(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=ar$1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=sr$1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return sr$1(n,this._root).map(e=>e.value)}};function ar$1(t,n){if(t===n.value)return n;for(let e of n.children){let r=ar$1(t,e);if(r)return r}return null}function sr$1(t,n){if(t===n.value)return [n];for(let e of n.children){let r=sr$1(t,e);if(r.length)return r.unshift(n),r}return []}var _$9=class _{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye$4(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Fe$3=class Fe extends At$2{snapshot;constructor(n,e){super(n),this.snapshot=e,vr$2(this,n);}toString(){return this.snapshot.toString()}};function kn$2(t,n){let e=Gi$2(t,n),r=new Jr$1([new X$3("",{})]),i=new Jr$1({}),o=new Jr$1({}),a=new Jr$1({}),c=new Jr$1(""),s=new V$2(r,i,a,c,o,f$7,t,e.root);return s.snapshot=e.root,new Fe$3(new _$9(s,[]),e)}function Gi$2(t,n){let e={},r={},i={},a=new Ee$3([],e,i,"",r,f$7,t,null,{},n);return new qe$5("",new _$9(a,[]))}var V$2=class V{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(ve$4(u=>u[Ge$5]))??ki$3(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,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(ve$4(n=>ue$4(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ve$4(n=>ue$4(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Wi$1="always";function gr$2(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:D$6(D$6({},n.params),t.params),data:D$6(D$6({},n.data),t.data),resolve:D$6(D$6(D$6(D$6({},t.data),n.data),i?.data),t._resolvedData)}:r={params:D$6({},t.params),data:D$6({},t.data),resolve:D$6(D$6({},t.data),t._resolvedData??{})},i&&zn$2(i)&&(r.resolve[Ge$5]=i.title),r}var Ee$3=class Ee{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ge$5]}constructor(n,e,r,i,o,a,c,s,u,h){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=h;}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??=ue$4(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ue$4(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},qe$5=class qe extends At$2{url;constructor(n,e){super(e),this.url=n,vr$2(this,e);}toString(){return $n$2(this._root)}};function vr$2(t,n){n.value._routerState=t,n.children.forEach(e=>vr$2(t,e));}function $n$2(t){let n=t.children.length>0?` { ${t.children.map($n$2).join(", ")} } `:"";return `${t.value}${n}`}function Xt$5(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,q$2(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),q$2(n.params,e.params)||t.paramsSubject.next(e.params),Si$2(n.url,e.url)||t.urlSubject.next(e.url),q$2(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function cr$1(t,n){let e=q$2(t.params,n.params)&&Ai$4(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||cr$1(t.parent,n.parent))}function zn$2(t){return typeof t.title=="string"||t.title===null}var Hn$1=new I$4(""),mr$1=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f$7;activateEvents=new kt$3;deactivateEvents=new kt$3;attachEvents=new kt$3;detachEvents=new kt$3;routerOutletData=hU();parentContexts=g$4(de$4);location=g$4(Ct$6);changeDetector=g$4(Od$2);inputBinder=g$4(We$2,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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}
5get component(){if(!this.activated)throw new y$6(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y$6(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y$6(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,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,r){if(this.isActivated)throw new y$6(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new ur$2(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=bt$6({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[El$2]})}return t})(),ur$2=class ur{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===V$2?this.route:n===de$4?this.childContexts:n===Hn$1?this.outletData:this.parent.get(n,e)}},We$2=new I$4(""),Fn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=iE([this.options.queryParams?r.queryParams:ki$3({}),r.params,r.data]).pipe(Bi$1(([o,a,c],s)=>(c=D$6(D$6(D$6({},o),a),c),s===0?ki$3(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=CU(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let h=o[u];(h!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,h);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){Db();};static \u0275prov=x$3({token:t,factory:t.\u0275fac})}return t})(),yr$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Xb({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&fy(0,"router-outlet");},dependencies:[mr$1],encapsulation:2,changeDetection:1})}return t})();function Rr$2(t){let n=t.children&&t.children.map(Rr$2),e=n?E$7(D$6({},t),{children:n}):D$6({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f$7&&(e.component=yr$1),e}function Qi$1(t,n,e){let r=Be$1(t,n._root,e?e._root:void 0);return new Fe$3(r,n)}function Be$1(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Ki$2(t,n,e);return new _$9(r,i)}else {if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(c=>Be$1(t,c)),a}}let r=Yi$1(n.value),i=n.children.map(o=>Be$1(t,o));return new _$9(r,i)}}function Ki$2(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Be$1(t,r,i);return Be$1(t,r)})}function Yi$1(t){return new V$2(new Jr$1(t.url),new Jr$1(t.params),new Jr$1(t.queryParams),new Jr$1(t.fragment),new Jr$1(t.data),t.outlet,t.component,t)}var Te$5=class Te{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},qn$2="ngNavigationCancelingError";function Et$2(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=ee$5(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Bn$2(false,b$4.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Bn$2(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[qn$2]=true,e.cancellationCode=n,e}function Zi$2(t){return Vn$1(t)&&ee$5(t.url)}function Vn$1(t){return !!t&&t[qn$2]}var lr$2=class lr{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Xt$5(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye$4(e);
5n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$4(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$4(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null);}activateChildRoutes(n,e,r){let i=ye$4(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new bt$5(o.value.snapshot));}),n.children.length&&this.forwardEvent(new Ct$5(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Xt$5(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),Xt$5(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},Tt$3=class Tt{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$1=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function Ji$2(t,n,e){let r=t._root,i=n?n._root:null;return xe$3(r,i,e,[r.value])}function Xi$1(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$4(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!AE(t)?t:n.get(t):r}function xe$3(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye$4(n);return t.children.forEach(a=>{eo$1(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>ke$3(c,e.getContext(a),i)),i}function eo$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=to$1(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new Tt$3(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?xe$3(t,n,c?c.children:null,r,i):xe$3(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$1(c.outlet.component,a));}else a&&ke$3(n,c,i),i.canActivateChecks.push(new Tt$3(r)),o.component?xe$3(t,null,c?c.children:null,r,i):xe$3(t,null,e,r,i);return i}function to$1(t,n,e){if(typeof e=="function")return br$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !ce$3(t.url,n.url);case "pathParamsOrQueryParamsChange":return !ce$3(t.url,n.url)||!q$2(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !cr$1(t,n)||!q$2(t.queryParams,n.queryParams);default:return !cr$1(t,n)}}function ke$3(t,n,e){let r=ye$4(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?ke$3(a,n.children.getContext(o),e):ke$3(a,null,e):ke$3(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$1(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$1(null,i)):e.canDeactivateChecks.push(new Ce$1(null,i));}function Qe$4(t){return typeof t=="function"}function ro$1(t){return typeof t=="boolean"}function no$1(t){return t&&Qe$4(t.canLoad)}function io$1(t){return t&&Qe$4(t.canActivate)}function oo$1(t){return t&&Qe$4(t.canActivateChild)}function ao$1(t){return t&&Qe$4(t.canDeactivate)}function so$1(t){return t&&Qe$4(t.canMatch)}function Gn$2(t){return t instanceof At$3||t?.name==="EmptyError"}var st$3=Symbol("INITIAL_VALUE");function Ne$3(){return Bi$1(t=>iE(t.map(n=>n.pipe(bn$3(1),Jf(st$3)))).pipe(ve$4(n=>{for(let e of n)if(e!==true){if(e===st$3)return st$3;if(e===false||co$3(e))return e}return true}),Yt$5(n=>n!==st$3),bn$3(1)))}function co$3(t){return ee$5(t)||t instanceof Te$5}function Wn$2(t){return t.aborted?ki$3(void 0).pipe(bn$3(1)):new R$4(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Qn$2(t){return Hf$1(Wn$2(t))}function uo$3(t){return Ze$3(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?ki$3(E$7(D$6({},n),{guardsResult:true}
5)):lo$1(o,e,r).pipe(Ze$3(a=>a&&ro$1(a)?ho$2(e,i,t):ki$3(a)),ve$4(a=>E$7(D$6({},n),{guardsResult:a})))})}function lo$1(t,n,e){return lt$3(t).pipe(Ze$3(r=>mo$3(r.component,r.route,e,n)),yE(r=>r!==true,true))}function ho$2(t,n,e){return lt$3(n).pipe(ji$2(r=>dr$3(po$2(r.route.parent,e),fo$3(r.route,e),vo$2(t,r.path),go$3(t,r.route))),yE(r=>r!==true,true))}function fo$3(t,n){return t!==null&&n&&n(new wt$3(t)),ki$3(true)}function po$2(t,n){return t!==null&&n&&n(new St$4(t)),ki$3(true)}function go$3(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return ki$3(true);let r=e.map(i=>aE(()=>{let o=n._environmentInjector,a=Me$4(i,o),c=io$1(a)?a.canActivate(n,t):br$3(o,()=>a(n,t));return he$2(c).pipe(yE())}));return ki$3(r).pipe(Ne$3())}function vo$2(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Xi$1(o)).filter(o=>o!==null).map(o=>aE(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$4(c,s),h=oo$1(u)?u.canActivateChild(e,t):br$3(s,()=>u(e,t));return he$2(h).pipe(yE())});return ki$3(a).pipe(Ne$3())}));return ki$3(i).pipe(Ne$3())}function mo$3(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return ki$3(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$4(a,c),u=ao$1(s)?s.canDeactivate(t,n,e,r):br$3(c,()=>s(t,n,e,r));return he$2(u).pipe(yE())});return ki$3(o).pipe(Ne$3())}function yo$2(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return ki$3(true);let a=o.map(c=>{let s=Me$4(c,t),u=no$1(s)?s.canLoad(n,e):br$3(t,()=>s(n,e)),h=he$2(u);return i?h.pipe(Qn$2(i)):h});return ki$3(a).pipe(Ne$3(),Kn$2(r))}function Kn$2(t){return _D$1(Uf$1(n=>{if(typeof n!="boolean")throw Et$2(t,n)}),ve$4(n=>n===true))}function Ro(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return ki$3(true);let c=a.map(s=>{let u=Me$4(s,t),h=so$1(u)?u.canMatch(n,e,i):br$3(t,()=>u(n,e,i));return he$2(h).pipe(Qn$2(o))});return ki$3(c).pipe(Ne$3(),Kn$2(r))}var Q$2=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},Ve$2=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function So$2(t){throw new y$6(4e3,false)}function Co$2(t){throw Bn$2(false,b$4.GuardRejected)}var hr$1=class hr{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return L$7(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[f$7])throw So$2(`${n.redirectTo}`);i=i.children[f$7];}})}applyRedirectCommands(n,e,r,i,o){return L$7(this,null,function*(){let a=yield wo$2(e,i,o);if(a instanceof U$4)throw new Ve$2(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new Ve$2(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new U$4(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a={};return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new v$5(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new y$6(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function wo$2(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return ht$4(he$2(br$3(e,()=>r(n))))}function bo$2(t,n){return t.providers&&!t._injector&&(t._injector=cd$2(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H$2(t){return t.outlet||f$7}function Io$1(t,n){let e=t.filter(r=>H$2(r)===n);return e.push(...t.filter(r=>H$2(r)!==n)),e}var dr$2={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};
5function Yn$2(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Ao(t,n,e,r,i,o,a){let c=Zn$2(t,n,e);if(!c.matched)return ki$3(c);let s=Yn$2(o(c));return r=bo$2(n,r),Ro(r,n,e,i,s,a).pipe(ve$4(u=>u===true?c:D$6({},dr$2)))}function Zn$2(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?D$6({},dr$2):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Sn$1)(e,t,n);if(!i)return D$6({},dr$2);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?D$6(D$6({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function yn$1(t,n,e,r,i){return e.length>0&&No(t,e,r,i)?{segmentGroup:new v$5(n,To$1(r,new v$5(e,t.children))),slicedSegments:[]}:e.length===0&&Mo$2(t,e,r)?{segmentGroup:new v$5(t.segments,Eo$1(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v$5(t.segments,t.children),slicedSegments:e}}function Eo$1(t,n,e,r){let i={};for(let o of e)if(Mt$1(t,n,o)&&!r[H$2(o)]){let a=new v$5([],{});i[H$2(o)]=a;}return D$6(D$6({},r),i)}function To$1(t,n){let e={};e[f$7]=n;for(let r of t)if(r.path===""&&H$2(r)!==f$7){let i=new v$5([],{});e[H$2(r)]=i;}return e}function No(t,n,e,r){return e.some(i=>!Mt$1(t,n,i)||!(H$2(i)!==f$7)?false:!(r!==void 0&&H$2(i)===r))}function Mo$2(t,n,e){return e.some(r=>Mt$1(t,n,r))}function Mt$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Do$2(t,n,e){return n.length===0&&!t.children[e]}var fr$2=class fr{};function _o$3(t,n,e,r,i,o,a,c){return L$7(this,null,function*(){return new pr$3(t,n,e,r,i,a,o,c).recognize()})}var Uo=31,pr$3=class pr{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new hr$1(this.urlSerializer,this.urlTree);}noMatchError(n){return new y$6(4002,`'${n.segmentGroup}'`)}recognize(){return L$7(this,null,function*(){let n=yn$1(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new _$9(r,e),o=new qe$5("",i),a=Un$2(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return L$7(this,null,function*(){let e=new Ee$3([],Object.freeze({}),Object.freeze(D$6({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f$7,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,f$7,e),rootSnapshot:e}}catch(r){if(r instanceof Ve$2)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Q$2?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return L$7(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof _$9?[a]:[]})}processChildren(n,e,r,i){return L$7(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],h=Io$1(e,s),m=yield this.processSegmentGroup(n,h,u,s,i);a.push(...m);}let c=Jn$2(a);return Oo(c),c})}processSegment(n,e,r,i,o,a,c){return L$7(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof Q$2||Gn$2(u))continue;throw u}if(Do$2(r,i,o))return new fr$2;throw new Q$2(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return L$7(this,null,function*(){if(H$2(r)!==a&&(a===f$7||!Mt$1(i,o,r)))throw new Q$2(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new Q$2(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return L$7(this,null,function*(){let{matched:s,parameters:u,consumedSegments:h,positionalParamSegments:m,remainingSegments:g}=Zn$2(e,i,o);if(!s)throw new Q$2(e);
5typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Uo&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let $=yield this.applyRedirects.applyRedirectCommands(h,i.redirectTo,m,Yn$2(N),n),ie=yield this.applyRedirects.lineralizeSegments(i,$);return this.processSegment(n,r,e,ie.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee$3(r,i,Object.freeze(D$6({},this.urlTree.queryParams)),this.urlTree.fragment,Lo(e),H$2(e),e.component??e._loadedComponent??null,e,xo$2(e),n),c=gr$2(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}matchSegmentAgainstRoute(n,e,r,i,o,a){return L$7(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=oe=>this.createSnapshot(n,r,oe.consumedSegments,oe.parameters,a),s=yield ht$4(Ao(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new Q$2(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),h=r._loadedInjector??n,{parameters:m,consumedSegments:g,remainingSegments:N}=s,$=this.createSnapshot(n,r,g,m,a),{segmentGroup:ie,slicedSegments:_e}=yn$1(e,g,N,u,o);if(_e.length===0&&ie.hasChildren()){let oe=yield this.processChildren(h,u,ie,$);return new _$9($,oe)}if(u.length===0&&_e.length===0)return new _$9($,[]);let Lt=H$2(r)===o,Ye=yield this.processSegment(h,u,ie,_e,Lt?f$7:o,true,$);return new _$9($,Ye instanceof _$9?[Ye]:[])})}getChildConfig(n,e,r){return L$7(this,null,function*(){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield ht$4(yo$2(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Co$2()}return {routes:[],injector:n}})}};function Oo(t){t.sort((n,e)=>n.value.outlet===f$7?-1:e.value.outlet===f$7?1:n.value.outlet.localeCompare(e.value.outlet));}function Po$1(t){let n=t.value.routeConfig;return n&&n.path===""}function Jn$2(t){let n=[],e=new Set;for(let r of t){if(!Po$1(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=Jn$2(r.children);n.push(new _$9(r.value,i));}return n.filter(r=>!e.has(r))}function Lo(t){return t.data||{}}function xo$2(t){return t.resolve||{}}function jo(t,n,e,r,i,o,a){return Ze$3(c=>L$7(null,null,function*(){let{state:s,tree:u}=yield _o$3(t,n,e,r,c.extractedUrl,i,o,a);return E$7(D$6({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function ko$2(t){return Ze$3(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return ki$3(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of Xn$2(c))o.add(s);let a=0;return lt$3(o).pipe(ji$2(c=>i.has(c)?$o(c,e,t):(c.data=gr$2(c,c.parent,t).resolve,ki$3(void 0))),Uf$1(()=>a++),vE(1),Ze$3(c=>a===o.size?ki$3(n):wn$2))})}function Xn$2(t){let n=t.children.map(e=>Xn$2(e)).flat();return [t,...n]}function $o(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!zn$2(r)&&(i[Ge$5]=r.title),aE(()=>(t.data=gr$2(t,t.parent,e).resolve,zo(i,t,n).pipe(ve$4(o=>(t._resolvedData=o,t.data=D$6(D$6({},t.data),o),null)))))}function zo(t,n,e){let r=tr$3(t);if(r.length===0)return ki$3({});let i={};return lt$3(r).pipe(Ze$3(o=>Ho(t[o],n,e).pipe(yE(),Uf$1(a=>{if(a instanceof Te$5)throw Et$2(new K$2,a);i[o]=a;}))),vE(1),ve$4(()=>i),uc$1(o=>Gn$2(o)?wn$2:PD(o)))}function Ho(t,n,e){let r=n._environmentInjector,i=Me$4(t,r),o=i.resolve?i.resolve(n,e):br$3(r,()=>i(n,e));return he$2(o)}function Rn$1(t){return Bi$1(n=>{let e=t(n);return e?lt$3(e).pipe(ve$4(()=>n)):ki$3(n)})}var Sr$2=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f$7);return r}getResolvedTitleForRoute(e){return e.data[Ge$5]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:()=>g$4(ei$3)})}return t})(),ei$3=(()=>{class t extends Sr$2{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(M$6(Q8))};static \u0275prov=x$3({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ne$5=new I$4("",{factory:()=>({})}),fe$5=new I$4(""),Dt$3=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g$4(ES);loadComponent(e,r){return L$7(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=L$7(this,null,function*(){try{let o=yield wn$1(br$3(e,()=>r.loadComponent())),a=yield ri$2(fU(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=L$7(this,null,function*(){try{let o=yield ti$3(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:t.\u0275fac})}return t})();function ti$3(t,n,e,r){return L$7(this,null,function*(){let i=yield wn$1(br$3(e,()=>t.loadChildren())),o=yield ri$2(fU(i)),a;o instanceof Zm$2||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,h;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,h=a,s=c.get(fe$5,[],{optional:true,self:true}).flat()),{routes:s.map(Rr$2),injector:c,factory:h}})}function ri$2(t){return L$7(this,null,function*(){return t})}var _t$4=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:()=>g$4(Fo$1)})}return t})(),Fo$1=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:t.\u0275fac})}return t})(),Cr$2=new I$4(""),wr$3=new I$4("");function ni$3(t,n,e){let r=t.get(wr$3),i=t.get(Y$3);
5if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u;}),c=i.startViewTransition(()=>(o(),qo(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&br$3(t,()=>s({transition:c,from:n,to:e})),a}function qo(t){return new Promise(n=>{Jg({read:()=>setTimeout(n)},{injector:t});})}var Bo$1=()=>{},br$2=new I$4(""),Ut$4=(()=>{class t{currentNavigation=Es$1(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Es$1(null);events=new ye$5;transitionAbortWithErrorSubject=new ye$5;configLoader=g$4(Dt$3);environmentInjector=g$4(pe$6);destroyRef=g$4($e$3);urlSerializer=g$4(re$6);rootContexts=g$4(de$4);location=g$4(bv);inputBindingEnabled=g$4(We$2,{optional:true})!==null;titleStrategy=g$4(Sr$2);options=g$4(ne$5,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Wi$1;urlHandlingStrategy=g$4(_t$4);createViewTransition=g$4(Cr$2,{optional:true});navigationErrorHandler=g$4(br$2,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ki$3(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new yt$3(i)),r=i=>this.events.next(new Rt$4(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;wa$2(()=>{this.transitions?.next(E$7(D$6({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Jr$1(null),this.transitions.pipe(Yt$5(r=>r!==null),Bi$1(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return ki$3(r).pipe(Bi$1(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b$4.SupersededByNewNavigation),wn$2;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?E$7(D$6({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let h=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),m=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!h&&m!=="reload")return this.events.next(new B$5(s.id,this.urlSerializer.serialize(s.rawUrl),"",we$5.IgnoredSameUrlNavigation)),s.resolve(false),wn$2;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return ki$3(s).pipe(Bi$1(g=>
5(this.events.next(new te$6(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?wn$2:Promise.resolve(g))),jo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),Uf$1(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new He$4);}),Bi$1(g=>lt$3(r.routesRecognizeHandler.deferredHandle??ki$3(void 0)).pipe(ve$4(()=>g))),Uf$1(()=>{let g=new ze$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:$,restoredState:ie,extras:_e}=s,Lt=new te$6(g,this.urlSerializer.serialize(N),$,ie);this.events.next(Lt);let Ye=kn$2(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=E$7(D$6({},s),{targetSnapshot:Ye,urlAfterRedirects:N,extras:E$7(D$6({},_e),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(oe=>(oe.finalUrl=N,oe)),ki$3(r)}else return this.events.next(new B$5(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we$5.IgnoredByUrlHandlingStrategy)),s.resolve(false),wn$2}),ve$4(s=>{let u=new pt$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=E$7(D$6({},s),{guards:Ji$2(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),uo$3(s=>this.events.next(s)),Bi$1(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Et$2(this.urlSerializer,s.guardsResult);let u=new gt$4(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return wn$2;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",b$4.GuardRejected),wn$2;if(s.guards.canActivateChecks.length===0)return ki$3(s);let h=new vt$6(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(h),!c())return wn$2;let m=false;return ki$3(s).pipe(ko$2(this.paramsInheritanceStrategy),Uf$1({next:()=>{m=true;let g=new mt$5(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{m||this.cancelNavigationTransition(s,"",b$4.NoDataFromResolver);}}))}),Rn$1(s=>{let u=m=>{let g=[];if(m.routeConfig?._loadedComponent)m.component=m.routeConfig?._loadedComponent;else if(m.routeConfig?.loadComponent){let N=m._environmentInjector;g.push(this.configLoader.loadComponent(N,m.routeConfig).then($=>{m.component=$;}));}for(let N of m.children)g.push(...u(N));return g},h=u(s.targetSnapshot.root);return h.length===0?ki$3(s):lt$3(Promise.all(h).then(()=>s))}),Bi$1(s=>{let u=Qi$1(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=E$7(D$6({},s),{targetRouterState:u}),this.currentNavigation.update(h=>(h.targetRouterState=u,h)),ki$3(s)}),Rn$1(()=>this.afterPreactivation()),Bi$1(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,h=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return h?lt$3(h).pipe(ve$4(()=>r)):ki$3(r)}),bn$3(1),Bi$1(s=>{i=false,this.events.next(new Ie$2);let u=r.beforeActivateHandler.deferredHandle;return u?lt$3(u.then(()=>s)):ki$3(s)}),Uf$1(s=>{new lr$2(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Bo$1,u)),this.lastSuccessfulNavigation.set(wa$2(this.currentNavigation)),this.events.next(new k$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}
5),Hf$1(Wn$2(a.signal).pipe(Yt$5(()=>!o&&i),Uf$1(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",b$4.Aborted);}))),Uf$1({complete:()=>{o=true;}}),Hf$1(this.transitionAbortWithErrorSubject.pipe(Uf$1(s=>{throw s}))),Xr$1(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",b$4.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),uc$1(s=>{if(o=true,this.destroyed)return r.resolve(false),wn$2;if(Vn$1(s))this.events.next(new j$2(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Zi$2(s)?this.events.next(new Ae$4(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new le$2(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let h=br$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(h instanceof Te$5){let{message:m,cancellationCode:g}=Et$2(this.urlSerializer,h);this.events.next(new j$2(r.id,this.urlSerializer.serialize(r.extractedUrl),m,g)),this.events.next(new Ae$4(h.redirectTo,h.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(h){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(h);}}return wn$2}))}))}cancelNavigationTransition(e,r,i){let o=new j$2(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=wa$2(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:t.\u0275fac})}return t})();function Vo(t){return t!==Se$4}var ii$3=new I$4("");var oi$2=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:()=>g$4(Go$1)})}return t})(),Nt$2=class Nt{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Go$1=(()=>{class t extends Nt$2{static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:t.\u0275fac})}return t})(),Ot$1=(()=>{class t{urlSerializer=g$4(re$6);options=g$4(ne$5,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g$4(bv);urlHandlingStrategy=g$4(_t$4);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new U$4;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof U$4?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=kn$2(null,g$4(pe$6));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:()=>g$4(Wo)})}return t})(),Wo=(()=>{class t extends Ot$1{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof te$6?this.updateStateMemento():e instanceof B$5?this.commitTransition(r):e instanceof ze$2?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$2?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof j$2&&!jn$2(e)?this.restoreHistory(r):e instanceof le$2?this.restoreHistory(r,true):e instanceof k$3&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;
5if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=D$6(D$6({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=D$6(D$6({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?D$6({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):D$6({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:t.\u0275fac})}return t})();function Pt$3(t,n){t.events.pipe(Yt$5(e=>e instanceof k$3||e instanceof j$2||e instanceof le$2||e instanceof B$5),ve$4(e=>e instanceof k$3||e instanceof B$5?0:(e instanceof j$2?e.code===b$4.Redirect||e.code===b$4.SupersededByNewNavigation:false)?2:1),Yt$5(e=>e!==2),bn$3(1)).subscribe(()=>{n();});}var G$5=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g$4(sy);stateManager=g$4(Ot$1);options=g$4(ne$5,{optional:true})||{};pendingTasks=g$4(ln$2);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g$4(Ut$4);urlSerializer=g$4(re$6);location=g$4(bv);urlHandlingStrategy=g$4(_t$4);injector=g$4(pe$6);_events=new ye$5;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g$4(oi$2);injectorCleanup=g$4(ii$3,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g$4(fe$5,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g$4(We$2,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new W$4;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=wa$2(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof j$2&&r.code!==b$4.Redirect&&r.code!==b$4.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof k$3)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae$4){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=D$6({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Vo(i.source)},a);this.scheduleNavigation(c,Se$4,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Vi$2(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});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(true),Se$4,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=E$7(D$6({},o),{browserUrl:e})),i){let u=D$6({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(vt$7)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return wa$2(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Rr$2),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,h=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":h=D$6(D$6({},this.currentUrlTree.queryParams),o);break;case "preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null;}h!==null&&(h=this.removeEmptyProps(h));let m;try{let g=i?i.snapshot:this.routerState.snapshot.root;m=On$2(g);}
5catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root;}return Pn$2(m,e,h,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=ee$5(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se$4,null,r)}navigate(e,r={skipLocationChange:false}){return Qo$1(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(pt$4(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=D$6({},In$2):r===false?i=D$6({},rr$2):i=D$6(D$6({},rr$2),r),ee$5(e))return fn$1(this.currentUrlTree,e,i);let o=this.parseUrl(e);return fn$1(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((m,g)=>{c=m,s=g;});let h=this.pendingTasks.add();return Pt$3(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
5),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:t.\u0275fac})}return t})();function Qo$1(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new y$6(4008,false)}var Yo$1=(()=>{class t{router=g$4(G$5);stateManager=g$4(Ot$1);fragment=Es$1("");queryParams=Es$1({});path=Es$1("");serializer=g$4(re$6);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof k$3&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new U$4(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:t.\u0275fac})}return t})(),ai$2=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g$4(new nv("href"),{optional:true});reactiveHref=bS$1(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return wa$2(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return wa$2(this._target)}_target=Es$1(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return wa$2(this._queryParams)}_queryParams=Es$1(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return wa$2(this._fragment)}_fragment=Es$1(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return wa$2(this._queryParamsHandling)}_queryParamsHandling=Es$1(void 0);set state(e){this._state.set(e);}get state(){return wa$2(this._state)}_state=Es$1(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return wa$2(this._info)}_info=Es$1(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return wa$2(this._relativeTo)}_relativeTo=Es$1(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return wa$2(this._preserveFragment)}_preserveFragment=Es$1(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return wa$2(this._skipLocationChange)}_skipLocationChange=Es$1(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return wa$2(this._replaceUrl)}_replaceUrl=Es$1(false);browserUrl=hU(void 0);isAnchorElement;onChanges=new ye$5;applicationErrorHandler=g$4(vt$7);options=g$4(ne$5,{optional:true});reactiveRouterState=g$4(Yo$1);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Es$1(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(ee$5(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=D$6({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(h=>{this.applicationErrorHandler(h);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=wS(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:ee$5(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return wa$2(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(V$3(G$5),V$3(V$2),wl$2("tabindex"),V$3(qo$1),V$3(Vt$3),V$3($r$1))};static \u0275dir=bt$6({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Ey("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&ly("href",i.reactiveHref(),Tw)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",tM$1],skipLocationChange:[2,"skipLocationChange","skipLocationChange",tM$1],replaceUrl:[2,"replaceUrl","replaceUrl",tM$1],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[El$2]})}return t})();var Ke$6=class Ke{},Zo$1=(()=>{class t{preload(e,r){return r().pipe(uc$1(()=>ki$3(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=we$6({token:t,factory:t.\u0275fac})}return t})();var si$2=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Yt$5(e=>e instanceof k$3),ji$2(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=cd$2(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return lt$3(i).pipe(Zr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return ki$3(null);let i;r.loadChildren&&r.canLoad===void 0?i=lt$3(this.loader.loadChildren(e,r)):i=ki$3(null);let o=i.pipe(Ze$3(a=>a===null?ki$3(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return lt$3([o,a]).pipe(Zr$1())}else return o}
5)}static \u0275fac=function(r){return new(r||t)(M$6(G$5),M$6(pe$6),M$6(Ke$6),M$6(Dt$3))};static \u0275prov=x$3({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ar$1=new I$4(""),ci$3=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se$4;restoredId=0;store={};isHydrating=g$4(GI$1,{optional:true})??false;urlSerializer=g$4(re$6);zone=g$4(q$3);viewportScroller=g$4(S$);transitions=g$4(Ut$4);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g$4(Ur$1).whenStable().then(()=>{this.isHydrating=false;});}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 te$6?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof k$3?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B$5&&e.code===we$5.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof be$5)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=wa$2(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>L$7(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new be$5(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){Db();};static \u0275prov=x$3({token:t,factory:t.\u0275fac})}return t})();function Jo$1(t,...n){return On$3([{provide:fe$5,multi:true,useValue:t},{provide:V$2,useFactory:ui$2},{provide:pd$2,multi:true,useFactory:li$2},n.map(e=>e.\u0275providers)])}function ui$2(){return g$4(G$5).routerState.root}function De$3(t,n){return {\u0275kind:t,\u0275providers:n}}function Xo$1(t={}){return De$3(4,[{provide:Ar$1,useFactory:()=>new ci$3(t)}])}function li$2(){let t=g$4(Ee$4);return n=>{let e=t.get(Ur$1);if(n!==e.components[0])return;let r=t.get(G$5),i=t.get(hi$3);t.get(Er$3)===1&&r.initialNavigation(),t.get(pi$2,null,{optional:true})?.setUpPreloading(),t.get(Ar$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var hi$3=new I$4("",{factory:()=>new ye$5}),Er$3=new I$4("",{factory:()=>1});function di$2(){let t=[{provide:Ng$1,useValue:true},{provide:Er$3,useValue:0},rT(()=>{let n=g$4(Ee$4);return n.get(oM,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(G$5),o=n.get(hi$3);Pt$3(i,()=>{r(true);}),n.get(Ut$4).afterPreactivation=()=>(r(true),o.closed?ki$3(void 0):o),i.initialNavigation();}))})];return De$3(2,t)}function fi$2(){let t=[rT(()=>{g$4(G$5).setUpLocationChangeListener();}),{provide:Er$3,useValue:2}];return De$3(3,t)}var pi$2=new I$4("");function gi$2(t){return De$3(0,[{provide:pi$2,useExisting:si$2},{provide:Ke$6,useExisting:t}])}function vi$1(t={}){return De$3(8,[{provide:We$2,useFactory:()=>new Fn$1(t)}])}function mi$2(t){Ne$4("NgRouterViewTransitions");let n=[{provide:Cr$2,useValue:ni$3},{provide:wr$3,useValue:D$6({skipNextTransition:false},t)}];return De$3(9,n)}var yi$2=[bv,{provide:re$6,useClass:K$2},G$5,de$4,{provide:V$2,useFactory:ui$2},Dt$3],ea$2=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[yi$2,[],{provide:fe$5,multi:true,useValue:e},[],r?.errorHandler?{provide:br$2,useValue:r.errorHandler}:[],{provide:ne$5,useValue:r||{}},r?.useHash?ra$2():na$2(),ta$2(),r?.preloadingStrategy?gi$2(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ia$2(r):[],r?.bindToComponentInputs?vi$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?mi$2().\u0275providers:[],oa$2()]}}static forChild(e){return {ngModule:t,providers:[{provide:fe$5,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Qo$2({type:t});static \u0275inj=Ir$3({})}return t})();function ta$2(){return {provide:Ar$1,useFactory:()=>{let t=g$4(S$),n=g$4(ne$5);return n.scrollOffset&&t.setOffset(n.scrollOffset),new ci$3(n)}}}function ra$2(){return {provide:$r$1,useClass:cM}}function na$2(){return {provide:$r$1,useClass:Cv}}function ia$2(t){return [t.initialNavigation==="disabled"?fi$2().\u0275providers:[],t.initialNavigation==="enabledBlocking"?di$2().\u0275providers:[]]}var Ir$2=new I$4("");function oa$2(){return [{provide:Ir$2,useFactory:li$2},{provide:pd$2,multi:true,useExisting:Ir$2}]} 6var O$6={REMOVE:"remove",SHOW:"show"},ee$4=(()=>{class t{constructor(){this.strategiesSource=new Jr$1({}),this.strategies$=this.strategiesSource.asObservable();}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac});}}return t}
6)(),N$5=new I$4("USE_CONFIGURATION_STORE"),k$2=(()=>{class t{constructor(e=false,i){this.isolate=e,this.configurationStore=i,this.strategiesSource=this.isolate?new Jr$1({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy;}setDefaultOnAuthorizedStrategy(e){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy);}setDefaultOnUnauthorizedStrategy(e){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy);}addPermissionStrategy(e,i){this.strategiesSource.value[e]=i;}getStrategy(e){return this.strategiesSource.value[e]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(e){if(this.strategiesSource.value[e]||this.isPredefinedStrategy(e))return e;throw new Error(`No ' ${e} ' strategy is found please define one`)}isPredefinedStrategy(e){return e===O$6.SHOW||e===O$6.REMOVE}static{this.\u0275fac=function(i){return new(i||t)(M$6(N$5),M$6(ee$4))};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac});}}return t})();function h$4(t){return typeof t=="function"}function V$1(t){if(Object.prototype.toString.call(t)!=="[object Object]")return false;{let W=Object.getPrototypeOf(t);return W===null||W===Object.prototype}}function ie$4(t){return !!t&&typeof t=="string"}function A$6(t){return typeof t=="boolean"}function te$5(t){return Object.prototype.toString.call(t)==="[object Promise]"}function E$5(t){return Array.isArray(t)?t.length>0:!!t}function T$3(t){return ie$4(t)?[t]:t}var se$5=(()=>{class t{constructor(){this.permissionsSource=new Jr$1({}),this.permissions$=this.permissionsSource.asObservable();}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac});}}return t})(),B$4=new I$4("USE_PERMISSIONS_STORE"),S$7=(()=>{class t{constructor(e=false,i){this.isolate=e,this.permissionsStore=i,this.permissionsSource=this.isolate?new Jr$1({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable();}flushPermissions(){this.permissionsSource.next({});}hasPermission(e){return !e||Array.isArray(e)&&e.length===0?Promise.resolve(true):(e=T$3(e),this.hasArrayPermission(e))}loadPermissions(e,i){let s=e.reduce((n,r)=>this.reducePermission(n,r,i),{});this.permissionsSource.next(s);}addPermission(e,i){if(Array.isArray(e)){let s=e.reduce((n,r)=>this.reducePermission(n,r,i),this.permissionsSource.value);this.permissionsSource.next(s);}else {let s=this.reducePermission(this.permissionsSource.value,e,i);this.permissionsSource.next(s);}}removePermission(e){let i=D$6({},this.permissionsSource.value);delete i[e],this.permissionsSource.next(i);}getPermission(e){return this.permissionsSource.value[e]}getPermissions(){return this.permissionsSource.value}reducePermission(e,i,s){return s&&h$4(s)?E$7(D$6({},e),{[i]:{name:i,validationFunction:s}}):E$7(D$6({},e),{[i]:{name:i}})}hasArrayPermission(e){let i=e.map(s=>{if(this.hasPermissionValidationFunction(s)){let n=this.permissionsSource.value[s].validationFunction,r=D$6({},this.permissionsSource.value);return ki$3(null).pipe(ve$4(()=>n(s,r)),Bi$1(o=>A$6(o)?ki$3(o):o),uc$1(()=>ki$3(false)))}return ki$3(!!this.permissionsSource.value[s])});return lt$3(i).pipe(Zr$1(),yE(s=>s!==false,false),ve$4(s=>s!==false)).toPromise().then(s=>s)}hasPermissionValidationFunction(e){return !!this.permissionsSource.value[e]&&!!this.permissionsSource.value[e].validationFunction&&h$4(this.permissionsSource.value[e].validationFunction)}static{this.\u0275fac=function(i){return new(i||t)(M$6(B$4),M$6(se$5))};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac});}}return t})(),R$3=class R{constructor(){this.rolesSource=new Jr$1({}),this.roles$=this.rolesSource.asObservable();}},$$5=new I$4("USE_ROLES_STORE"),D$5=(()=>{class t{constructor(e=false,i,s){this.isolate=e,this.rolesStore=i,this.permissionsService=s,this.rolesSource=this.isolate?new Jr$1({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable();}addRole(e,i){let s=E$7(D$6({},this.rolesSource.value),{[e]:{name:e,validationFunction:i}});this.rolesSource.next(s);}addRoleWithPermissions(e,i){this.permissionsService.addPermission(i),this.addRole(e,i);}addRoles(e){Object.keys(e).forEach((i,s)=>{this.addRole(i,e[i]);});}addRolesWithPermissions(e){Object.keys(e).forEach((i,s)=>{this.addRoleWithPermissions(i,e[i]);});}flushRoles(){this.rolesSource.next({});}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions();}removeRole(e){let i=D$6({},this.rolesSource.value);delete i[e],this.rolesSource.next(i);}getRoles(){return this.rolesSource.value}getRole(e){return this.rolesSource.value[e]}hasOnlyRoles(e){return !e||Array.isArray(e)&&e.length===0?Promise.resolve(true):(e=T$3(e),Promise.all([this.hasRoleKey(e),this.hasRolePermission(this.rolesSource.value,e)]).then(([s,n])=>s||n))}hasRoleKey(e){let i=e.map(s=>{if(!!this.rolesSource.value[s]&&!!this.rolesSource.value[s].validationFunction&&h$4(this.rolesSource.value[s].validationFunction)&&!te$5(this.rolesSource.value[s].validationFunction)){let r=this.rolesSource.value[s].validationFunction,o=D$6({},this.rolesSource.value);return ki$3(null).pipe(ve$4(()=>r(s,o)),Bi$1(p=>
6A$6(p)?ki$3(p):p),uc$1(()=>ki$3(false)))}return ki$3(false)});return lt$3(i).pipe(Zr$1(),yE(s=>s!==false,false),ve$4(s=>s!==false)).toPromise().then(s=>s)}hasRolePermission(e,i){return lt$3(i).pipe(Ze$3(s=>e[s]&&Array.isArray(e[s].validationFunction)?lt$3(e[s].validationFunction).pipe(Ze$3(n=>this.permissionsService.hasPermission(n)),mE(n=>n===true)):ki$3(false)),yE(s=>s===true,false)).toPromise()}static{this.\u0275fac=function(i){return new(i||t)(M$6($$5),M$6(R$3),M$6(S$7))};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac});}}return t})(),Pe$3=(()=>{class t{constructor(){this.permissionsAuthorized=new kt$3,this.permissionsUnauthorized=new kt$3,this.firstMergeUnusedRun=1,this.permissionsService=g$4(S$7),this.configurationService=g$4(k$2),this.rolesService=g$4(D$5),this.viewContainer=g$4(Ct$6),this.changeDetector=g$4(Od$2),this.templateRef=g$4(Et$3);}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions();}ngOnChanges(e){let i=e.ngxPermissionsOnly,s=e.ngxPermissionsExcept;if(i||s){if(i&&i.firstChange||s&&s.firstChange)return;WD(this.permissionsService.permissions$,this.rolesService.roles$).pipe(EE(this.firstMergeUnusedRun),bn$3(1)).subscribe(()=>{if(E$5(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(E$5(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates());});}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe();}validateExceptOnlyPermissions(){return WD(this.permissionsService.permissions$,this.rolesService.roles$).pipe(EE(this.firstMergeUnusedRun)).subscribe(()=>{if(E$5(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(E$5(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates());})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([e,i])=>{if(e||i){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw false;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef);}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef);});}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([e,i])=>{e||i?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse);}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse);});}handleUnauthorisedPermission(e){if(!(A$6(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=false,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(e);}}handleAuthorisedPermission(e){if(!(A$6(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=true,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(e);}}applyStrategyAccordingToStrategyType(e){if(ie$4(e)){this.applyStrategy(e);return}if(h$4(e)){this.showTemplateBlockInView(this.templateRef),e(this.templateRef);return}}showTemplateBlockInView(e){this.viewContainer.clear(),e&&(this.viewContainer.createEmbeddedView(e),this.changeDetector.markForCheck());}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return !!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return !!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(e){if(e===O$6.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(e===O$6.REMOVE){this.viewContainer.clear();return}let i=this.configurationService.getStrategy(e);this.showTemplateBlockInView(this.templateRef),i(this.templateRef);}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275dir=bt$6({type:t,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:false,features:[El$2]});}}return t})(),re$5="default";var _$8=(()=>{class t{constructor(e,i,s){this.permissionsService=e,this.rolesService=i,this.router=s;}canActivate(e,i){return this.hasPermissions(e,i)}canActivateChild(e,i){return this.hasPermissions(e,i)}canLoad(e){return this.hasPermissions(e)}canMatch(e){return this.hasPermissions(e)}hasPermissions(e,i){let s=e&&e.data?e.data.permissions:{},n=this.transformPermission(s,e,i);return this.isParameterAvailable(n.except)?this.passingExceptPermissionsValidation(n,e,i):this.isParameterAvailable(n.only)?this.passingOnlyPermissionsValidation(n,e,i):true}transformPermission(e,i,s){let n=h$4(e.only)?e.only(i,s):T$3(e.only),r=h$4(e.except)?e.except(i,s):T$3(e.except),o=e.redirectTo;return {only:n,except:r,redirectTo:o}}isParameterAvailable(e){return !!e&&e.length>0}passingExceptPermissionsValidation(e,i,s){if(e.redirectTo&&(h$4(e.redirectTo)||V$1(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo))){let n="";return lt$3(e.except).pipe(Ze$3(r=>zD([this.permissionsService.hasPermission(r),this.rolesService.hasOnlyRoles(r)]).pipe(Uf$1(o=>{o.every(U=>U===false)||(n=r);}))),yE(r=>r.some(o=>o===true),false),Ze$3(r=>n?(this.handleRedirectOfFailedPermission(e,n,i,s),ki$3(false)):!r&&e.only?this.onlyRedirectCheck(e,i,s):ki$3(!r))).toPromise()}return Promise.all([this.permissionsService.hasPermission(e.except),this.rolesService.hasOnlyRoles(e.except)]).then(([n,r])=>n||r?(e.redirectTo&&this.redirectToAnotherRoute(e.redirectTo,i,s),false):e.only?this.checkOnlyPermissions(e,i,s):true)}redirectToAnotherRoute(e,i,s,n){let r=h$4(e)?e(n,i,s):e;if(this.isRedirectionWithParameters(r)){r.navigationCommands=this.transformNavigationCommands(r.navigationCommands,i,s),r.navigationExtras=this.transformNavigationExtras(r.navigationExtras,i,s),this.router.navigate(r.navigationCommands,r.navigationExtras);return}Array.isArray(r)?this.router.navigate(r):this.router.navigate([r]);}isRedirectionWithParameters(e){return V$1(e)&&(!!e.navigationCommands||!!e.navigationExtras)}transformNavigationCommands(e,i,s){return h$4(e)?e(i,s):e}transformNavigationExtras(e,i,s){return h$4(e)?e(i,s):e}onlyRedirectCheck(e,i,s){let n="";return lt$3(e.only).pipe(Ze$3(r=>zD([this.permissionsService.hasPermission(r),this.rolesService.hasOnlyRoles(r)]).pipe(Uf$1(o=>{o.every(U=>U===false)&&(n=r);}))),yE(r=>h$4(e.redirectTo)?r.some(o=>o===true):r.every(o=>o===false),false),Ze$3(r=>h$4(e.redirectTo)?r?ki$3(true):(this.handleRedirectOfFailedPermission(e,n,i,s),ki$3(false)):(n&&this.handleRedirectOfFailedPermission(e,n,i,s),ki$3(!r)))).toPromise()}handleRedirectOfFailedPermission(e,i,s,n){this.isFailedPermissionPropertyOfRedirectTo(e,i)?this.redirectToAnotherRoute(e.redirectTo[i],s,n,i):h$4(e.redirectTo)?this.redirectToAnotherRoute(e.redirectTo,s,n,i):this.redirectToAnotherRoute(e.redirectTo[re$5],s,n,i);}isFailedPermissionPropertyOfRedirectTo(e,i){return !!e.redirectTo&&e.redirectTo[i]}checkOnlyPermissions(e,i,s){let n=D$6({},e);return Promise.all([this.permissionsService.hasPermission(n.only
6),this.rolesService.hasOnlyRoles(n.only)]).then(([r,o])=>r||o?true:(n.redirectTo&&this.redirectToAnotherRoute(n.redirectTo,i,s),false))}passingOnlyPermissionsValidation(e,i,s){return h$4(e.redirectTo)||V$1(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo)?this.onlyRedirectCheck(e,i,s):this.checkOnlyPermissions(e,i,s)}static{this.\u0275fac=function(i){return new(i||t)(M$6(S$7),M$6(D$5),M$6(G$5))};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac});}}return t})();var pe$5=(()=>{class t{static forRoot(e={}){return {ngModule:t,providers:[se$5,R$3,ee$4,S$7,_$8,D$5,k$2,{provide:B$4,useValue:e.permissionsIsolate},{provide:$$5,useValue:e.rolesIsolate},{provide:N$5,useValue:e.configurationIsolate}]}}static forChild(e={}){return {ngModule:t,providers:[{provide:B$4,useValue:e.permissionsIsolate},{provide:$$5,useValue:e.rolesIsolate},{provide:N$5,useValue:e.configurationIsolate},k$2,S$7,D$5,_$8]}}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275mod=Qo$2({type:t});}static{this.\u0275inj=Ir$3({});}}return t})();var y$5=class y{},X$2=(()=>{class e{handle(t){return t.key}static \u0275fac=function(n){return new(n||e)};static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})(),p$8=class p{},Y$2=(()=>{class e extends p$8{compile(t,n){return t}compileTranslations(t,n){return t}static \u0275fac=(()=>{let t;return function(r){return (t||(t=yg(e)))(r||e)}})();static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})(),b$3=class b{},tt$2=(()=>{class e extends b$3{getTranslation(t){return ki$3({})}static \u0275fac=(()=>{let t;return function(r){return (t||(t=yg(e)))(r||e)}})();static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})();function w$4(e,s){if(e===s)return true;if(e===null||s===null)return false;if(e!==e&&s!==s)return true;let t=typeof e,n=typeof s,r;if(t==n&&t=="object")if(Array.isArray(e)){if(!Array.isArray(s))return false;if((r=e.length)==s.length){for(let i=0;i<r;i++)if(!w$4(e[i],s[i]))return false;return true}}else {if(Array.isArray(s))return false;if(h$3(e)&&h$3(s)){let i=Object.create(null);for(let a in e){if(!w$4(e[a],s[a]))return false;i[a]=true;}for(let a in s)if(!(a in i)&&typeof s[a]<"u")return false;return true}}return false}function l$4(e){return typeof e<"u"&&e!==null}function z$1(e){return e!==void 0}function h$3(e){return F$6(e)&&!f$6(e)&&e!==null}function F$6(e){return typeof e=="object"&&e!==null}function f$6(e){return Array.isArray(e)}function k$1(e){return typeof e=="string"}function et$2(e){return typeof e=="function"}function I$3(e){if(f$6(e))return e.map(s=>I$3(s));if(h$3(e)){let s={};return Object.keys(e).forEach(t=>{s[t]=I$3(e[t]);}),s}else return e}function K$1(e,s){if(!F$6(e))return I$3(s);let t=I$3(e);return F$6(t)&&F$6(s)&&Object.keys(s).forEach(n=>{h$3(s[n])?n in e?t[n]=K$1(e[n],s[n]):Object.assign(t,{[n]:s[n]}):Object.assign(t,{[n]:s[n]});}),t}function Z$3(e,s){let t=s.split(".");s="";do{s+=t.shift();let n=!t.length;if(l$4(e)){if(h$3(e)&&z$1(e[s])&&(h$3(e[s])||f$6(e[s])||n)){e=e[s],s="";continue}if(f$6(e)){let r=parseInt(s,10);if(z$1(e[r])&&(h$3(e[r])||f$6(e[r])||n)){e=e[r],s="";continue}}}if(n){e=void 0;continue}s+=".";}while(t.length);return e}function nt$3(e,s,t){return K$1(e,rt$3(s,t))}function rt$3(e,s){return e.split(".").reduceRight((t,n)=>({[n]:t}),s)}var L$6=class L{},at$2=(()=>{class e extends L$6{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(t,n){if(k$1(t))return this.interpolateString(t,n);if(et$2(t))return this.interpolateFunction(t,n)}interpolateFunction(t,n){return t(n)}interpolateString(t,n){return n?t.replace(this.templateMatcher,(r,i)=>{let a=this.getInterpolationReplacement(n,i);return a!==void 0?a:r}):t}getInterpolationReplacement(t,n){return this.formatValue(Z$3(t,n))}formatValue(t){if(k$1(t))return t;if(typeof t=="number"||typeof t=="boolean")return t.toString();if(t===null)return "null";if(f$6(t))return t.join(", ");if(F$6(t))return typeof t.toString=="function"&&t.toString!==Object.prototype.toString?t.toString():JSON.stringify(t)}static \u0275fac=(()=>{let t;return function(r){return (t||(t=yg(e)))(r||e)}})();static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})(),E$4=(()=>{class e{_onTranslationChange=new ye$5;_onLangChange=new ye$5;_onFallbackLangChange=new ye$5;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(t){return this.translations[t]}setTranslations(t,n,r){this.translations[t]=r&&this.hasTranslationFor(t)?K$1(this.translations[t],n):n,this.addLanguages([t]),this._onTranslationChange.next({lang:t,translations:this.getTranslations(t)});}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(t,n=true){this.fallbackLang=t,n&&this._onFallbackLangChange.next({lang:t,translations:this.translations[t]});}setCurrentLang(t,n=true){this.currentLang=t,n&&this._onLangChange.next({lang:t,translations:this.translations[t]});}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(t){this.languages=Array.from(new Set([...this.languages,...t]));}hasTranslationFor(t){return typeof this.translations[t]<"u"}deleteTranslations(t){delete this.translations[t];}getTranslation(t){let n=this.getValue(this.currentLang,t);return n===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(n=this.getValue(this.fallbackLang,t)),n}getValue(t,n){return Z$3(this.getTranslations(t),n)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})(),N$4=new I$4("TRANSLATE_CONFIG"),v$4=e=>nE(e)?e:ki$3(e);var O$5=(()=>{class e{loadingTranslations;pending=false;_translationRequests={};lastUseLanguage=null;currentLoader=g$4(b$3);compiler=g$4(p$8);parser=g$4(L$6);missingTranslationHandler=g$4(y$5);store=g$4(E$4);extend=false;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let t=D$6({extend:false,fallbackLang:null},g$4(N$4,{optional:true}));t.lang&&this.use(t.lang),t.fallbackLang&&this.setFallbackLang(t.fallbackLang),t.extend&&(this.extend=true);}setFallbackLang(t){this.getFallbackLang()||this.store.setFallbackLang(t,false);let n=this.loadOrExtendLanguage(t);return nE(n)?(n.pipe(bn$3(1)).subscribe({next:()=>{this.store.setFallbackLang(t);},error:()=>{}}),n):(this.store.setFallbackLang(t),ki$3(this.store.getTranslations(t)))}use(t){this.lastUseLanguage=t,this.getCurrentLang()||this.store.setCurrentLang(t,false);let n=this.loadOrExtendLanguage(t);return nE(n)?(n.pipe(bn$3(1)).subscribe({next:()=>{this.changeLang(t);},error:()=>{}}),n):(this.changeLang(t),ki$3(this.store.getTranslations(t)))}loadOrExtendLanguage(t){if(!this.store.hasTranslationFor(t)||this.extend)return this._translationRequests[t]=this._translationRequests[t]||this.loadAndCompileTranslations(t),this._translationRequests[t]}changeLang(t){t===this.lastUseLanguage&&this.store.setCurrentLang(t);}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(t){this.pending=true;let n=this.currentLoader.getTranslation(t).pipe(Xf$1(1),bn$3(1));return this.loadingTranslations=n.pipe(ve$4(r=>this.compiler.compileTranslations(r,t)),Xf$1(1),bn$3(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(t,r,this.extend),this.pending=false;},error:r=>{this.pending=false;}}),n}setTranslation(t,n,r=false){let i=this.compiler.compileTranslations(n,t);this.store.setTranslations(t,i,r||this.extend);}getLangs(){return this.store.getLanguages()}addLangs(t){this.store.addLanguages(t);}getParsedResultForKey(t,n){let r=this.getTextToInterpolate(t);if(l$4(r))return this.runInterpolation(r,n);
6let i=this.missingTranslationHandler.handle(D$6({key:t,translateService:this},n!==void 0&&{interpolateParams:n}));return i!==void 0?i:t}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(t){return this.store.getTranslation(t)}runInterpolation(t,n){if(l$4(t))return f$6(t)?this.runInterpolationOnArray(t,n):h$3(t)?this.runInterpolationOnDict(t,n):this.parser.interpolate(t,n)}runInterpolationOnArray(t,n){return t.map(r=>this.runInterpolation(r,n))}runInterpolationOnDict(t,n){let r={};for(let i in t){let a=this.runInterpolation(t[i],n);a!==void 0&&(r[i]=a);}return r}getParsedResult(t,n){return t instanceof Array?this.getParsedResultForArray(t,n):this.getParsedResultForKey(t,n)}getParsedResultForArray(t,n){let r={},i=false;for(let o of t)r[o]=this.getParsedResultForKey(o,n),i=i||nE(r[o]);if(!i)return r;let a=t.map(o=>v$4(r[o]));return zD(a).pipe(ve$4(o=>{let d={};return o.forEach((C,Q)=>{d[t[Q]]=C;}),d}))}get(t,n){if(!l$4(t)||!t.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(ji$2(()=>v$4(this.getParsedResult(t,n)))):v$4(this.getParsedResult(t,n))}getStreamOnTranslationChange(t,n){if(!l$4(t)||!t.length)throw new Error('Parameter "key" is required and cannot be empty');return dr$3(aE(()=>this.get(t,n)),this.onTranslationChange.pipe(Bi$1(()=>{let r=this.getParsedResult(t,n);return v$4(r)})))}stream(t,n){if(!l$4(t)||!t.length)throw new Error('Parameter "key" required');return dr$3(aE(()=>this.get(t,n)),this.onLangChange.pipe(Bi$1(()=>{let r=this.getParsedResult(t,n);return v$4(r)})))}instant(t,n){if(!l$4(t)||t.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(t,n);return nE(r)?Array.isArray(t)?t.reduce((i,a)=>(i[a]=a,i),{}):t:r}set(t,n,r=this.getCurrentLang()){this.store.setTranslations(r,nt$3(this.store.getTranslations(r),t,k$1(n)?this.compiler.compile(n,r):this.compiler.compileTranslations(n,r)),false);}reloadLang(t){return this.resetLang(t),this.loadAndCompileTranslations(t)}resetLang(t){delete this._translationRequests[t],this.store.deleteTranslations(t);}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let t=this.getBrowserCultureLang();return t?t.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return e.getBrowserLang()}getBrowserCultureLang(){return e.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(t){return this.setFallbackLang(t)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})(),Ct$4=(()=>{class e{translateService=g$4(O$5);element=g$4(Vt$3);_ref=g$4(Od$2);key;lastParams;currentParams;onLangChangeSub;onFallbackLangChangeSub;onTranslationChangeSub;set translate(t){t&&(this.key=t,this.checkNodes());}set translateParams(t){w$4(this.currentParams,t)||(this.currentParams=t,this.checkNodes(true));}constructor(){this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(t=>{t.lang===this.translateService.currentLang&&this.checkNodes(true,t.translations);})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(t=>{this.checkNodes(true,t.translations);})),this.onFallbackLangChangeSub||(this.onFallbackLangChangeSub=this.translateService.onFallbackLangChange.subscribe(t=>{this.checkNodes(true);}));}ngAfterViewChecked(){this.checkNodes();}checkNodes(t=false,n){let r=this.element.nativeElement.childNodes;r.length||(this.setContent(this.element.nativeElement,this.key),r=this.element.nativeElement.childNodes),r.forEach(i=>{let a=i;if(a.nodeType===3){let o;if(t&&(a.lastKey=null),l$4(a.lookupKey))o=a.lookupKey;else if(this.key)o=this.key;else {let d=this.getContent(a),C=d.trim();C.length&&(a.lookupKey=C,d!==a.currentValue?(o=C,a.originalContent=d||a.originalContent):a.originalContent&&(o=a.originalContent.trim()));}
6this.updateValue(o,a,n);}});}updateValue(t,n,r){if(t){if(n.lastKey===t&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let i=a=>{(a!==t||!n.lastKey)&&(n.lastKey=t),n.originalContent||(n.originalContent=this.getContent(n)),k$1(a)?n.currentValue=a:l$4(a)?n.currentValue=JSON.stringify(a):n.currentValue=n.originalContent||t,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(t,n.currentValue)),this._ref.markForCheck();};if(l$4(r)){let a=this.translateService.getParsedResult(t,this.currentParams);nE(a)?a.subscribe({next:i}):i(a);}else this.translateService.get(t,this.currentParams).subscribe(i);}}getContent(t){return l$4(t.textContent)?t.textContent:t.data}setContent(t,n){l$4(t.textContent)?t.textContent=n:t.data=n;}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onFallbackLangChangeSub&&this.onFallbackLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe();}static \u0275fac=function(n){return new(n||e)};static \u0275dir=bt$6({type:e,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return e})(),mt$4=(()=>{class e{translate=g$4(O$5);_ref=g$4(Od$2);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;
6updateValue(t,n,r){let i=a=>{this.value=a!==void 0?a:t,this.lastKey=t,this._ref.markForCheck();};if(r){let a=this.translate.getParsedResult(t,n);nE(a)?a.subscribe(i):i(a);}this.translate.get(t,n).subscribe(i);}transform(t,...n){if(!t||!t.length)return t;if(w$4(t,this.lastKey)&&w$4(n,this.lastParams))return this.value;let r;if(l$4(n[0])&&n.length)if(k$1(n[0])&&n[0].length){let i=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(i);}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else h$3(n[0])&&(r=n[0]);return this.lastKey=t,this.lastParams=n,this.updateValue(t,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(i=>{(this.lastKey&&i.lang===this.translate.getCurrentLang()||i.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(t,r,i.translations));})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(i=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,r,i.translations));})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,r));})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0);}ngOnDestroy(){this._dispose();}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Fe$4({name:"translate",type:e,pure:false});static \u0275prov=x$3({token:e,factory:e.\u0275fac})}return e})();function st$2(e){return {provide:b$3,useClass:e}}function it$3(e){return {provide:p$8,useClass:e}}function ot$3(e){return {provide:L$6,useClass:e}}function lt$1(e){return {provide:y$5,useClass:e}}function W$3(e={},s){let t=[];e.loader&&t.push(e.loader),e.compiler&&t.push(e.compiler),e.parser&&t.push(e.parser),e.missingTranslationHandler&&t.push(e.missingTranslationHandler),s&&t.push(E$4),(e.useDefaultLang||e.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),e.useDefaultLang===true&&e.defaultLanguage&&(e.fallbackLang=e.defaultLanguage));let n={fallbackLang:e.fallbackLang??null,lang:e.lang,extend:e.extend??false};return t.push({provide:N$4,useValue:n}),t.push({provide:O$5,useClass:O$5,deps:[E$4,b$3,p$8,L$6,y$5,N$4]}),t}var Tt$2=(()=>{class e{static forRoot(t={}){return {ngModule:e,providers:[...W$3(D$6({compiler:it$3(Y$2),parser:ot$3(at$2),loader:st$2(tt$2),missingTranslationHandler:lt$1(X$2)},t),true)]}}static forChild(t={}){return {ngModule:e,providers:[...W$3(t,t.isolate??false)]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=Qo$2({type:e});static \u0275inj=Ir$3({})}return e})();var d$6=(()=>{class i{constructor(e){this.translate=e,this.defaultAppSettings={dir:"rtl",theme:"light",sidenavOpened:false,sidenavCollapsed:false,boxed:true,activeTheme:"sociallab_theme",language:"ar",navPos:"side",liquidGlassUI:false},this.notify$=new Jr$1({});let t=localStorage.getItem("appSettings");this.options=this.isValidSettings(t)?JSON.parse(t):this.defaultAppSettings,this.options.liquidGlassUI===void 0&&(this.options.liquidGlassUI=false),this.options.mode===void 0&&(this.options.mode="full"),this.options.theme!=="light"&&(this.options.theme="light",this.saveSettingsToLocalStorage());let s=localStorage.getItem("lang");s&&s!==this.options.language&&(this.options.language=s,this.options.dir=s==="ar"?"rtl":"ltr",this.saveSettingsToLocalStorage());}get notify(){return this.notify$.asObservable()}getOptions(){return this.options}setOptions(e){let t=D$6(D$6({},this.options),e);t.theme="light",this.options=t,this.saveSettingsToLocalStorage();}getMode(){return this.options.mode??"full"}setMode(e){this.options.mode=e,this.saveSettingsToLocalStorage(),window.dispatchEvent(new CustomEvent("app-mode-changed"));}getLanguage(){return this.options.language}setLanguage(e){this.options.language=e,this.options.dir=e==="ar"?"rtl":"ltr",this.saveSettingsToLocalStorage();}
6saveSettingsToLocalStorage(){localStorage.setItem("appSettings",JSON.stringify(this.options)),this.notify$.next(this.options);}isValidSettings(e){if(!e)return false;try{let t=JSON.parse(e);return t.theme&&t.theme!=="light"&&(t.theme="light"),t.liquidGlassUI===void 0&&(t.liquidGlassUI=!1),typeof t.dir=="string"&&typeof t.theme=="string"&&typeof t.sidenavOpened=="boolean"&&typeof t.sidenavCollapsed=="boolean"&&typeof t.boxed=="boolean"&&typeof t.activeTheme=="string"&&typeof t.language=="string"&&typeof t.navPos=="string"}catch(t){return false}}static{this.\u0275fac=function(t){return new(t||i)(M$6(O$5))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Gt$4;try{Gt$4=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(n){Gt$4=false;}var _$7=(()=>{class n{_platformId=g$4(So$3);isBrowser=this._platformId?_$(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Gt$4)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();function Ft$2(n){return Array.isArray(n)?n:[n]}var Ge$4=new Set,$$4,St$3=(()=>{class n{_platform=g$4(_$7);_nonce=g$4(Mo$3,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Kn$1;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&Vn(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();function Vn(n,i){if(!Ge$4.has(n))try{$$4||($$4=document.createElement("style"),i&&$$4.setAttribute("nonce",i),$$4.setAttribute("type","text/css"),document.head.appendChild($$4)),$$4.sheet&&($$4.sheet.insertRule(`@media ${n} {body{ }}`,0),Ge$4.add(n));}catch(t){console.error(t);}}function Kn$1(n){return {matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var Zt$3=(()=>{class n{_mediaMatcher=g$4(St$3);_zone=g$4(q$3);_queries=new Map;_destroySubject=new ye$5;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return Ze$2(Ft$2(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=Ze$2(Ft$2(t)).map(r=>this._registerQuery(r).observable),a=iE(o);return a=dr$3(a.pipe(bn$3(1)),a.pipe(EE(1),Bf$1(0))),a.pipe(ve$4(r=>{let c={matches:false,breakpoints:{}};return r.forEach(({matches:m,query:v})=>{c.matches=c.matches||m,c.breakpoints[v]=m;}),c}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let e=this._mediaMatcher.matchMedia(t),a={observable:new R$4(r=>{let c=m=>this._zone.run(()=>r.next(m));return e.addListener(c),()=>{e.removeListener(c);}}).pipe(Jf(e),ve$4(({matches:r})=>({query:t,matches:r})),Hf$1(this._destroySubject)),mql:e};return this._queries.set(t,a),a}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();function Ze$2(n){return n.map(i=>i.split(",")).reduce((i,t)=>i.concat(t)).map(i=>i.trim())}function Ye$4(n,...i){return i.length?i.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var qi$2={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)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)"};var Wn$1=new I$4("cdk-dir-doc",{providedIn:"root",factory:()=>g$4(Y$3)}),$n$1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Yt$3(n){let i=n?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?$n$1.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var qe$4=(()=>{class n{get value(){return this.valueSignal()}valueSignal=Es$1("ltr");change=new kt$3;constructor(){let t=g$4(Wn$1,{optional:true});if(t){let e=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Yt$3(e||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var co$2=(()=>{class n{_isInitialized=false;_rawDir="";change=new kt$3;get dir(){return this.valueSignal()}set dir(t){let e=this.valueSignal();this.valueSignal.set(Yt$3(t)),this._rawDir=t,e!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal());}get value(){return this.dir}valueSignal=Es$1("ltr");ngAfterContentInit(){this._isInitialized=true;}ngOnDestroy(){this.change.complete();}static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","dir",""]],hostVars:1,hostBindings:function(e,o){e&2&&ly("dir",o._rawDir);},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[tS([{provide:qe$4,useExisting:n}])]})}return n})(),it$2=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({})}return n})();var mt$3=(function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n})(mt$3||{}),Nt$1,G$4;function mo$2(){if(G$4==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return G$4=false,G$4;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)G$4=true;else {let n=Element.prototype.scrollTo;n?G$4=!/\{\s*\[native code\]\s*\}/.test(n.toString()):G$4=false;}}return G$4}function uo$2(){if(typeof document!="object"||!document)return mt$3.NORMAL;if(Nt$1==null){let n=document.createElement("div"),i=n.style;n.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let t=document.createElement("div"),e=t.style;e.width="2px",e.height="1px",n.appendChild(t),document.body.appendChild(n),Nt$1=mt$3.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,Nt$1=n.scrollLeft===0?mt$3.NEGATED:mt$3.INVERTED),n.remove();}return Nt$1}var qt$4;function Qe$3(){if(qt$4==null){let n=typeof document<"u"?document.head:null;qt$4=!!(n&&(n.createShadowRoot||n.attachShadow));}return qt$4}function Qt$3(n){if(Qe$3()){let i=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Xt$4(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let i=n.shadowRoot.activeElement;if(i===n)break;n=i;}return n}function F$5(n){return n.composedPath?n.composedPath()[0]:n.target}function fo$2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Moc
vendor: 7,903 bytes, line 6
6ha}var ut$3;function Xe$2(){if(ut$3==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ut$3=!0}));}finally{ut$3=ut$3||false;}return ut$3}function ot$2(n){return Xe$2()?n:!!n.capture}var at$1,Je$4=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function _o$2(){if(at$1)return at$1;if(typeof document!="object"||!document)return at$1=new Set(Je$4),at$1;let n=document.createElement("input");return at$1=new Set(Je$4.filter(i=>(n.setAttribute("type",i),n.type===i))),at$1}function pt$2(n){return n.buttons===0||n.detail===0}function bt$4(n){let i=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return !!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}function Jt$4(n,i=0){return tn$2(n)?Number(n):arguments.length===2?i:0}function tn$2(n){return !isNaN(parseFloat(n))&&!isNaN(Number(n))}function N$3(n){return n instanceof Vt$3?n.nativeElement:n}var en$2=new I$4("cdk-input-modality-detector-options"),nn$1={ignoreKeys:[18,17,224,91,16]},on$1=650,te$4={passive:true,capture:true},an$2=(()=>{class n{_platform=g$4(_$7);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Jr$1(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(e=>e===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=F$5(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<on$1||(this._modality.next(pt$2(t)?"keyboard":"mouse"),this._mostRecentTarget=F$5(t));};_onTouchstart=t=>{if(bt$4(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=F$5(t);};constructor(){let t=g$4(q$3),e=g$4(Y$3),o=g$4(en$2,{optional:true});if(this._options=D$6(D$6({},nn$1),o),this.modalityDetected=this._modality.pipe(EE(1)),this.modalityChanged=this.modalityDetected.pipe(Vf$1()),this._platform.isBrowser){let a=g$4(Kn$3).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[a.listen(e,"keydown",this._onKeydown,te$4),a.listen(e,"mousedown",this._onMousedown,te$4),a.listen(e,"touchstart",this._onTouchstart,te$4)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),ft$3=(function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n})(ft$3||{}),rn$1=new I$4("cdk-focus-monitor-default-options"),Rt$3=ot$2({passive:true,capture:true}),Ot=(()=>{class n{_ngZone=g$4(q$3);_platform=g$4(_$7);_inputModalityDetector=g$4(an$2);_origin=null;_lastFocusOrigin=null;_windowFocused=false;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=false;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=true,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=false);};_document=g$4(Y$3);_stopInputModalityDetector=new ye$5;constructor(){let t=g$4(rn$1,{optional:true});this._detectionMode=t?.detectionMode||ft$3.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let e=F$5(t);for(let o=e;o;o=o.parentElement)t.type==="focus"?this._onFocus(t,o):this._onBlur(t,o);};monitor(t,e=false){let o=N$3(t);if(!this._platform.isBrowser||o.nodeType!==1)return ki$3();let a=Qt$3(o)||this._document,r=this._elementInfo.get(o);if(r)return e&&(r.checkChildren=true),r.subject;let c={checkChildren:e,subject:new ye$5,rootNode:a};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(t){let e=N$3(t),o=this._elementInfo.get(e);o&&(o.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(o));}focusVia(t,e,o){let a=N$3(t),r=this._document.activeElement;a===r?this._getClosestElementsInfo(a).forEach(([c,m])=>this._originChanged(c,e,m)):(this._setOrigin(e),typeof a.focus=="function"&&a.focus(o));}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===ft$3.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,e){t.classList.toggle("cdk-focused",!!e),t.classList.toggle("cdk-touch-focused",e==="touch"),t.classList.toggle("cdk-keyboard-focused",e==="keyboard"),t.classList.toggle("cdk-mouse-focused",e==="mouse"),t.classList.toggle("cdk-program-focused",e==="program");}_setOrigin(t,e=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&e,this._detectionMode===ft$3.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?on$1:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(t,e){let o=this._elementInfo.get(e),a=F$5(t);!o||!o.checkChildren&&e!==a||this._originChanged(e,this._getFocusOrigin(a),o);}_onBlur(t,e){let o=this._elementInfo.get(e);!o||o.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(o,null));}_emitOrigin(t,e){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(e));}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let e=t.rootNode,o=this._rootNodeFocusListenerCount.get(e)||0;o||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Rt$3),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Rt$3);}),this._rootNodeFocusListenerCount.set(e,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Hf$1(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,true);}));}_removeGlobalListeners(t){let e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){let o=this._rootNodeFocusListenerCount.get(e);o>1?this._rootNodeFocusListenerCount.set(e,o-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Rt$3),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Rt$3),this._rootNodeFocusListenerCount.delete(e));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(t,e,o){this._setClasses(t,e),this._emitOrigin(o,e),this._lastFocusOrigin=e;}_getClosestElementsInfo(t){let e=[];return this._elementInfo.forEach((o,a)=>{(a===t||o.checkChildren&&a.contains(t))&&e.push([a,o]);}),e}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:e,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!e||e===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return false;let a=t.labels;if(a){for(let r=0;r<a.length;r++)if(a[r].contains(e))return true}return false}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),Gn$1=(()=>{class n{_elementRef=g$4(Vt$3);_focusMonitor=g$4(Ot);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new kt$3;get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(e=>{this._focusOrigin=e,this.cdkFocusChange.emit(e);});}
6ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe();}static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return n})();var Lt$3=new WeakMap,P$3=(()=>{class n{_appRef;_injector=g$4(Ee$4);_environmentInjector=g$4(pe$6);load(t){let e=this._appRef=this._appRef||this._injector.get(Ur$1),o=Lt$3.get(e);o||(o={loaders:new Set,refs:[]},Lt$3.set(e,o),e.onDestroy(()=>{Lt$3.get(e)?.refs.forEach(a=>a.destroy()),Lt$3.delete(e);})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push(wU(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var Bt$1=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(e,o){},styles:[`.cdk-visually-hidden { 7 border: 0; 8 clip: rect(0 0 0 0); 9 height: 1px; 10 margin: -1px; 11 overflow: hidden; 12 padding: 0; 13 position: absolute; 14 width: 1px; 15 white-space: nowrap; 16 outline: 0; 17 -webkit-appearance: none; 18 -moz-appearance: none; 19 left: 0; 20} 21[dir=rtl] .cdk-visually-hidden { 22 left: auto; 23 right: 0; 24} 25`],encapsulation:2})}return n})(),Pt$2;function Zn$1(){if(Pt$2===void 0&&(Pt$2=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(Pt$2=n.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}));}return Pt$2}function Z$2(n){return Zn$1()?.createHTML(n)||n}function sn$1(n,i,t){let e=t.sanitize(ze$3.HTML,i);n.innerHTML=Z$2(e||"");}function Yn$1(n){if(n.type==="characterData"&&n.target instanceof Comment)return true;if(n.type==="childList"){for(let i=0;i<n.addedNodes.length;i++)if(!(n.addedNodes[i]instanceof Comment))return false;for(let i=0;i<n.removedNodes.length;i++)if(!(n.removedNodes[i]instanceof Comment))return false;return true}return false}var cn$1=(()=>{class n{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),dn$1=(()=>{class n{_mutationObserverFactory=g$4(cn$1);_observedElements=new Map;_ngZone=g$4(q$3);ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e));}observe(t){let e=N$3(t);return new R$4(o=>{let r=this._observeElement(e).pipe(ve$4(c=>c.filter(m=>!Yn$1(m))),Yt$5(c=>!!c.length)).subscribe(c=>{this._ngZone.run(()=>{o.next(c);});});return ()=>{r.unsubscribe(),this._unobserveElement(e);}})}_observeElement(t){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(t))this._observedElements.get(t).count++;else {let e=new ye$5,o=this._mutationObserverFactory.create(a=>e.next(a));o&&o.observe(t,{characterData:true,childList:true,subtree:true}),this._observedElements.set(t,{observer:o,stream:e,count:1});}return this._observedElements.get(t).stream})}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t));}_cleanupObserver(t){if(this._observedElements.has(t)){let{observer:e,stream:o}=this._observedElements.get(t);e&&e.disconnect(),o.complete(),this._observedElements.delete(t);}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),sa$2=(()=>{class n{_contentObserver=g$4(dn$1);_elementRef=g$4(Vt$3);event=new kt$3;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled?this._unsubscribe():this._subscribe();}_disabled=false;get debounce(){return this._debounce}set debounce(t){this._debounce=Jt$4(t),this._subscribe();}_debounce;_currentSubscription=null;ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe();}ngOnDestroy(){this._unsubscribe();}_subscribe(){this._unsubscribe();let t=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?t.pipe(Bf$1(this.debounce)):t).subscribe(this.event);}_unsubscribe(){this._currentSubscription?.unsubscribe();}static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",tM$1],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return n})(),ln$1=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({providers:[cn$1]})}return n})();var bn$1=(()=>{class n{_platform=g$4(_$7);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return Qn$1(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let e=qn$1(ai$1(t));if(e&&(mn$1(e)===-1||!this.isVisible(e)))return false;let o=t.nodeName.toLowerCase(),a=mn$1(t);return t.hasAttribute("contenteditable")?a!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!ii$2(t)?false:o==="audio"?t.hasAttribute("controls")?a!==-1:false:o==="video"?a===-1?false:a!==null?true:this._platform.FIRE
vendor: 5,610 bytes, line 25
25FOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,e){return oi$1(t)&&!this.isDisabled(t)&&(e?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();function qn$1(n){try{return n.frameElement}catch(i){return null}}function Qn$1(n){return !!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function Xn$1(n){let i=n.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function Jn$1(n){return ei$2(n)&&n.type=="hidden"}function ti$2(n){return ni$2(n)&&n.hasAttribute("href")}function ei$2(n){return n.nodeName.toLowerCase()=="input"}function ni$2(n){return n.nodeName.toLowerCase()=="a"}function fn(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return false;let i=n.getAttribute("tabindex");return !!(i&&!isNaN(parseInt(i,10)))}function mn$1(n){if(!fn(n))return null;let i=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function ii$2(n){let i=n.nodeName.toLowerCase(),t=i==="input"&&n.type;return t==="text"||t==="password"||i==="select"||i==="textarea"}function oi$1(n){return Jn$1(n)?false:Xn$1(n)||ti$2(n)||n.hasAttribute("contenteditable")||fn(n)}function ai$1(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var Ut$3=class Ut{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor));}_enabled=true;constructor(i,t,e,o,a=false,r){this._element=i,this._checker=t,this._ngZone=e,this._document=o,this._injector=r,a||this.attachAnchors();}destroy(){let i=this._startAnchor,t=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false;}attachAnchors(){return this._hasAttached?true:(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=true),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(i)));})}focusFirstTabbableElementWhenReady(i){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(i)));})}focusLastTabbableElementWhenReady(i){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(i)));})}_getRegionBoundary(i){let t=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let e=this._getFirstTabbableElement(t);return e?.focus(i),!!e}return t.focus(i),true}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let t=this._getRegionBoundary("start");return t&&t.focus(i),!!t}focusLastTabbableElement(i){let t=this._getRegionBoundary("end");return t&&t.focus(i),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let t=i.children;for(let e=0;e<t.length;e++){let o=t[e].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[e]):null;if(o)return o}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let t=i.children;for(let e=t.length-1;e>=0;e--){let o=t[e].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[e]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,t){i?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex");}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor));}_executeOnStable(i){Jg(i,{injector:this._injector});}},hn$1=(()=>{class n{_checker=g$4(bn$1);_ngZone=g$4(q$3);_document=g$4(Y$3);_injector=g$4(Ee$4);constructor(){g$4(P$3).load(Bt$1);}create(t,e=false){return new Ut$3(t,this._checker,this._ngZone,this._document,e,this._injector)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),ri$1=(()=>{class n{_elementRef=g$4(Vt$3);_focusTrapFactory=g$4(hn$1);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||false}set enabled(t){this.focusTrap&&(this.focusTrap.enabled=t);}autoCapture=false;constructor(){g$4(_$7).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,true));}
25ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null);}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus();}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors();}ngOnChanges(t){let e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus();}_captureFocus(){this._previouslyFocusedElement=Xt$4(),this.focusTrap?.focusInitialElementWhenReady();}static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",tM$1],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",tM$1]},exportAs:["cdkTrapFocus"],features:[El$2]})}return n})(),vn$1=new I$4("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),_n=new I$4("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),si$1=0,ci$2=(()=>{class n{_ngZone=g$4(q$3);_defaultOptions=g$4(_n,{optional:true});_liveElement;_document=g$4(Y$3);_sanitizer=g$4($N);_previousTimeout;_currentPromise;_currentResolve;constructor(){let t=g$4(vn$1,{optional:true});this._liveElement=t||this._createLiveElement();}announce(t,...e){let o=this._defaultOptions,a,r;return e.length===1&&typeof e[0]=="number"?r=e[0]:[a,r]=e,this.clear(),clearTimeout(this._previousTimeout),a||(a=o&&o.politeness?o.politeness:"polite"),r==null&&o&&(r=o.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!t||typeof t=="string"?this._liveElement.textContent=t:sn$1(this._liveElement,t,this._sanitizer),typeof r=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),r)),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 t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),o=this._document.createElement("div");for(let a=0;a<e.length;a++)e[a].remove();return o.classList.add(t),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id=`cdk-live-announcer-${si$1++}`,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(t){let e=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<e.length;o++){let a=e[o],r=a.getAttribute("aria-owns");r?r.indexOf(t)===-1&&a.setAttribute("aria-owns",r+" "+t):a.setAttribute("aria-owns",t);}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var H$1=(function(n){return n[n.NONE=0]="NONE",n[n.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",n[n.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",n})(H$1||{}),un="cdk-high-contrast-black-on-white",pn$1="cdk-high-contrast-white-on-black",ee$3="cdk-high-contrast-active",gn=(()=>{class n{_platform=g$4(_$7);_hasCheckedHighContrastMode=false;_document=g$4(Y$3);_breakpointSubscription;constructor(){this._breakpointSubscription=g$4(Zt$3).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return H$1.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let e=this._document.defaultView||window,o=e&&e.getComputedStyle?e.getComputedStyle(t):null,a=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),a){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return H$1.WHITE_ON_BLACK;case "rgb(255,255,255)":case "rgb(255,250,239)":return H$1.BLACK_ON_WHITE}return H$1.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}
25_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(ee$3,un,pn$1),this._hasCheckedHighContrastMode=true;let e=this.getHighContrastMode();e===H$1.BLACK_ON_WHITE?t.add(ee$3,un):e===H$1.WHITE_ON_BLACK&&t.add(ee$3,pn$1);}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),di$1=(()=>{class n{constructor(){g$4(gn)._applyBodyHighContrastModeCssClasses();}static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[ln$1]})}return n})();var li$1=200,rt$2=class rt{_letterKeyStream=new ye$5;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ye$5;selectedItem=this._selectedItem;constructor(i,t){let e=typeof t?.debounceInterval=="number"?t.debounceInterval:li$1;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(i),this._setupKeyHandler(e);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i;}setItems(i){this._items=i;}handleKey(i){let t=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(i){this._letterKeyStream.pipe(Uf$1(t=>this._pressedLetters.push(t)),Bf$1(i),Yt$5(()=>this._pressedLetters.length>0),ve$4(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let e=1;e<this._items.length+1;e++){let o=(this._selectedItemIndex+e)%this._items.length,a=this._items[o];if(!this._skipPredicateFn?.(a)&&a.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(a);break}}this._pressedLetters=[];});}};var st$1=class st{_items;_activeItemIndex=Es$1(-1);_activeItem=Es$1(null);_wrap=false;_typeaheadSubscription=W$4.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,t){this._items=i,i instanceof Vs$2?this._itemChangesSubscription=i.changes.subscribe(e=>this._itemsChanged(e.toArray())):No$1(i)&&(this._effectRef=ih$1(()=>this._itemsChanged(i()),{injector:t}));}tabOut=new ye$5;change=new ye$5;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=true){return this._wrap=i,this}withVerticalOrientation(i=true){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new rt$2(t,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.setActiveItem(e);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=true){return this._homeAndEnd=i,this}withPageUpDown(i=true,t=10){return this._pageUpAndDown={enabled:i,delta:t},this}setActiveItem(i){let t=this._activeItem();this.updateActiveItem(i),this._activeItem()!==t&&this.change.next(this._activeItemIndex());}onKeydown(i){let t=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(a=>!i[a]||this._allowedModifierKeys.indexOf(a)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let a=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(a>0?a:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let a=this._activeItemIndex()+this._pageUpAndDown.delta,r=this._getItemsArray().length;this._setActiveItemByIndex(a<r?a:r-1,-1);break}else return;default:(o||Ye$4(i,"shiftKey"))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.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(i){let t=this._getItemsArray(),e=typeof i=="number"?i:t.indexOf(i),o=t[e];this._activeItem.set(o??null),this._activeItemIndex.set(e),this._typeahead?.setCurrentSelectedItemIndex(e);}
25destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i);}_setActiveInWrapMode(i){let t=this._getItemsArray();for(let e=1;e<=t.length;e++){let o=(this._activeItemIndex()+i*e+t.length)%t.length,a=t[o];if(!this._skipPredicateFn(a)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex()+i,i);}_setActiveItemByIndex(i,t){let e=this._getItemsArray();if(e[i]){for(;this._skipPredicateFn(e[i]);)if(i+=t,!e[i])return;this.setActiveItem(i);}}_getItemsArray(){return No$1(this._items)?this._items():this._items instanceof Vs$2?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let t=this._activeItem();if(t){let e=i.indexOf(t);e>-1&&e!==this._activeItemIndex()&&(this._activeItemIndex.set(e),this._typeahead?.setCurrentSelectedItemIndex(e));}}};var ne$4=class ne extends st$1{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles();}};var ie$3=class ie extends st$1{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin);}};function oe$4(n){return nE(n)?n:ki$3(n)}var ae$3=class ae{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=false;_horizontalOrientation="ltr";_skipPredicateFn=i=>false;_trackByFn=i=>i;_items=[];_typeahead;_typeaheadSubscription=W$4.EMPTY;_hasInitialFocused=false;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let i=0;for(let e=0;e<this._items.length;e++)if(!this._skipPredicateFn(this._items[e])&&!this._isItemDisabled(this._items[e])){i=e;break}let t=this._items[i];t.makeFocusable?(this._activeItem?.unfocus(),this._activeItemIndex=i,this._activeItem=t,this._typeahead?.setCurrentSelectedItemIndex(i),t.makeFocusable()):this.focusItem(i),this._hasInitialFocused=true;}constructor(i,t){i instanceof Vs$2?(this._items=i.toArray(),i.changes.subscribe(e=>this._itemsChanged(e.toArray()))):nE(i)?i.subscribe(e=>this._itemsChanged(e)):(this._items=i,this._initializeFocus()),typeof t.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=t.shouldActivationFollowFocus),t.horizontalOrientation&&(this._horizontalOrientation=t.horizontalOrientation),t.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),t.trackBy&&(this._trackByFn=t.trackBy),typeof t.typeAheadDebounceInterval<"u"&&this._setTypeAhead(t.typeAheadDebounceInterval);}change=new ye$5;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete();}onKeydown(i){switch(i.key){case "Tab":return;case "ArrowDown":this._focusNextItem();break;case "ArrowUp":this._focusPreviousItem();break;case "ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case "ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case "Home":this._focusFirstItem();break;case "End":this._focusLastItem();break;case "Enter":case " ":this._activateCurrentItem();break;default:if(i.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault();}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_itemsChanged(i){this._hasInitialFocused&&this._activeItem&&!i.includes(this._activeItem)&&(this._activeItem=null,this._hasInitialFocused=false),this._items=i,this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus();}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1));}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length));}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex));}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex));}focusItem(i,t={}){t.emitChangeEvent??=true;let e=typeof i=="number"?i:this._items.findIndex(r=>this._trackByFn(r)===this._trackByFn(i));if(e<0||e>=this._items.length)return;let o=this._items[e];if(this._activeItem!==null&&this._trackByFn(o)===this._trackByFn(this._activeItem))return;let a=this._activeItem;this._activeItem=o??null,this._activeItemIndex=e,this._typeahead?.setCurrentSelectedItemIndex(e),this._activeItem?.focus(),a?.unfocus(),t.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem();}_updateActiveItemIndex(i){let t=this._activeItem;if(!t)return;let e=i.findIndex(o=>this._trackByFn(o)===this._trackByFn(t));e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e,this._typeahead?.setCurrentSelectedItemIndex(e));}_setTypeAhead(i){this._typeahead=new rt$2(this._items,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:t=>this._skipPredicateFn(t)}
25),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.focusItem(t);});}_findNextAvailableItemIndex(i){for(let t=i+1;t<this._items.length;t++)if(!this._skipPredicateFn(this._items[t]))return t;return i}_findPreviousAvailableItemIndex(i){for(let t=i-1;t>=0;t--)if(!this._skipPredicateFn(this._items[t]))return t;return i}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else {let i=this._activeItem.getParent();if(!i||this._skipPredicateFn(i))return;this.focusItem(i);}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?oe$4(this._activeItem.getChildren()).pipe(bn$3(1)).subscribe(i=>{let t=i.find(e=>!this._skipPredicateFn(e));t&&this.focusItem(t);}):this._activeItem.expand());}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():false}_isItemDisabled(i){return typeof i.isDisabled=="boolean"?i.isDisabled:i.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let i=this._activeItem.getParent(),t;i?t=oe$4(i.getChildren()):t=ki$3(this._items.filter(e=>e.getParent()===null)),t.pipe(bn$3(1)).subscribe(e=>{for(let o of e)o.expand();});}_activateCurrentItem(){this._activeItem?.activate();}},tr$2=new I$4("tree-key-manager",{providedIn:"root",factory:()=>(n,i)=>new ae$3(n,i)});var yn=new Map,re$4=class n{_appId=g$4(_o$4);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,t=false){this._appId!=="ng"&&(i+=this._appId);let e=yn.get(i);return e===void 0?e=0:e++,yn.set(i,e),`${i}${t?n._infix+"-":""}${e}`}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})};var xn$1=" ";function mi$1(n,i,t){let e=jt$3(n,i);t=t.trim(),!e.some(o=>o.trim()===t)&&(e.push(t),n.setAttribute(i,e.join(xn$1)));}function ui$1(n,i,t){let e=jt$3(n,i);t=t.trim();let o=e.filter(a=>a!==t);o.length?n.setAttribute(i,o.join(xn$1)):n.removeAttribute(i);}function jt$3(n,i){return n.getAttribute(i)?.match(/\S+/g)??[]}var En$1="cdk-describedby-message",zt$2="cdk-describedby-host",ce$2=0,pr$2=(()=>{class n{_platform=g$4(_$7);_document=g$4(Y$3);_messageRegistry=new Map;_messagesContainer=null;_id=`${ce$2++}`;constructor(){g$4(P$3).load(Bt$1),this._id=g$4(_o$4)+"-"+ce$2++;}describe(t,e,o){if(!this._canBeDescribed(t,e))return;let a=se$4(e,o);typeof e!="string"?(In$1(e,this._id),this._messageRegistry.set(a,{messageElement:e,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(e,o),this._isElementDescribedByMessage(t,a)||this._addMessageReference(t,a);}removeDescription(t,e,o){if(!e||!this._isElementNode(t))return;let a=se$4(e,o);if(this._isElementDescribedByMessage(t,a)&&this._removeMessageReference(t,a),typeof e=="string"){let r=this._messageRegistry.get(a);r&&r.referenceCount===0&&this._deleteMessageElement(a);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let t=this._document.querySelectorAll(`[${zt$2}="${this._id}"]`);for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(zt$2);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(t,e){let o=this._document.createElement("div");In$1(o,this._id),o.textContent=t,e&&o.setAttribute("role",e),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(se$4(t,e),{messageElement:o,referenceCount:0});}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t);}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",e=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let a=0;a<e.length;a++)e[a].remove();let o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(t),o.classList.add("cdk-visually-hidden"),this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o;}_removeCdkDescribedByReferenceIds(t){let e=jt$3(t,"aria-describedby").filter(o=>o.indexOf(En$1)!=0);t.setAttribute("aria-describedby",e.join(" "));}_addMessageReference(t,e){let o=this._messageRegistry.get(e);mi$1(t,"aria-describedby",o.messageElement.id),t.setAttribute(zt$2,this._id),o.referenceCount++;}_removeMessageReference(t,e){let o=this._messageRegistry.get(e);o.referenceCount--,ui$1(t,"aria-describedby",o.messageElement.id),t.removeAttribute(zt$2);}
25_isElementDescribedByMessage(t,e){let o=jt$3(t,"aria-describedby"),a=this._messageRegistry.get(e),r=a&&a.messageElement.id;return !!r&&o.indexOf(r)!=-1}_canBeDescribed(t,e){if(!this._isElementNode(t))return false;if(e&&typeof e=="object")return true;let o=e==null?"":`${e}`.trim(),a=t.getAttribute("aria-label");return o?!a||a.trim()!==o:false}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();function se$4(n,i){return typeof n=="string"?`${i||""}/${n}`:n}function In$1(n,i){n.id||(n.id=`${En$1}-${i}-${ce$2++}`);}function Ir$1(n){return n==null?"":typeof n=="string"?n:`${n}px`}function Er$2(n){return n!=null&&`${n}`!="false"}function wr$2(n,i=/\s+/){let t=[];if(n!=null){let e=Array.isArray(n)?n:`${n}`.split(i);for(let o of e){let a=`${o}`.trim();a&&t.push(a);}}return t}var pi$1=new I$4("MATERIAL_ANIMATIONS"),wn=null;function bi$1(){return g$4(pi$1,{optional:true})?.animationsDisabled||g$4(aI,{optional:true})==="NoopAnimations"?"di-disabled":(wn??=g$4(St$3).matchMedia("(prefers-reduced-motion)").matches,wn?"reduced-motion":"enabled")}function ct$1(){return bi$1()!=="enabled"}var D$4=(function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n})(D$4||{}),de$3=class de{_renderer;element;config;_animationForciblyDisabledThroughCss;state=D$4.HIDDEN;constructor(i,t,e,o=false){this._renderer=i,this.element=t,this.config=e,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},An$1=ot$2({passive:true,capture:true}),le$1=class le{_events=new Map;addHandler(i,t,e,o){let a=this._events.get(t);if(a){let r=a.get(e);r?r.add(o):a.set(e,new Set([o]));}else this._events.set(t,new Map([[e,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,An$1);});}removeHandler(i,t,e){let o=this._events.get(i);if(!o)return;let a=o.get(t);a&&(a.delete(e),a.size===0&&o.delete(t),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,An$1)));}_delegateEventHandler=i=>{let t=F$5(i);t&&this._events.get(i.type)?.forEach((e,o)=>{(o===t||o.contains(t))&&e.forEach(a=>a.handleEvent(i));});}},ht$3={enterDuration:225,exitDuration:150},fi$1=800,Tn=ot$2({passive:true,capture:true}),Mn$1=["mousedown","touchstart"],Cn=["mouseup","mouseleave","touchend","touchcancel"],hi$2=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(e,o){},styles:[`.mat-ripple { 26 overflow: hidden; 27 position: relative; 28} 29.mat-ripple:not(:empty) { 30 transform: translateZ(0); 31} 32 33.mat-ripple.mat-ripple-unbounded { 34 overflow: visible; 35} 36 37.mat-ripple-element { 38 position: absolute; 39 border-radius: 50%; 40 pointer-events: none; 41 transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1); 42 transform: scale3d(0, 0, 0); 43 background-color: var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent)); 44} 45@media (forced-colors: active) { 46 .mat-ripple-element { 47 display: none; 48 } 49} 50.cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element { 51 display: none; 52} 53`],encapsulation:2})}return n})(),vt$5=class n{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new le$1;constructor(i,t,e,o,a){this._target=i,this._ngZone=t,this._platform=o,o.isBrowser&&(this._containerElement=N$3(e)),a&&a.get(P$3).load(hi$2);}fadeInRipple(i,t,e={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=D$6(D$6({},ht$3),e.animation);e.centered&&(i=o.left+o.width/2,t=o.top+o.height/2);let r=e.radius||vi(i,t,o),c=i-o.left,m=t-o.top,v=a.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${c-r}px`,u.style.top=`${m-r}px`,u.style.height=`${r*2}px`,u.style.width=`${r*2}px`,e.color!=null&&(u.style.backgroundColor=e.color),u.style.transitionDuration=`${v}ms`,this._containerElement.appendChild(u);let he=window.getComputedStyle(u),Hn=he.transitionProperty,ve=he.transitionDuration,Kt=Hn==="none"||ve==="0s"||ve==="0s, 0s"||o.width===0&&o.height===0,V=new de$3(this,u,e,Kt);u.style.transform="scale3d(1, 1, 1)",V.state=D$4.FADING_IN,e.persistent||(this._mostRecentTransientRipple=V);let yt=null;return !Kt&&(v||a.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let _e=()=>{yt&&(yt.fallbackTimer=null),clearTimeout(ge),this._finishRippleTransition(V);},Wt=()=>this._destroyRipple(V),ge=setTimeout(Wt,v+100);u.addEventListener("transitionend",_e),u.addEventListener("transitioncancel",Wt),yt={onTransitionEnd:_e,onTransitionCancel:Wt,fallbackTimer:ge};}),this._activeRipples.set(V,yt),(Kt||!v)&&this._finishRippleTransition(V),V}fadeOutRipple(i){if(i.state===D$4.FADING_OUT||i.state===D$4.HIDDEN)return;let t=i.element,e=D$6(D$6({},ht$3),i.config.animation);t.style.transitionDuration=`${e.exitDuration}ms`,t.style.opacity="0",i.state=D$4.FADING_OUT,(i._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(i);}
53fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut();});}setupTriggerEvents(i){let t=N$3(i);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Mn$1.forEach(e=>{n._eventManager.addHandler(this._ngZone,e,t,this);}));}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Cn.forEach(t=>{this._triggerElement.addEventListener(t,this,Tn);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(i){i.state===D$4.FADING_IN?this._startFadeOutTransition(i):i.state===D$4.FADING_OUT&&this._destroyRipple(i);}_startFadeOutTransition(i){let t=i===this._mostRecentTransientRipple,{persistent:e}=i.config;i.state=D$4.VISIBLE,!e&&(!t||!this._isPointerDown)&&i.fadeOut();}_destroyRipple(i){let t=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=D$4.HIDDEN,t!==null&&(i.element.removeEventListener("transitionend",t.onTransitionEnd),i.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),i.element.remove();}_onMousedown(i){let t=pt$2(i),e=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+fi$1;!this._target.rippleDisabled&&!t&&!e&&(this._isPointerDown=true,this.fadeInRipple(i.clientX,i.clientY,this._target.rippleConfig));}_onTouchStart(i){if(!this._target.rippleDisabled&&!bt$4(i)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let t=i.changedTouches;if(t)for(let e=0;e<t.length;e++)this.fadeInRipple(t[e].clientX,t[e].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(i=>{let t=i.state===D$4.VISIBLE||i.config.terminateOnPointerUp&&i.state===D$4.FADING_IN;!i.config.persistent&&t&&i.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(Mn$1.forEach(t=>n._eventManager.removeHandler(t,i,this)),this._pointerUpEventsRegistered&&(Cn.forEach(t=>
53i.removeEventListener(t,this,Tn)),this._pointerUpEventsRegistered=false));}};function vi(n,i,t){let e=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),o=Math.max(Math.abs(i-t.top),Math.abs(i-t.bottom));return Math.sqrt(e*e+o*o)}var me$4=new I$4("mat-ripple-global-options"),jr$1=(()=>{class n{_elementRef=g$4(Vt$3);_animationsDisabled=ct$1();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let t=g$4(q$3),e=g$4(_$7),o=g$4(me$4,{optional:true}),a=g$4(Ee$4);this._globalOptions=o||{},this._rippleRenderer=new vt$5(this,t,this._elementRef,e,a);}ngOnInit(){this._isInitialized=true,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:D$6(D$6(D$6({},this._globalOptions.animation),this._animationsDisabled?{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(t,e=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,e,D$6(D$6({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,D$6(D$6({},this.rippleConfig),t))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,o){e&2&&xy("mat-ripple-unbounded",o.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"]})}return n})();var Dn$1=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();function kn$1(n){return Error(`Unable to find icon with the name "${n}"`)}function _i$1(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Fn(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Sn(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var B$3=class B{url;svgText;options;svgElement=null;constructor(i,t,e){this.url=i,this.svgText=t,this.options=e;}},Rn=(()=>{class n{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(t,e,o,a){this._httpClient=t,this._sanitizer=e,this._errorHandler=a,this._document=o;}addSvgIcon(t,e,o){return this.addSvgIconInNamespace("",t,e,o)}addSvgIconLiteral(t,e,o){return this.addSvgIconLiteralInNamespace("",t,e,o)}addSvgIconInNamespace(t,e,o,a){return this._addSvgIconConfig(t,e,new B$3(o,null,a))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,o,a){let r=this._sanitizer.sanitize(ze$3.HTML,o);if(!r)throw Sn(o);let c=Z$2(r);return this._addSvgIconConfig(t,e,new B$3("",c,a))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,o){return this._addSvgIconSetConfig(t,new B$3(e,null,o))}addSvgIconSetLiteralInNamespace(t,e,o){let a=this._sanitizer.sanitize(ze$3.HTML,e);if(!a)throw Sn(e);let r=Z$2(a);return this._addSvgIconSetConfig(t,new B$3("",r,o))}
53registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let e=this._sanitizer.sanitize(ze$3.RESOURCE_URL,t);if(!e)throw Fn(t);let o=this._cachedIconsByUrl.get(e);return o?ki$3(Ht$4(o)):this._loadSvgIconFromConfig(new B$3(t,null)).pipe(Uf$1(a=>this._cachedIconsByUrl.set(e,a)),ve$4(a=>Ht$4(a)))}getNamedSvgIcon(t,e=""){let o=Nn$1(e,t),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(e,t),a)return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);let r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):PD(kn$1(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear();}_getSvgFromConfig(t){return t.svgText?ki$3(Ht$4(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(ve$4(e=>Ht$4(e)))}_getSvgFromIconSetConfigs(t,e){let o=this._extractIconWithNameFromAnySet(t,e);if(o)return ki$3(o);let a=e.filter(r=>!r.svgText).map(r=>this._loadSvgIconSetFromConfig(r).pipe(uc$1(c=>{let v=`Loading icon set URL: ${this._sanitizer.sanitize(ze$3.RESOURCE_URL,r.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(v)),ki$3(null)})));return zD(a).pipe(ve$4(()=>{let r=this._extractIconWithNameFromAnySet(t,e);if(!r)throw kn$1(t);return r}))}_extractIconWithNameFromAnySet(t,e){for(let o=e.length-1;o>=0;o--){let a=e[o];if(a.svgText&&a.svgText.toString().indexOf(t)>-1){let r=this._svgElementFromConfig(a),c=this._extractSvgIconFromSet(r,t,a.options);if(c)return c}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Uf$1(e=>t.svgText=e),ve$4(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?ki$3(null):this._fetchIcon(t).pipe(Uf$1(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,o){let a=t.querySelector(`[id="${e}"]`);if(!a)return null;let r=a.cloneNode(true);if(r.removeAttribute("id"),r.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(r,o);if(r.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(r),o);let c=this._svgElementFromString(Z$2("<svg></svg>"));return c.appendChild(r),this._setSvgAttributes(c,o)}_svgElementFromString(t){let e=this._document.createElement("DIV");e.innerHTML=t;let o=e.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(t){let e=this._svgElementFromString(Z$2("<svg></svg>")),o=t.attributes;for(let a=0;a<o.length;a++){let{name:r,value:c}=o[a];r!=="id"&&e.setAttribute(r,c);}for(let a=0;a<t.childNodes.length;a++)t.childNodes[a].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[a].cloneNode(true));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){let{url:e,options:o}=t,a=o?.withCredentials??false;if(!this._httpClient)throw _i$1();if(e==null)throw Error(`Cannot fetch icon from URL "${e}".`);let r=this._sanitizer.sanitize(ze$3.RESOURCE_URL,e);if(!r)throw Fn(e);let c=this._inProgressUrlFetches.get(r);if(c)return c;let m=this._httpClient.get(r,{responseType:"text",withCredentials:a}).pipe(ve$4(v=>Z$2(v)),Xr$1(()=>this._inProgressUrlFetches.delete(r)),yc$2());return this._inProgressUrlFetches.set(r,m),m}_addSvgIconConfig(t,e,o){return this._svgIconConfigs.set(Nn$1(t,e),o),this}_addSvgIconSetConfig(t,e){let o=this._iconSetConfigs.get(t);return o?o.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){let e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e;}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let o=0;o<this._resolvers.length;o++){let a=this._resolvers[o](e,t);if(a)return gi$1(a)?new B$3(a.url,null,a.options):new B$3(a,null)}}static \u0275fac=function(e){return new(e||n)(M$6(ED,8),M$6($N),M$6(Y$3,8),M$6(Le$4))};static \u0275prov=x$3({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Ht$4(n){return n.cloneNode(true)}function Nn$1(n,i){return n+":"+i}function gi$1(n){return !!(n.url&&n.options)}var yi$1=["*"],Ii$3=new I$4("MAT_ICON_DEFAULT_OPTIONS"),xi$1=new I$4("mat-icon-location",{providedIn:"root",factory:()=>{let n=g$4(Y$3),i=n?n.location:null;return {getPathname:()=>i?i.pathname+i.search:""}}}),On$1=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ei$2=On$1.map(n=>`[${n}]`).join(", "),wi$1=/^url\(['"]?#(.*?)['"]?\)$/,ms=(()=>{class n{_elementRef=g$4(Vt$3);_iconRegistry=g$4(Rn);_location=g$4(xi$1);_errorHandler=g$4(Le$4);_defaultColor;get color(){return this._color||this._defaultColor}set color(t){this._color=t;}_color;inline=false;get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t);}_svgIcon;get fontSet(){return this._fontSet}set fontSet(t){let e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses());}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(t){let e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses());}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=W$4.EMPTY;constructor(){let t=g$4(new nv("aria-hidden"),{optional:true}),e=g$4(Ii$3,{optional:true});e&&(e.color&&(this.color=this._defaultColor=e.color),e.fontSet&&(this.fontSet=e.fontSet)),t||this._elementRef.nativeElement.setAttribute("aria-hidden","true");}_splitIconName(t){if(!t)return ["",""];let e=t.split(":");switch(e.length){case 1:return ["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses();}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e));}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();}_usingFontIcon(){return !this.svgIcon}_setSvgElement(t){this._clearSvgElement();let e=this._location.getPathname();this._previousPath=e,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(e),this._elementRef.nativeElement.appendChild(t);}_clearSvgElement(){let t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){let o=t.childNodes[e];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove();}}
53_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,e=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>t.classList.remove(o)),e.forEach(o=>t.classList.add(o)),this._previousFontSetClass=e,this.fontIcon!==this._previousFontIconClass&&!e.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon);}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let e=this._elementsWithExternalReferences;e&&e.forEach((o,a)=>{o.forEach(r=>{a.setAttribute(r.name,`url('${t}#${r.value}')`);});});}_cacheChildrenWithExternalReferences(t){let e=t.querySelectorAll(Ei$2),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a<e.length;a++)On$1.forEach(r=>{let c=e[a],m=c.getAttribute(r),v=m?m.match(wi$1):null;if(v){let u=o.get(c);u||(u=[],o.set(c,u)),u.push({name:r,value:v[1]});}});}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[e,o]=this._splitIconName(t);e&&(this._svgNamespace=e),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,e).pipe(bn$3(1)).subscribe(a=>this._setSvgElement(a),a=>{let r=`Error retrieving icon ${e}:${o}! ${a.message}`;this._errorHandler.handleError(new Error(r));});}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(e,o){e&2&&(ly("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),x_$1(o.color?"mat-"+o.color:""),xy("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"));},inputs:{color:"color",inline:[2,"inline","inline",tM$1],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:yi$1,decls:1,vars:0,template:function(e,o){e&1&&(p_$1(),h_$1(0));},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { 54 color: var(--mat-icon-color, inherit); 55} 56 57.mat-icon { 58 -webkit-user-select: none; 59 user-select: none; 60 background-repeat: no-repeat; 61 display: inline-block; 62 fill: currentColor; 63 height: 24px; 64 width: 24px; 65 overflow: hidden; 66} 67.mat-icon.mat-icon-inline { 68 font-size: inherit; 69 height: inherit; 70 line-height: inherit; 71 width: inherit; 72} 73.mat-icon.mat-ligature-font[fontIcon]::before { 74 content: attr(fontIcon); 75} 76 77[dir=rtl] .mat-icon-rtl-mirror { 78 transform: scale(-1, 1); 79} 80 81.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon, 82.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon { 83 display: block; 84} 85.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon, 86.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon { 87 margin: auto; 88} 89`],encapsulation:2})}return n})(),us=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();var Ai$3={capture:true},Ti$1=["focus","mousedown","mouseenter","touchstart"],ue$3="mat-ripple-loader-uninitialized",pe$4="mat-ripple-loader-class-name",Ln="mat-ripple-loader-centered",Vt$2="mat-ripple-loader-disabled",Pn$1=(()=>{class n{_document=g$4(Y$3);_animationsDisabled=ct$1();_globalRippleOptions=g$4(me$4,{optional:true});_platform=g$4(_$7);_ngZone=g$4(q$3);_injector=g$4(Ee$4);_eventCleanups;_hosts=new Map;constructor(){let t=g$4(Kn$3).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Ti$1.map(e=>t.listen(this._document,e,this._onInteraction,Ai$3)));}ngOnDestroy(){let t=this._hosts.keys();for(let e of t)this.destroyRipple(e);
89this._eventCleanups.forEach(e=>e());}configureRipple(t,e){t.setAttribute(ue$3,this._globalRippleOptions?.namespace??""),(e.className||!t.hasAttribute(pe$4))&&t.setAttribute(pe$4,e.className||""),e.centered&&t.setAttribute(Ln,""),e.disabled&&t.setAttribute(Vt$2,"");}setDisabled(t,e){let o=this._hosts.get(t);o?(o.target.rippleDisabled=e,!e&&!o.hasSetUpEvents&&(o.hasSetUpEvents=true,o.renderer.setupTriggerEvents(t))):e?t.setAttribute(Vt$2,""):t.removeAttribute(Vt$2);}_onInteraction=t=>{let e=F$5(t);if(e instanceof HTMLElement){let o=e.closest(`[${ue$3}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o);}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let e=this._document.createElement("span");e.classList.add("mat-ripple",t.getAttribute(pe$4)),t.append(e);let o=this._globalRippleOptions,a=this._animationsDisabled?0:o?.animation?.enterDuration??ht$3.enterDuration,r=this._animationsDisabled?0:o?.animation?.exitDuration??ht$3.exitDuration,c={rippleDisabled:this._animationsDisabled||o?.disabled||t.hasAttribute(Vt$2),rippleConfig:{centered:t.hasAttribute(Ln),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:r}}},m=new vt$5(c,this._ngZone,e,this._platform,this._injector),v=!c.rippleDisabled;v&&m.setupTriggerEvents(t),this._hosts.set(t,{target:c,renderer:m,hasSetUpEvents:v}),t.removeAttribute(ue$3);}destroyRipple(t){let e=this._hosts.get(t);e&&(e.renderer._removeTriggerEvents(),this._hosts.delete(t));}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var Bn$1=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["structural-styles"]],decls:0,vars:0,template:function(e,o){},styles:[`.mat-focus-indicator { 90 position: relative; 91} 92.mat-focus-indicator::before { 93 top: 0; 94 left: 0; 95 right: 0; 96 bottom: 0; 97 position: absolute; 98 box-sizing: border-box; 99 pointer-events: none; 100 display: var(--mat-focus-indicator-display, none); 101 border-width: var(--mat-focus-indicator-border-width, 3px); 102 border-style: var(--mat-focus-indicator-border-style, solid); 103 border-color: var(--mat-focus-indicator-border-color, transparent); 104 border-radius: var(--mat-focus-indicator-border-radius, 4px); 105} 106.mat-focus-indicator:focus-visible::before { 107 content: ""; 108} 109 110@media (forced-colors: active) { 111 html { 112 --mat-focus-indicator-display: block; 113 } 114} 115`],encapsulation:2})}return n})();var Mi$1=["*",[["","progressIndicator",""]]],Ci$1=["*","[progressIndicator]"];function Di$1(n,i){n&1&&(md$2(0,"div",1),h_$1(1,1),yd$2());}var ki$1=new I$4("MAT_BUTTON_CONFIG");function Un$1(n){return n==null?void 0:nM(n)}var _t$3=(()=>{class n{_elementRef=g$4(Vt$3);_ngZone=g$4(q$3);_animationsDisabled=ct$1();_config=g$4(ki$1,{optional:true});_focusMonitor=g$4(Ot);_cleanupClick;_renderer=g$4(qo$1);_rippleLoader=g$4(Pn$1);_isAnchor;_isFab=false;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled();}_disableRipple=false;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled();}_disabled=false;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t;}showProgress=hU(false,{transform:tM$1});constructor(){g$4(P$3).load(Bn$1);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??false,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true),this._isAnchor&&this._setupAsAnchor();}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(t="program",e){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,e):this._elementRef.nativeElement.focus(e);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?true:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:true}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation());}));}static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(e,o){e&2&&(ly("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),x_$1(o.color?"mat-"+o.color:""),xy("mat-mdc-button-progress-indicator-shown",o.showProgress())("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled));},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",tM$1],disabled:[2,"disabled","disabled",tM$1],ariaDisabled:[2,"aria-disabled","ariaDisabled",tM$1],disabledInteractive:[2,"disabledInteractive","disabledInteractive",tM$1],tabIndex:[2,"tabIndex","tabIndex",Un$1],_tabindex:[2,"tabindex","_tabindex",Un$1],showProgress:[1,"showProgress"]}})}return n})(),Fi$2=(()=>{class n extends _t$3{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:true});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[Xm$2],ngContentSelectors:Ci$1,decls:5,vars:1,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,o){e&1&&(p_$1(Mi$1),py(0,"span",0),h_$1(1),ZT(2,Di$1,2,0,"div",1),py(3,"span",2)(4,"span",3)),e&2&&(SC(2),YT(o.showProgress()?2:-1));},styles:[`.mat-mdc-icon-button { 116 -webkit-user-select: none; 117 user-select: none; 118 display: inline-block; 119 position: relative; 120 box-sizing: border-box; 121 border: none; 122 outline: none; 123 background-color: transparent; 124 fill: currentColor; 125 text-decoration: none; 126 cursor: pointer; 127 z-index: 0; 128 overflow: visible; 129 border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%)); 130 flex-shrink: 0; 131 text-align: center; 132 width: var(--mat-icon-button-state-layer-size, 40px); 133 height: var(--mat-icon-button-state-layer-size, 40px); 134 padding: calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2); 135 font-size: var(--mat-icon-button-icon-size, 24px); 136 color: var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant)); 137 -webkit-tap-highlight-color: transparent; 138} 139.mat-mdc-icon-button .mat-mdc-button-ripple, 140.mat-mdc-icon-button .mat-mdc-button-persistent-ripple, 141.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before { 142 top: 0; 143 left: 0; 144 right: 0; 145 bottom: 0; 146 position: absolute; 147 pointer-events: none; 148 border-radius: inherit; 149} 150.mat-mdc-icon-button .mat-mdc-button-ripple { 151 overflow: hidden; 152} 153.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before { 154 content: ""; 155 opacity: 0; 156} 157.mat-mdc-icon-button .mdc-button__label, 158.mat-mdc-icon-button .mat-icon { 159 z-index: 1; 160 position: relative; 161} 162.mat-mdc-icon-button .mat-focus-indicator { 163 top: 0; 164 left: 0; 165 right: 0; 166 bottom: 0; 167 position: absolute; 168 border-radius: inherit; 169} 170.mat-mdc-icon-button:focus-visible > .mat-focus-indicator::before { 171 content: ""; 172 border-radius: inherit; 173} 174.mat-mdc-icon-button .mat-ripple-element { 175 background-color: var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 176} 177.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before { 178 background-color: var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant)); 179} 180.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 181 background-color: var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 182} 183.mat-mdc-icon-button:hover > .mat-mdc-button-persistent-ripple::before { 184 opacity: var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 185} 186.mat-mdc-icon-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 187 opacity: var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 188} 189.mat-mdc-icon-button:active > .mat-mdc-button-persistent-ripple::before { 190 opacity: var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 191} 192.mat-mdc-icon-button .mat-mdc-button-touch-target { 193 position: absolute; 194 top: 50%; 195 height: var(--mat-icon-button-touch-target-size, 48px); 196 display: var(--mat-icon-button-touch-target-display, block); 197 left: 50%; 198 width: var(--mat-icon-button-touch-target-size, 48px); 199 transform: translate(-50%, -50%); 200} 201.mat-mdc-icon-button._mat-animation-noopable { 202 transition: none !important; 203 animation: none !important; 204} 205.mat-mdc-icon-button[disabled], .mat-mdc-icon-button.mat-mdc-button-disabled { 206 cursor: default; 207 pointer-events: none; 208 color: var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 209} 210.mat-mdc-icon-button.mat-mdc-button-disabled-interactive { 211 pointer-events: auto; 212} 213.mat-mdc-icon-button img, 214.mat-mdc-icon-button svg { 215 width: var(--mat-icon-button-icon-size, 24px); 216 height: var(--mat-icon-button-icon-size, 24px); 217 vertical-align: baseline; 218} 219.mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__determinate-circle-graphic { 220 width: inherit; 221 height: inherit; 222} 223.mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__indeterminate-circle-graphic { 224 height: 100%; 225} 226.mat-mdc-icon-button .mat-mdc-button-persistent-ripple { 227 border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%)); 228} 229.mat-mdc-icon-button[hidden] { 230 display: none; 231} 232.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before { 233 background: transparent; 234 opacity: 1; 235} 236 237.mat-mdc-button-progress-indicator-container { 238 position: absolute; 239 inset-inline-start: 0; 240 inset-block-start: 0; 241 display: flex; 242 align-items: center; 243 justify-content: center; 244 width: 100%; 245 height: 100%; 246 box-sizing: border-box; 247} 248 249.mat-mdc-button-progress-indicator-shown mat-icon { 250 visibility: hidden; 251} 252`,`@media (forced-colors: active) { 253 .mat-mdc-button:not(.mdc-button--outlined), 254 .mat-mdc-unelevated-button:not(.mdc-button--outlined), 255 .mat-mdc-raised-button:not(.mdc-button--outlined), 256 .mat-mdc-outlined-button:not(.mdc-button--outlined), 257 .mat-mdc-button-base.mat-tonal-button, 258 .mat-mdc-icon-button.mat-mdc-icon-button, 259 .mat-mdc-outlined-button .mdc-button__ripple { 260 outline: solid 1px; 261 } 262} 263`],encapsulation:2})}return n})();var be$4=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]],[["","progressIndicator",""]]],fe$4=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]","[progressIndicator]"];function Si$1(n,i){n&1&&(md$2(0,"div",2),h_$1(1,3),yd$2());}function Ni(n,i){n&1&&(md$2(0,"div",2),h_$1(1,3),yd$2());}function Ri$1(n,i){n&1&&(md$2(0,"div",2),h_$1(1,3),yd$2());}var Oi$1=`.mat-mdc-fab-base { 264 -webkit-user-select: none; 265 user-select: none; 266 position: relative; 267 display: inline-flex; 268 align-items: center; 269 justify-content: center; 270 box-sizing: border-box; 271 width: 56px; 272 height: 56px; 273 padding: 0; 274 border: none; 275 fill: currentColor; 276 text-decoration: none; 277 cursor: pointer; 278 -moz-appearance: none; 279 -webkit-appearance: none; 280 overflow: visible; 281 transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1); 282 flex-shrink: 0; 283 -webkit-tap-highlight-color: transparent; 284} 285.mat-mdc-fab-base .mat-mdc-button-ripple, 286.mat-mdc-fab-base .mat-mdc-button-persistent-ripple, 287.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before { 288 top: 0; 289 left: 0; 290 right: 0; 291 bottom: 0; 292 position: absolute; 293 pointer-events: none; 294 border-radius: inherit; 295} 296.mat-mdc-fab-base .mat-mdc-button-ripple { 297 overflow: hidden; 298} 299.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before { 300 content: ""; 301 opacity: 0; 302} 303.mat-mdc-fab-base .mdc-button__label, 304.mat-mdc-fab-base .mat-icon { 305 z-index: 1; 306 position: relative; 307} 308.mat-mdc-fab-base .mat-focus-indicator { 309 top: 0; 310 left: 0; 311 right: 0; 312 bottom: 0; 313 position: absolute; 314} 315.mat-mdc-fab-base:focus-visible > .mat-focus-indicator::before { 316 content: ""; 317} 318.mat-mdc-fab-base._mat-animation-noopable { 319 transition: none !important; 320 animation: none !important; 321} 322.mat-mdc-fab-base::before { 323 position: absolute; 324 box-sizing: border-box; 325 width: 100%; 326 height: 100%; 327 top: 0; 328 left: 0; 329 border: 1px solid transparent; 330 border-radius: inherit; 331 content: ""; 332 pointer-events: none; 333} 334.mat-mdc-fab-base[hidden] { 335 display: none; 336} 337.mat-mdc-fab-base::-moz-focus-inner { 338 padding: 0; 339 border: 0; 340} 341.mat-mdc-fab-base:active, .mat-mdc-fab-base:focus { 342 outline: none; 343} 344.mat-mdc-fab-base:hover {
345 cursor: pointer; 346} 347.mat-mdc-fab-base > svg { 348 width: 100%; 349} 350.mat-mdc-fab-base .mat-icon, .mat-mdc-fab-base .material-icons { 351 transition: transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1); 352 fill: currentColor; 353 will-change: transform; 354} 355.mat-mdc-fab-base .mat-focus-indicator::before { 356 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1); 357} 358.mat-mdc-fab-base[disabled], .mat-mdc-fab-base.mat-mdc-button-disabled { 359 cursor: default; 360 pointer-events: none; 361} 362.mat-mdc-fab-base[disabled], .mat-mdc-fab-base[disabled]:focus, .mat-mdc-fab-base.mat-mdc-button-disabled, .mat-mdc-fab-base.mat-mdc-button-disabled:focus { 363 box-shadow: none; 364} 365.mat-mdc-fab-base.mat-mdc-button-disabled-interactive { 366 pointer-events: auto; 367} 368 369.mat-mdc-fab { 370 background-color: var(--mat-fab-container-color, var(--mat-sys-primary-container)); 371 border-radius: var(--mat-fab-container-shape, var(--mat-sys-corner-large)); 372 color: var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit)); 373 box-shadow: var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3)); 374} 375@media (hover: hover) { 376 .mat-mdc-fab:hover { 377 box-shadow: var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4)); 378 } 379} 380.mat-mdc-fab:focus { 381 box-shadow: var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3)); 382} 383.mat-mdc-fab:active, .mat-mdc-fab:focus:active { 384 box-shadow: var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3)); 385} 386.mat-mdc-fab[disabled], .mat-mdc-fab.mat-mdc-button-disabled { 387 cursor: default; 388 pointer-events: none; 389 color: var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 390 background-color: var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 391} 392.mat-mdc-fab.mat-mdc-button-disabled-interactive { 393 pointer-events: auto; 394} 395.mat-mdc-fab .mat-mdc-button-touch-target { 396 position: absolute; 397 top: 50%; 398 height: var(--mat-fab-touch-target-size, 48px); 399 display: var(--mat-fab-touch-target-display, block); 400 left: 50%; 401 width: var(--mat-fab-touch-target-size, 48px); 402 transform: translate(-50%, -50%); 403} 404.mat-mdc-fab .mat-ripple-element { 405 background-color: var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 406} 407.mat-mdc-fab .mat-mdc-button-persistent-ripple::before { 408 background-color: var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container)); 409} 410.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 411 background-color: var(--mat-fab-disabled-state-layer-color); 412} 413.mat-mdc-fab:hover > .mat-mdc-button-persistent-ripple::before { 414 opacity: var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 415} 416.mat-mdc-fab.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-fab.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-fab.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 417 opacity: var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 418} 419.mat-mdc-fab:active > .mat-mdc-button-persistent-ripple::before { 420 opacity: var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 421} 422 423.mat-mdc-mini-fab { 424 width: 40px; 425 height: 40px; 426 background-color: var(--mat-fab-small-container-color, var(--mat-sys-primary-container)); 427 border-radius: var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium)); 428 color: var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit)); 429 box-shadow: var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3)); 430} 431@media (hover: hover) { 432 .mat-mdc-mini-fab:hover { 433 box-shadow: var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4)); 434 } 435} 436.mat-mdc-mini-fab:focus { 437 box-shadow: var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3)); 438} 439.mat-mdc-mini-fab:active, .mat-mdc-mini-fab:focus:active { 440 box-shadow: var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3)); 441} 442.mat-mdc-mini-fab[disabled], .mat-mdc-mini-fab.mat-mdc-button-disabled { 443 cursor: default; 444 pointer-events: none; 445 color: var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 446 background-color: var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 447} 448.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive { 449 pointer-events: auto; 450} 451.mat-mdc-mini-fab .mat-mdc-button-touch-target { 452 position: absolute; 453 top: 50%; 454 height: var(--mat-fab-small-touch-target-size, 48px); 455 display: var(--mat-fab-small-touch-target-display); 456 left: 50%; 457 width: var(--mat-fab-small-touch-target-size, 48px); 458 transform: translate(-50%, -50%); 459} 460.mat-mdc-mini-fab .mat-ripple-element { 461 background-color: var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 462} 463.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before { 464 background-color: var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container)); 465} 466.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 467 background-color: var(--mat-fab-small-disabled-state-layer-color); 468} 469.mat-mdc-mini-fab:hover > .mat-mdc-button-persistent-ripple::before { 470 opacity: var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 471} 472.mat-mdc-mini-fab.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-mini-fab.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 473 opacity: var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 474} 475.mat-mdc-mini-fab:active > .mat-mdc-button-persistent-ripple::before { 476 opacity: var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 477} 478 479.mat-mdc-extended-fab { 480 -moz-osx-font-smoothing: grayscale; 481 -webkit-font-smoothing: antialiased; 482 padding-left: 20px; 483 padding-right: 20px; 484 width: auto; 485 max-width: 100%; 486 line-height: normal; 487 box-shadow: var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3)); 488 height: var(--mat-fab-extended-container-height, 56px); 489 border-radius: var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large)); 490 font-family: var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font)); 491 font-size: var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size)); 492 font-weight: var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight)); 493 letter-spacing: var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking)); 494} 495@media (hover: hover) { 496 .mat-mdc-extended-fab:hover { 497 box-shadow: var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4)); 498 } 499} 500.mat-mdc-extended-fab:focus { 501 box-shadow: var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3)); 502} 503.mat-mdc-extended-fab:active, .mat-mdc-extended-fab:focus:active { 504 box-shadow: var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3)); 505} 506.mat-mdc-extended-fab[disabled], .mat-mdc-extended-fab.mat-mdc-button-disabled { 507 cursor: default; 508 pointer-events: none; 509} 510.mat-mdc-extended-fab[disabled], .mat-mdc-extended-fab[disabled]:focus, .mat-mdc-extended-fab.mat-mdc-button-disabled, .mat-mdc-extended-fab.mat-mdc-button-disabled:focus { 511 box-shadow: none; 512} 513.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive { 514 pointer-events: auto; 515} 516[dir=rtl] .mat-mdc-extended-fab .mdc-button__label + .mat-icon, [dir=rtl] .mat-mdc-extended-fab .mdc-button__label + .material-icons, 517.mat-mdc-extended-fab > .mat-icon, 518.mat-mdc-extended-fab > .material-icons { 519 margin-left: -8px; 520 margin-right: 12px; 521} 522.mat-mdc-extended-fab .mdc-button__label + .mat-icon, 523.mat-mdc-extended-fab .mdc-button__label + .material-icons, [dir=rtl] .mat-mdc-extended-fab > .mat-icon, [dir=rtl] .mat-mdc-extended-fab > .material-icons { 524 margin-left: 12px; 525 margin-right: -8px; 526} 527.mat-mdc-extended-fab .mat-mdc-button-touch-target { 528 width: 100%; 529} 530 531.mat-mdc-button-progress-indicator-container { 532 position: absolute; 533 inset-inline-start: 0; 534 margin-block-start: 0; 535 display: flex; 536 align-items: center; 537 justify-content: center; 538 width: 100%; 539 height: 100%; 540 box-sizing: border-box; 541} 542 543.mat-mdc-button-progress-indicator-shown mat-icon, 544.mat-mdc-button-progress-indicator-shown [matButtonIcon], 545.mat-mdc-button-progress-indicator-shown .mdc-button__label { 546 visibility: hidden; 547} 548`,zn$1=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),zs$1=(()=>{class n extends _t$3{get appearance(){return this._appearance}set appearance(t){this.setAppearance(t||this._config?.defaultAppearance||"text");}_appearance=null;constructor(){super();let t=Li$2(this._elementRef.nativeElement);t&&this.setAppearance(t);}setAppearance(t){if(t===this._appearance)return;let e=this._elementRef.nativeElement.classList,o=this._appearance?zn$1.get(this._appearance):null,a=zn$1.get(t);o&&e.remove(...o),e.add(...a),this._appearance=t;}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[Xm$2],ngContentSelectors:fe$4,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,o){e&1&&(p_$1(be$4),py(0,"span",0),h_$1(1),md$2(2,"span",1),h_$1(3,1),yd$2(),h_$1(4,2),ZT(5,Si$1,2,0,"div",2),py(6,"span",3)(7,"span",4)),e&2&&(xy("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab),SC(5),YT(o.showProgress()?5:-1));},styles:[`.mat-mdc-button-base { 549 text-decoration: none; 550} 551.mat-mdc-button-base .mat-icon { 552 min-height: fit-content; 553 flex-shrink: 0; 554} 555@media (hover: none) { 556 .mat-mdc-button-base:hover > span.mat-mdc-button-persistent-ripple::before { 557 opacity: 0; 558 } 559} 560 561.mdc-button { 562 -webkit-user-select: none; 563 user-select: none; 564 position: relative; 565 display: inline-flex; 566 align-items: center; 567 justify-content: center; 568 box-sizing: border-box; 569 min-width: 64px; 570 border: none; 571 outline: none; 572 line-height: inherit; 573 -webkit-appearance: none; 574 overflow: visible; 575 vertical-align: middle; 576 background: transparent; 577 padding: 0 8px; 578} 579.mdc-button::-moz-focus-inner { 580 padding: 0; 581 border: 0; 582} 583.mdc-button:active { 584 outline: none; 585} 586.mdc-button:hover {
587 cursor: pointer; 588} 589.mdc-button:disabled { 590 cursor: default; 591 pointer-events: none; 592} 593.mdc-button[hidden] { 594 display: none; 595} 596.mdc-button .mdc-button__label { 597 position: relative; 598} 599 600.mat-mdc-button { 601 padding: 0 var(--mat-button-text-horizontal-padding, 12px); 602 height: var(--mat-button-text-container-height, 40px); 603 font-family: var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font)); 604 font-size: var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size)); 605 letter-spacing: var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking)); 606 text-transform: var(--mat-button-text-label-text-transform); 607 font-weight: var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight)); 608} 609.mat-mdc-button, .mat-mdc-button .mdc-button__ripple { 610 border-radius: var(--mat-button-text-container-shape, var(--mat-sys-corner-full)); 611} 612.mat-mdc-button:not(:disabled) { 613 color: var(--mat-button-text-label-text-color, var(--mat-sys-primary)); 614} 615.mat-mdc-button[disabled], .mat-mdc-button.mat-mdc-button-disabled { 616 cursor: default; 617 pointer-events: none; 618 color: var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 619} 620.mat-mdc-button.mat-mdc-button-disabled-interactive { 621 pointer-events: auto; 622} 623.mat-mdc-button:has(.material-icons, mat-icon, [matButtonIcon]) { 624 padding: 0 var(--mat-button-text-with-icon-horizontal-padding, 16px); 625} 626.mat-mdc-button > .mat-icon { 627 margin-right: var(--mat-button-text-icon-spacing, 8px); 628 margin-left: var(--mat-button-text-icon-offset, -4px); 629} 630[dir=rtl] .mat-mdc-button > .mat-icon { 631 margin-right: var(--mat-button-text-icon-offset, -4px); 632 margin-left: var(--mat-button-text-icon-spacing, 8px); 633} 634.mat-mdc-button .mdc-button__label + .mat-icon { 635 margin-right: var(--mat-button-text-icon-offset, -4px); 636 margin-left: var(--mat-button-text-icon-spacing, 8px); 637} 638[dir=rtl] .mat-mdc-button .mdc-button__label + .mat-icon { 639 margin-right: var(--mat-button-text-icon-spacing, 8px); 640 margin-left: var(--mat-button-text-icon-offset, -4px); 641} 642.mat-mdc-button .mat-ripple-element { 643 background-color: var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 644} 645.mat-mdc-button .mat-mdc-button-persistent-ripple::before { 646 background-color: var(--mat-button-text-state-layer-color, var(--mat-sys-primary)); 647} 648.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 649 background-color: var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 650} 651.mat-mdc-button:hover > .mat-mdc-button-persistent-ripple::before { 652 opacity: var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 653} 654.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 { 655 opacity: var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 656} 657.mat-mdc-button:active > .mat-mdc-button-persistent-ripple::before { 658 opacity: var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 659} 660.mat-mdc-button .mat-mdc-button-touch-target { 661 position: absolute; 662 top: 50%; 663 height: var(--mat-button-text-touch-target-size, 48px); 664 display: var(--mat-button-text-touch-target-display, block); 665 left: 0; 666 right: 0; 667 transform: translateY(-50%); 668} 669 670.mat-mdc-unelevated-button { 671 transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); 672 height: var(--mat-button-filled-container-height, 40px); 673 font-family: var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font)); 674 font-size: var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size)); 675 letter-spacing: var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking)); 676 text-transform: var(--mat-button-filled-label-text-transform); 677 font-weight: var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight)); 678 padding: 0 var(--mat-button-filled-horizontal-padding, 24px); 679} 680.mat-mdc-unelevated-button > .mat-icon { 681 margin-right: var(--mat-button-filled-icon-spacing, 8px); 682 margin-left: var(--mat-button-filled-icon-offset, -8px); 683} 684[dir=rtl] .mat-mdc-unelevated-button > .mat-icon { 685 margin-right: var(--mat-button-filled-icon-offset, -8px); 686 margin-left: var(--mat-button-filled-icon-spacing, 8px); 687} 688.mat-mdc-unelevated-button .mdc-button__label + .mat-icon { 689 margin-right: var(--mat-button-filled-icon-offset, -8px); 690 margin-left: var(--mat-button-filled-icon-spacing, 8px); 691} 692[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label + .mat-icon { 693 margin-right: var(--mat-button-filled-icon-spacing, 8px); 694 margin-left: var(--mat-button-filled-icon-offset, -8px); 695} 696.mat-mdc-unelevated-button .mat-ripple-element { 697 background-color: var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 698} 699.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before { 700 background-color: var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary)); 701} 702.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 703 background-color: var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 704} 705.mat-mdc-unelevated-button:hover > .mat-mdc-button-persistent-ripple::before { 706 opacity: var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 707} 708.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 { 709 opacity: var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 710} 711.mat-mdc-unelevated-button:active > .mat-mdc-button-persistent-ripple::before { 712 opacity: var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 713} 714.mat-mdc-unelevated-button .mat-mdc-button-touch-target { 715 position: absolute; 716 top: 50%; 717 height: var(--mat-button-filled-touch-target-size, 48px); 718 display: var(--mat-button-filled-touch-target-display, block); 719 left: 0; 720 right: 0; 721 transform: translateY(-50%); 722} 723.mat-mdc-unelevated-button:not(:disabled) { 724 color: var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary)); 725 background-color: var(--mat-button-filled-container-color, var(--mat-sys-primary)); 726} 727.mat-mdc-unelevated-button, .mat-mdc-unelevated-button .mdc-button__ripple { 728 border-radius: var(--mat-button-filled-container-shape, var(--mat-sys-corner-full)); 729} 730.mat-mdc-unelevated-button .mat-mdc-button-progress-indicator-container { 731 --mat-progress-spinner-active-indicator-color: var(--mat-button-filled-progress-active-indicator-color, var(--mat-sys-on-primary)); 732} 733.mat-mdc-unelevated-button[disabled], .mat-mdc-unelevated-button.mat-mdc-button-disabled { 734 cursor: default; 735 pointer-events: none; 736 color: var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 737 background-color: var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 738} 739.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive { 740 pointer-events: auto; 741} 742 743.mat-mdc-raised-button { 744 transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); 745 box-shadow: var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1)); 746 height: var(--mat-button-protected-container-height, 40px); 747 font-family: var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font)); 748 font-size: var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size)); 749 letter-spacing: var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking)); 750 text-transform: var(--mat-button-protected-label-text-transform); 751 font-weight: var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight)); 752 padding: 0 var(--mat-button-protected-horizontal-padding, 24px); 753} 754.mat-mdc-raised-button > .mat-icon { 755 margin-right: var(--mat-button-protected-icon-spacing, 8px); 756 margin-left: var(--mat-button-protected-icon-offset, -8px); 757} 758[dir=rtl] .mat-mdc-raised-button > .mat-icon { 759 margin-right: var(--mat-button-protected-icon-offset, -8px); 760 margin-left: var(--mat-button-protected-icon-spacing, 8px); 761} 762.mat-mdc-raised-button .mdc-button__label + .mat-icon { 763 margin-right: var(--mat-button-protected-icon-offset, -8px); 764 margin-left: var(--mat-button-protected-icon-spacing, 8px); 765} 766[dir=rtl] .mat-mdc-raised-button .mdc-button__label + .mat-icon { 767 margin-right: var(--mat-button-protected-icon-spacing, 8px); 768 margin-left: var(--mat-button-protected-icon-offset, -8px); 769} 770.mat-mdc-raised-button .mat-ripple-element { 771 background-color: var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 772} 773.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before { 774 background-color: var(--mat-button-protected-state-layer-color, var(--mat-sys-primary)); 775} 776.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 777 background-color: var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 778} 779.mat-mdc-raised-button:hover > .mat-mdc-button-persistent-ripple::before { 780 opacity: var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 781} 782.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 { 783 opacity: var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 784} 785.mat-mdc-raised-button:active > .mat-mdc-button-persistent-ripple::before { 786 opacity: var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 787} 788.mat-mdc-raised-button .mat-mdc-button-touch-target { 789 position: absolute; 790 top: 50%; 791 height: var(--mat-button-protected-touch-target-size, 48px); 792 display: var(--mat-button-protected-touch-target-display, block); 793 left: 0; 794 right: 0; 795 transform: translateY(-50%); 796} 797.mat-mdc-raised-button:not(:disabled) { 798 color: var(--mat-button-protected-label-text-color, var(--mat-sys-primary)); 799 background-color: var(--mat-button-protected-container-color, var(--mat-sys-surface)); 800} 801.mat-mdc-raised-button, .mat-mdc-raised-button .mdc-button__ripple { 802 border-radius: var(--mat-button-protected-container-shape, var(--mat-sys-corner-full)); 803} 804@media (hover: hover) { 805 .mat-mdc-raised-button:hover { 806 box-shadow: var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2)); 807 } 808} 809.mat-mdc-raised-button:focus { 810 box-shadow: var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1)); 811} 812.mat-mdc-raised-button:active, .mat-mdc-raised-button:focus:active { 813 box-shadow: var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1)); 814} 815.mat-mdc-raised-button[disabled], .mat-mdc-raised-button.mat-mdc-button-disabled { 816 cursor: default; 817 pointer-events: none; 818 color: var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 819 background-color: var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 820} 821.mat-mdc-raised-button[disabled].mat-mdc-button-disabled, .mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled { 822 box-shadow: var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0)); 823} 824.mat-mdc-raised-button.mat-mdc-button-disabled-interactive { 825 pointer-events: auto; 826} 827 828.mat-mdc-outlined-button { 829 border-style: solid; 830 transition: border 280ms cubic-bezier(0.4, 0, 0.2, 1); 831 height: var(--mat-button-outlined-container-height, 40px); 832 font-family: var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font)); 833 font-size: var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size)); 834 letter-spacing: var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking)); 835 text-transform: var(--mat-button-outlined-label-text-transform); 836 font-weight: var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight)); 837 border-radius: var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full)); 838 border-width: var(--mat-button-outlined-outline-width, 1px); 839 padding: 0 var(--mat-button-outlined-horizontal-padding, 24px); 840} 841.mat-mdc-outlined-button > .mat-icon { 842 margin-right: var(--mat-button-outlined-icon-spacing, 8px); 843 margin-left: var(--mat-button-outlined-icon-offset, -8px); 844} 845[dir=rtl] .mat-mdc-outlined-button > .mat-icon { 846 margin-right: var(--mat-button-outlined-icon-offset, -8px); 847 margin-left: var(--mat-button-outlined-icon-spacing, 8px); 848} 849.mat-mdc-outlined-button .mdc-button__label + .mat-icon { 850 margin-right: var(--mat-button-outlined-icon-offset, -8px); 851 margin-left: var(--mat-button-outlined-icon-spacing, 8px); 852} 853[dir=rtl] .mat-mdc-outlined-button .mdc-button__label + .mat-icon { 854 margin-right: var(--mat-button-outlined-icon-spacing, 8px); 855 margin-left: var(--mat-button-outlined-icon-offset, -8px); 856} 857.mat-mdc-outlined-button .mat-ripple-element { 858 background-color: var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 859} 860.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before { 861 background-color: var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary)); 862} 863.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 864 background-color: var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 865} 866.mat-mdc-outlined-button:hover > .mat-mdc-button-persistent-ripple::before { 867 opacity: var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 868} 869.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 { 870 opacity: var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 871} 872.mat-mdc-outlined-button:active > .mat-mdc-button-persistent-ripple::before { 873 opacity: var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 874} 875.mat-mdc-outlined-button .mat-mdc-button-touch-target { 876 position: absolute; 877 top: 50%; 878 height: var(--mat-button-outlined-touch-target-size, 48px); 879 display: var(--mat-button-outlined-touch-target-display, block); 880 left: 0; 881 right: 0; 882 transform: translateY(-50%); 883} 884.mat-mdc-outlined-button:not(:disabled) { 885 color: var(--mat-button-outlined-label-text-color, var(--mat-sys-primary)); 886 border-color: var(--mat-button-outlined-outline-color, var(--mat-sys-outline)); 887} 888.mat-mdc-outlined-button[disabled], .mat-mdc-outlined-button.mat-mdc-button-disabled { 889 cursor: default; 890 pointer-events: none; 891 color: var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 892 border-color: var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 893} 894.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive { 895 pointer-events: auto; 896} 897 898.mat-tonal-button { 899 transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); 900 height: var(--mat-button-tona
900l-container-height, 40px); 901 font-family: var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font)); 902 font-size: var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size)); 903 letter-spacing: var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking)); 904 text-transform: var(--mat-button-tonal-label-text-transform); 905 font-weight: var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight)); 906 padding: 0 var(--mat-button-tonal-horizontal-padding, 24px); 907} 908.mat-tonal-button:not(:disabled) { 909 color: var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container)); 910 background-color: var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container)); 911} 912.mat-tonal-button, .mat-tonal-button .mdc-button__ripple { 913 border-radius: var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full)); 914} 915.mat-tonal-button[disabled], .mat-tonal-button.mat-mdc-button-disabled { 916 cursor: default; 917 pointer-events: none; 918 color: var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 919 background-color: var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 920} 921.mat-tonal-button.mat-mdc-button-disabled-interactive { 922 pointer-events: auto; 923} 924.mat-tonal-button > .mat-icon { 925 margin-right: var(--mat-button-tonal-icon-spacing, 8px); 926 margin-left: var(--mat-button-tonal-icon-offset, -8px); 927} 928[dir=rtl] .mat-tonal-button > .mat-icon { 929 margin-right: var(--mat-button-tonal-icon-offset, -8px); 930 margin-left: var(--mat-button-tonal-icon-spacing, 8px); 931} 932.mat-tonal-button .mdc-button__label + .mat-icon { 933 margin-right: var(--mat-button-tonal-icon-offset, -8px); 934 margin-left: var(--mat-button-tonal-icon-spacing, 8px); 935} 936[dir=rtl] .mat-tonal-button .mdc-button__label + .mat-icon { 937 margin-right: var(--mat-button-tonal-icon-spacing, 8px); 938 margin-left: var(--mat-button-tonal-icon-offset, -8px); 939} 940.mat-tonal-button .mat-ripple-element { 941 background-color: var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 942} 943.mat-tonal-button .mat-mdc-button-persistent-ripple::before { 944 background-color: var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container)); 945} 946.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 947 background-color: var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 948} 949.mat-tonal-button:hover > .mat-mdc-button-persistent-ripple::before { 950 opacity: var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 951} 952.mat-tonal-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 953 opacity: var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 954} 955.mat-tonal-button:active > .mat-mdc-button-persistent-ripple::before { 956 opacity: var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 957} 958.mat-tonal-button .mat-mdc-button-touch-target { 959 position: absolute; 960 top: 50%; 961 height: var(--mat-button-tonal-touch-target-size, 48px); 962 display: var(--mat-button-tonal-touch-target-display, block); 963 left: 0; 964 right: 0; 965 transform: translateY(-50%); 966} 967 968.mat-mdc-button, 969.mat-mdc-unelevated-button, 970.mat-mdc-raised-button, 971.mat-mdc-outlined-button, 972.mat-tonal-button { 973 -webkit-tap-highlight-color: transparent; 974} 975.mat-mdc-button .mat-mdc-button-ripple, 976.mat-mdc-button .mat-mdc-button-persistent-ripple, 977.mat-mdc-button .mat-mdc-button-persistent-ripple::before, 978.mat-mdc-unelevated-button .mat-mdc-button-ripple, 979.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple, 980.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before, 981.mat-mdc-raised-button .mat-mdc-button-ripple, 982.mat-mdc-raised-button .mat-mdc-button-persistent-ripple, 983.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before, 984.mat-mdc-outlined-button .mat-mdc-button-ripple, 985.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple, 986.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before, 987.mat-tonal-button .mat-mdc-button-ripple, 988.mat-tonal-button .mat-mdc-button-persistent-ripple, 989.mat-tonal-button .mat-mdc-button-persistent-ripple::before { 990 top: 0; 991 left: 0; 992 right: 0; 993 bottom: 0; 994 position: absolute; 995 pointer-events: none; 996 border-radius: inherit; 997} 998.mat-mdc-button .mat-mdc-button-ripple, 999.mat-mdc-unelevated-button .mat-mdc-button-ripple, 1000.mat-mdc-raised-button .mat-mdc-button-ripple, 1001.mat-mdc-outlined-button .mat-mdc-button-ripple, 1002.mat-tonal-button .mat-mdc-button-ripple { 1003 overflow: hidden; 1004} 1005.mat-mdc-button .mat-mdc-button-persistent-ripple::before, 1006.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before, 1007.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before, 1008.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before, 1009.mat-tonal-button .mat-mdc-button-persistent-ripple::before { 1010 content: ""; 1011 opacity: 0; 1012} 1013.mat-mdc-button .mdc-button__label, 1014.mat-mdc-button .mat-icon, 1015.mat-mdc-unelevated-button .mdc-button__label, 1016.mat-mdc-unelevated-button .mat-icon, 1017.mat-mdc-raised-button .mdc-button__label, 1018.mat-mdc-raised-button .mat-icon, 1019.mat-mdc-outlined-button .mdc-button__label, 1020.mat-mdc-outlined-button .mat-icon, 1021.mat-tonal-button .mdc-button__label, 1022.mat-tonal-button .mat-icon { 1023 z-index: 1; 1024 position: relative; 1025} 1026.mat-mdc-button .mat-focus-indicator, 1027.mat-mdc-unelevated-button .mat-focus-indicator, 1028.mat-mdc-raised-button .mat-focus-indicator, 1029.mat-mdc-outlined-button .mat-focus-indicator, 1030.mat-tonal-button .mat-focus-indicator { 1031 top: 0; 1032 left: 0; 1033 right: 0; 1034 bottom: 0; 1035 position: absolute; 1036 border-radius: inherit; 1037} 1038.mat-mdc-button:focus-visible > .mat-focus-indicator::before, 1039.mat-mdc-unelevated-button:focus-visible > .mat-focus-indicator::before, 1040.mat-mdc-raised-button:focus-visible > .mat-focus-indicator::before, 1041.mat-mdc-outlined-button:focus-visible > .mat-focus-indicator::before, 1042.mat-tonal-button:focus-visible > .mat-focus-indicator::before { 1043 content: ""; 1044 border-radius: inherit; 1045} 1046.mat-mdc-button._mat-animation-noopable, 1047.mat-mdc-unelevated-button._mat-animation-noopable, 1048.mat-mdc-raised-button._mat-animation-noopable, 1049.mat-mdc-outlined-button._mat-animation-noopable, 1050.mat-tonal-button._mat-animation-noopable { 1051 transition: none !important; 1052 animation: none !important; 1053} 1054.mat-mdc-button > .mat-icon, 1055.mat-mdc-unelevated-button > .mat-icon, 1056.mat-mdc-raised-button > .mat-icon, 1057.mat-mdc-outlined-button > .mat-icon, 1058.mat-tonal-button > .mat-icon { 1059 display: inline-block; 1060 position: relative; 1061 vertical-align: top; 1062 font-size: 1.125rem; 1063 height: 1.125rem; 1064 width: 1.125rem; 1065} 1066 1067.mat-mdc-outlined-button .mat-mdc-button-ripple, 1068.mat-mdc-outlined-button .mdc-button__ripple { 1069 top: -1px; 1070 left: -1px; 1071 bottom: -1px; 1072 right: -1px; 1073} 1074 1075.mat-mdc-unelevated-button .mat-focus-indicator::before, 1076.mat-tonal-button .mat-focus-indicator::before, 1077.mat-mdc-raised-button .mat-focus-indicator::before { 1078 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1); 1079} 1080 1081.mat-mdc-outlined-button .mat-focus-indicator::before { 1082 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1); 1083} 1084 1085.mat-mdc-button-progress-indicator-container { 1086 position: absolute; 1087 inset-inline-start: 0; 1088 inset-block-start: 0; 1089 display: flex; 1090 align-items: center; 1091 justify-content: center; 1092 width: 100%; 1093 height: 100%; 1094 box-sizing: border-box; 1095} 1096 1097.mat-mdc-button-progress-indicator-shown mat-icon, 1098.mat-mdc-button-progress-indicator-shown [matButtonIcon], 1099.mat-mdc-button-progress-indicator-shown .mdc-button__label { 1100 visibility: hidden; 1101} 1102`,`@media (forced-colors: active) { 1103 .mat-mdc-button:not(.mdc-button--outlined), 1104 .mat-mdc-unelevated-button:not(.mdc-button--outlined), 1105 .mat-mdc-raised-button:not(.mdc-button--outlined), 1106 .mat-mdc-outlined-button:not(.mdc-button--outlined), 1107 .mat-mdc-button-base.mat-tonal-button, 1108 .mat-mdc-icon-button.mat-mdc-icon-button, 1109 .mat-mdc-outlined-button .mdc-button__ripple { 1110 outline: solid 1px; 1111 } 1112} 1113`],encapsulation:2})}return n})();function Li$2(n){return n.hasAttribute("mat-raised-button")?"elevated":n.hasAttribute("mat-stroked-button")?"outlined":n.hasAttribute("mat-flat-button")?"filled":n.hasAttribute("mat-button")?"text":null}var jn$1=new I$4("mat-mdc-fab-default-options",{providedIn:"root",factory:()=>gt$3}),gt$3={color:"accent"},js$1=(()=>{class n extends _t$3{_options=g$4(jn$1,{optional:true});_isFab=true;extended=false;constructor(){super(),this._options=this._options||gt$3,this.color=this._options.color||gt$3.color;}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(e,o){e&2&&xy("mdc-fab--extended",o.extended)("mat-mdc-extended-fab",o.extended);},inputs:{extended:[2,"extended","extended",tM$1]},exportAs:["matButton","matAnchor"],features:[Xm$2],ngContentSelectors:fe$4,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,o){e&1&&(p_$1(be$4),py(0,"span",0),h_$1(1),md$2(2,"span",1),h_$1(3,1),yd$2(),h_$1(4,2),ZT(5,Ni,2,0,"div",2),py(6,"span",3)(7,"span",4)),e&2&&(xy("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab),SC(5),YT(o.showProgress()?5:-1));},styles:[`.mat-mdc-fab-base { 1114 -webkit-user-select: none; 1115 user-select: none; 1116 position: relative; 1117 display: inline-flex; 1118 align-items: center; 1119 justify-content: center; 1120 box-sizing: border-box; 1121 width: 56px; 1122 height: 56px; 1123 padding: 0; 1124 border: none; 1125 fill: currentColor; 1126 text-decoration: none; 1127 cursor: pointer; 1128 -moz-appearance: none; 1129 -webkit-appearance: none; 1130 overflow: visible; 1131 transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1); 1132 flex-shrink: 0; 1133 -webkit-tap-highlight-color: transparent; 1134} 1135.mat-mdc-fab-base .mat-mdc-button-ripple, 1136.mat-mdc-fab-base .mat-mdc-button-persistent-ripple, 1137.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before { 1138 top: 0; 1139 left: 0; 1140 right: 0; 1141 bottom: 0; 1142 position: absolute; 1143 pointer-events: none; 1144 border-radius: inherit; 1145} 1146.mat-mdc-fab-base .mat-mdc-button-ripple { 1147 overflow: hidden; 1148} 1149.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before { 1150 content: ""; 1151 opacity: 0; 1152} 1153.mat-mdc-fab-base .mdc-button__label, 1154.mat-mdc-fab-base .mat-icon { 1155 z-index: 1; 1156 position: relative; 1157} 1158.mat-mdc-fab-base .mat-focus-indicator { 1159 top: 0; 1160 left: 0; 1161 right: 0; 1162 bottom: 0; 1163 position: absolute; 1164} 1165.mat-mdc-fab-base:focus-visible > .mat-focus-indicator::before { 1166 content: ""; 1167} 1168.mat-mdc-fab-base._mat-animation-noopable { 1169 transition: none !important; 1170 animation: none !important; 1171} 1172.mat-mdc-fab-base::before { 1173 position: absolute; 1174 box-sizing: border-box; 1175 width: 100%; 1176 height: 100%; 1177 top: 0; 1178 left: 0; 1179 border: 1px solid transparent; 1180 border-radius: inherit; 1181 content: ""; 1182 pointer-events: none; 1183} 1184.mat-mdc-fab-base[hidden] { 1185 display: none; 1186} 1187.mat-mdc-fab-base::-moz-focus-inner { 1188 padding: 0; 1189 border: 0; 1190} 1191.mat-mdc-fab-base:active, .mat-mdc-fab-base:focus { 1192 outline: none; 1193} 1194.mat-mdc-fab-base:hover {
1195 cursor: pointer; 1196} 1197.mat-mdc-fab-base > svg { 1198 width: 100%; 1199} 1200.mat-mdc-fab-base .mat-icon, .mat-mdc-fab-base .material-icons { 1201 transition: transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1); 1202 fill: currentColor; 1203 will-change: transform; 1204} 1205.mat-mdc-fab-base .mat-focus-indicator::before { 1206 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1); 1207} 1208.mat-mdc-fab-base[disabled], .mat-mdc-fab-base.mat-mdc-button-disabled { 1209 cursor: default; 1210 pointer-events: none; 1211} 1212.mat-mdc-fab-base[disabled], .mat-mdc-fab-base[disabled]:focus, .mat-mdc-fab-base.mat-mdc-button-disabled, .mat-mdc-fab-base.mat-mdc-button-disabled:focus { 1213 box-shadow: none; 1214} 1215.mat-mdc-fab-base.mat-mdc-button-disabled-interactive { 1216 pointer-events: auto; 1217} 1218 1219.mat-mdc-fab { 1220 background-color: var(--mat-fab-container-color, var(--mat-sys-primary-container)); 1221 border-radius: var(--mat-fab-container-shape, var(--mat-sys-corner-large)); 1222 color: var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit)); 1223 box-shadow: var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3)); 1224} 1225@media (hover: hover) { 1226 .mat-mdc-fab:hover { 1227 box-shadow: var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4)); 1228 } 1229} 1230.mat-mdc-fab:focus { 1231 box-shadow: var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3)); 1232} 1233.mat-mdc-fab:active, .mat-mdc-fab:focus:active { 1234 box-shadow: var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3)); 1235} 1236.mat-mdc-fab[disabled], .mat-mdc-fab.mat-mdc-button-disabled { 1237 cursor: default; 1238 pointer-events: none; 1239 color: var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1240 background-color: var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 1241} 1242.mat-mdc-fab.mat-mdc-button-disabled-interactive { 1243 pointer-events: auto; 1244} 1245.mat-mdc-fab .mat-mdc-button-touch-target { 1246 position: absolute; 1247 top: 50%; 1248 height: var(--mat-fab-touch-target-size, 48px); 1249 display: var(--mat-fab-touch-target-display, block); 1250 left: 50%; 1251 width: var(--mat-fab-touch-target-size, 48px); 1252 transform: translate(-50%, -50%); 1253} 1254.mat-mdc-fab .mat-ripple-element { 1255 background-color: var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 1256} 1257.mat-mdc-fab .mat-mdc-button-persistent-ripple::before { 1258 background-color: var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container)); 1259} 1260.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 1261 background-color: var(--mat-fab-disabled-state-layer-color); 1262} 1263.mat-mdc-fab:hover > .mat-mdc-button-persistent-ripple::before { 1264 opacity: var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 1265} 1266.mat-mdc-fab.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-fab.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-fab.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 1267 opacity: var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 1268} 1269.mat-mdc-fab:active > .mat-mdc-button-persistent-ripple::before { 1270 opacity: var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 1271} 1272 1273.mat-mdc-mini-fab { 1274 width: 40px; 1275 height: 40px; 1276 background-color: var(--mat-fab-small-container-color, var(--mat-sys-primary-container)); 1277 border-radius: var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium)); 1278 color: var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit)); 1279 box-shadow: var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3)); 1280} 1281@media (hover: hover) { 1282 .mat-mdc-mini-fab:hover { 1283 box-shadow: var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4)); 1284 } 1285} 1286.mat-mdc-mini-fab:focus { 1287 box-shadow: var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3)); 1288} 1289.mat-mdc-mini-fab:active, .mat-mdc-mini-fab:focus:active { 1290 box-shadow: var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3)); 1291} 1292.mat-mdc-mini-fab[disabled], .mat-mdc-mini-fab.mat-mdc-button-disabled { 1293 cursor: default; 1294 pointer-events: none; 1295 color: var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1296 background-color: var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 1297} 1298.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive { 1299 pointer-events: auto; 1300} 1301.mat-mdc-mini-fab .mat-mdc-button-touch-target { 1302 position: absolute; 1303 top: 50%; 1304 height: var(--mat-fab-small-touch-target-size, 48px); 1305 display: var(--mat-fab-small-touch-target-display); 1306 left: 50%; 1307 width: var(--mat-fab-small-touch-target-size, 48px); 1308 transform: translate(-50%, -50%); 1309} 1310.mat-mdc-mini-fab .mat-ripple-element { 1311 background-color: var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 1312} 1313.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before { 1314 background-color: var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container)); 1315} 1316.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 1317 background-color: var(--mat-fab-small-disabled-state-layer-color); 1318} 1319.mat-mdc-mini-fab:hover > .mat-mdc-button-persistent-ripple::before { 1320 opacity: var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 1321} 1322.mat-mdc-mini-fab.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-mini-fab.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 1323 opacity: var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 1324} 1325.mat-mdc-mini-fab:active > .mat-mdc-button-persistent-ripple::before { 1326 opacity: var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 1327} 1328 1329.mat-mdc-extended-fab { 1330 -moz-osx-font-smoothing: grayscale; 1331 -webkit-font-smoothing: antialiased; 1332 padding-left: 20px; 1333 padding-right: 20px; 1334 width: auto; 1335 max-width: 100%; 1336 line-height: normal; 1337 box-shadow: var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3)); 1338 height: var(--mat-fab-extended-container-height, 56px); 1339 border-radius: var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large)); 1340 font-family: var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font)); 1341 font-size: var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size)); 1342 font-weight: var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight)); 1343 letter-spacing: var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking)); 1344} 1345@media (hover: hover) { 1346 .mat-mdc-extended-fab:hover { 1347 box-shadow: var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4)); 1348 } 1349} 1350.mat-mdc-extended-fab:focus { 1351 box-shadow: var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3)); 1352} 1353.mat-mdc-extended-fab:active, .mat-mdc-extended-fab:focus:active { 1354 box-shadow: var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3)); 1355} 1356.mat-mdc-extended-fab[disabled], .mat-mdc-extended-fab.mat-mdc-button-disabled { 1357 cursor: default; 1358 pointer-events: none; 1359} 1360.mat-mdc-extended-fab[disabled], .mat-mdc-extended-fab[disabled]:focus, .mat-mdc-extended-fab.mat-mdc-button-disabled, .mat-mdc-extended-fab.mat-mdc-button-disabled:focus { 1361 box-shadow: none; 1362} 1363.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive { 1364 pointer-events: auto; 1365} 1366[dir=rtl] .mat-mdc-extended-fab .mdc-button__label + .mat-icon, [dir=rtl] .mat-mdc-extended-fab .mdc-button__label + .material-icons, 1367.mat-mdc-extended-fab > .mat-icon, 1368.mat-mdc-extended-fab > .material-icons { 1369 margin-left: -8px; 1370 margin-right: 12px; 1371} 1372.mat-mdc-extended-fab .mdc-button__label + .mat-icon, 1373.mat-mdc-extended-fab .mdc-button__label + .material-icons, [dir=rtl] .mat-mdc-extended-fab > .mat-icon, [dir=rtl] .mat-mdc-extended-fab > .material-icons { 1374 margin-left: 12px; 1375 margin-right: -8px; 1376} 1377.mat-mdc-extended-fab .mat-mdc-button-touch-target { 1378 width: 100%; 1379} 1380 1381.mat-mdc-button-progress-indicator-container { 1382 position: absolute; 1383 inset-inline-start: 0; 1384 margin-block-start: 0; 1385 display: flex; 1386 align-items: center; 1387 justify-content: center; 1388 width: 100%; 1389 height: 100%; 1390 box-sizing: border-box; 1391} 1392 1393.mat-mdc-button-progress-indicator-shown mat-icon, 1394.mat-mdc-button-progress-indicator-shown [matButtonIcon], 1395.mat-mdc-button-progress-indicator-shown .mdc-button__label { 1396 visibility: hidden; 1397} 1398`],encapsulation:2})}return n})(),Hs$2=(()=>{class n extends _t$3{_options=g$4(jn$1,{optional:true});_isFab=true;constructor(){super(),this._options=this._options||gt$3,this.color=this._options.color||gt$3.color;}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[Xm$2],ngContentSelectors:fe$4,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,o){e&1&&(p_$1(be$4),py(0,"span",0),h_$1(1),md$2(2,"span",1),h_$1(3,1),yd$2(),h_$1(4,2),ZT(5,Ri$1,2,0,"div",2),py(6,"span",3)(7,"span",4)),e&2&&(xy("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab),SC(5),YT(o.showProgress()?5:-1));},styles:[Oi$1],encapsulation:2})}return n})();var Vs$1=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Dn$1,it$2]})}return n})();var Q$1=class Q{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i;}},Z$1=class Z extends Q$1{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(i,t,e,o,s,r){super(),this.component=i,this.viewContainerRef
vendor: 5,634 bytes, line 1398
1398=t,this.injector=e,this.projectableNodes=o,this.bindings=s||null,this.directives=r||null;}},B$2=class B extends Q$1{templateRef;viewContainerRef;context;injector;constructor(i,t,e,o){super(),this.templateRef=i,this.viewContainerRef=t,this.context=e,this.injector=o;}get origin(){return this.templateRef.elementRef}attach(i,t=this.context){return this.context=t,super.attach(i)}detach(){return this.context=void 0,super.detach()}},Wt$1=class Wt extends Q$1{element;constructor(i){super(),this.element=i instanceof Vt$3?i.nativeElement:i;}},U$3=class U{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(i){if(i instanceof Z$1)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof B$2)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Wt$1)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(i){this._disposeFn=i;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},pt$1=class pt extends U$3{outletElement;_appRef;_defaultInjector;constructor(i,t,e){super(),this.outletElement=i,this._appRef=t,this._defaultInjector=e;}attachComponentPortal(i){let t;if(i.viewContainerRef){let e=i.injector||i.viewContainerRef.injector,o=e.get(Jn$3,null,{optional:true})||void 0;t=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:e,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0,directives:i.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let e=this._appRef,o=i.injector||this._defaultInjector||Ee$4.NULL,s=o.get(pe$6,e.injector);t=wU(i.component,{elementInjector:o,environmentInjector:s,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0,directives:i.directives||void 0}),e.attachView(t.hostView),this.setDisposeFn(()=>{e.viewCount>0&&e.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=i,t}attachTemplatePortal(i){let t=i.viewContainerRef,e=t.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return e.rootNodes.forEach(o=>this.outletElement.appendChild(o)),e.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(e);o!==-1&&t.remove(o);}),this._attachedPortal=i,e}attachDomPortal=i=>{let t=i.element;t.parentNode;let e=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(e,t),this.outletElement.appendChild(t),this._attachedPortal=i,super.setDisposeFn(()=>{e.parentNode&&e.parentNode.replaceChild(t,e);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},gi=(()=>{class n extends B$2{constructor(){let t=g$4(Et$3),e=g$4(Ct$6);super(t,e);}static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Xm$2]})}return n})(),Yt$2=(()=>{class n extends U$3{_moduleRef=g$4(Jn$3,{optional:true});_document=g$4(Y$3);_viewContainerRef=g$4(Ct$6);_isInitialized=false;_attachedRef=null;get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null);}attached=new kt$3;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let e=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=e.createComponent(t.component,{index:e.length,injector:t.injector||e.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}attachDomPortal=t=>{let e=t.element;e.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(o,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(e,o);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(o){return (t||(t=yg(n)))(o||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Xm$2]})}return n})(),_t$2=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({})}return n})();var Re$2=class Re{};function yi(n){return n&&typeof n.connect=="function"&&!(n instanceof lc$2)}var J$3=(function(n){return n[n.REPLACED=0]="REPLACED",n[n.INSERTED=1]="INSERTED",n[n.MOVED=2]="MOVED",n[n.REMOVED=3]="REMOVED",n})(J$3||{}),xe$2=class xe{viewCacheSize=20;_viewCache=[];
1398applyChanges(i,t,e,o,s){i.forEachOperation((r,a,c)=>{let d,h;if(r.previousIndex==null){let f=()=>e(r,a,c);d=this._insertView(f,c,t,o(r)),h=d?J$3.INSERTED:J$3.REPLACED;}else c==null?(this._detachAndCacheView(a,t),h=J$3.REMOVED):(d=this._moveView(a,c,t,o(r)),h=J$3.MOVED);s&&s({context:d?.context,operation:h,record:r});});}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[];}_insertView(i,t,e,o){let s=this._insertViewFromCache(t,e);if(s){s.context.$implicit=o;return}let r=i();return e.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(i,t){let e=t.detach(i);this._maybeCacheView(e,t);}_moveView(i,t,e,o){let s=e.get(i);return e.move(s,t),s.context.$implicit=o,s}_maybeCacheView(i,t){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(i);else {let e=t.indexOf(i);e===-1?i.destroy():t.remove(e);}}_insertViewFromCache(i,t){let e=this._viewCache.pop();return e&&t.insert(e,i),e||null}};var Ue$4=20,tt$1=(()=>{class n{_ngZone=g$4(q$3);_platform=g$4(_$7);_renderer=g$4(Kn$3).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ye$5;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=Ue$4){return this._platform.isBrowser?new R$4(e=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(qD(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):ki$3()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete();}ancestorScrolled(t,e){let o=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Yt$5(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(t){let e=[];return this.scrollContainers.forEach((o,s)=>{this._targetContainsElement(s,t)&&e.push(s);}),e}_targetContainsElement(t,e){let o=N$3(e),s=t.getElementRef().nativeElement;do if(o==s)return true;while(o=o.parentElement);return false}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),Ge$3=(()=>{class n{elementRef=g$4(Vt$3);scrollDispatcher=g$4(tt$1);ngZone=g$4(q$3);dir=g$4(qe$4,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ye$5;_renderer=g$4(qo$1);_cleanupScroll;_elementScrolled=new ye$5;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let e=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),o&&uo$2()!=mt$3.NORMAL?(t.left!=null&&(t.right=e.scrollWidth-e.clientWidth-t.left),uo$2()==mt$3.INVERTED?t.left=t.right:uo$2()==mt$3.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let e=this.elementRef.nativeElement;mo$2()?e.scrollTo(t):(t.top!=null&&(e.scrollTop=t.top),t.left!=null&&(e.scrollLeft=t.left));}measureScrollOffset(t){let e="left",o="right",s=this.elementRef.nativeElement;if(t=="top")return s.scrollTop;if(t=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let r=this.dir&&this.dir.value=="rtl";return t=="start"?t=r?o:e:t=="end"&&(t=r?e:o),r&&uo$2()==mt$3.INVERTED?t==e?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:r&&uo$2()==mt$3.NEGATED?t==e?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==e?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return n})(),$e$1=20,G$3=(()=>{class n{_platform=g$4(_$7);_listeners;_viewportSize=null;_change=new ye$5;_document=g$4(Y$3);constructor(){let t=g$4(q$3),e=g$4(Kn$3).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=s=>
1398this._change.next(s);this._listeners=[e.listen("window","resize",o),e.listen("window","orientationchange",o)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:e,height:o}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+o,right:t.left+e,height:o,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,e=this._getWindow(),o=t.documentElement,s=o.getBoundingClientRect(),r=-s.top||t.body?.scrollTop||e.scrollY||o.scrollTop||0,a=-s.left||t.body?.scrollLeft||e.scrollX||o.scrollLeft||0;return {top:r,left:a}}change(t=$e$1){return t>0?this._change.pipe(qD(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var an$1=new I$4("CDK_VIRTUAL_SCROLL_VIEWPORT");var Ht$3=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({})}return n})(),Xt$3=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2,Ht$3,it$2,Ht$3]})}return n})();var Oe$3=mo$2();function Te$4(n){return new gt$2(n.get(G$3),n.get(Y$3))}var gt$2=class gt{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=false;_document;constructor(i,t){this._viewportRuler=i,this._document=t;}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ir$1(-this._previousScrollPosition.left),i.style.top=Ir$1(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let i=this._document.documentElement,t=this._document.body,e=i.style,o=t.style,s=e.scrollBehavior||"",r=o.scrollBehavior||"";this._isEnabled=false,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),Oe$3&&(e.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Oe$3&&(e.scrollBehavior=s,o.scrollBehavior=r);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}};function Ve$1(n,i){return new mt$2(n.get(tt$1),n.get(q$3),n.get(G$3),i)}var mt$2=class mt{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,t,e,o){this._scrollDispatcher=i,this._ngZone=t,this._viewportRuler=e,this._config=o;}attach(i){this._overlayRef,this._overlayRef=i;}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(Yt$5(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=i.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());}};var et$1=class et{enable(){}disable(){}attach(){}};function Zt$2(n,i){return i.some(t=>{let e=n.bottom<t.top,o=n.top>t.bottom,s=n.right<t.left,r=n.left>t.right;return e||o||s||r})}function Ee$2(n,i){return i.some(t=>{let e=n.top<t.top,o=n.bottom>t.bottom,s=n.left<t.left,r=n.right>t.right;return e||o||s||r})}function $t$3(n,i){return new vt$4(n.get(tt$1),n.get(G$3),n.get(q$3),i)}var vt$4=class vt{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,t,e,o){this._scrollDispatcher=i,this._viewportRuler
vendor: 6,248 bytes, lines 1398-1489
1398=t,this._ngZone=e,this._config=o;}attach(i){this._overlayRef,this._overlayRef=i;}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:o}=this._viewportRuler.getViewportSize();Zt$2(t,[{width:e,height:o,bottom:o,right:e,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;}},Fe$2=(()=>{class n{_injector=g$4(Ee$4);noop=()=>new et$1;close=t=>Ve$1(this._injector,t);block=()=>Te$4(this._injector);reposition=t=>$t$3(this._injector,t);static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),N$2=class N{positionStrategy;scrollStrategy=new et$1;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(i){if(i){let t=Object.keys(i);for(let e of t)i[e]!==void 0&&(this[e]=i[e]);}}};var yt$2=class yt{connectionPair;scrollableViewProperties;constructor(i,t){this.connectionPair=i,this.scrollableViewProperties=t;}};var Ie$1=(()=>{class n{_attachedOverlays=[];_document=g$4(Y$3);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,e,o){return o.observers.length<1?false:t.eventPredicate?t.eventPredicate(e):true}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),Le$2=(()=>{class n extends Ie$1{_ngZone=g$4(q$3);_renderer=g$4(Kn$3).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=t=>{let e=this._attachedOverlays;for(let o=e.length-1;o>-1;o--){let s=e[o];if(this.canReceiveEvent(s,t,s._keydownEvents)){this._ngZone.run(()=>s._keydownEvents.next(t));break}}};static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),Ne$2=(()=>{class n extends Ie$1{_platform=g$4(_$7);_ngZone=g$4(q$3);_renderer=g$4(Kn$3).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let e=this._document.body,o={capture:true},s=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[s.listen(e,"pointerdown",this._pointerDownListener,o),s.listen(e,"click",this._clickListener,o),s.listen(e,"auxclick",this._clickListener,o),s.listen(e,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=F$5(t);};_clickListener=t=>{let e=F$5(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;let s=this._attachedOverlays.slice();for(let r=s.length-1;r>-1;r--){let a=s[r],c=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,t,c))){if(De$2(a.overlayElement,e)||De$2(a.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>c.next(t)):c.next(t);}}};static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();function De$2(n,i){let t=typeof ShadowRoot<"u"&&ShadowRoot,e=i;for(;e;){if(e===n)return true;e=t&&e instanceof ShadowRoot?e.host:e.parentNode;}return false}var ze$1=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(e,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { 1399 pointer-events: none; 1400 top: 0; 1401 left: 0; 1402 height: 100%; 1403 width: 100%; 1404} 1405 1406.cdk-overlay-container { 1407 position: fixed; 1408} 1409@layer cdk-overlay { 1410 .cdk-overlay-container { 1411 z-index: 1000; 1412 } 1413} 1414.cdk-overlay-container:empty { 1415 display: none; 1416} 1417 1418.cdk-global-overlay-wrapper { 1419 display: flex; 1420 position: absolute; 1421} 1422@layer cdk-overlay { 1423 .cdk-global-overlay-wrapper { 1424 z-index: 1000; 1425 } 1426} 1427 1428.cdk-overlay-pane { 1429 position: absolute; 1430 pointer-events: auto; 1431 box-sizing: border-box; 1432 display: flex; 1433 max-width: 100%; 1434 max-height: 100%; 1435} 1436@layer cdk-overlay { 1437 .cdk-overlay-pane { 1438 z-index: 1000; 1439 } 1440} 1441 1442.cdk-overlay-backdrop { 1443 position: absolute; 1444 top: 0; 1445 bottom: 0; 1446 left: 0; 1447 right: 0; 1448 pointer-events: auto; 1449 -webkit-tap-highlight-color: transparent; 1450 opacity: 0; 1451 touch-action: manipulation; 1452} 1453@layer cdk-overlay { 1454 .cdk-overlay-backdrop { 1455 z-index: 1000; 1456 transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1); 1457 } 1458} 1459@media (prefers-reduced-motion) { 1460 .cdk-overlay-backdrop { 1461 transition-duration: 1ms; 1462 } 1463} 1464 1465.cdk-overlay-backdrop-showing { 1466 opacity: 1; 1467} 1468@media (forced-colors: active) { 1469 .cdk-overlay-backdrop-showing { 1470 opacity: 0.6; 1471 } 1472} 1473 1474@layer cdk-overlay { 1475 .cdk-overlay-dark-backdrop { 1476 background: rgba(0, 0, 0, 0.32); 1477 } 1478} 1479 1480.cdk-overlay-transparent-backdrop { 1481 transition: visibility 1ms linear, opacity 1ms linear; 1482 visibility: hidden; 1483 opacity: 1; 1484} 1485.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop { 1486 opacity: 0; 1487 visibility: visible; 1488} 1489
1490.cdk-overlay-backdrop-noop-animation { 1491 transition: none; 1492} 1493 1494.cdk-overlay-connected-position-bounding-box { 1495 position: absolute; 1496 display: flex; 1497 flex-direction: column; 1498 min-width: 1px; 1499 min-height: 1px; 1500} 1501@layer cdk-overlay { 1502 .cdk-overlay-connected-position-bounding-box { 1503 z-index: 1000; 1504 } 1505} 1506 1507.cdk-global-scrollblock { 1508 position: fixed; 1509 width: 100%; 1510 overflow-y: scroll; 1511} 1512 1513.cdk-overlay-popover { 1514 background: none; 1515 border: none; 1516 padding: 0; 1517 outline: 0; 1518 overflow: visible; 1519 position: fixed; 1520 pointer-events: none; 1521 white-space: normal; 1522 color: inherit; 1523 text-decoration: none; 1524 width: 100%; 1525 height: 100%; 1526 inset: auto; 1527 top: 0; 1528 left: 0; 1529} 1530.cdk-overlay-popover::backdrop { 1531 display: none; 1532} 1533.cdk-overlay-popover .cdk-overlay-backdrop { 1534 position: fixed; 1535 z-index: auto; 1536} 1537`],encapsulation:2})}return n})(),We$1=(()=>{class n{_platform=g$4(_$7);_containerElement;_document=g$4(Y$3);_styleLoader=g$4(P$3);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||fo$2()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<o.length;s++)o[s].remove();}let e=this._document.createElement("div");e.classList.add(t),fo$2()?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e;}_loadStyles(){this._styleLoader.load(ze$1);}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),Ut$2=class Ut{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(i,t,e,o){this._renderer=t,this._ngZone=e,this.element=i.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o);}detach(){this._ngZone.runOutsideAngular(()=>{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function qt$3(n){return n&&n.nodeType===1}var bt$3=class bt{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ye$5;_attachments=new ye$5;_detachments=new ye$5;_positionStrategy;_scrollStrategy;_locationChanges=W$4.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new ye$5;_outsidePointerEvents=new ye$5;_afterNextRenderRef;constructor(i,t,e,o,s,r,a,c,d,h=false,f,_){this._portalOutlet=i,this._host=t,this._pane=e,this._config=o,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=c,this._outsideClickDispatcher=d,this._animationsDisabled=h,this._injector=f,this._renderer=_,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Jg(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dis
vendor: 5,293 bytes, line 1537
1537pose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()));}updateSize(i){this._config=D$6(D$6({},this._config),i),this._updateElementSize();}setDirection(i){this._config=E$7(D$6({},this._config),{direction:i}),this._updateElementDirection();}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,true);}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,false);}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ir$1(this._config.width),i.height=Ir$1(this._config.height),i.minWidth=Ir$1(this._config.minWidth),i.minHeight=Ir$1(this._config.minHeight),i.maxWidth=Ir$1(this._config.maxWidth),i.maxHeight=Ir$1(this._config.maxHeight);}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none";}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;qt$3(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Ut$2(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i));}):this._backdropRef.element.classList.add(i);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(i,t,e){let o=Ft$2(t||[]).filter(s=>!!s);o.length&&(e?i.classList.add(...o):i.classList.remove(...o));}_detachContentWhenEmpty(){let i=false;try{this._detachContentAfterRenderRef=Jg(()=>{i=!0,this._detachContent();},{injector:this._injector});}catch(t){if(i)throw t;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent();}),this._detachContentMutationObserver.observe(this._pane,{childList:true}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,false),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect();}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.();}},Pe$2="cdk-overlay-connected-position-bounding-box",qe$3=/([A-Za-z%]+)$/;function Kt$3(n,i){return new wt$2(i,n.get(G$3),n.get(Y$3),n.get(_$7),n.get(We$1))}var wt$2=class wt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=false;_lastBoundingBoxSize={width:0,height:0};_isPushed=false;_canPush=true;_growAfterOpen=false;_hasFlexibleDimensions=true;_positionLocked=false;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=false;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new ye$5;_resizeSubscription=W$4.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}
1537constructor(i,t,e,o,s){this._viewportRuler=t,this._document=e,this._platform=o,this._overlayContainer=s,this.setOrigin(i);}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(Pe$2),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,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._getContainerRect();let i=this._originRect,t=this._overlayRect,e=this._viewportRect,o=this._containerRect,s=[],r;for(let a of this._preferredPositions){let c=this._getOriginPoint(i,o,a),d=this._getOverlayPoint(c,t,a),h=this._getOverlayFit(d,t,e,a);if(h.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(h,d,e)){s.push({position:a,origin:c,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!r||r.overlayFit.visibleArea<h.visibleArea)&&(r={overlayFit:h,overlayPoint:d,originPoint:c,position:a,overlayRect:t});}if(s.length){let a=null,c=-1;for(let d of s){let h=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);h>c&&(c=h,a=d);}this._isPushed=false,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&L$5(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Pe$2),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=true);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply();}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=true){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=true){return this._growAfterOpen=i,this}withPush(i=true){return this._canPush=i,this}withLockedPosition(i=true){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof Vt$3?this._origin.nativeElement:qt$3(this._origin)?this._origin:null}_getOriginPoint(i,t,e){let o;if(e.originX=="center")o=i.left+i.width/2;else {let r=this._isRtl()?i.right:i.left,a=this._isRtl()?i.left:i.right;o=e.originX=="start"?r:a;}t.left<0&&(o-=t.left);let s;return e.originY=="center"?s=i.top+i.height/2:s=e.originY=="top"?i.top:i.bottom,t.top<0&&(s-=t.top),{x:o,y:s}}_getOverlayPoint(i,t,e){let o;e.overlayX=="center"?o=-t.width/2:e.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let s;return e.overlayY=="center"?s=-t.height/2:s=e.overlayY=="top"?0:-t.height,{x:i.x+o,y:i.y+s}}_getOverlayFit(i,t,e,o){let s=Ae$3(t),{x:r,y:a}=i,c=this._getOffset(o,"x"),d=this._getOffset(o,"y");c&&(r+=c),d&&(a+=d);let h=0-r,f=r+s.width-e.width,_=0-a,b=a+s.height-e.height,m=this._subtractOverflows(s.width,h,f),k=this._subtractOverflows(s.height,_,b),ie=m*k;return {visibleArea:ie,isCompletelyWithinViewport:s.width*s.height===ie,fitsInViewportVertically:k===s.height,fitsInViewportHorizontally:m==s.width}}_canFitWithFlexibleDimensions(i,t,e){if(this._hasFlexibleDimensions){let o=e.bottom-t.y,s=e.right-t.x,r=Me$3(this._overlayRef.getConfig().minHeight),a=Me$3(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||r!=null&&r<=o,d=i.fitsInViewportHorizontally||a!=null&&a<=s;return c&&d}return false}_pushOverlayOnScreen(i,t,e){if(this._previousPushAmount&&this._positionLocked)return {x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=Ae$3(t),s=this._viewportRect,r=Math.max(i.x+o.width-s.width,0),a=Math.max(i.y+o.height-s.height,0),c=Math.max(s.top-e.top-i.y,0),d=Math.max(s.left-e.left-i.x,0),h=0,f=0;return o.width<=s.width?h=d||-r:h=i.x<this._getViewportMarginStart()?s.left-e.left-i.x:0,o.height<=s.height?f=c||-a:f=i.y<this._getViewportMarginTop()?s.top-e.top-i.y:0,this._previousPushAmount={x:h,y:f},{x:i.x+h,y:i.y+f}}_applyPosition(i,t){if(this._setTransformOrigin(i),this._setOverlayElementStyles(t,i),this._setBoundingBoxStyles(t,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._positionChanges.observers.length){let e=this._getScrollVisibility();if(i!==this._lastPosition||!this._lastScrollVisibility||!Ke$5(this._lastScrollVisibility,e)){let o=new yt$2(i,e);this._positionChanges.next(o);}this._lastScrollVisibility=e;}this._lastPosition=i,this._isInitialRender=false;}_setTransformOrigin(i){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,o=i.overlayY;
1537i.overlayX==="center"?e="center":this._isRtl()?e=i.overlayX==="start"?"right":"left":e=i.overlayX==="start"?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${e} ${o}`;}_calculateBoundingBoxRect(i,t){let e=this._viewportRect,o=this._isRtl(),s,r,a;if(t.overlayY==="top")r=i.y,s=e.height-r+this._getViewportMarginBottom();else if(t.overlayY==="bottom")a=e.height-i.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),s=e.height-a+this._getViewportMarginTop();else {let b=Math.min(e.bottom-i.y+e.top,i.y),m=this._lastBoundingBoxSize.height;s=b*2,r=i.y-b,s>m&&!this._isInitialRender&&!this._growAfterOpen&&(r=i.y-m/2);}let c=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,d=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,h,f,_;if(d)_=e.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(c)f=i.x,h=e.right-i.x-this._getViewportMarginEnd();else {let b=Math.min(e.right-i.x+e.left,i.x),m=this._lastBoundingBoxSize.width;h=b*2,f=i.x-b,h>m&&!this._isInitialRender&&!this._growAfterOpen&&(f=i.x-m/2);}return {top:r,left:f,bottom:a,right:_,width:h,height:s}}_setBoundingBoxStyles(i,t){let e=this._calculateBoundingBoxRect(i,t);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else {let s=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;o.width=Ir$1(e.width),o.height=Ir$1(e.height),o.top=Ir$1(e.top)||"auto",o.bottom=Ir$1(e.bottom)||"auto",o.left=Ir$1(e.left)||"auto",o.right=Ir$1(e.right)||"auto",t.overlayX==="center"?o.alignItems="center":o.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?o.justifyContent="center":o.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",s&&(o.maxHeight=Ir$1(s)),r&&(o.maxWidth=Ir$1(r));}this._lastBoundingBoxSize=e,L$5(this._boundingBox.style,o);}_resetBoundingBoxStyles(){L$5(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){L$5(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(i,t){let e={},o=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();L$5(e,this._getExactOverlayY(t,i,h)),L$5(e,this._getExactOverlayX(t,i,h));}else e.position="static";let a="",c=this._getOffset(t,"x"),d=this._getOffset(t,"y");c&&(a+=`translateX(${c}px) `),d&&(a+=`translateY(${d}px)`),e.transform=a.trim(),r.maxHeight&&(o?e.maxHeight=Ir$1(r.maxHeight):s&&(e.maxHeight="")),r.maxWidth&&(o?e.maxWidth=Ir$1(r.maxWidth):s&&(e.maxWidth="")),L$5(this._pane.style,e);}_getExactOverlayY(i,t,e){let o={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,i);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e)),i.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;o.bottom=`${r-(s.y+this._overlayRect.height)}px`;}else o.top=Ir$1(s.y);return o}_getExactOverlayX(i,t,e){let o={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,i);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e));let r;if(this._isRtl()?r=i.overlayX==="end"?"left":"right":r=i.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;o.right=`${a-(s.x+this._overlayRect.width)}px`;}else o.left=Ir$1(s.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),t=this._pane.getBoundingClientRect(),e=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:Ee$2(i,e),isOriginOutsideView:Zt$2(i,e),isOverlayClipped:Ee$2(t,e),isOverlayOutsideView:Zt$2(t,e)}}_subtractOverflows(i,...t){return t.reduce((e,o)=>e-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return {top:e.top+this._getViewportMarginTop(),left:e.left+this._getViewportMarginStart(),right:e.left+i-this._getViewportMarginEnd(),bottom:e.top+t-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(i,t){return t==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}
1537_addPanelClasses(i){this._pane&&Ft$2(i).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i);}),this._appliedPanelClasses=[]);}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof Vt$3)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let t=i.width||0,e=i.height||0;return {top:i.y,bottom:i.y+e,left:i.x,right:i.x+t,height:e,width:t}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();i&&(t.style.display="block");let e=t.getBoundingClientRect();return i&&(t.style.display=""),e}};function L$5(n,i){for(let t in i)i.hasOwnProperty(t)&&(n[t]=i[t]);return n}function Me$3(n){if(typeof n!="number"&&n!=null){let[i,t]=n.split(qe$3);return !t||t==="px"?parseFloat(i):null}return n||null}function Ae$3(n){return {top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function Ke$5(n,i){return n===i?true:n.isOriginClipped===i.isOriginClipped&&n.isOriginOutsideView===i.isOriginOutsideView&&n.isOverlayClipped===i.isOverlayClipped&&n.isOverlayOutsideView===i.isOverlayOutsideView}var Be="cdk-global-overlay-wrapper";function St$2(n){return new Ct$3}var Ct$3=class Ct{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=false;attach(i){let t=i.getConfig();this._overlayRef=i,this._width&&!t.width&&i.updateSize({width:this._width}),this._height&&!t.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(Be),this._isDisposed=false;}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:o,height:s,maxWidth:r,maxHeight:a}=e,c=(o==="100%"||o==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),h=this._xPosition,f=this._xOffset,_=this._overlayRef.getConfig().direction==="rtl",b="",m="",k="";c?k="flex-start":h==="center"?(k="center",_?m=f:b=f):_?h==="left"||h==="end"?(k="flex-end",b=f):(h==="right"||h==="start")&&(k="flex-start",m=f):h==="left"||h==="start"?(k="flex-start",b=f):(h==="right"||h==="end")&&(k="flex-end",m=f),i.position=this._cssPosition,i.marginLeft=c?"0":b,i.marginTop=d?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":m,t.justifyContent=k,t.alignItems=d?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,e=t.style;t.classList.remove(Be),e.justifyContent=e.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=true;}},je$1=(()=>{class n{_injector=g$4(Ee$4);global(){return St$2()}flexibleConnectedTo(t){return Kt$3(this._injector,t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),Qt$2=new I$4("OVERLAY_DEFAULT_CONFIG");function it$1(n,i){n.get(P$3).load(ze$1);let t=n.get(We$1),e=n.get(Y$3),o=n.get(re$4),s=n.get(Ur$1),r=n.get(qe$4),a=n.get(qo$1,null,{optional:true})||n.get(Kn$3).createRenderer(null,null),c=new N$2(i),d=n.get(Qt$2,null,{optional:true})?.usePopover??true;c.direction=c.direction||r.value,"showPopover"in e.body?c.usePopover=i?.usePopover??d:c.usePopover=false;let h=e.createElement("div"),f=e.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),f.appendChild(h),c.usePopover&&(f.setAttribute("popover","manual"),f.classList.add("cdk-overlay-popover"));let _=c.usePopover?c.positionStrategy?.getPopoverInsertionPoint?.():null;return qt$3(_)?_.after(f):_?.type==="parent"?_.element.appendChild(f):t.getContainerElement().appendChild(f),new bt$3(new pt$1(h,s,n),f,h,c,n.get(q$3),n.get(Le$2),e,n.get(bv),n.get(Ne$2),i?.disableAnimations??n.get(aI,null,{optional:true})==="NoopAnimations",n.get(pe$6),a)}var Ye$3=(()=>{class n{scrollStrategies=g$4(Fe$2);_positionBuilder=g$4(je$1);_injector=g$4(Ee$4);create(t){return it$1(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),Qe$2=[{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"}],Je$3=new I$4("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$4(Ee$4);return ()=>$t$3(n)}}),Gt$3=(()=>{class n{elementRef=g$4(Vt$3);static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return n})(),He$3=new I$4("cdk-connected-overlay-default-config"),ti$1=(()=>{class n{_dir=g$4(qe$4,{optional:true});_injector=g$4(Ee$4);_overlayRef;_templatePortal;_backdropSubscription=W$4.EMPTY;_attachSubscription=W$4.EMPTY;_detachSubscription=W$4.EMPTY;_positionSubscription=W$4.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=g$4(Je$3);_ngZone=g$4(q$3);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position);}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position);}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=false;disableClose=false;transformOriginSelector;hasBackdrop=false;lockPosition=false;flexibleDimensions=false;growAfterOpen=false;push=false;disposeOnNavigation=false;usePopover;matchWidth=false;set _config(t){typeof t!="string"&&this._assignConfig(t);}backdropClick=new kt$3;positionChange=new kt$3;attach=new kt$3;detach=new kt$3;overlayKeydown=new kt$3;overlayOutsideClick=new kt$3;constructor(){let t=g$4(Et$3),e=g$4(Ct$6),o=g$4(He$3,{optional:true}),s=g$4(Qt$2,{optional:true});this.usePopover=s?.usePopover===false?null:"global",this._templatePortal=new B$2(t,e),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o);}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?.dispose();}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this.attachOverlay():this.detachOverlay());}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Qe$2);let t=this._overlayRef=it$1(this._injector,this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),e.keyCode===27&&!this.disableClose&&!Ye$4(e)&&(e.preventDefault(),this.detachOverlay());}),this._overlayRef.outsidePointerEvents().subscribe(e=>{let o=this._getOriginElement(),s=F$5(e);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(e);});}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new N$2({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return (this.height||this.height===0)&&(e.height=this.height),(this.minWidth||this.minWidth===0)&&(e.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){let e=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let t=Kt$3(this._injector,this._getOrigin());return this._updatePositionStrategy(t),t}
vendor: 4,616 bytes, line 1537
1537_getOrigin(){return this.origin instanceof Gt$3?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Gt$3?this.origin.elementRef.nativeElement:this.origin instanceof Vt$3?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let t=this._overlayRef;t.getConfig().hasBackdrop=this.hasBackdrop,t.updateSize({width:this._getWidth()}),t.hasAttached()||t.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=t.backdropClick().subscribe(e=>this.backdropClick.emit(e)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(ep$2(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe();})),this.open=true;}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=false;}_assignConfig(t){this.origin=t.origin??this.origin,this.positions=t.positions??this.positions,this.positionStrategy=t.positionStrategy??this.positionStrategy,this.offsetX=t.offsetX??this.offsetX,this.offsetY=t.offsetY??this.offsetY,this.width=t.width??this.width,this.height=t.height??this.height,this.minWidth=t.minWidth??this.minWidth,this.minHeight=t.minHeight??this.minHeight,this.backdropClass=t.backdropClass??this.backdropClass,this.panelClass=t.panelClass??this.panelClass,this.viewportMargin=t.viewportMargin??this.viewportMargin,this.scrollStrategy=t.scrollStrategy??this.scrollStrategy,this.disableClose=t.disableClose??this.disableClose,this.transformOriginSelector=t.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=t.hasBackdrop??this.hasBackdrop,this.lockPosition=t.lockPosition??this.lockPosition,this.flexibleDimensions=t.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=t.growAfterOpen??this.growAfterOpen,this.push=t.push??this.push,this.disposeOnNavigation=t.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=t.usePopover??this.usePopover,this.matchWidth=t.matchWidth??this.matchWidth;}static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,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",tM$1],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",tM$1],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",tM$1],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",tM$1],push:[2,"cdkConnectedOverlayPush","push",tM$1],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",tM$1],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",tM$1],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[El$2]})}return n})(),Jt$3=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({providers:[Ye$3],imports:[it$2,_t$2,Xt$3,Xt$3]})}return n})();
1537function ei$1(n,i){if(n&1){let t=i_$1();Js$2(0,"div",1)(1,"button",2),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.action())}),H_$1(2),gd$2()();}if(n&2){let t=d_$1();SC(2),Ed$2(" ",t.data.action," ");}}var ii$1=["label"];function ni$1(n,i){}var oi=Math.pow(2,31)-1,nt$2=class nt{_overlayRef;instance;containerInstance;_afterDismissed=new ye$5;_afterOpened=new ye$5;_onAction=new ye$5;_durationTimeoutId;_dismissedByAction=false;constructor(i,t){this._overlayRef=t,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss());}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId);}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=true,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId);}closeWithAction(){this.dismissWithAction();}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,oi));}_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=false;}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Xe$1=new I$4("MatSnackBarData"),$$3=class ${politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},si=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return n})(),ri=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return n})(),ai=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275dir=bt$6({type:n,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return n})(),Ze$1=(()=>{class n{snackBarRef=g$4(nt$2);data=g$4(Xe$1);action(){this.snackBarRef.dismissWithAction();}get hasAction(){return !!this.data.action}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(e,o){e&1&&(Js$2(0,"div",0),H_$1(1),gd$2(),ZT(2,ei$1,3,1,"div",1)),e&2&&(SC(),Ed$2(" ",o.data.message,` 1538`),SC(),YT(o.hasAction?2:-1));},dependencies:[zs$1,si,ri,ai],styles:[`.mat-mdc-simple-snack-bar { 1539 display: flex; 1540} 1541.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label { 1542 max-height: 50vh; 1543 overflow: auto; 1544} 1545`],encapsulation:2})}return n})(),te$3="_mat-snack-bar-enter",ee$2="_mat-snack-bar-exit",li=(()=>{class n extends U$3{_ngZone=g$4(q$3);_elementRef=g$4(Vt$3);_changeDetectorRef=g$4(Od$2);_platform=g$4(_$7);_animationsDisabled=ct$1();snackBarConfig=g$4($$3);_document=g$4(Y$3);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=g$4(Ee$4);_announceDelay=150;_announceTimeoutId;_destroyed=false;_portalOutlet;_onAnnounce=new ye$5;_onExit=new ye$5;_onEnter=new ye$5;_animationState="void";_live;_label;_role;_liveElementId=g$4(re$4).getId("mat-snack-bar-container-live-");constructor(){super();let t=this.snackBarConfig;t.politeness==="assertive"&&!t.announcementMessage?this._live="assertive":t.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"));}attachComponentPortal(t){this._assertNotAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),e}attachTemplatePortal(t){this._assertNotAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),e}attachDomPortal=t=>{this._assertNotAttached();let e=this._portalOutlet.attachDomPortal(t);return this._afterPortalAttached(),e};onAnimationEnd(t){t===ee$2?this._completeExit():t===te$3&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete();}));}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Jg(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(te$3)));},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(te$3);},200)));}exit(){return this._destroyed?ki$3(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?Jg(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(ee$2)));},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(ee$2),200));}),this._onExit)}ngOnDestroy(){this._destroyed=true,this._clearFromModals(),this._completeExit();}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete();});}_afterPortalAttached(){let t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(r=>t.classList.add(r)):t.classList.add(e)),this._exposeToModals();let o=this._label.nativeElement,s="mdc-snackbar__label";o.classList.toggle(s,!o.querySelector(`.${s}`));}_exposeToModals(){let t=this._liveElementId,e=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<e.length;o++){let s=e[o],r=s.getAttribute("aria-owns");this._trackedModals.add(s),r?r.indexOf(t)===-1&&s.setAttribute("aria-owns",r+" "+t):s.setAttribute("aria-owns",t);}}
1545_clearFromModals(){this._trackedModals.forEach(t=>{let e=t.getAttribute("aria-owns");if(e){let o=e.replace(this._liveElementId,"").trim();o.length>0?t.setAttribute("aria-owns",o):t.removeAttribute("aria-owns");}}),this._trackedModals.clear();}_assertNotAttached(){this._portalOutlet.hasAttached();}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let t=this._elementRef.nativeElement,e=t.querySelector("[aria-hidden]"),o=t.querySelector("[aria-live]");if(e&&o){let s=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(s=document.activeElement),e.removeAttribute("aria-hidden"),o.appendChild(e),s?.focus(),this._onAnnounce.next(),this._onAnnounce.complete();}},this._announceDelay);});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,o){if(e&1&&by(Yt$2,7)(ii$1,7),e&2){let s;m_$1(s=y_$1())&&(o._portalOutlet=s.first),m_$1(s=y_$1())&&(o._label=s.first);}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(e,o){e&1&&Ey("animationend",function(r){return o.onAnimationEnd(r.animationName)})("animationcancel",function(r){return o.onAnimationEnd(r.animationName)}),e&2&&xy("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled);},features:[Xm$2],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(e,o){e&1&&(Js$2(0,"div",1)(1,"div",2,0)(3,"div",3),ey$1(4,ni$1,0,0,"ng-template",4),gd$2(),fy(5,"div"),gd$2()()),e&2&&(SC(5),ly("aria-live",o._live)("role",o._role)("id",o._liveElementId));},dependencies:[Yt$2],styles:[`@keyframes _mat-snack-bar-enter { 1546 from { 1547 transform: scale(0.8); 1548 opacity: 0; 1549 } 1550 to { 1551 transform: scale(1); 1552 opacity: 1; 1553 } 1554} 1555@keyframes _mat-snack-bar-exit { 1556 from { 1557 opacity: 1; 1558 } 1559 to { 1560 opacity: 0; 1561 } 1562} 1563.mat-mdc-snack-bar-container { 1564 display: flex; 1565 align-items: center; 1566 justify-content: center; 1567 box-sizing: border-box; 1568 -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 1569 margin: 8px; 1570} 1571.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container { 1572 width: 100vw; 1573} 1574 1575.mat-snack-bar-container-animations-enabled { 1576 opacity: 0; 1577} 1578.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible { 1579 opacity: 1; 1580} 1581.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter { 1582 animation: _mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards; 1583} 1584.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit { 1585 animation: _mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards; 1586} 1587 1588.mat-mdc-snackbar-surface { 1589 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); 1590 display: flex; 1591 align-items: center; 1592 justify-content: flex-start; 1593 box-sizing: border-box; 1594 padding-left: 0; 1595 padding-right: 8px; 1596} 1597[dir=rtl] .mat-mdc-snackbar-surface { 1598 padding-right: 0; 1599 padding-left: 8px; 1600} 1601.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface { 1602 min-width: 344px; 1603 max-width: 672px; 1604} 1605.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface { 1606 width: 100%; 1607 min-width: 0; 1608} 1609@media (forced-colors: active) { 1610 .mat-mdc-snackbar-surface { 1611 outline: solid 1px; 1612 } 1613} 1614.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface { 1615 color: var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface)); 1616 border-radius: var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small)); 1617 background-color: var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface)); 1618} 1619 1620.mdc-snackbar__label { 1621 width: 100%; 1622 flex-grow: 1; 1623 box-sizing: border-box; 1624 margin: 0; 1625 padding: 14px 8px 14px 16px; 1626} 1627[dir=rtl] .mdc-snackbar__label { 1628 padding-left: 8px; 1629 padding-right: 16px; 1630} 1631.mat-mdc-snack-bar-container .mdc-snackbar__label { 1632 font-family: var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font)); 1633 font-size: var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size)); 1634 font-weight: var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight)); 1635 line-height: var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height)); 1636} 1637 1638.mat-mdc-snack-bar-actions { 1639 display: flex; 1640 flex-shrink: 0; 1641 align-items: center; 1642 box-sizing: border-box; 1643} 1644 1645.mat-mdc-snack-bar-handset, 1646.mat-mdc-snack-bar-container, 1647.mat-mdc-snack-bar-label { 1648 flex: 1 1 auto; 1649} 1650 1651.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed { 1652 color: var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary)); 1653} 1654.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) { 1655 --mat-button-text-state-layer-color: currentColor; 1656 --mat-button-text-ripple-color: currentColor; 1657} 1658.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element { 1659 opacity: 0.1; 1660} 1661`],encapsulation:2,changeDetection:1})}return n})(),ci$1=new I$4("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new $$3}),hi$1=(()=>{class n{_live=g$4(ci$2);_injector=g$4(Ee$4);_breakpointObserver=g$4(Zt$3);_parentSnackBar=g$4(n,{optional:true,skipSelf:true});_defaultConfig=g$4(ci$1);_animationsDisabled=ct$1();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Ze$1;snackBarContainerComponent=li;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t;}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",o){let s=D$6(D$6({},this._defaultConfig),o);return s.data={message:t,action:e},s.announcementMessage===t&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}
1661ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(t,e){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=Ee$4.create({parent:o||this._injector,providers:[{provide:$$3,useValue:e}]}),r=new Z$1(this.snackBarContainerComponent,e.viewContainerRef,s),a=t.attach(r);return a.instance.snackBarConfig=e,a.instance}_attach(t,e){let o=D$6(D$6(D$6({},new $$3),this._defaultConfig),e),s=this._createOverlay(o),r=this._attachSnackBarContainer(s,o),a=new nt$2(r,s);if(t instanceof Et$3){let c=new B$2(t,null,{$implicit:o.data,snackBarRef:a});a.instance=r.attachTemplatePortal(c);}else {let c=this._createInjector(o,a),d=new Z$1(t,void 0,c),h=r.attachComponentPortal(d);a.instance=h.instance;}return this._breakpointObserver.observe(qi$2.HandsetPortrait).pipe(Hf$1(s.detachments())).subscribe(c=>{s.overlayElement.classList.toggle(this.handsetCssClass,c.matches);}),o.announcementMessage&&r._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness);}),this._animateSnackBar(a,o),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear();}),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter();}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter();}_createOverlay(t){let e=new N$2;e.direction=t.direction;let o=St$2(this._injector),s=t.direction==="rtl",r=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!s||t.horizontalPosition==="end"&&s,a=!r&&t.horizontalPosition!=="center";return r?o.left("0"):a?o.right("0"):o.centerHorizontally(),t.verticalPosition==="top"?o.top("0"):o.bottom("0"),e.positionStrategy=o,e.disableAnimations=this._animationsDisabled,it$1(this._injector,e)}_createInjector(t,e){let o=t&&t.viewContainerRef&&t.viewContainerRef.injector;return Ee$4.create({parent:o||this._injector,providers:[{provide:nt$2,useValue:e},{provide:Xe$1,useValue:t.data}]})}static \u0275fac=function(e){return new(e||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var go$2=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({providers:[hi$1],imports:[Jt$3,_t$2,Vs$1,Ze$1,it$2]})}return n})();var ee$1={production:true,appBaseUrl:"https://sociallab.sa",serverBaseUrlNoAPI:"https://appapi.sociallab.sa/",serverBaseUrl:"https://appapi.sociallab.sa/api/",facebookAppId:"607604494814859",googleClientId:"807767825773-gc6ptap4bi4jlha3prjt30mtp6iifr95.apps.googleusercontent.com",notificationServerUrl:"https://appapi.sociallab.sa/api/PushingNotifications",chatWidgetClientKey:"",turnstileSiteKey:"0x4AAAAAAEMilnKJTZtrEJ6_"};var yt$1=(o,e)=>e.label;function kt$2(o,e){o&1&&(Xp$2(),Js$2(0,"svg",2),fy(1,"path",13),gd$2());}function It(o,e){o&1&&(Xp$2(),Js$2(0,"svg",3),fy(1,"path",14),gd$2());}function Pt$1(o,e){o&1&&(Xp$2(),Js$2(0,"svg",4),fy(1,"path",15)(2,"path",16)(3,"path",17),gd$2());}function xt$1(o,e){o&1&&(Xp$2(),Js$2(0,"svg",4),fy(1,"circle",18)(2,"path",19)(3,"path",20),gd$2());}function Et$1(o,e){if(o&1&&(Js$2(0,"mat-icon"),H_$1(1),gd$2()),o&2){let t=d_$1().$implicit;SC(),jy(t.icon);}}function At$1(o,e){if(o&1){let t=i_$1();Js$2(0,"button",22),Ey("click",function(){let s=Vp$2(t).$implicit,i=d_$1(2);return Hp$2(i.runAction(s))}),ZT(1,Et$1,2,1,"mat-icon"),Js$2(2,"span"),H_$1(3),gd$2()();}if(o&2){let t=e.$implicit;xy("is-emphasized",t.emphasized),SC(),YT(t.icon?1:-1),SC(2),jy(t.label);}}function Rt$2(o,e){if(o&1&&(Js$2(0,"div",8),XT(1,At$1,4,4,"button",21,yt$1),gd$2()),o&2){let t=d_$1();SC(),JT(t.data.actions);}}var ht$2=(()=>{class o{constructor(t){this.data=t,this.snackRef=g$4(nt$2),this.translate=g$4(O$5),this.dir=(this.translate.currentLang||this.translate.defaultLang)==="ar"?"rtl":"ltr";}dismiss(){this.snackRef.dismiss();}runAction(t){this.snackRef.dismiss(),t.handler();}static{this.\u0275fac=function(n){return new(n||o)(V$3(Xe$1))};}static{this.\u0275cmp=Xb({type:o,selectors:[["app-soft-glass-toast"]],decls:16,vars:9,consts:[[1,"sg-toast"],[1,"sg-icon"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2.6","stroke-linecap","round","stroke-linejoin","round"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2.4","stroke-linecap","round"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2.2","stroke-linecap","round","stroke-linejoin","round"],[1,"sg-body"],[1,"sg-title"],[1,"sg-msg"],[1,"sg-actions"],["type","button","aria-label","close",1,"sg-close",3,"click"],["viewBox","0 0 24 24","width","16","height","16","fill","none","stroke","currentColor","stroke-width","2.2","stroke-linecap","round"],["d","M6 6l12 12M18 6L6 18"],[1,"sg-bar"],["d","M20 6 9 17l-5-5"],["d","M6 6l12 12M18 6 6 18"],["d","M12 9v4"],["d","M12 17h.01"],["d","M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z"],["cx","12","cy","12","r","9"],["d","M12 11v5"],["d","M12 8h.01"],["type","button",1,"sg-action",3,"is-emphasized"],["type","button",1,"sg-action",3,"click"]],template:function(n,s){if(n&1&&(Js$2(0,"div",0)(1,"span",1),ZT(2,kt$2,2,0,":svg:svg",2)(3,It,2,0,":svg:svg",3)(4,Pt$1,4,0,":svg:svg",4)(5,xt$1,4,0,":svg:svg",4),gd$2(),Js$2(6,"div",5)(7,"div",6),H_$1(8),gd$2(),Js$2(9,"div",7),H_$1(10),gd$2(),ZT(11,Rt$2,3,0,"div",8),gd$2(),Js$2(12,"button",9),Ey("click",function(){return s.dismiss()}
1661),Xp$2(),Js$2(13,"svg",10),fy(14,"path",11),gd$2()(),Jp$2(),fy(15,"span",12),gd$2()),n&2){let i;x_$1(s.data.type),ly("dir",s.dir),SC(2),YT((i=s.data.type)==="success"?2:i==="error"?3:i==="warning"?4:5),SC(6),jy(s.data.title),SC(2),jy(s.data.message),SC(),YT(s.data.actions?.length?11:-1),SC(4),Ny("animation-duration",s.data.duration,"ms");}},dependencies:[Xv,us,ms],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.sg-toast[_ngcontent-%COMP%]{display:flex;gap:14px;align-items:flex-start;width:360px;max-width:calc(100vw - 32px);padding:16px 18px;background:#ffffffd1;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(229,234,239,.9);border-radius:var(--radius-xl);box-shadow:var(--shadow-float);position:relative;overflow:hidden;font-family:Cairo,system-ui,sans-serif}.sg-icon[_ngcontent-%COMP%]{flex:0 0 40px;height:40px;border-radius:var(--radius-lg);display:grid;place-items:center;color:#fff}.sg-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:22px;height:22px;display:block}.sg-body[_ngcontent-%COMP%]{flex:1;min-width:0}.sg-title[_ngcontent-%COMP%]{font-weight:700;font-size:var(--font-size-base);line-height:1.3;margin:1px 0 2px;color:#2a3547}.sg-msg[_ngcontent-%COMP%]{font-size:var(--font-size-sm);color:#5d6b85;line-height:1.45;word-wrap:break-word}.sg-close[_ngcontent-%COMP%]{flex:0 0 auto;background:none;border:none;cursor:pointer;color:var(--color-text-muted);padding:4px;border-radius:var(--radius-card);display:grid;place-items:center;transition:background .15s ease,color .15s ease}.sg-close[_ngcontent-%COMP%]:hover{background:#0000000d;color:#2a3547}.sg-bar[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;height:3px;width:100%;transform-origin:left;animation-name:_ngcontent-%COMP%_sg-shrink;animation-timing-function:linear;animation-fill-mode:forwards}.sg-toast[dir=rtl][_ngcontent-%COMP%] .sg-bar[_ngcontent-%COMP%]{transform-origin:right}@keyframes _ngcontent-%COMP%_sg-shrink{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.sg-toast.success[_ngcontent-%COMP%] .sg-icon[_ngcontent-%COMP%], .sg-toast.success[_ngcontent-%COMP%] .sg-bar[_ngcontent-%COMP%]{background:#13deb9}.sg-toast.error[_ngcontent-%COMP%] .sg-icon[_ngcontent-%COMP%], .sg-toast.error[_ngcontent-%COMP%] .sg-bar[_ngcontent-%COMP%]{background:#fa896b}.sg-toast.warning[_ngcontent-%COMP%] .sg-icon[_ngcontent-%COMP%], .sg-toast.warning[_ngcontent-%COMP%] .sg-bar[_ngcontent-%COMP%]{background:#ffae1f}.sg-toast.info[_ngcontent-%COMP%] .sg-icon[_ngcontent-%COMP%], .sg-toast.info[_ngcontent-%COMP%] .sg-bar[_ngcontent-%COMP%]{background:#36d6ff}.sg-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;margin-block-start:10px}.sg-action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border:1px solid var(--color-border);border-radius:var(--radius-full);background:#ffffffb3;color:var(--color-text-muted);font-family:inherit;font-size:var(--font-size-xs);font-weight:600;line-height:1.2;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}.sg-action[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:16px;height:16px;font-size:var(--font-size-base);line-height:1}.sg-action[_ngcontent-%COMP%]:hover{background:var(--color-card);color:var(--color-text)}.sg-action[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.sg-action.is-emphasized[_ngcontent-%COMP%]{border-color:var(--color-primary);color:var(--color-primary);background:var(--color-light-primary)}.sg-action.is-emphasized[_ngcontent-%COMP%]:hover{background:var(--color-primary);color:var(--color-white)}']});}}return o})();var ut$2=(()=>{class o{constructor(){this.snackBar=g$4(hi$1),this.translate=g$4(O$5),this.defaultTitleKey={success:"Success",error:"Error",warning:"Warning",info:"Info"},this.defaultConfig={duration:1e4,horizontalPosition:"end",verticalPosition:"bottom"};}normalizeMessage(t,n="Failed to Complete the Operation"){if(t==null||t===void 0)return this.translate.instant(n);if(typeof t=="string"){let i=t.trim();return i?this.translate.instant(i):this.translate.instant(n)}let s=String(t).trim();return s?this.translate.instant(s):this.translate.instant(n)}success(t,n,s){this.show(this.normalizeMessage(t,"Completed Successfully"),"success",n,D$6(D$6({},this.defaultConfig),s));}error(t,n,s){this.show(this.normalizeMessage(t,"Failed to Complete the Operation"),"error",n,D$6(E$7(D$6({},this.defaultConfig),{duration:7e3}),s));}warning(t,n,s){this.show(this.normalizeMessage(t,"Failed to Complete the Operation"),"warning",n,D$6(D$6({},this.defaultConfig),s));}info(t,n,s){this.show(this.normalizeMessage(t,"Completed Successfully"),"info",n,D$6(D$6({},this.defaultConfig),s));}withActions(t,n,s="success",i,r){let c=n.map(l=>E$7(D$6({},l),{label:this.normalizeMessage(l.label,l.label)}));this.show(this.normalizeMessage(t,"Completed Successfully"),s,i,D$6(E$7(D$6({},this.defaultConfig),{duration:15e3}),r),c);}show(t,n="info",s,i,r){let c=D$6(D$6({},this.defaultConfig),i),h={title:this.normalizeMessage(s??this.defaultTitleKey[n],this.defaultTitleKey[n]),message:t,type:n,duration:c.duration??1e4,actions:r};this.snackBar.openFromComponent(ht$2,E$7(D$6({},c),{data:h,panelClass:["soft-glass-toast-panel",...Tt$1(c.panelClass)]}));}clear(){this.snackBar.dismiss();}static{this.\u0275fac=function(n){return new(n||o)};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o}
1661)();function Tt$1(o){return o?Array.isArray(o)?o:[o]:[]}var dt$2=(()=>{class o{storageKey(t){return `paginator_state::${t}`}setState(t,n){t&&localStorage.setItem(this.storageKey(t),JSON.stringify(n));}getState(t,n={pageIndex:0,pageSize:10}){if(!t)return n;let s=localStorage.getItem(this.storageKey(t));if(s)try{return JSON.parse(s)}catch(i){return n}return n}clearState(t){localStorage.removeItem(this.storageKey(t));}clearAllStates(){let t=[];for(let n=0;n<localStorage.length;n++){let s=localStorage.key(n);s&&s.startsWith("paginator_state::")&&t.push(s);}t.forEach(n=>localStorage.removeItem(n));}static{this.\u0275fac=function(n){return new(n||o)};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var S$6=(function(o){return o[o.GeneralNote=0]="GeneralNote",o[o.NumberOfUnreadMsgs=1]="NumberOfUnreadMsgs",o[o.NewMsg=2]="NewMsg",o[o.NewUser=3]="NewUser",o[o.MsgSent=4]="MsgSent",o[o.MsgRead=5]="MsgRead",o[o.MsgDelivered=6]="MsgDelivered",o[o.MsgFailed=7]="MsgFailed",o[o.MsgMediaReady=8]="MsgMediaReady",o[o.QRCode=9]="QRCode",o[o.PairingCode=10]="PairingCode",o[o.AIAgentSuspended=11]="AIAgentSuspended",o[o.CustomerAssigned=12]="CustomerAssigned",o[o.SecurityNewLogin=13]="SecurityNewLogin",o[o.FollowUpReminder=14]="FollowUpReminder",o[o.BackgroundTask=15]="Backgroun
1661dTask",o[o.AIAgentResumed=16]="AIAgentResumed",o[o.MsgTranscriptReady=17]="MsgTranscriptReady",o[o.MsgAdReady=18]="MsgAdReady",o})(S$6||{});var te$2=(function(o){return o[o.Critical=0]="Critical",o[o.High=1]="High",o[o.Medium=2]="Medium",o[o.Low=3]="Low",o})(te$2||{});var ne$3=(function(o){return o[o.text=0]="text",o[o.image=1]="image",o[o.audio=2]="audio",o[o.video=3]="video",o[o.document=4]="document",o[o.contacts=5]="contacts",o[o.template=6]="template",o[o.interactive=7]="interactive",o[o.location=8]="location",o[o.sticker=9]="sticker",o[o.reaction=10]="reaction",o[o.button=11]="button",o[o.flow=12]="flow",o[o.unsupported=13]="unsupported",o[o.order=14]="order",o[o.edit=15]="edit",o[o.revoke=16]="revoke",o[o.share_post=17]="share_post",o[o.html=20]="html",o[o.EmailAttachment=21]="EmailAttachment",o[o.like_heart=22]="like_heart",o[o.IGTemplate=23]="IGTemplate",o[o.ig_reel=24]="ig_reel",o[o.reel=25]="reel",o[o.story_mention=26]="story_mention",o[o.share=27]="share",o[o.ig_story=28]="ig_story",o[o.ephemeral=29]="ephemeral",o[o.smsText=30]="smsText",o[o.ig_comment=31]="ig_comment",o[o.tiktok_comment=33]="tiktok_comment",o[o.sociallab=50]="sociallab",o[o.aiSummary=51]="aiSummary",o[o.call=52]="call",o[o.system=500]="system",o})(ne$3||{});var gt$1=new I$4("CUSTOMER_LOOKUP");var fe$3="customerFilters",pe$3="allUsers",oe$3="aiSuspensions",ft$2="Unsupported Message",J$2=class o{clearQrNotification(){this.qrNotificationSubject.next(null);}constructor(e,t,n,s){this.platformId=e,this.toast=t,this.customerService=n,this.paginationStateService=s,this.customers=[],this.messagesSubject=new Jr$1([]),this.customersSubject=new Jr$1([]),this.qrNotificationSubject=ne
1661w Jr$1(null),this.commentAddedSubject=new ye$5,this.aiSuspendedSubject=new ye$5,this.aiResumedSubject=new ye$5,this.messages$=this.messagesSubject.asObservable(),this.customers$=this.customersSubject.asObservable(),this.qrNotification$=this.qrNotificationSubject.asObservable(),this.commentAdded$=this.commentAddedSubject.asObservable(),this.aiSuspended$=this.aiSuspendedSubject.asObservable(),this.aiResumed$=this.aiResumedSubject.asObservable(),this.persistentKeys=["notificationSound","notificationVolume","availabilityWarningDontRemind","availabilityWarningRemindLater","messageHeaderPinnedActions"];}hasValue(e){return _$(this.platformId)?!!(sessionStorage.getItem(e)||typeof window<"u"&&localStorage.getItem(e)):false}getValue(e){if(!_$(this.platformId))return null;let t=sessionStorage.getItem(e);if(t)return t;if(typeof window<"u"){let n=localStorage.getItem(e);if(n)return n}return null}removeValue(e){_$(this.platformId)&&sessionStorage.removeItem(e),typeof window<"u"&&localStorage.removeItem(e);}clearAll(){if(_$(this.platformId)&&sessionStorage.clear(),typeof window<"u"){let e=new Map;for(let t of this.persistentKeys){let n=localStorage.getItem(t);n!==null&&e.set(t,n);}localStorage.clear();for(let[t,n]of e)localStorage.setItem(t,n);this.clearCache();}}clearCache(){"caches"in window&&caches.keys().then(function(e){e.forEach(function(t){caches.delete(t);});});}setValue(e,t){_$(this.platformId)&&sessionStorage.setItem(e,t),typeof window<"u"&&localStorage.setItem(e,t);}getAllCustomers(e=true){return e?this.customers.sort((t,n)=>{let s=t.isPinned?0:1,i=n.isPinned?0:1;if(s!==i)return s-i;let r=t.lastMessageOn?new Date(t.lastMessageOn).getTime():0,c=n.lastMessageOn?new Date(n.lastMessageOn).getTime():0;return r===0&&c===0?0:r===0?1:c===0?-1:c-r}):this.customers}getCustomer(e){return this.customers.filter(t=>t.id==e)}getCustomersCount(){return this.customers.length}clearCustomers(){this.customers=[];}addCustomers(e,t=false){e.forEach(n=>{this.customers.some(s=>s.id===n.id)||(this.applyAiSuspension(n),t?this.customers.unshift(n):this.customers.push(n));});}getSelectedMessages(){return this.messagesSubject.getValue()}newMsgCounter(e){if(!e.customerId)return;let t=new Date,n=this.customers?.find(s=>s.id===e.customerId);n?(n.noOfUnreadMessages++,n.sessionStatus!==2&&(n.sessionStatus=1,this.selectedCstomer&&(this.selectedCstomer.sessionStatus=1)),n.lastMessageOn=new Date(t.getTime()),n.sessionStatus!==2&&(n.startedOn=new Date(t.getTime())),this.customersSubject.next([...this.getAllCustomers()])):this.customerService.getCustomerByIdForMessages(e.customerId).subscribe({next:s=>{if(s.succeeded&&s.data.length>0&&s.data[0].id==e.customerId){let i=s.data[0];i.sessionStatus=1,i.startedOn=new Date(t.getTime()),i.lastMessageOn=new Date(t.getTime()),!this.customers?.some(c=>c.id===i.id)&&this.incomingCustomerMatchesFilters(i)&&(this.addCustomers([i],true),this.customersSubject.next([...this.getAllCustomers()]));}}});}getCurrentUserId(){try{let e=this.getValue("auth-user");if(!e)return null;let t=JSON.parse(e);return typeof t?.id=="number"?t.id:null}catch(e){return null}}incomingCustomerMatchesFilters(e){let t=this.getCustomerFilters();if(!t)return true;if(e.isArchived!==!!t.isArchiveChecked||e.isBlocked!==!!t.isBlockChecked||t.isUnreadChecked&&(e.noOfUnreadMessages||0)<=0)return false;let n=t.assignedTo;if(n!=null&&n!==-55){if(n===-1){if(e.assignedTo!=null)return false}else if(n===0){if(e.assignedTo==null)return false}else if(n===1){let c=this.getCurrentUserId();if(c==null||e.assignedTo!==c)return false}else if(n===2){let c=this.getCurrentUserId();if(e.assignedTo!=null&&e.assignedTo!==c)return false}else if(e.assignedTo!==n)return false}let s=t.sessionStatus;if(s!=null&&s!==-55&&e.sessionStatus!==s)return false;let i=t.messagingPlatform;if(i!=null&&i!==-55&&e.messagingPlatform!==i)return false;let r=t.channelAccountId;return !(r!=null&&e.channelAccountId!==r)}customerAssigned(e){if(!e.customerId)return;let t=e.customerId,n=e.assignedTo??null,s=this.customers.find(i=>i.id===t);s?(s.assignedTo=n,this.selectedCstomer&&this.selectedCstomer.id===t&&(this.selectedCstomer.assignedTo=n),this.incomingCustomerMatchesFilters(s)||(this.customers=this.customers.filter(i=>i.id!==t)),this.customersSubject.next([...this.getAllCustomers()])):this.customerService.getCustomerByIdForMessages(t).subscribe({next:i=>{if(i.succeeded&&i.data.length>0&&i.data[0].id==t){let r=i.data[0];r.assignedTo=n,this.incomingCustomerMatchesFilters(r)&&(this.addCustomers([r],true),this.customersSubject.next([...this.getAllCustomers()]));}}});}addMsgToMessages(e){if(this.getMessageById(e.id)!=null)return;let t=this.messagesSubject.getValue();if(!t.some(s=>e.waId&&s.waId===e.waId)){if(e.replyToMessageId){let s=this.messagesSubject.getValue().find(i=>i.waId===e.replyToMessageId);s&&this.applyReplyContext(e,s);}this.messagesSubject.next([...t,e]);}}clearMessages(){this.messagesSubject.next([]);}getMessageById(e){return this.messagesSubject.getValue().find(t=>
1661t.id===e)??null}addMsgsToMessages(e){let t=this.messagesSubject.getValue(),n=[...e,...t],s=new Map;for(let i of n)i.waId&&s.set(i.waId,i);for(let i of n)if(i.replyToMessageId){let r=s.get(i.replyToMessageId);r&&this.applyReplyContext(i,r);}this.messagesSubject.next(n);}applyReplyContext(e,t){e.replyToMsgOrg=t.body,e.replyToType=t.type,e.replyToDbId=t.id,e.replyToFilePath=t.filePath,e.replyToFileName=t.fileName;}setSelectedCustomer(e){let t=Number(e);this.selectedCstomer=this.customers.find(n=>n.id==t)??null;}clearSelectedCustomer(){this.selectedCstomer=null;}newMsgStatus(e){let t=this.messagesSubject.getValue();if(e.key==="widget_read"&&e.notificationType===S$6.MsgRead){let s=(e.value||"").split(",").map(i=>Number(i.trim())).filter(i=>!!i);for(let i of s){let r=t.find(c=>c.id===i);r&&(r.isRead=true);}return}let n=t.find(s=>s.waId===e.messageId);if(n){switch(e.notificationType){case S$6.MsgSent:n.isSent=true;break;case S$6.MsgRead:n.isRead=true;break;case S$6.MsgDelivered:n.isDelivered=true;break;case S$6.MsgFailed:n.isFailed=true;break}e.object&&(n.failedMsg=e.object.failedMsg,n.failedOn=e.object.failedOn,n.sentOn=e.object.sentOn,n.readOn=e.object.readOn,n.deliveredOn=e.object.deliveredOn);}}setNumberOfUnreadMsgs(e){localStorage.setItem("unredNotificationsCount",e.toString());}updateNumberOfUnreadMsgs(){let e=localStorage.getItem("unredNotificationsCount")||"0",t=Number(e),n=(Number.isFinite(t)?Math.max(0,t):0)+1;localStorage.setItem("unredNotificationsCount",n.toString());}decrementNumberOfUnreadMsgs(){let e=Number(localStorage.getItem("unredNotificationsCount")||"0"),t=Number.isFinite(e)?Math.max(0,e-1):0;localStorage.setItem("unredNotificationsCount",t.toString());}getNumberOfUnreadMsgs(){return localStorage.getItem("unredNotificationsCount")}static{this.LIVE_ONLY_PUSH_KEYS=new Set(["kb-gap-analysis","CallHandledElsewhere","CallForceEnded"]);}isBellNotification(e){return e?.key&&o.LIVE_ONLY_PUSH_KEYS.has(e.key)?false:e?.notificationType===S$6.GeneralNote||e?.notificationType===S$6.FollowUpReminder}mayInterrupt(e){let t=e?.priority??te$2.Medium;return t===te$2.Critical||t===te$2.High}addNotification(e){let t=e.notificationType,n=e.object?.direction;switch(this.isBellNotification(e)&&this.updateNumberOfUnreadMsgs(),t){case S$6.NewMsg:if(e.object?.type===ne$3.tiktok_comment)break;e.object!=null&&(e.object.direction===1&&(this.newMsgCounter(e),e.isMute||this.playSound()),e.object.direction===2&&e.customerId&&this.commentAddedSubject.next(e.customerId),this.selectedCstomer&&this.selectedCstomer.id===e.customerId&&e.object&&(this.selectedCstomer.lastMessage=e.object.body,this.addMsgToMessages(e.object)));break;case S$6.MsgSent:case S$6.MsgRead:case S$6.MsgDelivered:case S$6.MsgFailed:this.newMsgStatus(e);break;case S$6.MsgMediaReady:if(e.object){let s=this.messagesSubject.getValue(),i=s.find(r=>r.waId===e.object.waId||r.id===e.object.id);i&&(i.fileName=e.object.fileName,i.fileDBId=e.object.fileDBId,i.filePath=e.object.filePath,this.messagesSubject.next([...s]));}break;case S$6.MsgTranscriptReady:if(e.object){let s=e.object.id,i=e.object.waId,r=this.messagesSubject.getValue(),c=r.find(h=>!!s&&h.id===s||!!i&&h.waId===i);c&&(c.body=e.object.body,c.type=e.object.type,this.messagesSubject.next([...r]));let l=this.customers.find(h=>h.id===e.customerId);l&&(!l.lastMessage||l.lastMessage===ft$2)&&(l.lastMessage=e.object.body),this.selectedCstomer&&this.selectedCstomer.id===e.customerId&&(!this.selectedCstomer.lastMessage||this.selectedCstomer.lastMessage===ft$2)&&(this.selectedCstomer.lastMessage=e.object.body);}break;case S$6.MsgAdReady:if(e.object){let s=e.object.id,i=e.object.waId,r=this.messagesSubject.getValue(),c=r.find(l=>!!s&&l.id===s||!!i&&l.waId===i);c&&(c.adHeadline=e.object.adHeadline,c.adBody=e.object.adBody,c.adSourceUrl=e.object.adSourceUrl,c.adMediaType=e.object.adMediaType,c.adMediaFilePath=e.object.adMediaFilePath,this.messagesSubject.next([...r]));}break;case S$6.QRCode:case S$6.PairingCode:this.qrNotificationSubject.next(e);break;case S$6.AIAgentSuspended:if(e.customerId){let s=e.reactivateAt?new Date(e.reactivateAt):null;this.setAiSuspension(e.customerId,s);let i=this.customers.find(r=>r.id===e.customerId);i&&(i.isReceiveAIAutoReply=false,i.aiAutoSuspended=true,i.aiReactivateAt=s,e.dateTime&&(i.lastAutoReply=new Date(e.dateTime).toISOString())),this.selectedCstomer&&this.selectedCstomer.id===e.customerId&&(this.selectedCstomer.isReceiveAIAutoReply=false,this.selectedCstomer.aiAutoSuspended=true,this.selectedCstomer.aiReactivateAt=s),this.aiSuspendedSubject.next({customerId:e.customerId,reactivateAt:s});}break;case S$6.AIAgentResumed:if(e.customerId){this.clearAiSuspension(e.customerId);let s=this.customers.find(i=>i.id===e.customerId);s&&(s.isReceiveAIAutoReply=true,s.aiAutoSuspended=false,s.aiReactivateAt=null),this.selectedCstomer&&this.selectedCstomer.id===e.customerId&&(this.selectedCstomer.isReceiveAIAutoReply=true,this.selectedCstomer.aiAutoSuspended=false,this.selectedCstomer.aiReactivateAt=null),this.aiResumedSubject.next(e.customerId);}break;case S$6.CustomerAssigned:this.customerAssigned(e);break;case S$6.SecurityNewLogin:e?.message&&(this.toast.warning(e.message),this.playSound());break;default:if(!this.mayInterrupt(e))break;n===1&&this.playSound(),e?.object?.body?this.toast.info(e?.object?.body):e?.message&&this.toast.info(e?.message);break}}playSound(){let e=this.getNotificationSound();if(e==="silent")return;let t=new Audio;t.src=`assets/audio/notifications/${e}`,t.volume=this.getNotificationVolume()/100,t.load(),t.play().catch(n=>{console.error("Error playing notification sound:",n);});}getNotificationSound(){return localStorage.getItem("notificationSound")??"notification2.mp3"}setNotificationSound(e){e==="silent"||e.includes(".")?localStorage.setItem("notificationSound",e):console.warn('Invalid notification sound - must be "silent" or filename with extension:',e);}getNotificationVolume(){let e=localStorage.getItem("notificationVolume");if(e===null)return 80;let t=parseInt(e,10);return isNaN(t)?80:Math.min(100,Math.max(0,t))}setNotificationVolume(e){localStorage.setItem("notificationVolume",String(Math.min(100,Math.max(0,Math.round(e)))));}setCustomerFilters(e){localStorage.setItem(fe$3,JSON.stringify(e));}getCustomerFilters(){let e=localStorage.getItem(fe$3);return e?JSON.parse(e):null}resetCustomerFilters(){localStorage.removeItem(fe$3);}setUsers(e){localStorage.setItem(pe$3,JSON.stringify(e));}getUsers(){let e=localStorage.getItem(pe$3);return e?JSON.parse(e):null}clearUsersCache(){this.removeValue(pe$3);}getLastMessage(e){let n=this.getSelectedMessages().filter(s=>s.customerId===e&&s.direction===1);return !n||n.length===0?null:n[n.length-1]}changeWebNotificationStatus(e){localStorage.setItem("webNotificationStatus",e?"true":"false");}clearClientData(){this.removeValue(fe$3),this.removeValue(pe$3),this.removeValue("unredNotificationsCount"),this.removeValue("selectedPlan"),this.removeValue("dashboard-numbers"),this.removeValue(oe$3),this.paginationStateService.clearAllStates(),this.clearCustomers(),this.clearMessages(),this.clearSelectedCustomer();}getAiSuspensions(){if(!_$(this.platformId))return {};try{return JSON.parse(localStorage.getItem(oe$3)||"{}")}catch(e){return {}}}setAiSuspension(e,t){let n=this.getAiSuspensions();n[e]=t?t.toISOString():null,localStorage.setItem(oe$3,JSON.stringify(n));}clearAiSuspension(e){let t=this.getAiSuspensions();e in t&&(delete t[e],localStorage.setItem(oe$3,JSON.stringify(t)));}applyAiSuspension(e){let t=this.getAiSuspensions();if(!(e.id in t))return;let n=t[e.id],s=n?new Date(n):null,i=!!s&&s.getTime()<=Date.now();
1661if(e.isReceiveAIAutoReply||i){delete t[e.id],localStorage.setItem(oe$3,JSON.stringify(t));return}e.aiAutoSuspended=true,e.aiReactivateAt=s;}static{this.\u0275fac=function(t){return new(t||o)(M$6(So$3),M$6(ut$2),M$6(gt$1),M$6(dt$2))};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}};var x$2=class x extends Error{constructor(e,t){let n=new.target.prototype;super(`${e}: Status code '${t}'`),this.statusCode=t,this.__proto__=n;}},L$4=class L extends Error{constructor(e="A timeout occurred."){let t=new.target.prototype;super(e),this.__proto__=t;}},C$4=class C extends Error{constructor(e="An abort occurred."){let t=new.target.prototype;super(e),this.__proto__=t;}},me$3=class me extends Error{constructor(e,t){let n=new.target.prototype;super(e),this.transport=t,this.errorType="UnsupportedTransportError",this.__proto__=n;}},_e$2=class _e extends Error{constructor(e,t){let n=new.target.prototype;super(e),this.transport=t,this.errorType="DisabledTransportError",this.__proto__=n;}},Se$3=class Se extends Error{constructor(e,t){let n=new.target.prototype;super(e),this.transport=t,this.errorType="FailedToStartTransportError",this.__proto__=n;}},se$3=class se extends Error{constructor(e){let t=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=t;}},be$3=class be extends Error{constructor(e,t){let n=new.target.prototype;super(e),this.innerErrors=t,this.__proto__=n;}};var X$1=class X{constructor(e,t,n){this.statusCode=e,this.statusText=t,this.content=n;}},M$5=class M{get(e,t){return this.send(E$7(D$6({},t),{method:"GET",url:e}))}post(e,t){return this.send(E$7(D$6({},t),{method:"POST",url:e}))}delete(e,t){return this.send(E$7(D$6({},t),{method:"DELETE",url:e}))}getCookieString(e){return ""}};var a$3=(function(o){return o[o.Trace=0]="Trace",o[o.Debug=1]="Debug",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.None=6]="None",o})(a$3||{});var O$4=class O{constructor(){}log(e,t){}};O$4.instance=new O$4;var mt$1="10.0.0";var m$3=class m{static isRequired(e,t){if(e==null)throw new Error(`The '${t}' argument is required.`)}static isNotEmpty(e,t){if(!e||e.match(/^\s*$/))throw new Error(`The '${t}' argument should not be empty.`)}static isIn(e,t,n){if(!(e in t))throw new Error(`Unknown ${n} value: ${e}.`)}},_$6=class o{static get isBrowser(){return !o.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return !o.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return !o.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}};function N$1(o,e){let t="";return R$2(o)?(t=`Binary data of length ${o.byteLength}`,e&&(t+=`. Content: '${Dt$2(o)}'`)):typeof o=="string"&&(t=`String data of length ${o.length}`,e&&(t+=`. Content: '${o}'`)),t}function Dt$2(o){let e=new Uint8Array(o),t="";return e.forEach(n=>{let s=n<16?"0":"";t+=`0x${s}${n.toString(16)} `;}),t.substring(0,t.length-1)}function R$2(o){return o&&typeof ArrayBuffer<"u"&&(o instanceof ArrayBuffer||o.constructor&&o.constructor.name==="ArrayBuffer")}function Ce(o,e,t,n,s,i){return L$7(this,null,function*(){let r={},[c,l]=D$3();r[c]=l,o.log(a$3.Trace,`(${e} transport) sending data. ${N$1(s,i.logMessageContent)}.`);let h=R$2(s)?"arraybuffer":"text",f=yield t.post(n,{content:s,headers:D$6(D$6({},r),i.headers),responseType:h,timeout:i.timeout,withCredentials:i.withCredentials});o.log(a$3.Trace,`(${e} transport) request complete. Response status: ${f.statusCode}.`);})}function _t$1(o){return o===void 0?new F$4(a$3.Information):o===null?O$4.instance:o.log!==void 0?o:new F$4(o)}var we$4=class we{constructor(e,t){this._subject=e,this._observer=t;}dispose(){let e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(t=>{});}},F$4=class F{constructor(e){this._minLevel=e,this.out=console;}log(e,t){if(e>=this._minLevel){let n=`[${new Date().toISOString()}] ${a$3[e]}: ${t}`;switch(e){case a$3.Critical:case a$3.Error:this.out.error(n);break;case a$3.Warning:this.out.warn(n);break;case a$3.Information:this.out.info(n);break;default:this.out.log(n);break}}}};function D$3(){let o="X-SignalR-User-Agent";return _$6.isNode&&(o="User-Agent"),[o,$t$2(mt$1,jt$2(),Ht$2(),Ut$1())]}function $t$2(o,e,t,n){let s="Microsoft SignalR/",i=o.split(".");return s+=`${i[0]}.${i[1]}`,s+=` (${o}; `,e&&e!==""?s+=`${e}; `:s+="Unknown OS; ",s+=`${t}`,n?s+=`; ${n}`:s+="; Unknown Runtime Version",s+=")",s}function jt$2(){if(_$6.isNode)switch(process.platform){case "win32":return "Windows NT";case "darwin":return "macOS";case "linux":return "Linux";default:return process.platform}else return ""}function Ut$1(){if(_$6.isNode)return process.versions.node}function Ht$2(){return _$6.isNode?"NodeJS":"Browser"}function ve$3(o){return o.stack?o.stack:o.message?o.message:`${o}`}function St$1(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}var ye$3=class ye extends M$5{constructor(e){if(super(),this._logger=e,typeof fetch>"u"||_$6.isNode){let t=typeof __webpack_require__=="function"?__non_webpack_require__:F$8;this._jar=new(t("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=t("node-fetch"):this._fetchType=fetch,this._fetchType=t("fetch-cookie")(this._fetchType,this._jar);}else this._fetchType=fetch.bind(St$1());if(typeof AbortController>"u"){let t=typeof __webpack_require__=="function"?__non_webpack_require__:F$8;this._abortControllerType=t("abort-controller");}else this._abortControllerType=AbortController;}send(e){return L$7(this,null,function*(){if(e.abortSignal&&e.abortSignal.aborted)throw new C$4;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");let t=new this._abortControllerType,n;e.abortSignal&&(e.abortSignal.onabort=()=>{t.abort(),n=new C$4;});let s=null;if(e.timeout){let l=e.timeout;s=setTimeout(()=>{t.abort(),this._logger.log(a$3.Warning,"Timeout from HTTP request."),n=new L$4;},l);}e.content===""&&(e.content=void 0),e.content&&(e.headers=e.headers||{},R$2(e.content)?e.headers["Content-Type"]="application/octet-stream":e.headers["Content-Type"]="text/plain;charset=UTF-8");let i;try{i=yield this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:e.withCredentials===!0?"include":"same-origin",headers:D$6({"X-Requested-With":"XMLHttpRequest"},e.headers),method:e.method,mode:"cors",redirect:"follow",signal:t.signal});}catch(l){throw n||(this._logger.log(a$3.Warning,`Error from HTTP request. ${l}.`),l)}finally{s&&clearTimeout(s),e.abortSignal&&(e.abortSignal.onabort=null);}if(!i.ok){let l=yield bt$2(i,"text");throw new x$2(l||i.statusText,i.status)}let c=yield bt$2(i,e.responseType);return new X$1(i.status,i.statusText,c)})}getCookieString(e){let t="";return _$6.isNode&&this._jar&&this._jar.getCookies(e,(n,s)=>t=s.join("; ")),t}};function bt$2(o,e){let t;switch(e){case "arraybuffer":t=o.arrayBuffer();break;case "text":t=o.text();break;case "blob":case "document":case "json":throw new Error(`${e} is not supported.`);default:t=o.text();break}return t}var ke$2=class ke extends M$5{constructor(e){super(),this._logger=e;}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new C$4):e.method?e.url?new Promise((t,n)=>{let s=new XMLHttpRequest;s.open(e.method,e.url,true),s.withCredentials=e.withCredentials===void 0?true:e.withCredentials,s.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.content===""&&(e.content=void 0),e.content&&(R$2(e.content)?s.setRequestHeader("Content-Type","application/octet-stream"):s.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));let i=e.headers;
1661i&&Object.keys(i).forEach(r=>{s.setRequestHeader(r,i[r]);}),e.responseType&&(s.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{s.abort(),n(new C$4);}),e.timeout&&(s.timeout=e.timeout),s.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),s.status>=200&&s.status<300?t(new X$1(s.status,s.statusText,s.response||s.responseText)):n(new x$2(s.response||s.responseText||s.statusText,s.status));},s.onerror=()=>{this._logger.log(a$3.Warning,`Error from HTTP request. ${s.status}: ${s.statusText}.`),n(new x$2(s.statusText,s.status));},s.ontimeout=()=>{this._logger.log(a$3.Warning,"Timeout from HTTP request."),n(new L$4);},s.send(e.content);}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}};var Ie=class extends M$5{constructor(e){if(super(),typeof fetch<"u"||_$6.isNode)this._httpClient=new ye$3(e);else if(typeof XMLHttpRequest<"u")this._httpClient=new ke$2(e);else throw new Error("No usable HttpClient found.")}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new C$4):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}};var E$3=class o{static write(e){return `${e}${o.RecordSeparator}`}static parse(e){if(e[e.length-1]!==o.RecordSeparator)throw new Error("Message is incomplete.");let t=e.split(o.RecordSeparator);return t.pop(),t}};E$3.RecordSeparatorCode=30;E$3.RecordSeparator=String.fromCharCode(E$3.RecordSeparatorCode);var Pe$1=class Pe{writeHandshakeRequest(e){return E$3.write(JSON.stringify(e))}parseHandshakeResponse(e){let t,n;if(R$2(e)){let c=new Uint8Array(e),l=c.indexOf(E$3.RecordSeparatorCode);
1661if(l===-1)throw new Error("Message is incomplete.");let h=l+1;t=String.fromCharCode.apply(null,Array.prototype.slice.call(c.slice(0,h))),n=c.byteLength>h?c.slice(h).buffer:null;}else {let c=e,l=c.indexOf(E$3.RecordSeparator);if(l===-1)throw new Error("Message is incomplete.");let h=l+1;t=c.substring(0,h),n=c.length>h?c.substring(h):null;}let s=E$3.parse(t),i=JSON.parse(s[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return [n,i]}};var d$5=(function(o){return o[o.Invocation=1]="Invocation",o[o.StreamItem=2]="StreamItem",o[o.Completion=3]="Completion",o[o.StreamInvocation=4]="StreamInvocation",o[o.CancelInvocation=5]="CancelInvocation",o[o.Ping=6]="Ping",o[o.Close=7]="Close",o[o.Ack=8]="Ack",o[o.Sequence=9]="Sequence",o})(d$5||{});var xe$1=class xe{constructor(){this.observers=[];}next(e){for(let t of this.observers)t.next(e);}error(e){for(let t of this.observers)t.error&&t.error(e);}complete(){for(let e of this.observers)e.complete&&e.complete();}subscribe(e){return this.observers.push(e),new we$4(this,e)}};var Ee$1=class Ee{constructor(e,t,n){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=false,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=false,this._protocol=e,this._connection=t,this._bufferSize=n;}_send(e){return L$7(this,null,function*(){let t=this._protocol.writeMessage(e),n=Promise.resolve();if(this._isInvocationMessage(e)){this._totalMessageCount++;let s=()=>{},i=()=>{};R$2(t)?this._bufferedByteCount+=t.byteLength:this._bufferedByteCount+=t.length,this._bufferedByteCount>=this._bufferSize&&(n=new Promise((r,c)=>{s=r,i=c;})),this._messages.push(new Ue$3(t,this._totalMessageCount,s,i));}try{this._reconnectInProgress||(yield this._connection.send(t));}catch(s){this._disconnected();}yield n;})}_ack(e){let t=-1;for(let n=0;n<this._messages.length;n++){let s=this._messages[n];if(s._id<=e.sequenceId)t=n,R$2(s._message)?this._bufferedByteCount-=s._message.byteLength:this._bufferedByteCount-=s._message.length,s._resolver();else if(this._bufferedByteCount<this._bufferSize)s._resolver();else break}t!==-1&&(this._messages=this._messages.slice(t+1));}_shouldProcessMessage(e){if(this._waitForSequenceMessage)return e.type!==d$5.Sequence?false:(this._waitForSequenceMessage=false,true);if(!this._isInvocationMessage(e))return true;let t=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,t<=this._latestReceivedSequenceId?(t===this._latestReceivedSequenceId&&this._ackTimer(),false):(this._latestReceivedSequenceId=t,this._ackTimer(),true)}_resetSequence(e){if(e.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=e.sequenceId;}_disconnected(){this._reconnectInProgress=true,this._waitForSequenceMessage=true;}_resend(){return L$7(this,null,function*(){let e=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;yield this._connection.send(this._protocol.writeMessage({type:d$5.Sequence,sequenceId:e}));let t=this._messages;for(let n of t)yield this._connection.send(n._message);this._reconnectInProgress=false;})}_dispose(e){e??(e=new Error("Unable to reconnect to server."));for(let t of this._messages)t._rejector(e);}_isInvocationMessage(e){switch(e.type){case d$5.Invocation:case d$5.StreamItem:case d$5.Completion:case d$5.StreamInvocation:case d$5.CancelInvocation:return true;case d$5.Close:case d$5.Sequence:case d$5.Ping:case d$5.Ack:return false}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(()=>L$7(this,null,function*(){try{this._reconnectInProgress||(yield this._connection.send(this._protocol.writeMessage({type:d$5.Ack,sequenceId:this._latestReceivedSequenceId})));}catch(e){}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0;}),1e3));}},Ue$3=class Ue{constructor(e,t,n,s){this._message=e,this._id=t,this._resolver=n,this._rejector=s;}};var Lt$2=30*1e3,Nt=15*1e3,Bt=1e5,p$7=(function(o){return o.Disconnected="Disconnected",o.Connecting="Connecting",o.Connected="Connected",o.Disconnecting="Disconnecting",o.Reconnecting="Reconnecting",o})(p$7||{}),ie$2=class o{static create(e,t,n,s,i,r,c){return new o(e,t,n,s,i,r,c)}constructor(e,t,n,s,i,r,c){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(a$3.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");},m$3.isRequired(e,"connection"),m$3.isRequired(t,"logger"),m$3.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=i??Lt$2,this.keepAliveIntervalInMilliseconds=r??Nt,this._statefulReconnectBufferSize=c??Bt,this._logger=t,this._protocol=n,this.connection=e,this._reconnectPolicy=s,this._handshakeProtocol=new Pe$1,this.connection.onreceive=l=>
1661this._processIncomingData(l),this.connection.onclose=l=>this._connectionClosed(l),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=false,this._connectionState=p$7.Disconnected,this._connectionStarted=false,this._cachedPingMessage=this._protocol.writeMessage({type:d$5.Ping});}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==p$7.Disconnected&&this._connectionState!==p$7.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e;}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){return L$7(this,null,function*(){if(this._connectionState!==p$7.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=p$7.Connecting,this._logger.log(a$3.Debug,"Starting HubConnection.");try{yield this._startInternal(),_$6.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=p$7.Connected,this._connectionStarted=!0,this._logger.log(a$3.Debug,"HubConnection connected successfully.");}catch(e){return this._connectionState=p$7.Disconnected,this._logger.log(a$3.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}})}_startInternal(){return L$7(this,null,function*(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=false;let e=new Promise((t,n)=>{this._handshakeResolver=t,this._handshakeRejecter=n;});yield this.connection.start(this._protocol.transferFormat);try{let t=this._protocol.version;this.connection.features.reconnect||(t=1);let n={protocol:this._protocol.name,version:t};if(this._logger.log(a$3.Debug,"Sending handshake request."),yield this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(n)),this._logger.log(a$3.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),yield e,this._stopDuringStartError)throw this._stopDuringStartError;this.connection.features.reconnect&&(this._messageBuffer=new Ee$1(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||(yield this._sendMessage(this._cachedPingMessage));}catch(t){throw this._logger.log(a$3.Debug,`Hub handshake failed with error '${t}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),yield this.connection.stop(t),t}})}stop(){return L$7(this,null,function*(){let e=this._startPromise;this.connection.features.reconnect=false,this._stopPromise=this._stopInternal(),yield this._stopPromise;try{yield e;}catch(t){}})}_stopInternal(e){if(this._connectionState===p$7.Disconnected)return this._logger.log(a$3.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===p$7.Disconnecting)return this._logger.log(a$3.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;let t=this._connectionState;return this._connectionState=p$7.Disconnecting,this._logger.log(a$3.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(a$3.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(t===p$7.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new C$4("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}_sendCloseMessage(){return L$7(this,null,function*(){try{yield this._sendWithProtocol(this._createCloseMessage());}catch(e){}})}stream(e,...t){let[n,s]=this._replaceStreamingParams(t),i=this._createStreamInvocation(e,t,s),r,c=new xe$1;return c.cancelCallback=()=>{let l=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],r.then(()=>this._sendWithProtocol(l))},this._callbacks[i.invocationId]=(l,h)=>
1661{if(h){c.error(h);return}else l&&(l.type===d$5.Completion?l.error?c.error(new Error(l.error)):c.complete():c.next(l.item));},r=this._sendWithProtocol(i).catch(l=>{c.error(l),delete this._callbacks[i.invocationId];}),this._launchStreams(n,r),c}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...t){let[n,s]=this._replaceStreamingParams(t),i=this._sendWithProtocol(this._createInvocation(e,t,true,s));return this._launchStreams(n,i),i}invoke(e,...t){let[n,s]=this._replaceStreamingParams(t),i=this._createInvocation(e,t,false,s);return new Promise((c,l)=>{this._callbacks[i.invocationId]=(f,$)=>{if($){l($);return}else f&&(f.type===d$5.Completion?f.error?l(new Error(f.error)):c(f.result):l(new Error(`Unexpected message type: ${f.type}`)));};let h=this._sendWithProtocol(i).catch(f=>{l(f),delete this._callbacks[i.invocationId];});this._launchStreams(n,h);})}on(e,t){!e||!t||(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),this._methods[e].indexOf(t)===-1&&this._methods[e].push(t));}off(e,t){if(!e)return;e=e.toLowerCase();let n=this._methods[e];if(n)if(t){let s=n.indexOf(t);s!==-1&&(n.splice(s,1),n.length===0&&delete this._methods[e]);}else delete this._methods[e];}onclose(e){e&&this._closedCallbacks.push(e);}onreconnecting(e){e&&this._reconnectingCallbacks.push(e);}onreconnected(e){e&&this._reconnectedCallbacks.push(e);}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=true),e){let t=this._protocol.parseMessages(e,this._logger);for(let n of t)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(n)))switch(n.type){case d$5.Invocation:this._invokeClientMethod(n).catch(s=>{this._logger.log(a$3.Error,`Invoke client method threw error: ${ve$3(s)}`);});break;case d$5.StreamItem:case d$5.Completion:{let s=this._callbacks[n.invocationId];if(s){n.type===d$5.Completion&&delete this._callbacks[n.invocationId];try{s(n);}catch(i){this._logger.log(a$3.Error,`Stream callback threw error: ${ve$3(i)}`);}}break}case d$5.Ping:break;case d$5.Close:{this._logger.log(a$3.Information,"Close message received from server.");let s=n.error?new Error("Server returned an error on close: "+n.error):void 0;n.allowReconnect===true?this.connection.stop(s):this._stopPromise=this._stopInternal(s);break}case d$5.Ack:this._messageBuffer&&this._messageBuffer._ack(n);break;case d$5.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(n);break;default:this._logger.log(a$3.Warning,`Invalid message type: ${n.type}.`);break}}this._resetTimeoutPeriod();}_processHandshakeResponse(e){let t,n;try{[n,t]=this._handshakeProtocol.parseHandshakeResponse(e);}catch(s){let i="Error parsing handshake response: "+s;this._logger.log(a$3.Error,i);let r=new Error(i);throw this._handshakeRejecter(r),r}if(t.error){let s="Server returned handshake error: "+t.error;this._logger.log(a$3.Error,s);let i=new Error(s);throw this._handshakeRejecter(i),i}else this._logger.log(a$3.Debug,"Server handshake complete.");return this._handshakeResolver(),n}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer());}_resetTimeoutPeriod(){if(!this.connection.features||!this.connection.features.inherentKeepAlive){this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds);let e=this._nextKeepAlive-new Date().getTime();if(e<0){this._connectionState===p$7.Connected&&this._trySendPingMessage();return}this._pingServerHandle===void 0&&(e<0&&(e=0),this._pingServerHandle=setTimeout(()=>L$7(this,null,function*(){this._connectionState===p$7.Connected&&(yield this._trySendPingMessage());}),e));}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."));}_invokeClientMethod(e){return L$7(this,null,function*(){let t=e.target.toLowerCase(),n=this._methods[t];if(!n){this._logger.log(a$3.Warning,`No client method with the name '${t}' found.`),e.invocationId&&(this._logger.log(a$3.Warning,`No result given for '${t}' method and invocation ID '${e.invocationId}'.`),yield this._sendWithProtocol(this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)));return}let s=n.slice(),i=!!e.invocationId,r,c,l;for(let h of s)try{let f=r;r=yield h.apply(this,e.arguments),i&&r&&f&&(this._logger.log(a$3.Error,`Multiple results provided for '${t}'. Sending error to server.`),l=this._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),c=void 0;}catch(f){c=f,this._logger.log(a$3.Error,`A callback for the method '${t}' threw error '${f}'.`);}l?yield this._sendWithProtocol(l):i?(c?l=this._createCompletionMessage(e.invocationId,`${c}`,null):r!==void 0?l=this._createCompletionMessage(e.invocationId,null,r):(this._logger.log(a$3.Warning,`No result given for '${t}' method and invocation ID '${e.invocationId}'.`),l=this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)),yield this._sendWithProtocol(l)):r&&this._logger.log(a$3.Error,`Result given for '${t}' method but server is not expecting a result.`);})}_connectionClosed(e){this._logger.log(a$3.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new C$4("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===p$7.Disconnecting?this._completeClose(e):this._connectionState===p$7.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===p$7.Connected&&this._completeClose(e);}_completeClose(e){if(this._connectionStarted){this._connectionState=p$7.Disconnected,this._connectionStarted=false,this._messageBuffer&&(this._messageBuffer._dispose(e??new Error("Connection closed.")),this._messageBuffer=void 0),_$6.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(t=>t.apply(this,[e]));}catch(t){this._logger.log(a$3.Error,`An onclose callback called with error '${e}' threw error '${t}'.`);}}}_reconnect(e){return L$7(this,null,function*(){let t=Date.now(),n=0,s=e!==void 0?e:new Error("Attempting to re
1661connect due to a unknown error."),i=this._getNextRetryDelay(n,0,s);if(i===null){this._logger.log(a$3.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(e);return}if(this._connectionState=p$7.Reconnecting,e?this._logger.log(a$3.Information,`Connection reconnecting because of error '${e}'.`):this._logger.log(a$3.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(r=>r.apply(this,[e]));}catch(r){this._logger.log(a$3.Error,`An onreconnecting callback called with error '${e}' threw error '${r}'.`);}if(this._connectionState!==p$7.Reconnecting){this._logger.log(a$3.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;i!==null;){if(this._logger.log(a$3.Information,`Reconnect attempt number ${n+1} will start in ${i} ms.`),yield new Promise(r=>{this._reconnectDelayHandle=setTimeout(r,i);}),this._reconnectDelayHandle=void 0,this._connectionState!==p$7.Reconnecting){this._logger.log(a$3.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(yield this._startInternal(),this._connectionState=p$7.Connected,this._logger.log(a$3.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(r=>r.apply(this,[this.connection.connectionId]));}catch(r){this._logger.log(a$3.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${r}'.`);}return}catch(r){if(this._logger.log(a$3.Information,`Reconnect attempt failed because of error '${r}'.`),this._connectionState!==p$7.Reconnecting){this._logger.log(a$3.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===p$7.Disconnecting&&this._completeClose();return}n++,s=r instanceof Error?r:new Error(r.toString()),i=this._getNextRetryDelay(n,Date.now()-t,s);}}this._logger.log(a$3.Information,`Reconnect retries have been exhausted after ${Date.now()-t} ms and ${n} failed attempts. Connection disconnecting.`),this._completeClose();})}_getNextRetryDelay(e,t,n){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(s){return this._logger.log(a$3.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${t}) threw error '${s}'.`),null}}_cancelCallbacksWithError(e){let t=this._callbacks;this._callbacks={},Object.keys(t).forEach(n=>{let s=t[n];try{s(null,e);}catch(i){this._logger.log(a$3.Error,`Stream 'error' callback called with '${e}' threw error: ${ve$3(i)}`);}});}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0);}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle);}_createInvocation(e,t,n,s){if(n)return s.length!==0?{target:e,arguments:t,streamIds:s,type:d$5.Invocation}:{target:e,arguments:t,type:d$5.Invocation};{let i=this._invocationId;return this._invocationId++,s.length!==0?{target:e,arguments:t,invocationId:i.toString(),streamIds:s,type:d$5.Invocation}:{target:e,arguments:t,invocationId:i.toString(),type:d$5.Invocation}}}_launchStreams(e,t){if(e.length!==0){t||(t=Promise.resolve());for(let n in e)e[n].subscribe({complete:()=>{t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(n)));},error:s=>{let i;s instanceof Error?i=s.message:s&&s.toString?i=s.toString():i="Unknown error",t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(n,i)));},next:s=>{t=t.then(()=>this._sendWithProtocol(this._createStreamItemMessage(n,s)));}});}}_replaceStreamingParams(e){let t=[],n=[];for(let s=0;s<e.length;s++){let i=e[s];if(this._isObservable(i)){let r=this._invocationId;this._invocationId++,t[r]=i,n.push(r.toString()),e.splice(s,1);}}return [t,n]}_isObservable(e){return e&&e.subscribe&&typeof e.subscribe=="function"}_createStreamInvocation(e,t,n){let s=this._invocationId;return this._invocationId++,n.length!==0?{target:e,arguments:t,invocationId:s.toString(),streamIds:n,type:d$5.StreamInvocation}:{target:e,arguments:t,invocationId:s.toString(),type:d$5.StreamInvocation}}_createCancelInvocation(e){return {invocationId:e,type:d$5.CancelInvocation}}_createStreamItemMessage(e,t){return {invocationId:e,item:t,type:d$5.StreamItem}}_createCompletionMessage(e,t,n){return t?{error:t,invocationId:e,type:d$5.Completion}:{invocationId:e,result:n,type:d$5.Completion}}_createCloseMessage(){return {type:d$5.Close}}_trySendPingMessage(){return L$7(this,null,function*(){try{yield this._sendMessage(this._cachedPingMessage);}catch(e){this._cleanupPingTimer();}})}};var Ft$1=[0,2e3,1e4,3e4,null],re$3=class re{constructor(e){this._retryDelays=e!==void 0?[...e,null]:Ft$1;}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}};var W$2=(()=>{class o{}return o.Authorization="Authorization",o.Cookie="Cookie",o})();var Ae$2=class Ae extends M$5{constructor(e,t){super(),this._innerClient=e,this._accessTokenFactory=t;}send(e){return L$7(this,null,function*(){let t=true;this._accessTokenFactory&&(!this._accessToken||e.url&&e.url.indexOf("/negotiate?")>0)&&(t=false,this._accessToken=yield this._accessTokenFactory()),this._setAuthorizationHeader(e);let n=yield this._innerClient.send(e);return t&&n.statusCode===401&&this._accessTokenFactory?(this._accessToken=yield this._accessTokenFactory(),this._setAuthorizationHeader(e),yield this._innerClient.send(e)):n})}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[W$2.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[W$2.Authorization]&&delete e.headers[W$2.Authorization];}getCookieString(e){return this._innerClient.getCookieString(e)}};var w$3=(function(o){return o[o.None=0]="None",o[o.WebSockets=1]="WebSockets",o[o.ServerSentEvents=2]="ServerSentEvents",o[o.LongPolling=4]="LongPolling",o})(w$3||{}),b$2=(function(o){return o[o.Text=1]="Text",o[o.Binary=2]="Binary",o})(b$2||{});var Re$1=class Re{constructor(){this._isAborted=false,this.onabort=null;}abort(){this._isAborted||(this._isAborted=true,this.onabort&&this.onabort());}get signal(){return this}get aborted(){return this._isAborted}};var ae$2=class ae{get pollAborted(){return this._pollAbort.aborted}constructor(e,t,n){this._httpClient=e,this._logger=t,this._pollAbort=new Re$1,this._options=n,this._running=false,this.onreceive=null,this.onclose
1661=null;}connect(e,t){return L$7(this,null,function*(){if(m$3.isRequired(e,"url"),m$3.isRequired(t,"transferFormat"),m$3.isIn(t,b$2,"transferFormat"),this._url=e,this._logger.log(a$3.Trace,"(LongPolling transport) Connecting."),t===b$2.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");let[n,s]=D$3(),i=D$6({[n]:s},this._options.headers),r={abortSignal:this._pollAbort.signal,headers:i,timeout:1e5,withCredentials:this._options.withCredentials};t===b$2.Binary&&(r.responseType="arraybuffer");let c=`${e}&_=${Date.now()}`;this._logger.log(a$3.Trace,`(LongPolling transport) polling: ${c}.`);let l=yield this._httpClient.get(c,r);l.statusCode!==200?(this._logger.log(a$3.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new x$2(l.statusText||"",l.statusCode),this._running=false):this._running=true,this._receiving=this._poll(this._url,r);})}_poll(e,t){return L$7(this,null,function*(){try{for(;this._running;)try{let n=`${e}&_=${Date.now()}`;this._logger.log(a$3.Trace,`(LongPolling transport) polling: ${n}.`);let s=yield this._httpClient.get(n,t);s.statusCode===204?(this._logger.log(a$3.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):s.statusCode!==200?(this._logger.log(a$3.Error,`(LongPolling transport) Unexpected response code: ${s.statusCode}.`),this._closeError=new x$2(s.statusText||"",s.statusCode),this._running=!1):s.content?(this._logger.log(a$3.Trace,`(LongPolling transport) data received. ${N$1(s.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(s.content)):this._logger.log(a$3.Trace,"(LongPolling transport) Poll timed out, reissuing.");}catch(n){this._running?n instanceof L$4?this._logger.log(a$3.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=n,this._running=!1):this._logger.log(a$3.Trace,`(LongPolling transport) Poll errored after shutdown: ${n.message}`);}}finally{this._logger.log(a$3.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose();}})}send(e){return L$7(this,null,function*(){return this._running?Ce(this._logger,"LongPolling",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))})}stop(){return L$7(this,null,function*(){this._logger.log(a$3.Trace,"(LongPolling transport) Stopping polling."),this._running=false,this._pollAbort.abort();try{yield this._receiving,this._logger.log(a$3.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);let e={},[t,n]=D$3();e[t]=n;let s={headers:D$6(D$6({},e),this._options.headers),timeout:this._options.timeout,withCredentials:this._options.withCredentials},i;try{yield this._httpClient.delete(this._url,s);}catch(r){i=r;}i?i instanceof x$2&&(i.statusCode===404?this._logger.log(a$3.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(a$3.Trace,`(LongPolling transport) Error sending a DELETE request: ${i}`)):this._logger.log(a$3.Trace,"(LongPolling transport) DELETE request accepted.");}finally{this._logger.log(a$3.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose();}})}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(a$3.Trace,e),this.onclose(this._closeError);}}};var Te$3=class Te{constructor(e,t,n,s){this._httpClient=e,this._accessToken=t,this._logger=n,this._options=s,this.onreceive=null,this.onclose=null;}connect(e,t){return L$7(this,null,function*(){return m$3.isRequired(e,"url"),m$3.isRequired(t,"transferFormat"),m$3.isIn(t,b$2,"transferFormat"),this._logger.log(a$3.Trace,"(SSE transport) Connecting."),this._url=e,this._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((n,s)=>{let i=false;if(t!==b$2.Text){s(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let r;if(_$6.isBrowser||_$6.isWebWorker)r=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else {let c=this._httpClient.getCookieString(e),l={};l.Cookie=c;let[h,f]=D$3();l[h]=f,r=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:D$6(D$6({},l),this._options.headers)});}try{r.onmessage=c=>{if(this.onreceive)try{this._logger.log(a$3.Trace,`(SSE transport) data received. ${N$1(c.data,this._options.logMessageContent)}.`),this.onreceive(c.data);}catch(l){this._close(l);return}},r.onerror=c=>{i?this._close():s(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky
1661sessions are enabled."));},r.onopen=()=>{this._logger.log(a$3.Information,`SSE connected to ${this._url}`),this._eventSource=r,i=!0,n();};}catch(c){s(c);return}})})}send(e){return L$7(this,null,function*(){return this._eventSource?Ce(this._logger,"SSE",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))})}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e));}};var Me$2=class Me{constructor(e,t,n,s,i,r){this._logger=n,this._accessTokenFactory=t,this._logMessageContent=s,this._webSocketConstructor=i,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=r;}connect(e,t){return L$7(this,null,function*(){m$3.isRequired(e,"url"),m$3.isRequired(t,"transferFormat"),m$3.isIn(t,b$2,"transferFormat"),this._logger.log(a$3.Trace,"(WebSockets transport) Connecting.");let n;return this._accessTokenFactory&&(n=yield this._accessTokenFactory()),new Promise((s,i)=>{e=e.replace(/^http/,"ws");let r,c=this._httpClient.getCookieString(e),l=false;if(_$6.isNode||_$6.isReactNative){let h={},[f,$]=D$3();h[f]=$,n&&(h[W$2.Authorization]=`Bearer ${n}`),c&&(h[W$2.Cookie]=c),r=new this._webSocketConstructor(e,void 0,{headers:D$6(D$6({},h),this._headers)});}else n&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(n)}`);r||(r=new this._webSocketConstructor(e)),t===b$2.Binary&&(r.binaryType="arraybuffer"),r.onopen=h=>{this._logger.log(a$3.Information,`WebSocket connected to ${e}.`),this._webSocket=r,l=true,s();},r.onerror=h=>{let f=null;typeof ErrorEvent<"u"&&h instanceof ErrorEvent?f=h.error:f="There was an error with the transport",this._logger.log(a$3.Information,`(WebSockets transport) ${f}.`);},r.onmessage=h=>{if(this._logger.log(a$3.Trace,`(WebSockets transport) data received. ${N$1(h.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(h.data);}catch(f){this._close(f);return}},r.onclose=h=>{if(l)this._close(h);else {let f=null;typeof ErrorEvent<"u"&&h instanceof ErrorEvent?f=h.error:f="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",i(new Error(f));}};})})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(a$3.Trace,`(WebSockets transport) sending data. ${N$1(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(a$3.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(e)&&(e.wasClean===false||e.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)):e instanceof Error?this.onclose(e):this.onclose());}_isCloseEvent(e){return e&&typeof e.wasClean=="boolean"&&typeof e.code=="number"}};var wt$1=100,Oe$2=class Oe{constructor(e,t={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,m$3.isRequired(e,"url"),this._logger=_t$1(t.logger),this.baseUrl=this._resolveUrl(e),t=t||{},t.logMessageContent=t.logMessageContent===void 0?false:t.logMessageContent,typeof t.withCredentials=="boolean"||t.withCredentials===void 0)t.withCredentials=t.withCredentials===void 0?true:t.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");t.timeout=t.timeout===void 0?100*1e3:t.timeout;let n=null,s=null;if(_$6.isNode&&typeof F$8<"u"){let i=typeof __webpack_require__=="function"?__non_webpack_require__:F$8;n=i("ws"),s=i("eventsource");}!_$6.isNode&&typeof WebSocket<"u"&&!t.WebSocket?t.WebSocket=WebSocket:_$6.isNode&&!t.WebSocket&&n&&(t.WebSocket=n),!_$6.isNode&&typeof EventSource<"u"&&!t.EventSource?t.EventSource=EventSource:_$6.isNode&&!t.EventSource&&typeof s<"u"&&(t.EventSource=s),this._httpClient=new Ae$2(t.httpClient||new Ie(this._logger),t.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=false,this._options=t,this.onreceive=null,this.onclose
1661=null;}start(e){return L$7(this,null,function*(){if(e=e||b$2.Binary,m$3.isIn(e,b$2,"transferFormat"),this._logger.log(a$3.Debug,`Starting connection with transfer format '${b$2[e]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),yield this._startInternalPromise,this._connectionState==="Disconnecting"){let t="Failed to start the HttpConnection before stop() was called.";return this._logger.log(a$3.Error,t),yield this._stopPromise,Promise.reject(new C$4(t))}else if(this._connectionState!=="Connected"){let t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(a$3.Error,t),Promise.reject(new C$4(t))}this._connectionStarted=true;})}send(e){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new He$2(this.transport)),this._sendQueue.send(e))}stop(e){return L$7(this,null,function*(){if(this._connectionState==="Disconnected")return this._logger.log(a$3.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(a$3.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(t=>{this._stopPromiseResolver=t;}),yield this._stopInternal(e),yield this._stopPromise;})}_stopInternal(e){return L$7(this,null,function*(){this._stopError=e;try{yield this._startInternalPromise;}catch(t){}if(this.transport){try{yield this.transport.stop();}catch(t){this._logger.log(a$3.Error,`HttpConnection.transport.stop() threw error '${t}'.`),this._stopConnection();}this.transport=void 0;}else this._logger.log(a$3.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.");})}_startInternal(e){return L$7(this,null,function*(){let t=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===w$3.WebSockets)this.transport=this._constructTransport(w$3.WebSockets),yield this._startTransport(t,e);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else {let n=null,s=0;do{if(n=yield this._getNegotiationResponse(t),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new C$4("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(n.url&&(t=n.url),n.accessToken){let i=n.accessToken;this._accessTokenFactory=()=>i,this._httpClient._accessToken=i,this._httpClient._accessTokenFactory=void 0;}s++;}while(n.url&&s<wt$1);if(s===wt$1&&n.url)throw new Error("Negotiate redirection limit exceeded.");yield this._createTransport(t,this._options.transport,n,e);}this.transport instanceof ae$2&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(a$3.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected");}catch(n){return this._logger.log(a$3.Error,"Failed to start the connection: "+n),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(n)}})}_getNegotiationResponse(e){return L$7(this,null,function*(){let t={},[n,s]=D$3();t[n]=s;let i=this._resolveNegotiateUrl(e);this._logger.log(a$3.Debug,`Sending negotiation request: ${i}.`);try{let r=yield this._httpClient.post(i,{content:"",headers:D$6(D$6({},t),this._options.headers),timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(r.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${r.statusCode}'`));let c=JSON.parse(r.content);return (!c.negotiateVersion||c.negotiateVersion<1)&&(c.connectionToken=c.connectionId),c.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new se$3("Client didn't negotiate Stateful Reconnect but the server did.")):c}
1661catch(r){let c="Failed to complete negotiation with the server: "+r;return r instanceof x$2&&r.statusCode===404&&(c=c+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(a$3.Error,c),Promise.reject(new se$3(c))}})}_createConnectUrl(e,t){return t?e+(e.indexOf("?")===-1?"?":"&")+`id=${t}`:e}_createTransport(e,t,n,s){return L$7(this,null,function*(){let i=this._createConnectUrl(e,n.connectionToken);if(this._isITransport(t)){this._logger.log(a$3.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,yield this._startTransport(i,s),this.connectionId=n.connectionId;return}let r=[],c=n.availableTransports||[],l=n;for(let h of c){let f=this._resolveTransportOrError(h,t,s,l?.useStatefulReconnect===true);if(f instanceof Error)r.push(`${h.transport} failed:`),r.push(f);else if(this._isITransport(f)){if(this.transport=f,!l){try{l=yield this._getNegotiationResponse(e);}catch($){return Promise.reject($)}i=this._createConnectUrl(e,l.connectionToken);}try{yield this._startTransport(i,s),this.connectionId=l.connectionId;return}catch($){if(this._logger.log(a$3.Error,`Failed to start the transport '${h.transport}': ${$}`),l=void 0,r.push(new Se$3(`${h.transport} failed: ${$}`,w$3[h.transport])),this._connectionState!=="Connecting"){let Le="Failed to select transport before stop() was called.";return this._logger.log(a$3.Debug,Le),Promise.reject(new C$4(Le))}}}}return r.length>0?Promise.reject(new be$3(`Unable to connect to the server with any of the available transports. ${r.join(" ")}`,r)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))})}_constructTransport(e){switch(e){case w$3.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Me$2(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case w$3.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Te$3(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case w$3.LongPolling:return new ae$2(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,t){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=n=>L$7(this,null,function*(){let s=false;if(this.features.reconnect)try{this.features.disconnected(),yield this.transport.connect(e,t),yield this.features.resend();}catch(i){s=true;}else {this._stopConnection(n);return}s&&this._stopConnection(n);}):this.transport.onclose=n=>this._stopConnection(n),this.transport.connect(e,t)}_resolveTransportOrError(e,t,n,s){let i=w$3[e.transport];if(i==null)return this._logger.log(a$3.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(Wt(t,i))if(e.transferFormats.map(c=>b$2[c]).indexOf(n)>=0){if(i===w$3.WebSockets&&!this._options.WebSocket||i===w$3.ServerSentEvents&&!this._options.EventSource)return this._logger.log(a$3.Debug,`Skipping transport '${w$3[i]}' because it is not supported in your environment.'`),new me$3(`'${w$3[i]}' is not supported in your environment.`,i);this._logger.log(a$3.Debug,`Selecting transport '${w$3[i]}'.`);try{return this.features.reconnect=i===w$3.WebSockets?s:void 0,this._constructTransport(i)}catch(c){return c}}else return this._logger.log(a$3.Debug,`Skipping transport '${w$3[i]}' because it does not support the requested transfer format '${b$2[n]}'.`),new Error(`'${w$3[i]}' does not support ${b$2[n]}.`);else return this._logger.log(a$3.Debug,`Skipping transport '${w$3[i]}' because it was disabled by the client.`),new _e$2(`'${w$3[i]}' is disabled by the client.`,i)}_isITransport(e){return e&&typeof e=="object"&&"connect"in e}_stopConnection(e){if(this._logger.log(a$3.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(a$3.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(a$3.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),e?this._logger.log(a$3.Error,`Connection disconnected with error '${e}'.`):this._logger.log(a$3.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(t=>{this._logger.log(a$3.Error,`TransportSendQueue.stop() threw error '${t}'.`);}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=false;try{this.onclose&&this.onclose(e);}catch(t){this._logger.log(a$3.Error,`HttpConnection.onclose(${e}) threw error '${t}'.`);}}}_resolveUrl(e){if(e.lastIndexOf("https://",0)===0||e.lastIndexOf("http://",0)===0)return e;if(!_$6.isBrowser)throw new Error(`Cannot resolve '${e}'.`);let t=window.document.createElement("a");return t.href=e,this._logger.log(a$3.Information,`Normalizing '${e}' to '${t.href}'.`),t.href}_resolveNegotiateUrl(e){let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="negotiate":t.pathname+="/negotiate";let n=new URLSearchParams(t.searchParams);return n.has("negotiateVersion")||n.append("negotiateVersion",this._negotiateVersion.toString()),n.has("useStatefulReconnect")?n.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=true):this._options._useStatefulReconnect===true&&n.append("useStatefulReconnect","true"),t.search=n.toString(),t.toString()}};function Wt(o,e){return !o||(e&o)!==0}var He$2=class o{constructor(e){this._transport=e,this._buffer=[],this._executing=true,this._sendBufferedData=new Y$1,this._transportResult=new Y$1,this._sendLoopPromise=this._sendLoop();}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new Y$1),this._transportResult.promise}stop(){return this._executing=false,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve();}_sendLoop(){return L$7(this,null,function*(){for(;;){if(yield this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Y$1;let e=this._transportResult;this._transportResult=void 0;let t=typeof this._buffer[0]=="string"?this._buffer.join(""):o._concatBuffers(this._buffer);this._buffer.length=0;try{yield this._transport.send(t),e.resolve();}catch(n){e.reject(n);}}})}static _concatBuffers(e){let t=e.map(i=>i.byteLength).reduce((i,r)=>i+r),n=new Uint8Array(t),s=0;for(let i of e)n.set(new Uint8Array(i),s),s+=i.byteLength;return n.buffer}},Y$1=class Y{constructor(){this.promise=new Promise((e,t)=>
1661[this._resolver,this._rejecter]=[e,t]);}resolve(){this._resolver();}reject(e){this._rejecter(e);}};var Vt$1="json",De$1=class De{constructor(){this.name=Vt$1,this.version=2,this.transferFormat=b$2.Text;}parseMessages(e,t){if(typeof e!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return [];t===null&&(t=O$4.instance);let n=E$3.parse(e),s=[];for(let i of n){let r=JSON.parse(i);if(typeof r.type!="number")throw new Error("Invalid payload.");switch(r.type){case d$5.Invocation:this._isInvocationMessage(r);break;case d$5.StreamItem:this._isStreamItemMessage(r);break;case d$5.Completion:this._isCompletionMessage(r);break;case d$5.Ping:break;case d$5.Close:break;case d$5.Ack:this._isAckMessage(r);break;case d$5.Sequence:this._isSequenceMessage(r);break;default:t.log(a$3.Information,"Unknown message type '"+r.type+"' ignored.");continue}s.push(r);}return s}writeMessage(e){return E$3.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),e.invocationId!==void 0&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.");}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),e.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.");}_isAckMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(e,t){if(typeof e!="string"||e==="")throw new Error(t)}};var zt$1={trace:a$3.Trace,debug:a$3.Debug,info:a$3.Information,information:a$3.Information,warn:a$3.Warning,warning:a$3.Warning,error:a$3.Error,critical:a$3.Critical,none:a$3.None};function qt$2(o){let e=zt$1[o.toLowerCase()];if(typeof e<"u")return e;throw new Error(`Unknown log level: ${o}`)}var ce$1=class ce{configureLogging(e){if(m$3.isRequired(e,"logging"),Gt$2(e))this.logger=e;else if(typeof e=="string"){let t=qt$2(e);this.logger=new F$4(t);}else this.logger=new F$4(e);return this}withUrl(e,t){return m$3.isRequired(e,"url"),m$3.isNotEmpty(e,"url"),this.url=e,typeof t=="object"?this.httpConnectionOptions=D$6(D$6({},this.httpConnectionOptions),t):this.httpConnectionOptions=E$7(D$6({},this.httpConnectionOptions),{transport:t}),this}withHubProtocol(e){return m$3.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new re$3(e):this.reconnectPolicy=e:this.reconnectPolicy=new re$3,this}withServerTimeout(e){return m$3.isRequired(e,"milliseconds"),this._serverTimeoutInMilliseconds=e,this}withKeepAliveInterval(e){return m$3.isRequired(e,"milliseconds"),this._keepAliveIntervalInMilliseconds=e,this}withStatefulReconnect(e){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=true,this._statefulReconnectBufferSize=e?.bufferSize,this}build(){let e=this.httpConnectionOptions||{};if(e.logger===void 0&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");let t=new Oe$2(this.url,e);return ie$2.create(t,this.logger||O$4.instance,this.protocol||new De$1,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}};function Gt$2(o){return o.log!==void 0}var Ct$2=(()=>{class o{constructor(t){this.storageService=t,this.hubConnection=null,this.intentionalStop=false,this.closeReconnectDelayMs=3e3,this.connectionStatus=new Jr$1("Disconnected"),this.userPresenceChanged$=new ye$5,this.callHandledElsewhere$=new ye$5,this.callForceEnded$=new ye$5,this.accountStateChanged$=new ye$5,this.conversationViewing$=new ye$5,this.backgroundTask$=new ye$5,this.supportTicketChanged$=new ye$5,this.kbGapAnalysisCompleted$=new ye$5,this.tikTokCommentReceived$=new ye$5,this.startConnection=()=>
1661{if(!localStorage.getItem("token")){console.warn("No user token found, SignalR will not connect.");return}this.intentionalStop=false,this.hubConnection||this.createConnection(),this.hubConnection&&this.hubConnection.state===p$7.Disconnected&&(this.connectionStatus.next("Connecting"),this.hubConnection.start().then(()=>{this.connectionStatus.next("Connected"),this.closeReconnectDelayMs=3e3,this.addTransferChartDataListener(),console.log("Connection started");}).catch(s=>{if(this.connectionStatus.next("Disconnected"),console.error("Error starting connection",s),this.hubConnection=null,!this.intentionalStop&&localStorage.getItem("token")){let i=this.closeReconnectDelayMs;this.closeReconnectDelayMs=Math.min(this.closeReconnectDelayMs*1.5,3e4),setTimeout(()=>this.startConnection(),i);}}));},this.addTransferChartDataListener=()=>{if(!this.hubConnection){console.warn("Cannot add listener, hubConnection is null.");return}this.hubConnection.off("PushingNotifications"),this.hubConnection.off("UserPresenceChanged"),this.hubConnection.off("AccountStateChanged"),this.hubConnection.off("ConversationViewing"),this.hubConnection.on("PushingNotifications",n=>{if(n?.notificationType===S$6.BackgroundTask){this.backgroundTask$.next(n);return}if(n?.key==="support-ticket"&&n?.value){let s=Number(n.value);s&&this.supportTicketChanged$.next(s);}if(n?.key==="kb-gap-analysis"&&n?.value){let s=Number(n.value);s&&this.kbGapAnalysisCompleted$.next(s);}n?.key==="CallHandledElsewhere"&&n?.value&&this.callHandledElsewhere$.next(n.value),n?.key==="CallForceEnded"&&this.callForceEnded$.next(n.value||""),n?.object?.type===ne$3.tiktok_comment&&this.tikTokCommentReceived$.next(n),this.storageService.addNotification(n);}),this.hubConnection.on("UserPresenceChanged",n=>{this.userPresenceChanged$.next(n);}),this.hubConnection.on("AccountStateChanged",()=>{this.accountStateChanged$.next();}),this.hubConnection.on("ConversationViewing",n=>{this.conversationViewing$.next(n);});},this.createConnection(),typeof document<"u"&&document.addEventListener("visibilitychange",()=>{let n=!this.hubConnection||this.hubConnection.state===p$7.Disconnected;document.visibilityState==="visible"&&localStorage.getItem("token")&&n&&this.startConnection();});}createConnection(){let t=ee$1.notificationServerUrl;if(!localStorage.getItem("token"))return this.hubConnection=null,false;let s=[2e3,2e3,2e3,2e3,2e3,1e4,1e4,1e4,1e4,1e4];return this.hubConnection=new ce$1().withUrl(t,{accessTokenFactory:()=>localStorage.getItem("token")??""}).withAutomaticReconnect(s).build(),this.hubConnection.onreconnecting(()=>{this.connectionStatus.next("Connecting");}),this.hubConnection.onreconnected(i=>{this.connectionStatus.next("Connected"),console.log("SignalR reconnected",i),this.addTransferChartDataListener();}),this.hubConnection.onclose(i=>{if(this.connectionStatus.next("Disconnected"),console.warn("SignalR disconnected",i),this.hubConnection=null,!this.intentionalStop&&localStorage.getItem("token")){let r=this.closeReconnectDelayMs;this.closeReconnectDelayMs=Math.min(this.closeReconnectDelayMs*1.5,3e4),setTimeout(()=>this.startConnection(),r);}}),true}restartConnection(){return L$7(this,null,function*(){this.intentionalStop=false;try{if(this.connectionStatus.next("Disconnected"),yield this.hubConnection?.stop(),this.hubConnection=null,!this.createConnection()){console.warn("Cannot restart SignalR: no token.");return}yield this.hubConnection.start(),this.closeReconnectDelayMs=3e3,this.addTransferChartDataListener(),this.connectionStatus.next("Connected");}catch(t){console.error("Failed to restart SignalR:",t),this.connectionStatus.next("Disconnected"),localStorage.getItem("token")&&setTimeout(()=>this.startConnection(),3e3);}})}invoke(t,...n){!this.hubConnection||this.hubConnection.state!==p$7.Connected||this.hubConnection.invoke(t,...n).catch(s=>console.warn(`SignalR invoke '${t}' failed:`,s));}stopConnection(){this.intentionalStop=true,this.hubConnection&&this.hubConnection.stop().then(()=>{this.hubConnection=null,this.connectionStatus.next("Disconnected");}).catch(t=>console.error("Error stopping SignalR connection:",t));}static{this.\u0275fac=function(n){return new(n||o)(M$6(J$2))};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o}
1661)();var vt$3=(()=>{class o{constructor(t){this.coreService=t;}getHttpOptions(){let t=localStorage.getItem("token"),n="ar";return this.coreService.getLanguage()==="en"&&(n="en"),{headers:new St$5({"Content-Type":"application/json; charset=utf-8",Accept:"application/json",Language:n,Authorization:`Bearer ${t}`})}}getHttpOptionsByToken(t){return {headers:new St$5({"Content-Type":"application/json; charset=utf-8",Accept:"application/json",Language:"ar",Authorization:`Bearer ${t}`})}}static{this.\u0275fac=function(n){return new(n||o)(M$6(d$6))};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var Us$1=(()=>{class o{constructor(t,n,s,i,r){this.http=t,this.storageService=n,this.httpOptionsService=s,this.signalRService=i,this.ngxPermissionsService=r,this.url=ee$1.serverBaseUrl+"User/",this.logoutAction="Logout",this.resetPasswordAction="ResetPassword",this.forgotPasswordAction="ForgetPassword",this.completeForgotPasswordAction="CompleteForgetPassword",this.getUserInfoAction="GetUserInfo",this.loginWithEmailAction="LoginWithEmail",this.loginWithPhoneNumberAction="LoginWithPhoneNumber",this.forgetPasswordWithEmailAction="ForgetPasswordWithEmail",this.completeForgetPasswordWithEmailAction="CompleteForgetPasswordWithEmail",this.completeLoginAction="CompleteLogin",this.loginWithClientAction="LoginWithClient",this.supportSendOtpAction="SupportSendOtp",this.supportVerifyOtpAction="SupportVerifyOtp",this.redeemTransferTokenAction="RedeemTransferToken",this.changeMyOnlineStatusAction="ChangeMyOnlineStatus",this.validateEmailTokenAction="ValidateEmailToken",this.verifyEmailAndSetPasswordAction="VerifyEmailAndSetPassword",this.googleLoginAction="GoogleLogin",this.completeGoogleSignupUrl=ee$1.serverBaseUrl+"Client/CompleteGoogleSignup",this.loginEvent$=new ye$5,this.authSecretKey="token",this.isRefreshing=false,this.lastRefreshAttempt=0,this.platformId=g$4(So$3),this.isBrowser=_$(this.platformId);}getUserInfo(){return this.http.post(this.url+this.getUserInfoAction,{},this.httpOptionsService.getHttpOptions())}getUserInfoByToken(t){return L$7(this,null,function*(){let n=this.http.post(this.url+this.getUserInfoAction,{},this.httpOptionsService.getHttpOptionsByToken(t));return rE(n)})}loginWithEmail(t,n,s){t=t?.toLowerCase().trim();let i=this.http.post(this.url+this.loginWithEmailAction,{email:t,password:n,useOtp:s},this.httpOptionsService.getHttpOptions()).pipe(Uf$1(r=>{if(r.succeeded){let c=r.data;this.saveUser(c,true);}}));return rE(i)}loginWithPhone(t,n,s){let i=this.http.post(this.url+this.loginWithPhoneNumberAction,{phoneNumber:t,password:n,useOtp:s},this.httpOptionsService.getHttpOptions()).pipe(Uf$1(r=>{if(r.succeeded){let c=r.data;this.saveUser(c,true);}}));return rE(i)}loginWithGoogle(t,n){let s=this.http.post(this.url+this.googleLoginAction,{code:t,redirectUri:n},this.httpOptionsService.getHttpOptions()).pipe(Uf$1(i=>{i.succeeded&&this.saveUser(i.data,true);}));return rE(s)}completeGoogleSignup(t){let n=this.http.post(this.completeGoogleSignupUrl,t,this.httpOptionsService.getHttpOptions()).pipe(Uf$1(s=>{s.succeeded&&this.saveUser(s.data,true);}));return rE(n)}get isAuthenticatedUser(){return this.isBrowser?!!localStorage.getItem(this.authSecretKey):false}logout(){this.signalRService.stopConnection(),this.http.post(this.url+this.logoutAction,{},this.httpOptionsService.getHttpOptions()).subscribe({next:()=>{localStorage.removeItem("auth-user"),localStorage.removeItem(this.authSecretKey),this.storageService.clearAll(),this.clearCache();}});}clearCache(){this.isBrowser&&"caches"in window&&caches.keys().then(function(t){t.forEach(function(n){caches.delete(n);});});}resetPassword(t,n){return this.http.post(this.url+this.resetPasswordAction,{oldPassword:t,newPassword:n},this.httpOptionsService.getHttpOptions())}forgotPassword(t){return this.http.post(this.url+this.forgotPasswordAction,{phoneNumber:t},this.httpOptionsService.getHttpOptions())}completeForgotPassword(t,n,s){return this.http.post(this.url+this.completeForgotPasswordAction,{phoneNumber:t,email:t,otp:n,password:s},this.httpOptionsService.getHttpOptions())}forgotPasswordWithEmail(t){return t=t?.toLowerCase().trim(),this.http.post(this.url+this.forgetPasswordWithEmailAction,{email:t},this.httpOptionsService.getHttpOptions())}completeForgotPasswordWithEmail(t,n,s){return t=t?.toLowerCase().trim(),this.http.post(this.url+this.completeForgetPasswordWithEmailAction,{email:t,otp:n,password:s},this.httpOptionsService.getHttpOptions())}validateEmailToken(t){return this.http.get(this.url+this.validateEmailTokenAction+"?token="+encodeURIComponent(t),this.httpOptionsService.getHttpOptions())}verifyEmailAndSetPassword(t,n){return this.http.post(this.url+this.verifyEmailAndSetPasswordAction,{token:t,password:n},this.httpOptionsService.getHttpOptions())}getProfilePath(t){return t||"/assets/images/profile/user-1.jpg"}saveUser(t,n){this.storageService.setValue("auth-user",JSON.stringify(t)),n&&t.token&&(localStorage.setItem(this.authSecretKey,t.token),this.loginEvent$.next(),setTimeout(()=>this.signalRService.restartConnection(),0));}getUser(){let t=this.storageService.getValue("auth-user");if(!t)return null;try{let n=JSON.parse(t),s=new Date(n.lastUpdatedOn||0).getTime(),i=Date.now()-1e3*60*60;return n.step===3&&this.isAuthenticatedUser&&s<i&&!this.isRefreshing&&this.lastRefreshAttempt<Date.now()-1e3*60*5&&(this.isRefreshing=!0,this.lastRefreshAttempt=Date.now(),this.getUserInfo().pipe(Xr$1(()=>{this.isRefreshing=!1;})).subscribe({next:r=>{if(r?.succeeded&&r?.data){let c=E$7(D$6(D$6({},n),r.data),{lastUpdatedOn:new Date});this.saveUser(c,!1);}},error:r=>console.error("Failed to refresh user info",r)})),n}catch(n){return this.storageService.removeValue("auth-user"),null}}getUserByToken(t){return L$7(this,null,function*(){localStorage.setItem(this.authSecretKey,t);let n=yield this.getUserInfoByToken(t);return n?.succeeded?(this.saveUser(n.data,true),n.data):null})}isSubscribedToService(t){let n=this.getUser();return n&&n.subscribeServiceds?.includes(t)||false}isSubscribedToServices(t){let n=this.getUser();return n&&n.subscribeServiceds?.some(s=>t.includes(s))||false}updatePrifilePic(t){let n=this.getUser();n&&(n.profilePicPath=t,this.saveUser(n,false));}completeLogin(t,n){return this.http.post(this.url+this.completeLoginAction,{phoneNumber:t,otp:n},this.httpOptionsService.getHttpOptions()).pipe(Uf$1(s=>{if(s.succeeded){let i=s.data;this.saveUser(i,true);}}))}loginWithClient(t,n,s){let i=this.getUser();return this.http.post(this.url+this.loginWithClientAction,{clientId:t,userId:n,switchClientToken:s},this.httpOptionsService.getHttpOptions()).pipe(Uf$1(r=>{if(r.succeeded){let c=r.data;
1661!c.switchClientToken&&i?.switchClientToken&&(c.switchClientToken=i.switchClientToken),(!c.clients||c.clients.length===0)&&i?.clients&&(c.clients=i.clients),this.storageService.clearClientData(),this.saveUser(c,true);}}))}supportSendOtp(t,n){return this.http.post(this.url+this.supportSendOtpAction,{supportGateToken:t,selectedUserId:n},this.httpOptionsService.getHttpOptions())}supportVerifyOtp(t,n,s){return this.http.post(this.url+this.supportVerifyOtpAction,{supportGateToken:t,selectedUserId:n,otp:s},this.httpOptionsService.getHttpOptions()).pipe(Uf$1(i=>{if(i.succeeded){let r=i.data;this.saveUser(r,true);}}))}switchClient(t){let n=this.getUser();if(!n)return ki$3({succeeded:false,errors:["User not found"],errorCodes:[{code:"switch-user-not-found",message:"User not found"}],data:null});let s=n.switchClientToken||"";return this.loginWithClient(t,n.id,s)}redeemTransferToken(t,n){return this.http.post(this.url+this.redeemTransferTokenAction,{transferToken:t,purpose:n},this.httpOptionsService.getHttpOptions())}hasPermission(t){let n=this.getUser();return n&&n.permissions?.includes(t)||false}refreshFromServer(){this.getUserInfo().subscribe({next:t=>{if(t?.succeeded&&t?.data){let n=this.getUser(),s=E$7(D$6(D$6({},n??{}),t.data),{lastUpdatedOn:new Date});this.saveUser(s,false);}},error:t=>console.error("Failed to refresh user info from server",t)});}getPermissions(){let t=this.getUser();return this.ngxPermissionsService.loadPermissions(t?.permissions||[]),t?t.permissions||[]:[]}changeMyOnlineStatus(t,n){return this.http.post(this.url+this.changeMyOnlineStatusAction,{isAvailable:t,userId:n},this.httpOptionsService.getHttpOptions())}static{this.\u0275fac=function(n){return new(n||o)(M$6(ED),M$6(J$2),M$6(vt$3),M$6(Ct$2),M$6(S$7))};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})(); 1662var f$5=(()=>{class a{constructor(t){this.settingsService=t;}getDefaultDialogConfig(){let t=this.settingsService.getOptions();return {direction:t.dir==="rtl"||t.dir==="ltr"?t.dir:t.language==="ar"?"rtl":"ltr",width:"700px",disableClose:false,maxHeight:"90vh"}}getHelpGuideDialogConfig(){return E$7(D$6({},this.getDefaultDialogConfig()),{width:"min(960px, 95vw)",maxWidth:"95vw"})}getSendEmailTemplateDialogConfig(){return E$7(D$6({},this.getDefaultDialogConfig()),{width:"min(1040px, 95vw)",maxWidth:"95vw"})}getPresenceTimelineDialogConfig(){return E$7(D$6({},this.getDefaultDialogConfig()),{width:"auto",maxWidth:"95vw"})}getSelectTemplateDialogConfig(t){let e=this.getDefaultDialogConfig();return E$7(D$6({},e),{width:"900px",data:t??null})}getSelectInteractiveDialogConfig(t){let e=this.getDefaultDialogConfig();return E$7(D$6({},e),{width:"900px",data:t??null})}getSelectFlowDialogConfig(t){let e=this.getDefaultDialogConfig();return E$7(D$6({},e),{width:"900px",data:t??null})}getSelectSesTemplateDialogConfig(t){let e=this.getDefaultDialogConfig();return E$7(D$6({},e),{width:"900px",data:t??null})}static{this.\u0275fac=function(e){return new(e||a)(M$6(d$6))};}static{this.\u0275prov=x$3({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})();var Es=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,t){this._renderer=e,this._elementRef=t;}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty("disabled",e);}static \u0275fac=function(t){return new(t||n)(V$3(qo$1),V$3(Vt$3))};static \u0275dir=bt$6({type:n})}return n})(),Kn=(()=>{class n extends Es{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,features:[Xm$2]})}return n})(),Fe$1=new I$4(""),oc$1={provide:Fe$1,useExisting:ns(()=>sc$1),multi:true},sc$1=(()=>{class n extends Kn{writeValue(e){this.setProperty("checked",e);}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["input","type","checkbox","formControlName","",3,"ngNoCva",""],["input","type","checkbox","formControl","",3,"ngNoCva",""],["input","type","checkbox","ngModel","",3,"ngNoCva",""]],hostBindings:function(t,i){t&1&&Ey("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()});},standalone:false,features:[tS([oc$1]),Xm$2]})}return n})(),lc$1={provide:Fe$1,useExisting:ns(()=>Ts),multi:true};function dc$1(){let n=Tt$4()?Tt$4().getUserAgent():"";return /android (\d+)/.test(n.toLowerCase())}var cc$1=new I$4(""),Ts=(()=>
vendor: 5,903 bytes, line 1662
1662{class n extends Es{_compositionMode;_composing=false;constructor(e,t,i){super(e,t),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!dc$1());}writeValue(e){let t=e??"";this.setProperty("value",t);}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e);}_compositionStart(){this._composing=true;}_compositionEnd(e){this._composing=false,this._compositionMode&&this.onChange(e);}static \u0275fac=function(t){return new(t||n)(V$3(qo$1),V$3(Vt$3),V$3(cc$1,8))};static \u0275dir=bt$6({type:n,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(t,i){t&1&&Ey("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)});},standalone:false,features:[tS([lc$1]),Xm$2]})}return n})();function Ja(n){return n==null||er$1(n)===0}function er$1(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var qe$2=new I$4(""),Zi$1=new I$4(""),mc$1=/^(?=.{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])?)*$/,ht$1=class ht{static min(r){return As(r)}static max(r){return Rs(r)}static required(r){return Fs(r)}static requiredTrue(r){return hc$1(r)}static email(r){return Os(r)}static minLength(r){return Ps(r)}static maxLength(r){return Vs(r)}static pattern(r){return Ls(r)}static nullValidator(r){return Nn()}static compose(r){return Gs$1(r)}static composeAsync(r){return Us(r)}};function As(n){return r=>{if(r.value==null||n==null)return null;let e=parseFloat(r.value);return !isNaN(e)&&e<n?{min:{min:n,actual:r.value}}:null}}function Rs(n){return r=>{if(r.value==null||n==null)return null;let e=parseFloat(r.value);return !isNaN(e)&&e>n?{max:{max:n,actual:r.value}}:null}}function Fs(n){return Ja(n.value)?{required:true}:null}function hc$1(n){return n.value===true?null:{required:true}}function Os(n){return Ja(n.value)||mc$1.test(n.value)?null:{email:true}}function Ps(n){return r=>{let e=r.value?.length??er$1(r.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function Vs(n){return r=>{let e=r.value?.length??er$1(r.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function Ls(n){if(!n)return Nn;let r,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),r=new RegExp(e)):(e=n.toString(),r=n),t=>{if(Ja(t.value))return null;let i=t.value;return r.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}function Nn(n){return null}function Bs(n){return n!=null}function Ns(n){return Yo$2(n)?lt$3(n):n}function zs(n){let r={};return n.forEach(e=>{r=e!=null?D$6(D$6({},r),e):r;}),Object.keys(r).length===0?null:r}function Hs$1(n,r){return r.map(e=>e(n))}function pc$1(n){return !n.validate}function js(n){return n.map(r=>pc$1(r)?r:e=>r.validate(e))}function Gs$1(n){if(!n)return null;let r=n.filter(Bs);return r.length==0?null:function(e){return zs(Hs$1(e,r))}}function tr$1(n){return n!=null?Gs$1(js(n)):null}function Us(n){if(!n)return null;let r=n.filter(Bs);return r.length==0?null:function(e){let t=Hs$1(e,r).map(Ns);return zD(t).pipe(ve$4(zs))}}function ir(n){return n!=null?Us(js(n)):null}function ws(n,r){return n===null?[r]:Array.isArray(n)?[...n,r]:[n,r]}function Ws(n){return n._rawValidators}function qs$1(n){return n._rawAsyncValidators}function Ka(n){return n?Array.isArray(n)?n:[n]:[]}function zn(n,r){return Array.isArray(n)?n.includes(r):n===r}function ks(n,r){let e=Ka(r);return Ka(n).forEach(i=>{zn(e,i)||e.push(i);}),e}function Cs(n,r){return Ka(r).filter(e=>!zn(n,e))}var Hn=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=tr$1(this._rawValidators);}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=ir(this._rawAsyncValidators);}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(r){this._onDestroyCallbacks.push(r);}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[];}reset(r=void 0){this.control?.reset(r);}hasError(r,e){return this.control?this.control.hasError(r,e):false}getError(r,e){return this.control?this.control.getError(r,e):null}},vt$2=class vt extends Hn{name;get formDirective(){return null}get path(){return null}};
1662var qi$1="VALID",Bn="INVALID",wi="PENDING",Qi="DISABLED",Zt$1=class Zt{},jn=class extends Zt$1{value;source;constructor(r,e){super(),this.value=r,this.source=e;}},Ki$1=class Ki extends Zt$1{pristine;source;constructor(r,e){super(),this.pristine=r,this.source=e;}},$i$1=class $i extends Zt$1{touched;source;constructor(r,e){super(),this.touched=r,this.source=e;}},ki=class extends Zt$1{status;source;constructor(r,e){super(),this.status=r,this.source=e;}},Gn=class extends Zt$1{source;constructor(r){super(),this.source=r;}},di=class extends Zt$1{source;constructor(r){super(),this.source=r;}};function nr(n){return ($n(n)?n.validators:n)||null}function uc(n){return Array.isArray(n)?tr$1(n):n||null}function ar(n,r){return ($n(r)?r.asyncValidators:n)||null}function _c$1(n){return Array.isArray(n)?ir(n):n||null}function $n(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Qs$1(n,r,e){let t=n.controls;if(!(r?Object.keys(t):t).length)throw new y$6(1e3,"");if(!Ks$1(t,e))throw new y$6(1001,"")}function Ys$1(n,r,e){n._forEachChild((t,i)=>{if(e[i]===void 0)throw new y$6(-1002,"")});}var Ci=class{_pendingDirty=false;_hasOwnPendingAsyncValidator=null;_pendingTouched=false;_onCollectionChange=()=>{};_updateOn;_hasRequired=Es$1(false);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(r,e){this._assignValidators(r),this._assignAsyncValidators(e);}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r,this._updateHasRequiredValidator();}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r;}get parent(){return this._parent}get status(){return wa$2(this.statusReactive)}set status(r){wa$2(()=>this.statusReactive.set(r));}_status=wS(()=>this.statusReactive());statusReactive=Es$1(void 0);get valid(){return this.status===qi$1}get invalid(){return this.status===Bn}get pending(){return this.status===wi}get disabled(){return this.status===Qi}get enabled(){return this.status!==Qi}errors;get pristine(){return wa$2(this.pristineReactive)}set pristine(r){wa$2(()=>this.pristineReactive.set(r));}_pristine=wS(()=>this.pristineReactive());pristineReactive=Es$1(true);get dirty(){return !this.pristine}get touched(){return wa$2(this.touchedReactive)}set touched(r){wa$2(()=>this.touchedReactive.set(r));}_touched=wS(()=>this.touchedReactive());touchedReactive=Es$1(false);get untouched(){return !this.touched}_events=new ye$5;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._assignValidators(r);}setAsyncValidators(r){this._assignAsyncValidators(r);}addValidators(r){this.setValidators(ks(r,this._rawValidators));}addAsyncValidators(r){this.setAsyncValidators(ks(r,this._rawAsyncValidators));}removeValidators(r){this.setValidators(Cs(r,this._rawValidators));}removeAsyncValidators(r){this.setAsyncValidators(Cs(r,this._rawAsyncValidators));}hasValidator(r){return zn(this._rawValidators,r)}hasAsyncValidator(r){return zn(this._rawAsyncValidators,r)}clearValidators(){this.validator=null;}clearAsyncValidators(){this.asyncValidator=null;}markAsTouched(r={}){let e=this.touched===false;this.touched=true;let t=r.sourceControl??this;r.onlySelf||this._parent?.markAsTouched(E$7(D$6({},r),{sourceControl:t})),e&&r.emitEvent!==false&&this._events.next(new $i$1(true,t));}markAllAsDirty(r={}){this.markAsDirty({onlySelf:true,emitEvent:r.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(r));}markAllAsTouched(r={}){this.markAsTouched({onlySelf:true,emitEvent:r.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(r));}markAsUntouched(r={}){let e=this.touched===true;this.touched=false,this._pendingTouched=false;let t=r.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:true,emitEvent:r.emitEvent,sourceControl:t});}),r.onlySelf||this._parent?._updateTouched(r,t),e&&r.emitEvent!==false&&this._events.next(new $i$1(false,t));}markAsDirty(r={}){let e=this.pristine===true;this.pristine=false;let t=r.sourceControl??this;r.onlySelf||this._parent?.markAsDirty(E$7(D$6({},r),{sourceControl:t})),e&&r.emitEvent!==false&&this._events.next(new Ki$1(false,t));}markAsPristine(r={}){let e=this.pristine===false;this.pristine=true,this._pendingDirty=false;let t=r.sourceControl??this;
1662this._forEachChild(i=>{i.markAsPristine({onlySelf:true,emitEvent:r.emitEvent});}),r.onlySelf||this._parent?._updatePristine(r,t),e&&r.emitEvent!==false&&this._events.next(new Ki$1(true,t));}markAsPending(r={}){this.status=wi;let e=r.sourceControl??this;r.emitEvent!==false&&(this._events.next(new ki(this.status,e)),this.statusChanges.emit(this.status)),r.onlySelf||this._parent?.markAsPending(E$7(D$6({},r),{sourceControl:e}));}disable(r={}){let e=this._parentMarkedDirty(r.onlySelf);this.status=Qi,this.errors=null,this._forEachChild(i=>{i.disable(E$7(D$6({},r),{onlySelf:true}));}),this._updateValue();let t=r.sourceControl??this;r.emitEvent!==false&&(this._events.next(new jn(this.value,t)),this._events.next(new ki(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(E$7(D$6({},r),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(true));}enable(r={}){let e=this._parentMarkedDirty(r.onlySelf);this.status=qi$1,this._forEachChild(t=>{t.enable(E$7(D$6({},r),{onlySelf:true}));}),this.updateValueAndValidity({onlySelf:true,emitEvent:r.emitEvent}),this._updateAncestors(E$7(D$6({},r),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(false));}_updateAncestors(r,e){r.onlySelf||(this._parent?.updateValueAndValidity(r),r.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e));}setParent(r){this._parent=r;}getRawValue(){return this.value}updateValueAndValidity(r={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qi$1||this.status===wi)&&this._runAsyncValidator(t,r.emitEvent);}let e=r.sourceControl??this;r.emitEvent!==false&&(this._events.next(new jn(this.value,e)),this._events.next(new ki(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),r.onlySelf||this._parent?.updateValueAndValidity(E$7(D$6({},r),{sourceControl:e}));}_updateTreeValidity(r={emitEvent:true}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:true,emitEvent:r.emitEvent});}_setInitialStatus(){this.status=this._allControlsDisabled()?Qi:qi$1;}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r,e){if(this.asyncValidator){this.status=wi,this._hasOwnPendingAsyncValidator={emitEvent:e!==false,shouldHaveEmitted:r!==false};let t=Ns(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:e,shouldHaveEmitted:r});});}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let r=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??false;return this._hasOwnPendingAsyncValidator=null,r}return false}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(e.emitEvent!==false,this,e.shouldHaveEmitted);}get(r){let e=r;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,i)=>t&&t._find(i),this)}getError(r,e){let t=e?this.get(e):this;return t?.errors?t.errors[r]:null}hasError(r,e){return !!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r,e,t){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),(r||t)&&this._events.next(new ki(this.status,e)),this._parent&&this._parent._updateControlsErrors(r,e,t);}_initObservables(){this.valueChanges=new kt$3,this.statusChanges=new kt$3;}_calculateStatus(){return this._allControlsDisabled()?Qi:this.errors?Bn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wi)?wi:this._anyControlsHaveStatus(Bn)?Bn:qi$1}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r,e){let t=!this._anyControlsDirty(),i=this.pristine!==t;this.pristine=t,r.onlySelf||this._parent?._updatePristine(r,e),i&&this._events.next(new Ki$1(this.pristine,e));}_updateTouched(r={},e){this.touched=this._anyControlsTouched(),this._events.next(new $i$1(this.touched,e)),r.onlySelf||this._parent?._updateTouched(r,e);}_onDisabledChange=[];_registerOnCollectionChange(r){this._onCollectionChange=r;}_setUpdateStrategy(r){$n(r)&&r.updateOn!=null&&(this._updateOn=r.updateOn);}_parentMarkedDirty(r){return !r&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}
1662_find(r){return null}_assignValidators(r){this._rawValidators=Array.isArray(r)?r.slice():r,this._composedValidatorFn=uc(this._rawValidators),this._updateHasRequiredValidator();}_assignAsyncValidators(r){this._rawAsyncValidators=Array.isArray(r)?r.slice():r,this._composedAsyncValidatorFn=_c$1(this._rawAsyncValidators);}_updateHasRequiredValidator(){wa$2(()=>this._hasRequired.set(this.hasValidator(ht$1.required)));}};function Ks$1(n,r){return Object.hasOwn(n,r)}function fc$1(n){return n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"}function gc$1(n,r,e,t){switch(e){case "name":n.setAttribute(r,e,t);break;case "disabled":case "readonly":case "required":t?n.setAttribute(r,e,""):n.removeAttribute(r,e);break;case "max":case "min":case "minLength":case "maxLength":t!==void 0?n.setAttribute(r,e,t.toString()):n.removeAttribute(r,e);break}}var $a=class{kind;context;control;message;constructor({kind:r,context:e,control:t}){this.kind=r,this.context=e,this.control=t;}};function $s(n){return typeof n=="number"?n:parseInt(n,10)}function Xs$1(n){return typeof n=="number"?n:parseFloat(n)}var ci=(()=>{class n{_validator=Nn;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Nn,this._onChange?.();}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e;}enabled(e){return e!=null}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,features:[El$2]})}return n})(),bc$1={provide:qe$2,useExisting:ns(()=>vc$1),multi:true},vc$1=(()=>{class n extends ci{max;inputName="max";normalizeInput=e=>Xs$1(e);createValidator=e=>Rs(e);static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,i){t&2&&ly("max",i._enabled?i.max:null);},inputs:{max:"max"},standalone:false,features:[tS([bc$1]),Xm$2]})}return n})(),yc$1={provide:qe$2,useExisting:ns(()=>xc$1),multi:true},xc$1=(()=>{class n extends ci{min;inputName="min";normalizeInput=e=>Xs$1(e);createValidator=e=>As(e);static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,i){t&2&&ly("min",i._enabled?i.min:null);},inputs:{min:"min"},standalone:false,features:[tS([yc$1]),Xm$2]})}return n})(),wc$1={provide:qe$2,useExisting:ns(()=>Zs$1),multi:true};var Zs$1=(()=>{class n extends ci{required;inputName="required";normalizeInput=tM$1;createValidator=e=>Fs;enabled(e){return e}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,i){t&2&&ly("required",i._enabled?"":null);},inputs:{required:"required"},standalone:false,features:[tS([wc$1]),Xm$2]})}return n})();var kc$1={provide:qe$2,useExisting:ns(()=>Cc$1),multi:true},Cc$1=(()=>{class n extends ci{email;inputName="email";normalizeInput=tM$1;createValidator=e=>Os;enabled(e){return e}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},standalone:false,features:[tS([kc$1]),Xm$2]})}return n})(),Dc$1={provide:qe$2,useExisting:ns(()=>Mc$1),multi:true},Mc$1=(()=>{class n extends ci{minlength;inputName="minlength";normalizeInput=e=>$s(e);createValidator=e=>Ps(e);static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,i){t&2&&ly("minlength",i._enabled?i.minlength:null);},inputs:{minlength:"minlength"},standalone:false,features:[tS([Dc$1]),Xm$2]})}return n})(),Sc$1={provide:qe$2,useExisting:ns(()=>Ic$1),multi:true},Ic$1=(()=>{class n extends ci{maxlength;inputName="maxlength";normalizeInput=e=>$s(e);createValidator=e=>Vs(e);static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,i){t&2&&ly("maxlength",i._enabled?i.maxlength:null);},inputs:{maxlength:"maxlength"},standalone:false,features:[tS([Sc$1]),Xm$2]})}return n})(),Ec$1={provide:qe$2,useExisting:ns(()=>Tc$1),multi:true},Tc$1=(()=>{class n extends ci{pattern;inputName="pattern";normalizeInput=e=>e;createValidator=e=>Ls(e);static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,i){t&2&&ly("pattern",
1662i._enabled?i.pattern:null);},inputs:{pattern:"pattern"},standalone:false,features:[tS([Ec$1]),Xm$2]})}return n})(),Ac$1=new I$4(""),mi=new I$4("",{factory:()=>Ji$1}),Ji$1="always";function Js$1(n,r){return [...r.path,n]}function Un(n,r,e=Ji$1){rr$1(n,r),r.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&r.valueAccessor.setDisabledState?.(n.disabled),Fc$1(n,r),Pc$1(n,r),Oc$1(n,r),Rc$1(n,r);}function Wn(n,r,e=true){let t=()=>{};r?.valueAccessor?.registerOnChange(t),r?.valueAccessor?.registerOnTouched(t),Qn(n,r),n&&(r._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}));}function qn(n,r){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r);});}function Rc$1(n,r){if(r.valueAccessor.setDisabledState){let e=t=>{r.valueAccessor.setDisabledState(t);};n.registerOnDisabledChange(e),r._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e);});}}function rr$1(n,r){let e=Ws(n);r.validator!==null?n.setValidators(ws(e,r.validator)):typeof e=="function"&&n.setValidators([e]);let t=qs$1(n);r.asyncValidator!==null?n.setAsyncValidators(ws(t,r.asyncValidator)):typeof t=="function"&&n.setAsyncValidators([t]);let i=()=>n.updateValueAndValidity();qn(r._rawValidators,i),qn(r._rawAsyncValidators,i);}function Qn(n,r){let e=false;if(n!==null){if(r.validator!==null){let i=Ws(n);if(Array.isArray(i)&&i.length>0){let a=i.filter(o=>o!==r.validator);a.length!==i.length&&(e=true,n.setValidators(a));}}if(r.asyncValidator!==null){let i=qs$1(n);if(Array.isArray(i)&&i.length>0){let a=i.filter(o=>o!==r.asyncValidator);a.length!==i.length&&(e=true,n.setAsyncValidators(a));}}}let t=()=>{};return qn(r._rawValidators,t),qn(r._rawAsyncValidators,t),e}function Fc$1(n,r){r.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=true,n._pendingDirty=true,n.updateOn==="change"&&el$1(n,r);});}function Oc$1(n,r){r.valueAccessor.registerOnTouched(()=>{n._pendingTouched=true,n.updateOn==="blur"&&n._pendingChange&&el$1(n,r),n.updateOn!=="submit"&&n.markAsTouched();});}function el$1(n,r){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:false}),r.viewToModelUpdate(n._pendingValue),n._pendingChange=false;}function Pc$1(n,r){let e=(t,i)=>{r.valueAccessor.writeValue(t),i&&r.viewToModelUpdate(t);};n.registerOnChange(e),r._registerOnDestroy(()=>{n._unregisterOnChange(e);});}function tl$1(n,r){rr$1(n,r);}function Vc$1(n,r){return Qn(n,r)}function or(n,r){if(!n.hasOwnProperty("model"))return false;let e=n.model;return e.isFirstChange()?true:!Object.is(r,e.currentValue)}function Lc$1(n){return Object.getPrototypeOf(n.constructor)===Kn}function il$1(n,r){n._syncPendingControls(),r.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=false);});}function Bc$1(n,r){if(!r)return null;let e,t,i;return r.forEach(a=>{a.constructor===Ts?e=a:Lc$1(a)?t=a:i=a;}),i||t||e||null}function Nc$1(n,r){let e=n.indexOf(r);e>-1&&n.splice(e,1);}var sr={provide:Ac$1,useFactory:()=>{let n=g$4(Ye$2,{self:true});return {setParseErrors:r=>{n.setParseErrorSource(r);},set onReset(r){n.onReset=r;}}}},Ye$2=class Ye extends Hn{_parent=null;name=null;valueAccessor=null;isCustomControlBased=false;userOnReset;resetSubscription;set onReset(r){this.userOnReset=r,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof di&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription?.add(this.resetSubscription));}isNativeFormElement=false;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=Bc$1(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(r,e,t){super(),this.injector=r,this.renderer=e,this.rawValueAccessors=t,this.injector?.get($e$3)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe();});}setupCustomControl(){this.subscription?.unsubscribe();let r=this.injector?.get(Od$2);if(!this.control||!r)return;let e=r.markForCheck.bind(r);this.subscription=new W$4,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(t=>{t instanceof di&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator);}ngControlCreate(r){!r.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>
16620||this.valueAccessor!==null)||!r.customControl||(this.isCustomControlBased=true,r.listenToCustomControlModel(i=>{this.control?.setValue(i,{emitModelToViewChange:false}),this.control?.markAsDirty(),this.viewToModelUpdate(i);}),r.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched();}),this.customControlBindings={},this.isNativeFormElement=fc$1(r.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(i=>i instanceof Zs$1));}ngControlUpdate(r,e){if(!this.isCustomControlBased)return;let t=this.control,i=this.customControlBindings;Object.is(i.value,t.value)||(i.value=t.value,r.setCustomControlModelInput(t.value)),this.bindControlProperty(r,i,"touched",t.touched),this.bindControlProperty(r,i,"dirty",t.dirty),this.bindControlProperty(r,i,"valid",t.valid),this.bindControlProperty(r,i,"invalid",t.invalid),this.bindControlProperty(r,i,"pending",t.pending),this.bindControlProperty(r,i,"disabled",t.disabled),this.shouldBindRequired&&this.bindControlProperty(r,i,"required",this.isRequired);let a=t.errors;if(i.errors!==a){i.errors=a;let o=this._convertErrors(a);r.setInputOnDirectives("errors",o);}}get isRequired(){return (this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??false}get shouldBindRequired(){return true}bindControlProperty(r,e,t,i){if(e[t]===i)return;e[t]=i;let a=r.setInputOnDirectives(t,i);this.isNativeFormElement&&!a&&(t==="disabled"||t==="required")&&this.renderer&&gc$1(this.renderer,r.nativeElement,t,i);}_convertErrors(r){if(r===null)return [];let e=this.control;return Object.entries(r).map(([t,i])=>new $a({context:i,kind:t,control:e}))}setParseErrorSource(r){if(r===void 0)return;let e=null,t=wS(()=>{let i=r();return i.length===0?null:i.reduce((a,o)=>(a[o.kind]=o,a),{})});this.parseErrorsValidator=(()=>e).bind(this),ih$1(()=>{e=t(),this.control?.updateValueAndValidity({emitEvent:false});},{injector:this.injector});}removeParseErrorsValidator(r){this.parseErrorsValidator&&(r?.removeValidators(this.parseErrorsValidator),r?.updateValueAndValidity({emitEvent:false}));}},Yn=class{_cd;constructor(r){this._cd=r;}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}};var Og=(()=>{class n extends Yn{constructor(e){super(e);}static \u0275fac=function(t){return new(t||n)(V$3(Ye$2,2))};static \u0275dir=bt$6({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){t&2&&xy("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending);},standalone:false,features:[Xm$2]})}return n})(),Pg=(()=>{class n extends Yn{constructor(e){super(e);}static \u0275fac=function(t){return new(t||n)(V$3(vt$2,10))};static \u0275dir=bt$6({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,i){t&2&&xy("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted);},standalone:false,features:[Xm$2]})}return n})(),Di=class extends Ci{constructor(r,e,t){super(nr(e),ar(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;registerControl(r,e){let t=this._find(r);return t||(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}
1662){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange();}removeControl(r,e={}){let t=this._find(r);t&&t._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}setControl(r,e,t={}){let i=this._find(r);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange();}contains(r){return this._find(r)?.enabled===true}setValue(r,e={}){wa$2(()=>{Ys$1(this,true,r),Object.keys(r).forEach(t=>{Qs$1(this,true,t),this.controls[t].setValue(r[t],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(r,e={}){r!=null&&(Object.keys(r).forEach(t=>{let i=this._find(t);i&&i.patchValue(r[t],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(r={},e={}){this._forEachChild((t,i)=>{t.reset(r?r[i]:null,E$7(D$6({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new di(this));}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(false,(e,t)=>t._syncPendingControls()?true:e);return r&&this.updateValueAndValidity({onlySelf:true}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&r(t,e);});}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange);});}_updateValue(){this.value=this._reduceValue();}_anyControls(r){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return true;return false}_reduceValue(){let r={};return this._reduceChildren(r,(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((i,a)=>{t=e(t,i,a);}),t}_allControlsDisabled(){for(let r of Object.keys(this.controls))if(this.controls[r].enabled)return false;return Object.keys(this.controls).length>0||this.disabled}_find(r){return Ks$1(this.controls,r)?this.controls[r]:null}};var Xa=class extends Di{};var zc$1={provide:vt$2,useExisting:ns(()=>jt$1)},Yi=Promise.resolve(),jt$1=(()=>{class n extends vt$2{callSetDisabledState;get submitted(){return wa$2(this.submittedReactive)}_submitted=wS(()=>this.submittedReactive());submittedReactive=Es$1(false);_directives=new Set;form;ngSubmit=new kt$3;options;constructor(e,t,i){super(),this.callSetDisabledState=i,this.form=new Di({},tr$1(e),ir(t));}ngAfterViewInit(){this._setUpdateStrategy();}get formDirective(){return this}get control(){return this.form}get path(){return []}get controls(){return this.form.controls}addControl(e){Yi.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),e._setupWithForm(this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:false}),this._directives.add(e);});}getControl(e){return this.form.get(e.path)}
1662removeControl(e){Yi.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e);});}addFormGroup(e){Yi.then(()=>{let t=this._findContainer(e.path),i=new Di({});tl$1(i,e),t.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:false});});}removeFormGroup(e){Yi.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name);});}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Yi.then(()=>{this.form.get(e.path).setValue(t);});}setValue(e){this.control.setValue(e);}onSubmit(e){return this.submittedReactive.set(true),il$1(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Gn(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(false);}_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 \u0275fac=function(t){return new(t||n)(V$3(qe$2,10),V$3(Zi$1,10),V$3(mi,8))};static \u0275dir=bt$6({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,i){t&1&&Ey("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()});},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[tS([zc$1]),Xm$2]})}return n})();function Ds(n,r){let e=n.indexOf(r);e>-1&&n.splice(e,1);}function Ms(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var Xi=class extends Ci{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=false;constructor(r=null,e,t){super(nr(e),ar(t,e)),this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator}),$n(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ms(r)?this.defaultValue=r.value:this.defaultValue=r);}setValue(r,e={}){wa$2(()=>{this.value=this._pendingValue=r,this._onChange.length&&e.emitModelToViewChange!==false&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==false)),this.updateValueAndValidity(e);});}patchValue(r,e={}){this.setValue(r,e);}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=false,e?.emitEvent!==false&&this._events.next(new di(this));}_updateValue(){}_anyControls(r){return false}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r);}_unregisterOnChange(r){Ds(this._onChange,r);}registerOnDisabledChange(r){this._onDisabledChange.push(r);}_unregisterOnDisabledChange(r){Ds(this._onDisabledChange,r);}_forEachChild(r){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:true,emitModelToViewChange:false}),true):false}_applyFormState(r){Ms(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:true,emitEvent:false}):this.enable({onlySelf:true,emitEvent:false})):this.value=this._pendingValue=r;}};var Hc$1=n=>n instanceof Xi;var jc$1={provide:Ye$2,useExisting:ns(()=>Gc$1)},Ss=Promise.resolve(),Gc$1=(()=>{class n extends Ye$2{_changeDetectorRef;callSetDisabledState;control=new Xi;static ngAcceptInputType_isDisabled;_registered=false;viewModel;name="";isDisabled;model;options;update=new kt$3;constructor(e,t,i,a,o,l,f,R){super(f,R,a),this._changeDetectorRef=o,this.callSetDisabledState=l,this._parent=e,this._setValidators(t),this._setAsyncValidators(i);}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)});}this._setUpControl();}"isDisabled"in e&&this._updateDisabled(e),or(e,this.viewModel)&&(this._updateV
1662alue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.formDirective?.removeControl(this);}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,false);}get shouldBindRequired(){return false}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=true;}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn);}_isStandalone(){return !this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Un(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:false});}_setupWithForm(e){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Un(this.control,this,e));}_checkForErrors(){this._checkName();}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name;}_updateValue(e){Ss.then(()=>{this.control.setValue(e,{emitViewToModelChange:false}),this._changeDetectorRef?.markForCheck();});}_updateDisabled(e){let t=e.isDisabled.currentValue,i=t!==0&&tM$1(t);Ss.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck();});}_getPath(e){return this._parent?Js$1(e,this._parent):[e]}static \u0275fac=function(t){return new(t||n)(V$3(vt$2,9),V$3(qe$2,10),V$3(Zi$1,10),V$3(Fe$1,10),V$3(Od$2,8),V$3(mi,8),V$3(Ee$4,8),V$3(qo$1,8))};static \u0275dir=bt$6({type:n,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"],standalone:false,features:[tS([jc$1,sr]),Xm$2,El$2,oT(null)]})}return n})();var Lg=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:false})}return n})(),Uc$1={provide:Fe$1,useExisting:ns(()=>Wc$1),multi:true},Wc$1=(()=>{class n extends Kn{writeValue(e){let t=e??"";this.setProperty("value",t);}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t));};}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(t,i){t&1&&Ey("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()});},standalone:false,features:[tS([Uc$1]),Xm$2]})}return n})(),qc$1={provide:Fe$1,useExisting:ns(()=>Yc$1),multi:true};var Qc$1=(()=>{class n{_accessors=[];add(e,t){this._accessors.push([e,t]);}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e){this._accessors.splice(t,1);return}}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value);});}_isSameGroup(e,t){return e[0].control?e[0]._parent===t._control._parent&&e[1].name===t.name:false}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),Yc$1=(()=>{class n extends Kn{_registry;_injector;_state;_control;_fn;setDisabledStateFired=false;onChange=()=>{};name;formControlName;value;callSetDisabledState=g$4(mi,{optional:true})??Ji$1;constructor(e,t,i,a){super(e,t),this._registry=i,this._injector=a;}ngOnInit(){this._control=this._injector.get(Ye$2),this._checkName(),this._registry.add(this._control,this);}ngOnDestroy(){this._registry.remove(this);}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state);}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this);};}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=true;}fireUncheck(e){this.writeValue(e);}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName);}static \u0275fac=function(t){return new(t||n)(V$3(qo$1),V$3(Vt$3),V$3(Qc$1),V$3(Ee$4))};static \u0275dir=bt$6({type:n,selectors:[["input","type","radio","formControlName","",3,"ngNoCva",""],["input","type","radio","formControl","",3,"ngNoCva",""],["input","type","radio","ngModel","",3,"ngNoCva",""]],hostBindings:function(t,i){t&1&&Ey("change",function(){return i.onChange()})("blur",function(){return i.onTouched()});},inputs:{name:"name",formControlName:"formControlName",value:"value"}
1662,standalone:false,features:[tS([qc$1]),Xm$2]})}return n})();var Za=class extends Ci{constructor(r,e,t){super(nr(e),ar(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;at(r){return this.controls[this._adjustIndex(r)]}push(r,e={}){Array.isArray(r)?r.forEach(t=>{this.controls.push(t),this._registerControl(t);}):(this.controls.push(r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}insert(r,e,t={}){this.controls.splice(r,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent});}removeAt(r,e={}){let t=this._adjustIndex(r);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent});}setControl(r,e,t={}){let i=this._adjustIndex(r);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange();}get length(){return this.controls.length}setValue(r,e={}){wa$2(()=>{Ys$1(this,false,r),r.forEach((t,i)=>{Qs$1(this,false,i),this.at(i).setValue(t,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(r,e={}){r!=null&&(r.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(r=[],e={}){this._forEachChild((t,i)=>{t.reset(r[i],E$7(D$6({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new di(this));}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}));}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((e,t)=>t._syncPendingControls()?true:e,false);return r&&this.updateValueAndValidity({onlySelf:true}),r}_forEachChild(r){this.controls.forEach((e,t)=>{r(e,t);});}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value);}_anyControls(r){return this.controls.some(e=>e.enabled&&r(e))}_setUpControls(){this._forEachChild(r=>this._registerControl(r));}_allControlsDisabled(){for(let r of this.controls)if(r.enabled)return false;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange);}_find(r){return this.at(r)??null}};var Kc$1=(()=>{class n extends vt$2{callSetDisabledState;get submitted(){return wa$2(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e);}_submitted=wS(()=>this._submittedReactive());_submittedReactive=Es$1(false);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,t,i){super(),this.callSetDisabledState=i,this._setValidators(e),this._setAsyncValidators(t);}ngOnChanges(e){this.onChanges(e);}ngOnDestroy(){this.onDestroy();}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form);}onDestroy(){this.form&&(Qn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}));}get formDirective(){return this}get path(){return []}addControl(e){let t=this.form.get(e.path);return e._setupWithForm(t,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:false}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}
1662removeControl(e){Wn(e.control||null,e,false),Nc$1(this.directives,e);}addFormGroup(e){this._setUpFormContainer(e);}removeFormGroup(e){this._cleanUpFormContainer(e);}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e);}removeFormArray(e){this._cleanUpFormContainer(e);}updateModel(e,t){this.form.get(e.path).setValue(t);}onReset(){this.resetForm();}resetForm(e=void 0,t={}){this.form.reset(e,t),this._submittedReactive.set(false);}onSubmit(e){return this.submitted=true,il$1(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Gn(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,i=this.form.get(e.path);t!==i&&(Wn(t||null,e),Hc$1(i)&&e._setupWithForm(i,this.callSetDisabledState));}),this.form._updateTreeValidity({emitEvent:false});}_setUpFormContainer(e){let t=this.form.get(e.path);tl$1(t,e),t.updateValueAndValidity({emitEvent:false});}_cleanUpFormContainer(e){let t=this.form?.get(e.path);t&&Vc$1(t,e)&&t.updateValueAndValidity({emitEvent:false});}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{});}_updateValidators(){rr$1(this.form,this),this._oldForm&&Qn(this._oldForm,this);}_checkFormPresent(){this.form;}static \u0275fac=function(t){return new(t||n)(V$3(qe$2,10),V$3(Zi$1,10),V$3(mi,8))};static \u0275dir=bt$6({type:n,features:[Xm$2,El$2]})}return n})();var lr$1=new I$4(""),$c={provide:Ye$2,useExisting:ns(()=>Xc$1)},Xc$1=(()=>{class n extends Ye$2{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new kt$3;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,t,i,a,o,l,f){super(f,l,i),this._ngModelWarningConfig=a,this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(t);}ngOnChanges(e){if(this._isControlChanged(e)){let t=e.form.previousValue;t&&(Wn(t,this,false),this.removeParseErrorsValidator(t)),this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Un(this.form,this,this.callSetDisabledState)),this.form.updateValueAndValidity({emitEvent:false});}or(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.form&&Wn(this.form,this,false);}get path(){return []}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_isControlChanged(e){return e.hasOwnProperty("form")}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,true);}static \u0275fac=function(t){return new(t||n)(V$3(qe$2,10),V$3(Zi$1,10),V$3(Fe$1,10),V$3(lr$1,8),V$3(mi,8),V$3(qo$1,8),V$3(Ee$4,8))};static \u0275dir=bt$6({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:false,features:[tS([$c,sr]),Xm$2,El$2,oT(null)]})}return n})();var Zc$1={provide:Ye$2,useExisting:ns(()=>Jc$1)},Jc$1=(()=>{class n extends Ye$2{_ngModelWarningConfig;_added=false;viewModel;control;name=null;set isDisabled(e){}model;update=new kt$3;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,t,i,a,o,l,f){super(f,l,a),this._ngModelWarningConfig=o,this._parent=e,this._setValidators(t),this._setAsyncValidators(i);}_setupWithForm(e,t){this.control=e,this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Un(e,this,t));}ngOnChanges(e){this._added||this._setUpControl(),or(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model));}ngOnDestroy(){this.formDirective?.removeControl(this);}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}get path(){return Js$1(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=true;}\u0275ngControlCreate(e){super.ngControlCreate(e);}
1662\u0275ngControlUpdate(e){this.isCustomControlBased&&(this._added||this._setUpControl(),super.ngControlUpdate(e,true));}static \u0275fac=function(t){return new(t||n)(V$3(vt$2,13),V$3(qe$2,10),V$3(Zi$1,10),V$3(Fe$1,10),V$3(lr$1,8),V$3(qo$1,8),V$3(Ee$4,8))};static \u0275dir=bt$6({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:false,features:[tS([Zc$1,sr]),Xm$2,El$2,oT(null)]})}return n})();var em$1={provide:vt$2,useExisting:ns(()=>Gt$1)},Gt$1=(()=>{class n extends Kc$1{form=null;ngSubmit=new kt$3;get control(){return this.form}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","formGroup",""]],hostBindings:function(t,i){t&1&&Ey("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()});},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[tS([em$1]),Xm$2]})}return n})();var nl$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({})}return n})();function Is(n){return !!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Bg=(()=>{class n{useNonNullable=false;get nonNullable(){let e=new n;return e.useNonNullable=true,e}group(e,t=null){let i=this._reduceControls(e),a={};return Is(t)?a=t:t!==null&&(a.validators=t.validator,a.asyncValidators=t.asyncValidator),new Di(i,a)}record(e,t=null){let i=this._reduceControls(e);return new Xa(i,t)}control(e,t,i){let a={};return this.useNonNullable?(Is(t)?a=t:(a.validators=t,a.asyncValidators=i),new Xi(e,E$7(D$6({},a),{nonNullable:true}))):new Xi(e,t,i)}array(e,t,i){let a=e.map(o=>this._createControl(o));return new Za(a,t,i)}_reduceControls(e){let t={};return Object.keys(e).forEach(i=>{t[i]=this._createControl(e[i]);}),t}_createControl(e){if(e instanceof Xi)return e;if(e instanceof Ci)return e;if(Array.isArray(e)){let t=e[0],i=e.length>1?e[1]:null,a=e.length>2?e[2]:null;return this.control(t,i,a)}else return this.control(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var Ng=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:mi,useValue:e.callSetDisabledState??Ji$1}]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[nl$1]})}return n})(),zg=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:lr$1,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:mi,useValue:e.callSetDisabledState??Ji$1}]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[nl$1]})}return n})();var Wg=(()=>{class n{get vertical(){return this._vertical}set vertical(e){this._vertical=Er$2(e);}_vertical=false;get inset(){return this._inset}set inset(e){this._inset=Er$2(e);}_inset=false;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,i){t&2&&(ly("aria-orientation",i.vertical?"vertical":"horizontal"),xy("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset));},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,i){},styles:[`.mat-divider { 1663 display: block; 1664 margin: 0; 1665 border-top-style: solid; 1666 border-top-color: var(--mat-divider-color, var(--mat-sys-outline-variant)); 1667 border-top-width: var(--mat-divider-width, 1px); 1668} 1669.mat-divider.mat-divider-vertical { 1670 border-top: 0; 1671 border-right-style: solid; 1672 border-right-color: var(--mat-divider-color, var(--mat-sys-outline-variant)); 1673 border-right-width: var(--mat-divider-width, 1px); 1674} 1675.mat-divider.mat-divider-inset { 1676 margin-left: 80px; 1677} 1678[dir=rtl] .mat-divider.mat-divider-inset { 1679 margin-left: auto; 1680 margin-right: 80px; 1681} 1682`],encapsulation:2})}return n})(),al$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();var yt=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())
1682),this._selected}changed=new ye$5;constructor(r=false,e,t=true,i){this._multiple=r,this._emitChanges=t,this.compareWith=i,e&&e.length&&(r?e.forEach(a=>this._markSelected(a)):this._markSelected(e[0]),this._selectedToEmit.length=0);}select(...r){this._verifyValueAssignment(r),r.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...r){this._verifyValueAssignment(r),r.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...r){this._verifyValueAssignment(r);let e=this.selected,t=new Set(r.map(a=>this._getConcreteValue(a)));r.forEach(a=>this._markSelected(a)),e.filter(a=>!t.has(this._getConcreteValue(a,t))).forEach(a=>this._unmarkSelected(a));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(r){return this.isSelected(r)?this.deselect(r):this.select(r)}clear(r=true){this._unmarkAll();let e=this._hasQueuedChanges();return r&&this._emitChangeEvent(),e}isSelected(r){return this._selection.has(this._getConcreteValue(r))}isEmpty(){return this._selection.size===0}hasValue(){return !this.isEmpty()}sort(r){this._multiple&&this.selected&&this._selected.sort(r);}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(r){r=this._getConcreteValue(r),this.isSelected(r)||(this._multiple||this._unmarkAll(),this.isSelected(r)||this._selection.add(r),this._emitChanges&&this._selectedToEmit.push(r));}_unmarkSelected(r){r=this._getConcreteValue(r),this.isSelected(r)&&(this._selection.delete(r),this._emitChanges&&this._deselectedToEmit.push(r));}_unmarkAll(){this.isEmpty()||this._selection.forEach(r=>this._unmarkSelected(r));}_verifyValueAssignment(r){r.length>1&&this._multiple;}_hasQueuedChanges(){return !!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(r,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(r,t))return t;return r}else return r}};var hi=(()=>{class n{_listeners=[];notify(e,t){for(let i of this._listeners)i(e,t);}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t);}}ngOnDestroy(){this._listeners=[];}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var Xn=class{applyChanges(r,e,t,i,a){r.forEachOperation((o,l,f)=>{let R,G;if(o.previousIndex==null){let re=t(o,l,f);R=e.createEmbeddedView(re.templateRef,re.context,re.index),G=J$3.INSERTED;}else f==null?(e.remove(l),G=J$3.REMOVED):(R=e.get(l),e.move(R,f),G=J$3.MOVED);a&&a({context:R?.context,operation:G,record:o});});}detach(){}};var Zn=(()=>{class n{_animationsDisabled=ct$1();state="unchecked";disabled=false;appearance="full";static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,i){t&2&&xy("mat-pseudo-checkbox-indeterminate",i.state==="indeterminate")("mat-pseudo-checkbox-checked",i.state==="checked")("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal",i.appearance==="minimal")("mat-pseudo-checkbox-full",i.appearance==="full")("_mat-animation-noopable",i._animationsDisabled);},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,i){},styles:[`.mat-pseudo-checkbox { 1683 border-radius: 2px; 1684 cursor: pointer; 1685 display: inline-block; 1686 vertical-align: middle; 1687 box-sizing: border-box; 1688 position: relative; 1689 flex-shrink: 0; 1690 transition: border-color 90ms cubic-bezier(0, 0, 0.2, 0.1), background-color 90ms cubic-bezier(0, 0, 0.2, 0.1); 1691} 1692.mat-pseudo-checkbox::after { 1693 position: absolute; 1694 opacity: 0; 1695 content: ""; 1696 border-bottom: 2px solid currentColor; 1697 transition: opacity 90ms cubic-bezier(0, 0, 0.2, 0.1); 1698} 1699.mat-pseudo-checkbox._mat-animation-noopable { 1700 transition: none !important; 1701 animation: none !important; 1702} 1703.mat-pseudo-checkbox._mat-animation-noopable::after { 1704 transition: none; 1705} 1706 1707.mat-pseudo-checkbox-disabled { 1708 cursor: default; 1709} 1710 1711.mat-pseudo-checkbox-indeterminate::after { 1712 left: 1px; 1713 opacity: 1; 1714 border-radius: 2px; 1715} 1716 1717.mat-pseudo-checkbox-checked::after { 1718 left: 1px; 1719 border-left: 2px solid currentColor; 1720 transform: rotate(-45deg); 1721 opacity: 1; 1722 box-sizing: content-box; 1723} 1724 1725.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after, .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after {
1726 color: var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary)); 1727} 1728.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 { 1729 color: var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1730} 1731 1732.mat-pseudo-checkbox-full { 1733 border-color: var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant)); 1734 border-width: 2px; 1735 border-style: solid; 1736} 1737.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled { 1738 border-color: var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1739} 1740.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate { 1741 background-color: var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary)); 1742 border-color: transparent; 1743} 1744.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after { 1745 color: var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary)); 1746} 1747.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled { 1748 background-color: var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1749} 1750.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 { 1751 color: var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface)); 1752} 1753 1754.mat-pseudo-checkbox { 1755 width: 18px; 1756 height: 18px; 1757} 1758 1759.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after { 1760 width: 14px; 1761 height: 6px; 1762 transform-origin: center; 1763 top: -4.2426406871px; 1764 left: 0; 1765 bottom: 0; 1766 right: 0; 1767 margin: auto; 1768} 1769.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after { 1770 top: 8px; 1771 width: 16px; 1772} 1773 1774.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after { 1775 width: 10px; 1776 height: 4px; 1777 transform-origin: center; 1778 top: -2.8284271247px; 1779 left: 0; 1780 bottom: 0; 1781 right: 0; 1782 margin: auto; 1783} 1784.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after { 1785 top: 6px; 1786 width: 12px; 1787} 1788`],encapsulation:2})}return n})();var Jn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();var hr=["*"],pr$1=`.mdc-list { 1789 margin: 0; 1790 padding: 8px 0; 1791 list-style-type: none; 1792} 1793.mdc-list:focus { 1794 outline: none; 1795} 1796 1797.mdc-list-item { 1798 display: flex; 1799 position: relative; 1800 justify-content: flex-start; 1801 overflow: hidden; 1802 padding: 0; 1803 align-items: stretch; 1804 cursor: pointer; 1805 padding-left: 16px; 1806 padding-right: 16px; 1807 background-color: var(--mat-list-list-item-container-color, transparent); 1808 border-radius: var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none)); 1809} 1810.mdc-list-item.mdc-list-item--selected { 1811 background-color: var(--mat-list-list-item-selected-container-color); 1812} 1813.mdc-list-item:focus { 1814 outline: 0; 1815} 1816.mdc-list-item.mdc-list-item--disabled { 1817 cursor: auto; 1818} 1819.mdc-list-item.mdc-list-item--with-one-line { 1820 height: var(--mat-list-list-item-one-line-container-height, 48px); 1821} 1822.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start { 1823 align-self: center; 1824 margin-top: 0; 1825} 1826.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end { 1827 align-self: center; 1828 margin-top: 0; 1829} 1830.mdc-list-item.mdc-list-item--with-two-lines { 1831 height: var(--mat-list-list-item-two-line-container-height, 64px); 1832} 1833.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start { 1834 align-self: flex-start; 1835 margin-top: 16px; 1836} 1837.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end { 1838 align-self: center; 1839 margin-top: 0; 1840} 1841.mdc-list-item.mdc-list-item--with-three-lines { 1842 height: var(--mat-list-list-item-three-line-container-height, 88px); 1843} 1844.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start { 1845 align-self: flex-start; 1846 margin-top: 16px; 1847} 1848.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end { 1849 align-self: flex-start; 1850 margin-top: 16px; 1851} 1852.mdc-list-item.mdc-list-item--selected::before, .mdc-list-item.mdc-list-item--selected:focus::before, .mdc-list-item:not(.mdc-list-item--selected):focus::before { 1853 position: absolute; 1854 box-sizing: border-box; 1855 width: 100%; 1856 height: 100%; 1857 top: 0; 1858 left: 0; 1859 content: ""; 1860 pointer-events: none; 1861} 1862 1863a.mdc-list-item { 1864 color: inherit; 1865 text-decoration: none; 1866} 1867 1868.mdc-list-item__start { 1869 fill: currentColor; 1870 flex-shrink: 0; 1871 pointer-events: none; 1872} 1873.mdc-list-item--with-leading-icon .mdc-list-item__start { 1874 color: var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant)); 1875 width: var(--mat-list-list-item-leading-icon-size, 24px); 1876 height: var(--mat-list-list-item-leading-icon-size, 24px); 1877 margin-left: 16px; 1878 margin-right: 32px; 1879} 1880[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start { 1881 margin-left: 32px; 1882 margin-right: 16px; 1883} 1884.mdc-list-item--with-leading-icon:hover .mdc-list-item__start { 1885 color: var(--mat-list-list-item-hover-leading-icon-color); 1886} 1887.mdc-list-item--with-leading-avatar .mdc-list-item__start { 1888 width: var(--mat-list-list-item-leading-avatar-size, 40px); 1889 height: var(--mat-list-list-item-leading-avatar-size, 40px); 1890 margin-left: 16px; 1891 margin-right: 16px; 1892 border-radius: 50%; 1893} 1894.mdc-list-item--with-leading-avatar .mdc-list-item__start, [dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start { 1895 margin-left: 16px; 1896 margin-right: 16px; 1897 border-radius: 50%; 1898} 1899 1900.mdc-list-item__end { 1901 flex-shrink: 0; 1902 pointer-events: none; 1903} 1904.mdc-list-item--with-trailing-meta .mdc-list-item__end { 1905 font-family: var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font)); 1906 line-height: var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height)); 1907 font-size: var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size)); 1908 font-weight: var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight)); 1909 letter-spacing: var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking)); 1910} 1911.mdc-list-item--with-trailing-icon .mdc-list-item__end { 1912 color: var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant)); 1913 width: var(--mat-list-list-item-trailing-icon-size, 24px); 1914 height: var(--mat-list-list-item-trailing-icon-size, 24px); 1915} 1916.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end { 1917 color: var(--mat-list-list-item-hover-trailing-icon-color); 1918} 1919.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end { 1920 color: var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant)); 1921} 1922.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end { 1923 color: var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary)); 1924} 1925 1926.mdc-list-item__content { 1927 text-overflow: ellipsis; 1928 white-space: nowrap; 1929 overflow: hidden; 1930 align-self: center; 1931 flex: 1; 1932 pointer-events: none; 1933} 1934.mdc-list-item--with-two-lines .mdc-list-item__content, .mdc-list-item--with-three-lines .mdc-list-item__content { 1935 align-self: stretch; 1936} 1937 1938.mdc-list-item__primary-text { 1939 text-overflow: ellipsis; 1940 white-space: nowrap; 1941 overflow: hidden; 1942 color: var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface)); 1943 font-family: var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font)); 1944 line-height: var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height)); 1945 font-size: var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size)); 1946 font-weight: var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight)); 1947 letter-spacing: var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking)); 1948} 1949.mdc-list-item:hover .mdc-list-item__primary-text { 1950 color: var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface)); 1951} 1952.mdc-list-item:focus .mdc-list-item__primary-text { 1953 color: var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface)); 1954} 1955.mdc-list-item--with-two-lines .mdc-list-item__primary-text, .mdc-list-item--with-three-lines .mdc-list-item__primary-text { 1956 display: block; 1957 margin-top: 0; 1958 line-height: normal; 1959 margin-bottom: -20px; 1960} 1961.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before, .mdc-list-item--with-three-lines .mdc-list-item__primary-text::before { 1962 display: inline-block; 1963 width: 0; 1964 height: 28px; 1965 content: ""; 1966 vertical-align: 0; 1967} 1968.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after, .mdc-list-item--with-three-lines .mdc-list-item__primary-text::after { 1969 display: inline-block; 1970 width: 0; 1971 height: 20px; 1972 content: ""; 1973 vertical-align: -20px; 1974} 1975 1976.mdc-list-item__secondary-text { 1977 text-overflow: ellipsis; 1978 white-space: nowrap; 1979 overflow: hidden; 1980 display: block; 1981 margin-top: 0; 1982 color: var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant)); 1983 font-family: var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font)); 1984 line-height: var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height)); 1985 font-size: var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size)); 1986 font-weight: var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight)); 1987 letter-spacing: var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking)); 1988} 1989.mdc-list-item__secondary-text::before { 1990 display: inline-block; 1991 width: 0; 1992 height: 20px; 1993 content: ""; 1994 vertical-align: 0; 1995} 1996.mdc-list-item--with-three-lines .mdc-list-item__secondary-text { 1997 white-space: normal; 1998 line-height: 20px; 1999} 2000.mdc-list-item--with-overline .mdc-list-item__secondary-text { 2001 white-space: nowrap; 2002 line-height: auto; 2003} 2004 2005.mdc-list-item--with-leading-radio.mdc-list-item, 2006.mdc-list-item--with-leading-checkbox.mdc-list-item, 2007.mdc-list-item--with-leading-icon.mdc-list-item, 2008.mdc-list-item--with-leading-avatar.mdc-list-item { 2009 padding-left: 0; 2010 padding-right: 16px; 2011} 2012[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item, 2013[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item, 2014[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item, 2015[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item { 2016 padding-left: 16px; 2017 padding-right: 0; 2018} 2019.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text, 2020.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text, 2021.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text, 2022.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text { 2023 display: block; 2024 margin-top: 0; 2025 line-height: normal; 2026 margin-bottom: -20px; 2027} 2028.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before, 2029.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before, 2030.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before, 2031.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before { 2032 display: inline-block; 2033 width: 0; 2034 height: 32px; 2035 content: ""; 2036 vertical-align: 0; 2037} 2038.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after, 2039.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after, 2040.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after, 2041.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after { 2042 display: inline-block; 2043 width: 0; 2044 height: 20px; 2045 content: ""; 2046 vertical-align: -20px; 2047} 2048.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end, 2049.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end, 2050.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end, 2051.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end { 2052 display: block; 2053 margin-top: 0; 2054 line-height: normal; 2055} 2056.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before, 2057.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before, 2058.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before, 2059.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before { 2060 display: inline-block; 2061 width: 0; 2062 height: 32px; 2063 content: ""; 2064 vertical-align: 0; 2065} 2066 2067.mdc-list-item--with-trailing-icon.mdc-list-item, [dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item { 2068 padding-left: 0; 2069 padding-right: 0; 2070} 2071.mdc-list-item--with-trailing-icon .mdc-list-item__end { 2072 margin-left: 16px; 2073 margin-right: 16px; 2074} 2075 2076.mdc-list-item--with-trailing-meta.mdc-list-item { 2077 padding-left: 16px; 2078 padding-right: 0; 2079} 2080[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item { 2081 padding-left: 0; 2082 padding-right: 16px; 2083} 2084.mdc-list-item--with-trailing-meta .mdc-list-item__end { 2085 -webkit-user-select: none; 2086 user-select: none; 2087 margin-left: 28px; 2088 margin-right: 16px; 2089} 2090[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end { 2091 margin-left: 16px; 2092 margin-right: 28px; 2093} 2094.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end, .mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end { 2095 display: block; 2096 line-height: normal; 2097 align-self: flex-start; 2098 margin-top: 0; 2099} 2100.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before, .mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before { 2101 display: inline-block; 2102 width: 0; 2103 height: 28px; 2104 content: ""; 2105 vertical-align: 0; 2106} 2107 2108.mdc-list-item--with-leading-radio .mdc-list-item__start, 2109.mdc-list-item--with-leading-checkbox .mdc-list-item__start { 2110 margin-left: 8px; 2111 margin-right: 24px; 2112} 2113[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start, 2114[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start { 2115 margin-left: 24px; 2116 margin-right: 8px; 2117} 2118.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start, 2119.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start { 2120 align-self: flex-start; 2121 margin-top: 8px; 2122} 2123 2124.mdc-list-item--with-trailing-radio.mdc-list-item, 2125.mdc-list-item--with-trailing-checkbox.mdc-list-item { 2126 padding-left: 16px; 2127 padding-right: 0; 2128} 2129[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item, 2130[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item { 2131 padding-left: 0; 2132 padding-right: 16px; 2133} 2134.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon, .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar, 2135.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon, 2136.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar { 2137 padding-left: 0; 2138} 2139[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon, [dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar, 2140[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon, 2141[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar { 2142 padding-right: 0
2142; 2143} 2144.mdc-list-item--with-trailing-radio .mdc-list-item__end, 2145.mdc-list-item--with-trailing-checkbox .mdc-list-item__end { 2146 margin-left: 24px; 2147 margin-right: 8px; 2148} 2149[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end, 2150[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end { 2151 margin-left: 8px; 2152 margin-right: 24px; 2153} 2154.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end, 2155.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end { 2156 align-self: flex-start; 2157 margin-top: 8px; 2158} 2159 2160.mdc-list-group__subheader { 2161 margin: 0.75rem 16px; 2162} 2163 2164.mdc-list-item--disabled .mdc-list-item__start, 2165.mdc-list-item--disabled .mdc-list-item__content, 2166.mdc-list-item--disabled .mdc-list-item__end { 2167 opacity: 1; 2168} 2169.mdc-list-item--disabled .mdc-list-item__primary-text, 2170.mdc-list-item--disabled .mdc-list-item__secondary-text { 2171 opacity: var(--mat-list-list-item-disabled-label-text-opacity, 0.3); 2172} 2173.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start { 2174 color: var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface)); 2175 opacity: var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38); 2176} 2177.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end { 2178 color: var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface)); 2179 opacity: var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38); 2180} 2181 2182.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing, [dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing { 2183 padding-left: 0; 2184 padding-right: 0; 2185} 2186 2187.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text { 2188 color: var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface)); 2189} 2190 2191.mdc-list-item:hover::before { 2192 background-color: var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface)); 2193 opacity: var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 2194} 2195 2196.mdc-list-item.mdc-list-item--disabled::before { 2197 background-color: var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface)); 2198 opacity: var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 2199} 2200 2201.mdc-list-item:focus::before { 2202 background-color: var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface)); 2203 opacity: var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 2204} 2205 2206.mdc-list-item--disabled .mdc-radio, 2207.mdc-list-item--disabled .mdc-checkbox { 2208 opacity: var(--mat-list-list-item-disabled-label-text-opacity, 0.3); 2209} 2210 2211.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar { 2212 border-radius: var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full)); 2213 background-color: var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container)); 2214} 2215 2216.mat-mdc-list-item-icon { 2217 font-size: var(--mat-list-list-item-leading-icon-size, 24px); 2218} 2219 2220@media (forced-colors: active) { 2221 a.mdc-list-item--activated::after { 2222 content: ""; 2223 position: absolute; 2224 top: 50%; 2225 right: 16px; 2226 transform: translateY(-50%); 2227 width: 10px; 2228 height: 0; 2229 border-bottom: solid 10px; 2230 border-radius: 10px; 2231 } 2232 a.mdc-list-item--activated [dir=rtl]::after { 2233 right: auto; 2234 left: 16px; 2235 } 2236} 2237 2238.mat-mdc-list-base { 2239 display: block; 2240} 2241.mat-mdc-list-base .mdc-list-item__start, 2242.mat-mdc-list-base .mdc-list-item__end, 2243.mat-mdc-list-base .mdc-list-item__content { 2244 pointer-events: auto; 2245} 2246 2247.mat-mdc-list-item, 2248.mat-mdc-list-option { 2249 width: 100%; 2250 box-sizing: border-box; 2251 -webkit-tap-highlight-color: transparent; 2252} 2253.mat-mdc-list-item:not(.mat-mdc-list-item-interactive), 2254.mat-mdc-list-option:not(.mat-mdc-list-item-interactive) { 2255 cursor: default; 2256} 2257.mat-mdc-list-item .mat-divider-inset, 2258.mat-mdc-list-option .mat-divider-inset { 2259 position: absolute; 2260 left: 0; 2261 right: 0; 2262 bottom: 0; 2263} 2264.mat-mdc-list-item .mat-mdc-list-item-avatar ~ .mat-divider-inset, 2265.mat-mdc-list-option .mat-mdc-list-item-avatar ~ .mat-divider-inset { 2266 margin-left: 72px; 2267} 2268[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar ~ .mat-divider-inset, 2269[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar ~ .mat-divider-inset { 2270 margin-right: 72px; 2271} 2272 2273.mat-mdc-list-item-interactive::before { 2274 top: 0; 2275 left: 0; 2276 right: 0; 2277 bottom: 0; 2278 position: absolute; 2279 content: ""; 2280 opacity: 0; 2281 pointer-events: none; 2282 border-radius: inherit; 2283} 2284 2285.mat-mdc-list-item > .mat-focus-indicator { 2286 top: 0; 2287 left: 0; 2288 right: 0; 2289 bottom: 0; 2290 position: absolute; 2291 pointer-events: none; 2292} 2293.mat-mdc-list-item:focus-visible > .mat-focus-indicator::before { 2294 content: ""; 2295} 2296 2297.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text { 2298 white-space: nowrap; 2299 line-height: normal; 2300} 2301.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text { 2302 display: -webkit-box; 2303 -webkit-box-orient: vertical; 2304 -webkit-line-clamp: 2; 2305} 2306 2307mat-action-list button { 2308 background: none; 2309 color: inherit; 2310 border: none; 2311 font: inherit; 2312 outline: inherit; 2313 -webkit-tap-highlight-color: transparent; 2314 text-align: start; 2315} 2316mat-action-list button::-moz-focus-inner { 2317 border: 0; 2318} 2319 2320.mdc-list-item--with-leading-icon .mdc-list-item__start { 2321 margin-inline-start: var(--mat-list-list-item-leading-icon-start-space, 16px); 2322 margin-inline-end: var(--mat-list-list-item-leading-icon-end-space, 16px); 2323} 2324 2325.mat-mdc-nav-list .mat-mdc-list-item { 2326 border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full)); 2327 --mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full)); 2328} 2329.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated { 2330 background-color: var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container)); 2331} 2332`,rl$1=["unscopedContent"],tm$1=["text"],im$1=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],nm$1=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],am$1=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],rm$1=["[matListItemTitle]","[matListItemLine]","*","mat-divider","[matListItemAvatar],[matListItemIcon]"];function om$1(n,r){n&1&&h_$1(0,4);}function sm$1(n,r){if(n&1&&(Js$2(0,"div",11),fy(1,"input",12),Js$2(2,"div",13),Xp$2(),Js$2(3,"svg",14),fy(4,"path",15),gd$2(),Jp$2(),fy(5,"div",16),gd$2()()),n&2){let e=d_$1();xy("mdc-checkbox--disabled",e.disabled),SC(),dy("checked",e.selected)("disabled",e.disabled);}}function lm$1(n,r){if(n&1&&(Js$2(0,"div",17),fy(1,"input",18),Js$2(2,"div",19),fy(3,"div",20)(4,"div",21),gd$2()()),n&2){let e=d_$1();xy("mdc-radio--disabled",e.disabled),SC(),dy("checked",e.selected)("disabled",e.disabled);}}function dm$1(n,r){}function cm$1(n,r){if(n&1&&(Js$2(0,"span",4),ey$1(1,dm$1,0,0,"ng-template",6),gd$2()),n&2){d_$1();let e=D_$1(3);SC(),dy("ngTemplateOutlet",e);}}function mm$1(n,r){}function hm$1(n,r){if(n&1&&(Js$2(0,"span",5),ey$1(1,mm$1,0,0,"ng-template",6),gd$2()),n&2){d_$1();let e=D_$1(5);SC(),dy("ngTemplateOutlet",e);}}function pm$1(n,r){}function um$1(n,r){if(n&1&&ey$1(0,pm$1,0,0,"ng-template",6),n&2){d_$1();let e=D_$1(1);dy("ngTemplateOutlet",e);}}function _m$1(n,r){}function fm$1(n,r){if(n&1&&(Js$2(0,"span",9),ey$1(1,_m$1,0,0,"ng-template",6),gd$2()),n&2){d_$1();let e=D_$1(3);SC(),dy("ngTemplateOutlet",e);}}function gm$1(n,r){}function bm$1(n,r){if(n&1&&(Js$2(0,"span",9),ey$1(1,gm$1,0,0,"ng-template",6),gd$2()),n&2){d_$1();let e=D_$1(5);SC(),dy("ngTemplateOutlet",e);}}function vm$1(n,r){}function ym$1(n,r){if(n&1&&ey$1(0,vm$1,0,0,"ng-template",6),n&2){d_$1();let e=D_$1(1);dy("ngTemplateOutlet",e);}}var ol$1=new I$4("ListOption"),sl$1=(()=>{class n{_elementRef=g$4(Vt$3);static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return n})(),ll$1=(()=>{class n{_elementRef=g$4(Vt$3);static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return n})(),xm$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return n})(),dl$1=(()=>{class n{_listOption=g$4(ol$1,{optional:true});_isAlignedAtStart(){return !this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,hostVars:4,hostBindings:function(t,i){t&2&&xy("mdc-list-item__start",i._isAlignedAtStart())("mdc-list-item__end",!i._isAlignedAtStart());}})}return n})(),wm$1=(()=>{class n extends dl$1{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Xm$2]})}return n})(),km=(()=>{class n extends dl$1{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Xm$2]})}return n})(),Cm$1=new I$4("MAT_LIST_CONFIG"),pi=(()=>{class n{_isNonInteractive=true;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Er$2(e);}_disableRipple=false;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Er$2(e));}_disabled=Es$1(false);_defaultOptions=g$4(Cm$1,{optional:true});static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,hostVars:1,hostBindings:function(t,i){t&2&&ly("aria-disabled",i.disabled);},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return n})(),dr$1=(()=>{class n{_elementRef=g$4(Vt$3);_ngZone=g$4(q$3);_listBase=g$4(pi,{optional:true});_platform=g$4(_$7);_hostElement;_isButtonElement;_noopAnimations=ct$1();_avatars;_icons;set lines(e){this._explicitLines=Jt$4(e,null),this._updateItemLines(false);}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Er$2(e);}_disableRipple=false;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Er$2(e));}_disabled=Es$1(false);_subscriptions=new W$4;_rippleRenderer=null;_hasUnscopedTextContent=false;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){g$4(P$3).load(Bn$1);let e=g$4(me$4,{optional:true});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button");}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(true);}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents();}_hasIconOrAvatar(){return !!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new vt$5(this,this._ngZone,this._hostElement,this._platform,g$4(Ee$4)),this._rippleRenderer.setupTriggerEvents(this._hostElement);}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(WD(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(false)));});}
2332_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let t=this._explicitLines??this._inferLinesFromContent(),i=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",t===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",t===3),this._hasUnscopedTextContent){let a=this._titles.length===0&&t===1;i.classList.toggle("mdc-list-item__primary-text",a),i.classList.toggle("mdc-list-item__secondary-text",!a);}else i.classList.remove("mdc-list-item__primary-text"),i.classList.remove("mdc-list-item__secondary-text");}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()));}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,contentQueries:function(t,i,a){if(t&1&&Cy(a,wm$1,4)(a,km,4),t&2){let o;m_$1(o=y_$1())&&(i._avatars=o),m_$1(o=y_$1())&&(i._icons=o);}},hostVars:4,hostBindings:function(t,i){t&2&&(ly("aria-disabled",i.disabled)("disabled",i._isButtonElement&&i.disabled||null),xy("mdc-list-item--disabled",i.disabled));},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return n})();var Ob=(()=>{class n extends pi{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[tS([{provide:pi,useExisting:n}]),Xm$2],ngContentSelectors:hr,decls:1,vars:0,template:function(t,i){t&1&&(p_$1(),h_$1(0));},styles:[pr$1],encapsulation:2})}return n})(),Pb=(()=>{class n extends dr$1{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Er$2(e);}_activated=false;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,i,a){if(t&1&&Cy(a,ll$1,5)(a,sl$1,5)(a,xm$1,5),t&2){let o;m_$1(o=y_$1())&&(i._lines=o),m_$1(o=y_$1())&&(i._titles=o),m_$1(o=y_$1())&&(i._meta=o);}},viewQuery:function(t,i){if(t&1&&by(rl$1,5)(tm$1,5),t&2){let a;m_$1(a=y_$1())&&(i._unscopedContent=a.first),m_$1(a=y_$1())&&(i._itemText=a.first);}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(t,i){t&2&&(ly("aria-current",i._getAriaCurrent()),xy("mdc-list-item--activated",i.activated)("mdc-list-item--with-leading-avatar",i._avatars.length!==0)("mdc-list-item--with-leading-icon",i._icons.length!==0)("mdc-list-item--with-trailing-meta",i._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",i._hasBothLeadingAndTrailing())("_mat-animation-noopable",i._noopAnimations));},inputs:{activated:"activated"},exportAs:["matListItem"],features:[Xm$2],ngContentSelectors:nm$1,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(t,i){t&1&&(p_$1(im$1),h_$1(0),Js$2(1,"span",1),h_$1(2,1),h_$1(3,2),Js$2(4,"span",2,0),Ey("cdkObserveContent",function(){return i._updateItemLines(true)}),h_$1(6,3),gd$2()(),h_$1(7,4),h_$1(8,5),fy(9,"div",3));},dependencies:[sa$2],encapsulation:2})}return n})(),cl$1=new I$4("SelectionList"),Dm$1=(()=>{class n extends dr$1{_selectionList=g$4(cl$1);_changeDetectorRef=g$4(Od$2);_lines;_titles;_unscopedContent;selectedChange=new kt$3;togglePosition="after";get color(){return this._color||this._selectionList.color}set color(e){this._color=e;}_color;get value(){return this._value}set value(e){this.selected&&e!==this.value&&this._inputsInitialized&&(this.selected=false),this._value=e;}_value;get selected(){return this._selectionList.selectedOptions.isSelected(this)}set selected(e){let t=Er$2(e);t!==this._selected&&(this._setSelected(t),(t||this._selectionList.multiple)&&this._selectionList._reportValueChange());}_selected=false;_inputsInitialized=false;ngOnInit(){let e=this._selectionList;e._value&&e._value.some(i=>e.compareWith(this._value,i))&&this._setSelected(true);let t=this._selected;Promise.resolve().then(()=>{(this._selected||t)&&(this.selected=true,this._changeDetectorRef.markForCheck());}),this._inputsInitialized=true;}ngOnDestroy(){super.ngOnDestroy(),this.selected&&Promise.resolve().then(()=>{this.selected=false;});}toggle(){this.selected=!this.selected;}focus(){this._hostElement.focus();}getLabel(){return (this._titles?.get(0)?._elementRef.nativeElement||this._unscopedContent?.nativeElement)?.textContent||""}_hasCheckboxAt(e){return this._selectionList.multiple&&this._getTogglePosition()===e}_hasRadioAt(e){return !this._selectionList.multiple&&this._getTogglePosition()===e&&!this._selectionList.hideSingleSelectionIndicator}_hasIconsOrAvatarsAt(e){return this._hasProjected("icons",e)||this._hasProjected("avatars",e)}_hasProjected(e,t){return this._getTogglePosition()!==t&&(e==="avatars"?this._avatars.length!==0:this._icons.length!==0)}_handleBlur(){this._selectionList._onTouched();}_getTogglePosition(){return this.togglePosition||"after"}_setSelected(e){return e===this._selected?false:(this._selected=e,e?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetectorRef.markForCheck(),true)}_markForCheck(){this._changeDetectorRef.markForCheck();}_toggleOnInteraction(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=true,this._selectionList._emitChangeEvent([this])));}_setTabindex(e){this._hostElement.setAttribute("tabindex",e+"");}_hasBothLeadingAndTrailing(){let e=this._hasProjected("avatars","before")||this._hasProjected("icons","before")||this._hasCheckboxAt("before")||this._hasRadioAt("before"),t=this._hasProjected("icons","after")||this._hasProjected("avatars","after")||this._hasCheckboxAt("after")||this._hasRadioAt("after");return e&&t}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-list-option"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,ll$1,5)(a,sl$1,5),t&2){let o;m_$1(o=y_$1())&&(i._lines=o),m_$1(o=y_$1())&&(i._titles=o);}},viewQuery:function(t,i){if(t&1&&by(rl$1,5),t&2){let a;m_$1(a=y_$1())&&(i._unscopedContent=a.first);}},hostAttrs:["role","option",1,"mat-mdc-list-item","mat-mdc-list-option","mdc-list-item"],hostVars:27,hostBindings:function(t,i){t&1&&Ey("blur",function(){return i._handleBlur()})("click",function(){return i._toggleOnInteraction()}),t&2&&(ly("aria-selected",i.selected),xy("mdc-list-item--selected",i.selected&&!i._selectionList.multiple&&i._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",i._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",i._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",i._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",i._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",i._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",i._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",i._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",i._hasRadioAt("after"))("mat-mdc-list-item-both-leading-and-trailing",i._hasBothLeadingAndTrailing())("mat-accent",i.color!=="primary"&&i.color!=="warn")("mat-warn",i.color==="warn")("_mat-animation-noopable",i._noopAnimations));},inputs:{togglePosition:"togglePosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[tS([{provide:dr$1,useExisting:n},{provide:ol$1,useExisting:n}]),Xm$2],ngContentSelectors:rm$1,decls:20,vars:4,consts:[["icons",""],["checkbox",""],["radio",""],["unscopedContent",""],[1,"mdc-list-item__start","mat-mdc-list-option-checkbox-before"],[1,"mdc-list-item__start","mat-mdc-list-option-radio-before"],[3,"ngTemplateOutlet"],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mdc-list-item__end"],[1,"mat-focus-indicator"],[1,"mdc-checkbox"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled"],[1,"mdc-checkbox__background"],["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"],[1,"mdc-radio"],["type","radio",1,"mdc-radio__native-control",3,"checked","disabled"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner
2332-circle"]],template:function(t,i){t&1&&(p_$1(am$1),ey$1(0,om$1,1,0,"ng-template",null,0,DS)(2,sm$1,6,4,"ng-template",null,1,DS)(4,lm$1,5,4,"ng-template",null,2,DS),ZT(6,cm$1,2,1,"span",4)(7,hm$1,2,1,"span",5),ZT(8,um$1,1,1,null,6),Js$2(9,"span",7),h_$1(10),h_$1(11,1),Js$2(12,"span",8,3),Ey("cdkObserveContent",function(){return i._updateItemLines(true)}),h_$1(14,2),gd$2()(),ZT(15,fm$1,2,1,"span",9)(16,bm$1,2,1,"span",9),ZT(17,ym$1,1,1,null,6),h_$1(18,3),fy(19,"div",10)),t&2&&(SC(6),YT(i._hasCheckboxAt("before")?6:i._hasRadioAt("before")?7:-1),SC(2),YT(i._hasIconsOrAvatarsAt("before")?8:-1),SC(7),YT(i._hasCheckboxAt("after")?15:i._hasRadioAt("after")?16:-1),SC(2),YT(i._hasIconsOrAvatarsAt("after")?17:-1));},dependencies:[LM,sa$2],styles:[`.mat-mdc-list-option-with-trailing-avatar.mdc-list-item, [dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item { 2333 padding-left: 0; 2334 padding-right: 0; 2335} 2336.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end { 2337 margin-left: 16px; 2338 margin-right: 16px; 2339 width: 40px; 2340 height: 40px; 2341} 2342.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text { 2343 display: block; 2344 margin-top: 0; 2345 line-height: normal; 2346 margin-bottom: -20px; 2347} 2348.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before { 2349 display: inline-block; 2350 width: 0; 2351 height: 32px; 2352 content: ""; 2353 vertical-align: 0; 2354} 2355.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after { 2356 display: inline-block; 2357 width: 0; 2358 height: 20px; 2359 content: ""; 2360 vertical-align: -20px; 2361} 2362.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end { 2363 border-radius: 50%; 2364} 2365 2366.mat-mdc-list-option .mdc-checkbox { 2367 display: inline-block; 2368 position: relative; 2369 flex: 0 0 18px; 2370 box-sizing: content-box; 2371 width: 18px; 2372 height: 18px; 2373 line-height: 0; 2374 white-space: nowrap; 2375 cursor: pointer; 2376 vertical-align: bottom; 2377 padding: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2); 2378 margin: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 2379} 2380.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control { 2381 position: absolute; 2382 margin: 0; 2383 padding: 0; 2384 opacity: 0; 2385 cursor: inherit; 2386 z-index: 1; 2387 width: var(--mat-checkbox-state-layer-size, 40px); 2388 height: var(--mat-checkbox-state-layer-size, 40px); 2389 top: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 2390 right: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 2391 left: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 2392} 2393.mat-mdc-list-option .mdc-checkbox--disabled { 2394 cursor: default; 2395 pointer-events: none; 2396} 2397.mat-mdc-list-option .mdc-checkbox__background { 2398 display: inline-flex; 2399 position: absolute; 2400 align-items: center; 2401 justify-content: center; 2402 box-sizing: border-box; 2403 width: 18px; 2404 height: 18px; 2405 border: 2px solid currentColor; 2406 border-radius: 2px; 2407 background-color: transparent; 2408 pointer-events: none; 2409 will-change: background-color, border-color; 2410 transition: background-color 90ms cubic-bezier(0.4, 0, 0.6, 1), border-color 90ms cubic-bezier(0.4, 0, 0.6, 1); 2411 -webkit-print-color-adjust: exact; 2412 color-adjust: exact; 2413 border-color: var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant)); 2414 top: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2); 2415 left: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2); 2416} 2417.mat-mdc-list-option .mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background, 2418.mat-mdc-list-option .mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background { 2419 border-color: var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary)); 2420 background-color: var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary)); 2421} 2422.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background { 2423 border-color: var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 2424} 2425@media (forced-colors: active) { 2426 .mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background { 2427 border-color: GrayText; 2428 } 2429} 2430.mat-mdc-list-option .mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background, 2431.mat-mdc-list-option .mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background { 2432 background-color: var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 2433 border-color: transparent; 2434} 2435@media (forced-colors: active) { 2436 .mat-mdc-list-option .mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background, 2437 .mat-mdc-list-option .mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background { 2438 border-color: GrayText; 2439 } 2440} 2441.mat-mdc-list-option .mdc-checkbox:hover > .mdc-checkbox__native-control:not(:checked) ~ .mdc-checkbox__background, 2442.mat-mdc-list-option .mdc-checkbox:hover > .mdc-checkbox__native-control:not(:indeterminate) ~ .mdc-checkbox__background { 2443 border-color: var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface)); 2444 background-color: transparent; 2445} 2446.mat-mdc-list-option .mdc-checkbox:hover > .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background, 2447.mat-mdc-list-option .mdc-checkbox:hover > .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background { 2448 border-color: var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary)); 2449 background-color: var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary)); 2450} 2451.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:checked) ~ .mdc-checkbox__background, 2452.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:indeterminate) ~ .mdc-checkbox__background { 2453 border-color: var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface)); 2454} 2455.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:checked ~ .mdc-checkbox__background, 2456.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:indeterminate ~ .mdc-checkbox__background { 2457 border-color: var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary)); 2458 background-color: var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary)); 2459} 2460.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover > .mdc-checkbox__native-control ~ .mdc-checkbox__background, 2461.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus ~ .mdc-checkbox__background, 2462.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background { 2463 border-color: var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 2464} 2465@media (forced-colors: active) { 2466 .mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover > .mdc-checkbox__native-control ~ .mdc-checkbox__background, 2467 .mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus ~ .mdc-checkbox__background, 2468 .mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background { 2469 border-color: GrayText; 2470 } 2471} 2472.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background, 2473.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background { 2474 background-color: var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 2475 border-color: transparent; 2476} 2477.mat-mdc-list-option .mdc-checkbox__checkmark { 2478 position: absolute; 2479 top: 0; 2480 right: 0; 2481 bottom: 0; 2482 left: 0; 2483 width: 100%; 2484 opacity: 0; 2485 transition: opacity 180ms cubic-bezier(0.4, 0, 0.6, 1); 2486 color: var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary)); 2487} 2488@media (forced-colors: active) { 2489 .mat-mdc-list-option .mdc-checkbox__checkmark { 2490 color: CanvasText; 2491 } 2492} 2493.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark, .mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark { 2494 color: var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface)); 2495} 2496@media (forced-colors: active) { 2497 .mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark, .mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark { 2498 color: GrayText; 2499 } 2500} 2501.mat-mdc-list-option .mdc-checkbox__checkmark-path { 2502 transition: stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1); 2503 stroke: currentColor; 2504 stroke-width: 3.12px; 2505 stroke-dashoffset: 29.7833385; 2506 stroke-dasharray: 29.7833385; 2507} 2508.mat-mdc-list-option .mdc-checkbox__mixedmark { 2509 width: 100%; 2510 height: 0; 2511 transform: scaleX(0) rotate(0deg); 2512 border-width: 1px; 2513 border-style: solid; 2514 opacity: 0; 2515 transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1); 2516 border-color: var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary)); 2517} 2518@media (forced-colors: active) { 2519 .mat-mdc-list-option .mdc-checkbox__mixedmark { 2520 margin: 0 1px; 2521 } 2522} 2523.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__mixedmark, .mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark { 2524 border-color: var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface)); 2525} 2526@media (forced-colors: active) { 2527 .mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__mixedmark, .mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark { 2528 border-color: GrayText; 2529 } 2530} 2531.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background, 2532.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background, 2533.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background, 2534.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background { 2535 animation-duration: 180ms; 2536 animation-timing-function: linear; 2537} 2538.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path { 2539 animation: mdc-checkbox-unchecked-checked-checkmark-path 180ms linear; 2540 transition: none; 2541} 2542.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark { 2543 animation: mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear; 2544 transition: none; 2545} 2546.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path { 2547 animation: mdc-checkbox-checked-unchecked-checkmark-path 90ms linear; 2548 transition: none; 2549} 2550.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark { 2551 animation: mdc-checkbox-checked-indeterminate-checkmark 90ms linear; 2552 transition: none; 2553} 2554.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark { 2555 animation: mdc-checkbox-checked-indeterminate-mixedmark 90ms linear; 2556 transition: none; 2557} 2558.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark {
2559 animation: mdc-checkbox-indeterminate-checked-checkmark 500ms linear; 2560 transition: none; 2561} 2562.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark { 2563 animation: mdc-checkbox-indeterminate-checked-mixedmark 500ms linear; 2564 transition: none; 2565} 2566.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark { 2567 animation: mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear; 2568 transition: none; 2569} 2570.mat-mdc-list-option .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background, 2571.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background { 2572 transition: border-color 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1); 2573} 2574.mat-mdc-list-option .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path, 2575.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path { 2576 stroke-dashoffset: 0; 2577} 2578.mat-mdc-list-option .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__checkmark { 2579 transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1), transform 180ms cubic-bezier(0, 0, 0.2, 1); 2580 opacity: 1; 2581} 2582.mat-mdc-list-option .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__mixedmark { 2583 transform: scaleX(1) rotate(-45deg); 2584} 2585.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__checkmark { 2586 transform: rotate(45deg); 2587 opacity: 0; 2588 transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1); 2589} 2590.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__mixedmark { 2591 transform: scaleX(1) rotate(0deg); 2592 opacity: 1; 2593} 2594@keyframes mdc-checkbox-unchecked-checked-checkmark-path { 2595 0%, 50% { 2596 stroke-dashoffset: 29.7833385; 2597 } 2598 50% { 2599 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 2600 } 2601 100% { 2602 stroke-dashoffset: 0; 2603 } 2604} 2605@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark { 2606 0%, 68.2% { 2607 transform: scaleX(0); 2608 } 2609 68.2% { 2610 animation-timing-function: cubic-bezier(0, 0, 0, 1); 2611 } 2612 100% { 2613 transform: scaleX(1); 2614 } 2615} 2616@keyframes mdc-checkbox-checked-unchecked-checkmark-path { 2617 from { 2618 animation-timing-function: cubic-bezier(0.4, 0, 1, 1); 2619 opacity: 1; 2620 stroke-dashoffset: 0; 2621 } 2622 to { 2623 opacity: 0; 2624 stroke-dashoffset: -29.7833385; 2625 } 2626} 2627@keyframes mdc-checkbox-checked-indeterminate-checkmark { 2628 from { 2629 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 2630 transform: rotate(0deg); 2631 opacity: 1; 2632 } 2633 to { 2634 transform: rotate(45deg); 2635 opacity: 0; 2636 } 2637} 2638@keyframes mdc-checkbox-indeterminate-checked-checkmark { 2639 from { 2640 animation-timing-function: cubic-bezier(0.14, 0, 0, 1); 2641 transform: rotate(45deg); 2642 opacity: 0; 2643 } 2644 to { 2645 transform: rotate(360deg); 2646 opacity: 1; 2647 } 2648} 2649@keyframes mdc-checkbox-checked-indeterminate-mixedmark { 2650 from { 2651 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 2652 transform: rotate(-45deg); 2653 opacity: 0; 2654 } 2655 to { 2656 transform: rotate(0deg); 2657 opacity: 1; 2658 } 2659} 2660@keyframes mdc-checkbox-indeterminate-checked-mixedmark { 2661 from { 2662 animation-timing-function: cubic-bezier(0.14, 0, 0, 1); 2663 transform: rotate(0deg); 2664 opacity: 1; 2665 } 2666 to { 2667 transform: rotate(315deg); 2668 opacity: 0; 2669 } 2670} 2671@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark { 2672 0% { 2673 animation-timing-function: linear; 2674 transform: scaleX(1); 2675 opacity: 1; 2676 } 2677 32.8%, 100% { 2678 transform: scaleX(0); 2679 opacity: 0; 2680 } 2681} 2682.mat-mdc-list-option .mdc-radio { 2683 display: inline-block; 2684 position: relative; 2685 flex: 0 0 auto; 2686 box-sizing: content-box; 2687 width: 20px; 2688 height: 20px; 2689 cursor: pointer; 2690 will-change: opacity, transform, border-color, color; 2691 padding: calc((var(--mat-radio-state-layer-size, 40px) - 20px) / 2); 2692} 2693.mat-mdc-list-option .mdc-radio__background { 2694 display: inline-block; 2695 position: relative; 2696 box-sizing: border-box;
2697 width: 20px; 2698 height: 20px; 2699} 2700.mat-mdc-list-option .mdc-radio__background::before { 2701 position: absolute; 2702 transform: scale(0, 0); 2703 border-radius: 50%; 2704 opacity: 0; 2705 pointer-events: none; 2706 content: ""; 2707 transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1); 2708 width: var(--mat-radio-state-layer-size, 40px); 2709 height: var(--mat-radio-state-layer-size, 40px); 2710 top: calc(-1 * (var(--mat-radio-state-layer-size, 40px) - 20px) / 2); 2711 left: calc(-1 * (var(--mat-radio-state-layer-size, 40px) - 20px) / 2); 2712} 2713.mat-mdc-list-option .mdc-radio__outer-circle { 2714 position: absolute; 2715 top: 0; 2716 left: 0; 2717 box-sizing: border-box; 2718 width: 100%; 2719 height: 100%; 2720 border-width: 2px; 2721 border-style: solid; 2722 border-radius: 50%; 2723 transition: border-color 90ms cubic-bezier(0.4, 0, 0.6, 1); 2724} 2725.mat-mdc-list-option .mdc-radio__inner-circle { 2726 position: absolute; 2727 top: 0; 2728 left: 0; 2729 box-sizing: border-box; 2730 width: 100%; 2731 height: 100%; 2732 transform: scale(0); 2733 border-radius: 50%; 2734 transition: transform 90ms cubic-bezier(0.4, 0, 0.6, 1), background-color 90ms cubic-bezier(0.4, 0, 0.6, 1); 2735} 2736@media (forced-colors: active) { 2737 .mat-mdc-list-option .mdc-radio__inner-circle { 2738 background-color: CanvasText !important; 2739 } 2740} 2741.mat-mdc-list-option .mdc-radio__native-control { 2742 position: absolute; 2743 margin: 0; 2744 padding: 0; 2745 opacity: 0; 2746 top: 0; 2747 right: 0; 2748 left: 0; 2749 cursor: inherit; 2750 z-index: 1; 2751 width: var(--mat-radio-state-layer-size, 40px); 2752 height: var(--mat-radio-state-layer-size, 40px); 2753} 2754.mat-mdc-list-option .mdc-radio__native-control:checked + .mdc-radio__background, .mat-mdc-list-option .mdc-radio__native-control:disabled + .mdc-radio__background { 2755 transition: opacity 90ms cubic-bezier(0, 0, 0.2, 1), transform 90ms cubic-bezier(0, 0, 0.2, 1); 2756} 2757.mat-mdc-list-option .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__outer-circle, .mat-mdc-list-option .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__outer-circle { 2758 transition: border-color 90ms cubic-bezier(0, 0, 0.2, 1); 2759} 2760.mat-mdc-list-option .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__inner-circle, .mat-mdc-list-option .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__inner-circle { 2761 transition: transform 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1); 2762} 2763.mat-mdc-list-option .mdc-radio__native-control:disabled:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle { 2764 border-color: var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface)); 2765 opacity: var(--mat-radio-disabled-unselected-icon-opacity, 0.38); 2766} 2767.mat-mdc-list-option .mdc-radio__native-control:disabled + .mdc-radio__background { 2768 cursor: default; 2769} 2770.mat-mdc-list-option .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__outer-circle { 2771 border-color: var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface)); 2772 opacity: var(--mat-radio-disabled-selected-icon-opacity, 0.38); 2773} 2774.mat-mdc-list-option .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__inner-circle { 2775 background-color: var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor)); 2776 opacity: var(--mat-radio-disabled-selected-icon-opacity, 0.38); 2777} 2778.mat-mdc-list-option .mdc-radio__native-control:enabled:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle { 2779 border-color: var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant)); 2780} 2781.mat-mdc-list-option .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__outer-circle { 2782 border-color: var(--mat-radio-selected-icon-color, var(--mat-sys-primary)); 2783} 2784.mat-mdc-list-option .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__inner-circle { 2785 background-color: var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor)); 2786} 2787.mat-mdc-list-option .mdc-radio__native-control:checked + .mdc-radio__background >
2787 .mdc-radio__inner-circle { 2788 transform: scale(0.5); 2789 transition: transform 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1); 2790} 2791.mat-mdc-list-option._mat-animation-noopable .mdc-radio__background::before, 2792.mat-mdc-list-option._mat-animation-noopable .mdc-radio__outer-circle, 2793.mat-mdc-list-option._mat-animation-noopable .mdc-radio__inner-circle { 2794 transition: none !important; 2795} 2796.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__start > .mdc-checkbox > .mat-mdc-checkbox-touch-target, 2797.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__start > .mdc-checkbox > .mdc-checkbox__native-control, 2798.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__start > .mdc-checkbox > .mdc-checkbox__ripple, 2799.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__start > .mdc-checkbox > .mat-mdc-checkbox-ripple::before, 2800.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__start > .mdc-checkbox > .mdc-checkbox__background, 2801.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__start > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark, 2802.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__start > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path, 2803.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__start > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__mixedmark, .mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__end > .mdc-checkbox > .mat-mdc-checkbox-touch-target, 2804.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__end > .mdc-checkbox > .mdc-checkbox__native-control, 2805.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__end > .mdc-checkbox > .mdc-checkbox__ripple, 2806.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__end > .mdc-checkbox > .mat-mdc-checkbox-ripple::before, 2807.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__end > .mdc-checkbox > .mdc-checkbox__background, 2808.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__end > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark, 2809.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__end > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path, 2810.mat-mdc-list-option._mat-animation-noopable > .mdc-list-item__end > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__mixedmark { 2811 transition: none !important; 2812 animation: none !important; 2813} 2814.mat-mdc-list-option .mdc-checkbox__native-control, .mat-mdc-list-option .mdc-radio__native-control { 2815 display: none; 2816} 2817 2818@media (forced-colors: active) { 2819 .mat-mdc-list-option.mdc-list-item--selected::after { 2820 content: ""; 2821 position: absolute; 2822 top: 50%; 2823 right: 16px; 2824 transform: translateY(-50%); 2825 width: 10px; 2826 height: 0; 2827 border-bottom: solid 10px; 2828 border-radius: 10px; 2829 } 2830 .mat-mdc-list-option.mdc-list-item--selected [dir=rtl]::after { 2831 right: auto; 2832 left: 16px; 2833 } 2834} 2835`],encapsulation:2})}return n})();var Vb=(()=>{class n extends pi{_isNonInteractive=false;static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[tS([{provide:pi,useExisting:n}]),Xm$2],ngContentSelectors:hr,decls:1,vars:0,template:function(t,i){t&1&&(p_$1(),h_$1(0));},styles:[pr$1],encapsulation:2})}return n})(),Mm$1={provide:Fe$1,useExisting:ns(()=>Sm$1),multi:true},cr=class{source;options;constructor(r,e){this.source=r,this.options=e;}},Sm$1=(()=>{class n extends pi{_element=g$4(Vt$3);_ngZone=g$4(q$3);_renderer=g$4(qo$1);_initialized=false;_keyManager;_listenerCleanups;_destroyed=new ye$5;_isDestroyed=false;_onChange=e=>{};_items;selectionChange=new kt$3;color="accent";compareWith=(e,t)=>e===t;get multiple(){return this._multiple}set multiple(e){let t=Er$2(e);t!==this._multiple&&(this._multiple=t,this.selectedOptions=new yt(this._multiple,this.selectedOptions.selected));}_multiple=true;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Er$2(e);}
2835_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??false;selectedOptions=new yt(this._multiple);_value=null;_onTouched=()=>{};_changeDetectorRef=g$4(Od$2);constructor(){super(),this._isNonInteractive=false;}ngAfterViewInit(){this._initialized=true,this._setupRovingTabindex(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen(this._element.nativeElement,"focusin",this._handleFocusin),this._renderer.listen(this._element.nativeElement,"focusout",this._handleFocusout)];}),this._value&&this._setOptionsFromValues(this._value),this._watchForSelectionChange();}ngOnChanges(e){let t=e.disabled,i=e.disableRipple,a=e.hideSingleSelectionIndicator;(i&&!i.firstChange||t&&!t.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck();}ngOnDestroy(){this._keyManager?.destroy(),this._listenerCleanups?.forEach(e=>e()),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=true;}focus(e){this._element.nativeElement.focus(e);}selectAll(){return this._setAllOptionsSelected(true)}deselectAll(){return this._setAllOptionsSelected(false)}_reportValueChange(){if(this.options&&!this._isDestroyed){let e=this._getSelectedOptionValues();this._onChange(e),this._value=e;}}_emitChangeEvent(e){this.selectionChange.emit(new cr(this,e));}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[]);}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this._markOptionsForCheck();}get disabled(){return this._selectionListDisabled()}set disabled(e){this._selectionListDisabled.set(Er$2(e)),this._selectionListDisabled()&&this._keyManager?.setActiveItem(-1);}_selectionListDisabled=Es$1(false);registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}
2835_watchForSelectionChange(){this.selectedOptions.changed.pipe(Hf$1(this._destroyed)).subscribe(e=>{for(let t of e.added)t.selected=true;for(let t of e.removed)t.selected=false;this._containsFocus()||this._resetActiveOption();});}_setOptionsFromValues(e){this.options.forEach(t=>t._setSelected(false)),e.forEach(t=>{let i=this.options.find(a=>a.selected?false:this.compareWith(a.value,t));i&&i._setSelected(true);});}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_markOptionsForCheck(){this.options&&this.options.forEach(e=>e._markForCheck());}_setAllOptionsSelected(e,t){let i=[];return this.options.forEach(a=>{(!t||!a.disabled)&&a._setSelected(e)&&i.push(a);}),i.length&&this._reportValueChange(),i}get options(){return this._items}_handleKeydown(e){let t=this._keyManager.activeItem;if((e.keyCode===13||e.keyCode===32)&&!this._keyManager.isTyping()&&t&&!t.disabled)e.preventDefault(),t._toggleOnInteraction();else if(e.keyCode===65&&this.multiple&&!this._keyManager.isTyping()&&Ye$4(e,"ctrlKey","metaKey")){let i=this.options.some(a=>!a.disabled&&!a.selected);e.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(i,true));}else this._keyManager.onKeydown(e);}_handleFocusout=()=>{setTimeout(()=>{this._containsFocus()||this._resetActiveOption();});};_handleFocusin=e=>{if(this.disabled)return;let t=this._items.toArray().findIndex(i=>i._elementRef.nativeElement.contains(e.target));t>-1?this._setActiveOption(t):this._resetActiveOption();};_setupRovingTabindex(){this._keyManager=new ie$3(this._items).withHomeAndEnd().withTypeAhead().withWrap().skipPredicate(()=>this.disabled),this._resetActiveOption(),this._keyManager.change.subscribe(e=>this._setActiveOption(e)),this._items.changes.pipe(Hf$1(this._destroyed)).subscribe(()=>{let e=this._keyManager.activeItem;(!e||this._items.toArray().indexOf(e)===-1)&&this._resetActiveOption();});}_setActiveOption(e){this._items.forEach((t,i)=>t._setTabindex(i===e?0:-1)),this._keyManager.updateActiveItem(e);}_resetActiveOption(){if(this.disabled){this._setActiveOption(-1);return}let e=this._items.find(t=>t.selected&&!t.disabled)||this._items.first;this._setActiveOption(e?this._items.toArray().indexOf(e):-1);}_containsFocus(){let e=Xt$4();return e&&this._element.nativeElement.contains(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-selection-list"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,Dm$1,5),t&2){let o;m_$1(o=y_$1())&&(i._items=o);}},hostAttrs:["role","listbox",1,"mat-mdc-selection-list","mat-mdc-list-base","mdc-list"],hostVars:1,hostBindings:function(t,i){t&1&&Ey("keydown",function(o){return i._handleKeydown(o)}),t&2&&ly("aria-multiselectable",i.multiple);},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[tS([Mm$1,{provide:pi,useExisting:n},{provide:cl$1,useExisting:n}]),Xm$2,El$2],ngContentSelectors:hr,decls:1,vars:0,template:function(t,i){t&1&&(p_$1(),h_$1(0));},styles:[pr$1],encapsulation:2})}return n})(),Lb=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[ln$1,Dn$1,Jn,it$2,al$1]})}return n})();var Im$1=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Em$1=["mat-icon, [matMenuItemIcon]","*"];function Tm(n,r){n&1&&(Xp$2(),Js$2(0,"svg",2),fy(1,"polygon",3),gd$2());}var Am$1=["*"];function Rm$1(n,r){if(n&1){let e=i_$1();md$2(0,"div",0),Iy("click",function(){Vp$2(e);let i=d_$1();return Hp$2(i.closed.emit("click"))})("animationstart",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._onAnimationStart(i.animationName))})("animationend",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._onAnimationDone(i.animationName))})("animationcancel",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._onAnimationDone(i.animationName))}),md$2(1,"div",1),h_$1(2),yd$2()();}if(n&2){let e=d_$1();x_$1(e._classList),xy("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),vy("id",e.panelId),ly("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null);}}var fr$1=new I$4("MAT_MENU_PANEL"),_r=(()=>{class n{_elementRef=g$4(Vt$3);_document=g$4(Y$3);_focusMonitor=g$4(Ot);_parentMenu=g$4(fr$1,{optional:true});_changeDetectorRef=g$4(Od$2);role="menuitem";disabled=false;disableRipple=false;_hovered=new ye$5;_focused=new ye$5;_highlighted=false;_triggersSubmenu=false;constructor(){g$4(P$3).load(Bn$1),this._parentMenu?.addItem?.(this);}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this);}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,false);}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete();}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation());}_handleMouseEnter(){this._hovered.next(this);}getLabel(){let e=this._elementRef.nativeElement.cloneNode(true),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i<t.length;i++)t[i].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck();}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck();}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(t,i){t&1&&Ey("click",function(o){return i._checkDisabled(o)})("mouseenter",function(){return i._handleMouseEnter()}),t&2&&(ly("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled)("disabled",i.disabled||null),xy("mat-mdc-menu-item-highlighted",i._highlighted)("mat-mdc-menu-item-submenu-trigger",i._triggersSubmenu));},inputs:{role:"role",disabled:[2,"disabled","disabled",tM$1],disableRipple:[2,"disableRipple","disableRipple",tM$1]},exportAs:["matMenuItem"],ngContentSelectors:Em$1,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){t&1&&(p_$1(Im$1),h_$1(0),Js$2(1,"span",0),h_$1(2,1),gd$2(),fy(3,"div",1),ZT(4,Tm,2,0,":svg:svg",2)),t&2&&(SC(3),dy("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),SC(),YT(i._triggersSubmenu?4:-1));},dependencies:[jr$1],encapsulation:2})}return n})();var ml$1=new I$4("MatMenuContent"),dv=(()=>{class n{_template=g$4(Et$3);_appRef=g$4(Ur$1);_injector=g$4(Ee$4);
2835_viewContainerRef=g$4(Ct$6);_document=g$4(Y$3);_changeDetectorRef=g$4(Od$2);_portal;_outlet;_attached=new ye$5;attach(e={}){this._portal||(this._portal=new B$2(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new pt$1(this._document.createElement("div"),this._appRef,this._injector));let t=this._template.elementRef.nativeElement;t.parentNode.insertBefore(this._outlet.outletElement,t),this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next();}detach(){this._portal?.isAttached&&this._portal.detach();}ngOnDestroy(){this.detach(),this._outlet?.dispose();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["ng-template","matMenuContent",""]],features:[tS([{provide:ml$1,useExisting:n}])]})}return n})(),Fm$1=new I$4("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:false,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),ur$1="_mat-menu-enter",ea$1="_mat-menu-exit",ta$1=(()=>{class n{_elementRef=g$4(Vt$3);_changeDetectorRef=g$4(Od$2);_injector=g$4(Ee$4);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=ct$1();_allItems;_directDescendantItems=new Vs$2;_classList={};_panelAnimationState="void";_animationDone=new ye$5;_isAnimating=Es$1(false);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses();}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses();}templateRef;items;lazyContent;overlapTrigger=false;hasBackdrop;get panelClass(){return this._previousPanelClass}set panelClass(e){let t=this._previousPanelClass,i=D$6({},this._classList);t&&t.length&&t.split(" ").forEach(a=>{i[a]=false;}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{i[a]=true;}),this._elementRef.nativeElement.className=""),this._classList=i;}_previousPanelClass="";get classList(){return this.panelClass}set classList(e){this.panelClass=e;}closed=new kt$3;close=this.closed;panelId=g$4(re$4).getId("mat-menu-panel-");constructor(){let e=g$4(Fm$1);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop;}ngOnInit(){this.setPositionClasses();}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ie$3(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Jf(this._directDescendantItems),Bi$1(e=>WD(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),a=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[a]&&!i[a].disabled?t.setActiveItem(a):t.setNextItemActive();}});}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout);}_hovered(){return this._directDescendantItems.changes.pipe(Jf(this._directDescendantItems),Bi$1(t=>WD(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:Ye$4(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Jg(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus();}},{injector:this._injector});}resetActiveItem(){this._keyManager.setActiveItem(-1);}setElevation(e){}
2835setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=E$7(D$6({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck();}_onAnimationDone(e){let t=e===ea$1;(t||e===ur$1)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating.set(false));}_onAnimationStart(e){(e===ur$1||e===ea$1)&&this._isAnimating.set(true);}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0);}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(ea$1),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?ur$1:ea$1);}),this._changeDetectorRef.markForCheck();}_updateDirectDescendants(){this._allItems.changes.pipe(Jf(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges();});}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-menu"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,ml$1,5)(a,_r,5)(a,_r,4),t&2){let o;m_$1(o=y_$1())&&(i.lazyContent=o.first),m_$1(o=y_$1())&&(i._allItems=o),m_$1(o=y_$1())&&(i.items=o);}},viewQuery:function(t,i){if(t&1&&by(Et$3,5),t&2){let a;m_$1(a=y_$1())&&(i.templateRef=a.first);}},hostVars:3,hostBindings:function(t,i){t&2&&ly("aria-label",null)("aria-labelledby",null)("aria-describedby",null);},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",tM$1],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:tM$1(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[tS([{provide:fr$1,useExisting:n}])],ngContentSelectors:Am$1,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,i){t&1&&(p_$1(),ty$1(0,Rm$1,3,12,"ng-template"));},styles:[`mat-menu { 2836 display: none; 2837} 2838 2839.mat-mdc-menu-content { 2840 margin: 0; 2841 padding: 8px 0; 2842 outline: 0; 2843} 2844.mat-mdc-menu-content, 2845.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text { 2846 -moz-osx-font-smoothing: grayscale; 2847 -webkit-font-smoothing: antialiased; 2848 flex: 1; 2849 white-space: normal; 2850 font-family: var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font)); 2851 line-height: var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height)); 2852 font-size: var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size)); 2853 letter-spacing: var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking)); 2854 font-weight: var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight)); 2855} 2856 2857@keyframes _mat-menu-enter { 2858 from { 2859 opacity: 0; 2860 transform: scale(0.8); 2861 } 2862 to { 2863 opacity: 1; 2864 transform: none; 2865 } 2866} 2867@keyframes _mat-menu-exit { 2868 from { 2869 opacity: 1; 2870 } 2871 to { 2872 opacity: 0; 2873 } 2874} 2875.mat-mdc-menu-panel { 2876 min-width: 112px; 2877 max-width: 280px; 2878 overflow: auto; 2879 box-sizing: border-box; 2880 outline: 0; 2881 animation: _mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1); 2882 border-radius: var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small)); 2883 background-color: var(--mat-menu-container-color, var(--mat-sys-surface-container)); 2884 box-shadow: var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)); 2885 will-change: transform, opacity; 2886} 2887.mat-mdc-menu-panel.mat-menu-panel-exit-animation { 2888 animation: _mat-menu-exit 100ms 25ms linear forwards; 2889} 2890.mat-mdc-menu-panel.mat-menu-panel-animations-disabled { 2891 animation: none; 2892} 2893.mat-mdc-menu-panel.mat-menu-panel-animating { 2894 pointer-events: none; 2895} 2896.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty) { 2897 display: none; 2898} 2899@media (forced-colors: active) { 2900 .mat-mdc-menu-panel { 2901 outline: solid 1px; 2902 } 2903} 2904.mat-mdc-menu-panel .mat-divider { 2905 border-top-color: var(--mat-menu-divider-color, var(--mat-sys-surface-variant));
2906 margin-bottom: var(--mat-menu-divider-bottom-spacing, 8px); 2907 margin-top: var(--mat-menu-divider-top-spacing, 8px); 2908} 2909 2910.mat-mdc-menu-item { 2911 display: flex; 2912 position: relative; 2913 align-items: center; 2914 justify-content: flex-start; 2915 overflow: hidden; 2916 padding: 0; 2917 cursor: pointer; 2918 width: 100%; 2919 text-align: left; 2920 box-sizing: border-box; 2921 color: inherit; 2922 font-size: inherit; 2923 background: none; 2924 text-decoration: none; 2925 margin: 0; 2926 min-height: 48px; 2927 padding-left: var(--mat-menu-item-leading-spacing, 12px); 2928 padding-right: var(--mat-menu-item-trailing-spacing, 12px); 2929 -webkit-user-select: none; 2930 user-select: none; 2931 cursor: pointer; 2932 outline: none; 2933 border: none; 2934 -webkit-tap-highlight-color: transparent; 2935} 2936.mat-mdc-menu-item::-moz-focus-inner { 2937 border: 0; 2938} 2939[dir=rtl] .mat-mdc-menu-item { 2940 padding-left: var(--mat-menu-item-trailing-spacing, 12px); 2941 padding-right: var(--mat-menu-item-leading-spacing, 12px); 2942} 2943.mat-mdc-menu-item:has(.material-icons, mat-icon, [matButtonIcon]) { 2944 padding-left: var(--mat-menu-item-with-icon-leading-spacing, 12px); 2945 padding-right: var(--mat-menu-item-with-icon-trailing-spacing, 12px); 2946} 2947[dir=rtl] .mat-mdc-menu-item:has(.material-icons, mat-icon, [matButtonIcon]) { 2948 padding-left: var(--mat-menu-item-with-icon-trailing-spacing, 12px); 2949 padding-right: var(--mat-menu-item-with-icon-leading-spacing, 12px); 2950} 2951.mat-mdc-menu-item, .mat-mdc-menu-item:visited, .mat-mdc-menu-item:link { 2952 color: var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface)); 2953} 2954.mat-mdc-menu-item .mat-icon-no-color, 2955.mat-mdc-menu-item .mat-mdc-menu-submenu-icon { 2956 color: var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant)); 2957} 2958.mat-mdc-menu-item[disabled] { 2959 cursor: default; 2960 opacity: 0.38; 2961} 2962.mat-mdc-menu-item[disabled]::after { 2963 display: block; 2964 position: absolute; 2965 content: ""; 2966 top: 0; 2967 left: 0; 2968 bottom: 0; 2969 right: 0; 2970} 2971.mat-mdc-menu-item:focus { 2972 outline: 0; 2973} 2974.mat-mdc-menu-item .mat-icon { 2975 flex-shrink: 0; 2976 margin-right: var(--mat-menu-item-spacing, 12px); 2977 height: var(--mat-menu-item-icon-size, 24px); 2978 width: var(--mat-menu-item-icon-size, 24px); 2979} 2980[dir=rtl] .mat-mdc-menu-item { 2981 text-align: right; 2982} 2983[dir=rtl] .mat-mdc-menu-item .mat-icon { 2984 margin-right: 0; 2985 margin-left: var(--mat-menu-item-spacing, 12px); 2986} 2987.mat-mdc-menu-item:not([disabled]):hover { 2988 background-color: var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent)); 2989} 2990.mat-mdc-menu-item:not([disabled]).cdk-program-focused, .mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused, .mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted { 2991 background-color: var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent)); 2992} 2993@media (forced-colors: active) { 2994 .mat-mdc-menu-item {
2995 margin-top: 1px; 2996 } 2997} 2998 2999.mat-mdc-menu-submenu-icon { 3000 width: var(--mat-menu-item-icon-size, 24px); 3001 height: 10px; 3002 fill: currentColor; 3003 padding-left: var(--mat-menu-item-spacing, 12px); 3004} 3005[dir=rtl] .mat-mdc-menu-submenu-icon { 3006 padding-right: var(--mat-menu-item-spacing, 12px); 3007 padding-left: 0; 3008} 3009[dir=rtl] .mat-mdc-menu-submenu-icon polygon { 3010 transform: scaleX(-1); 3011 transform-origin: center; 3012} 3013@media (forced-colors: active) { 3014 .mat-mdc-menu-submenu-icon { 3015 fill: CanvasText; 3016 } 3017} 3018 3019.mat-mdc-menu-item .mat-mdc-menu-ripple { 3020 top: 0; 3021 left: 0; 3022 right: 0; 3023 bottom: 0; 3024 position: absolute; 3025 pointer-events: none; 3026} 3027`],encapsulation:2})}return n})(),Om$1=new I$4("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$4(Ee$4);return ()=>$t$3(n)}});var Mi=new WeakMap,Pm=(()=>{class n{_canHaveBackdrop;_element=g$4(Vt$3);_viewContainerRef=g$4(Ct$6);_menuItemInstance=g$4(_r,{optional:true,self:true});_dir=g$4(qe$4,{optional:true});_focusMonitor=g$4(Ot);_ngZone=g$4(q$3);_injector=g$4(Ee$4);_scrollStrategy=g$4(Om$1);_changeDetectorRef=g$4(Od$2);_animationsDisabled=ct$1();_portal;_overlayRef=null;_menuOpen=false;_closingActionsSubscription=W$4.EMPTY;_menuCloseSubscription=W$4.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e?(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t);})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()));}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let t=g$4(fr$1,{optional:true});this._parentMaterialMenu=t instanceof ta$1?t:void 0;}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Mi.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return !!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit();}_openMenu(e){if(this._triggerIsAriaDisabled())return;let t=this._menu;if(this._menuOpen||!t)return;this._pendingRemoval?.unsubscribe();let i=Mi.get(t);Mi.set(t,this),i&&i!==this&&i._closeMenu();let a=this._createOverlay(t),o=a.getConfig(),l=o.positionStrategy;this._setPosition(t,l),this._canHaveBackdrop?o.hasBackdrop=t.hasBackdrop==null?!this._triggersSubmenu():t.hasBackdrop:o.hasBackdrop=t.hasBackdrop??false,a.hasAttached()||(a.attach(this._getPortal(t)),t.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),t.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,e&&t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(true),t instanceof ta$1&&(t._setIsOpen(true),t._directDescendantItems.changes.pipe(Hf$1(t.close)).subscribe(()=>{l.withLockedPosition(false).reapplyLastPosition(),l.withLockedPosition(true);}));}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t);}_destroyMenu(e){let t=this._overlayRef,i=this._menu;!t||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),i instanceof ta$1&&this._ownsMenu(i)?(this._pendingRemoval=i._animationDone.pipe(bn$3(1)).subscribe(()=>{t.detach(),Mi.has(i)||i.lazyContent?.detach();}),i._setIsOpen(false)):(t.detach(),i?.lazyContent?.detach()),i&&this._ownsMenu(i)&&Mi.delete(i),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(false));}
3027_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck());}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=it$1(this._injector,t),this._overlayRef.keydownEvents().subscribe(i=>{this._menu instanceof ta$1&&this._menu._handleKeydown(i);});}return this._overlayRef}_getOverlayConfig(e){return new N$2({positionStrategy:Kt$3(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{this._ngZone.run(()=>{let a=i.connectionPair.overlayX==="start"?"after":"before",o=i.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(a,o);});});}_setPosition(e,t){let[i,a]=e.xPosition==="before"?["end","start"]:["start","end"],[o,l]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[f,R]=[o,l],[G,re]=[i,a],Re=0;if(this._triggersSubmenu()){if(re=i=e.xPosition==="before"?"start":"end",a=G=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let ze=this._parentMaterialMenu.items.first;this._parentInnerPadding=ze?ze._getHostElement().offsetTop:0;}Re=o==="bottom"?this._parentInnerPadding:-this._parentInnerPadding;}}else e.overlapTrigger||(f=o==="top"?"bottom":"top",R=l==="top"?"bottom":"top");t.withPositions([{originX:i,originY:f,overlayX:G,overlayY:o,offsetY:Re},{originX:a,originY:f,overlayX:re,overlayY:o,offsetY:Re},{originX:i,originY:R,overlayX:G,overlayY:l,offsetY:-Re},{originX:a,originY:R,overlayX:re,overlayY:l,offsetY:-Re}]);}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:ki$3(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Yt$5(o=>this._menuOpen&&o!==this._menuItemInstance)):ki$3();return WD(e,i,a,t)}_getPortal(e){return (!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new B$2(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Mi.get(e)===this}_triggerIsAriaDisabled(){return tM$1(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(t){Db();};static \u0275dir=bt$6({type:n})}return n})(),cv=(()=>{class n extends Pm{_cleanupTouchstart;_hoverSubscription=W$4.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e;}get menu(){return this._menu}set menu(e){this._menu=e;}menuData;restoreFocus=true;menuOpened=new kt$3;onMenuOpen=this.menuOpened;menuClosed=new kt$3;onMenuClose=this.menuClosed;constructor(){super(true);let e=g$4(qo$1);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",t=>{bt$4(t)||(this._openedBy="touch");},{passive:true});}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(true);}closeMenu(){this._closeMenu();}updatePosition(){this._overlayRef?.updatePosition();}ngAfterContentInit(){this._handleHover();}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe();}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){pt$2(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault());}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu());}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu();}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(false));}));}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&Ey("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),t&2&&ly("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu?.panelId:null);},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[Xm$2]})}return n})();var mv=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Dn$1,Jt$3,it$2,Ht$3]})}return n})();function Vm$1(n,r){}var Jt$2=class Jt{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var tn$1=(()=>{class n extends U$3{_elementRef=g$4(Vt$3);_focusTrapFactory=g$4(hn$1);_config;_interactivityChecker=g$4(bn$1);_ngZone=g$4(q$3);_focusMonitor=g$4(Ot);_renderer=g$4(qo$1);_changeDetectorRef=g$4(Od$2);_injector=g$4(Ee$4);_platform=g$4(_$7);_document=g$4(Y$3);_portalOutlet;_focusTrapped=new ye$5;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g$4(Jt$2,{optional:true})||new Jt$2,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{a(),o(),e.removeAttribute("tabindex");},a=this._renderer.listen(e,"blur",i),o=this._renderer.listen(e,"mousedown",i);})),e.focus(t);}_focusByCssSelector(e,t){let i=this._elementRef.nativeElement.querySelector(e);i&&this._forceFocus(i,t);}_trapFocus(e){this._isDestroyed||Jg(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focu
vendor: 5,310 bytes, lines 3027-3034
3027s(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let i=Xt$4(),a=this._elementRef.nativeElement;(!i||i===this._document.body||i===a||a.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=Xt$4();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Xt$4()));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(t&1&&by(Yt$2,7),t&2){let a;m_$1(a=y_$1())&&(i._portalOutlet=a.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){t&2&&ly("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null);},features:[Xm$2],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){t&1&&ey$1(0,Vm$1,0,0,"ng-template",0);},dependencies:[Yt$2],styles:[`.cdk-dialog-container { 3028 display: block; 3029 width: 100%; 3030 height: 100%; 3031 min-height: inherit; 3032 max-height: inherit; 3033} 3034`],encapsulation:2,changeDetection:1})}return n})(),en$1=class en{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new ye$5;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(r,e){this.overlayRef=r,this.config=e,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!Ye$4(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=r.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==false&&this.close();});}close(r,e){if(this._canClose(r)){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}_canClose(r){let e=this.config;return !!this.containerInstance&&(!e.closePredicate||e.closePredicate(r,e,this.componentInstance))}},Lm$1=new I$4("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=g$4(Ee$4);return ()=>Te$4(n)}}),Bm$1=new I$4("DialogData"),Nm$1=new I$4("DefaultDialogConfig");function zm$1(n){let r=Es$1(n),e=new kt$3;return {valueSignal:r,get value(){return r()},change:e,ngOnDestroy(){e.complete();}}}var nn=(()=>{class n{_injector=g$4(Ee$4);_defaultOptions=g$4(Nm$1,{optional:true});_parentDialog=g$4(n,{optional:true,skipSelf:true});_overlayContainer=g$4(We$1);_idGenerator=g$4(re$4);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ye$5;_afterOpenedAtThisLevel=new ye$5;_ariaHiddenElements=new Map;_scrollStrategy=g$4(Lm$1);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=aE(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Jf(void 0)));open(e,t){let i=this._defaultOptions||new Jt$2;t=D$6(D$6({},i),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let a=this._getOverlayConfig(t),o=it$1(this._injector,a),l=new en$1(o,t),f=this._attachContainer(o,l,t);if(l.containerInstance=f,!this.openDialogs.length){let R=this._overlayContainer.getContainerElement();f._focusTrapped?f._focusTrapped.pipe(bn$3(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(R);}):this._hideNonDialogContentFromAssistiveTechnology(R);}return this._attachDialogContent(e,l,f,t),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,true)),this.afterOpened.next(l),l}closeAll(){gr$1(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>
3034t.id===e)}ngOnDestroy(){gr$1(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),gr$1(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new N$2({positionStrategy:e.positionStrategy||St$2().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,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,i){let a=i.injector||i.viewContainerRef?.injector,o=[{provide:Jt$2,useValue:i},{provide:en$1,useValue:t},{provide:bt$3,useValue:e}],l;i.container?typeof i.container=="function"?l=i.container:(l=i.container.type,o.push(...i.container.providers(i))):l=tn$1;let f=new Z$1(l,i.viewContainerRef,Ee$4.create({parent:a||this._injector,providers:o}));return e.attach(f).instance}_attachDialogContent(e,t,i,a){if(e instanceof Et$3){let o=this._createInjector(a,t,i,void 0),l={$implicit:a.data,dialogRef:t};a.templateContext&&(l=D$6(D$6({},l),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),i.attachTemplatePortal(new B$2(e,null,l,o));}else {let o=this._createInjector(a,t,i,this._injector),l=i.attachComponentPortal(new Z$1(e,a.viewContainerRef,o,null,a.bindings));t.componentRef=l,t.componentInstance=l.instance;}}_createInjector(e,t,i,a){let o=e.injector||e.viewContainerRef?.injector,l=[{provide:Bm$1,useValue:e.data},{provide:en$1,useValue:t}];return e.providers&&(typeof e.providers=="function"?l.push(...e.providers(t,e,i)):l.push(...e.providers)),e.direction&&(!o||!o.get(qe$4,null,{optional:true}))&&l.push({provide:qe$4,useValue:zm$1(e.direction)}),Ee$4.create({parent:o||a,providers:l})}_removeOpenDialog(e,t){let i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,o)=>{a?o.setAttribute("aria-hidden",a):o.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let i=t.length-1;i>-1;i--){let a=t[i];a!==e&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&!a.hasAttribute("popover")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();function gr$1(n,r){let e=n.length;for(;e--;)r(n[e]);}var ia$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({providers:[nn],imports:[Jt$3,_t$2,di$1,_t$2]})}return n})();function Hm$1(n,r){}var aa$1=class aa{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;delayFocusTrap=true;scrollStrategy;closeOnNavigation=true;enterAnimationDuration;exitAnimationDuration;bindings},br$1="mdc-dialog--open",hl$1="mdc-dialog--opening",pl$1="mdc-dialog--closing",jm$1=150,Gm$1=75,Um$1=(()=>{class n extends tn$1{_animationStateChanged=new kt$3;_animationsEnabled=!ct$1();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?_l$1(this._config.enterAnimationDuration)??jm$1:0;_exitAnimationDuration=this._animationsEnabled?_l$1(this._config.exitAnimationDuration)??Gm$1:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ul$1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(hl$1,br$1)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(br$1),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(br$1),this._animationsEnabled?(this._hostElement.style.setProperty(ul$1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(pl$1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(hl$1,pl$1);}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,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});}
vendor: 6,429 bytes, lines 3034-3206
3034ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,i){t&2&&(vy("id",i._config.id),ly("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),xy("_mat-animation-noopable",!i._animationsEnabled)("mat-mdc-dialog-container-with-actions",i._actionSectionCount>0));},features:[Xm$2],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(t,i){t&1&&(Js$2(0,"div",0)(1,"div",1),ey$1(2,Hm$1,0,0,"ng-template",2),gd$2()());},dependencies:[Yt$2],styles:[`.mat-mdc-dialog-container { 3035 width: 100%; 3036 height: 100%; 3037 display: block; 3038 box-sizing: border-box; 3039 max-height: inherit; 3040 min-height: inherit; 3041 min-width: inherit; 3042 max-width: inherit; 3043 outline: 0; 3044} 3045 3046.cdk-overlay-pane.mat-mdc-dialog-panel { 3047 max-width: var(--mat-dialog-container-max-width, 560px); 3048 min-width: var(--mat-dialog-container-min-width, 280px); 3049} 3050@media (max-width: 599px) { 3051 .cdk-overlay-pane.mat-mdc-dialog-panel { 3052 max-width: var(--mat-dialog-container-small-max-width, calc(100vw - 32px)); 3053 } 3054} 3055 3056.mat-mdc-dialog-inner-container { 3057 display: flex; 3058 flex-direction: row; 3059 align-items: center; 3060 justify-content: space-around; 3061 box-sizing: border-box; 3062 height: 100%; 3063 opacity: 0; 3064 transition: opacity linear var(--mat-dialog-transition-duration, 0ms); 3065 max-height: inherit; 3066 min-height: inherit; 3067 min-width: inherit; 3068 max-width: inherit; 3069} 3070.mdc-dialog--closing .mat-mdc-dialog-inner-container { 3071 transition: opacity 75ms linear; 3072 transform: none; 3073} 3074.mdc-dialog--open .mat-mdc-dialog-inner-container { 3075 opacity: 1; 3076} 3077._mat-animation-noopable .mat-mdc-dialog-inner-container { 3078 transition: none; 3079} 3080 3081.mat-mdc-dialog-surface { 3082 display: flex; 3083 flex-direction: column; 3084 flex-grow: 0; 3085 flex-shrink: 0; 3086 box-sizing: border-box; 3087 width: 100%; 3088 height: 100%; 3089 position: relative; 3090 overflow-y: auto; 3091 outline: 0; 3092 transform: scale(0.8); 3093 transition: transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1); 3094 max-height: inherit; 3095 min-height: inherit; 3096 min-width: inherit; 3097 max-width: inherit; 3098 box-shadow: var(--mat-dialog-container-elevation-shadow, none); 3099 border-radius: var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px)); 3100 background-color: var(--mat-dialog-container-color, var(--mat-sys-surface, white)); 3101} 3102[dir=rtl] .mat-mdc-dialog-surface { 3103 text-align: right; 3104} 3105.mdc-dialog--open .mat-mdc-dialog-surface, .mdc-dialog--closing .mat-mdc-dialog-surface { 3106 transform: none; 3107} 3108._mat-animation-noopable .mat-mdc-dialog-surface { 3109 transition: none; 3110} 3111.mat-mdc-dialog-surface::before { 3112 position: absolute; 3113 box-sizing: border-box; 3114 width: 100%; 3115 height: 100%; 3116 top: 0; 3117 left: 0; 3118 border: 2px solid transparent; 3119 border-radius: inherit; 3120 content: ""; 3121 pointer-events: none; 3122} 3123 3124.mat-mdc-dialog-title { 3125 display: block; 3126 position: relative; 3127 flex-shrink: 0; 3128 box-sizing: border-box; 3129 margin: 0 0 1px; 3130 padding: var(--mat-dialog-headline-padding, 6px 24px 13px); 3131} 3132.mat-mdc-dialog-title::before { 3133 display: inline-block; 3134 width: 0; 3135 height: 40px; 3136 content: ""; 3137 vertical-align: 0; 3138} 3139[dir=rtl] .mat-mdc-dialog-title { 3140 text-align: right; 3141} 3142.mat-mdc-dialog-container .mat-mdc-dialog-title { 3143 color: var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87))); 3144 font-family: var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit)); 3145 line-height: var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem)); 3146 font-size: var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem)); 3147 font-weight: var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400)); 3148 letter-spacing: var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em)); 3149} 3150 3151.mat-mdc-dialog-content { 3152 display: block; 3153 flex-grow: 1; 3154 box-sizing: border-box; 3155 margin: 0; 3156 overflow: auto; 3157 max-height: 65vh; 3158} 3159.mat-mdc-dialog-content > :first-child { 3160 margin-top: 0; 3161} 3162.mat-mdc-dialog-content > :last-child { 3163 margin-bottom: 0; 3164} 3165.mat-mdc-dialog-container .mat-mdc-dialog-content { 3166 color: var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6))); 3167 font-family: var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit)); 3168 line-height: var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem)); 3169 font-size: var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem)); 3170 font-weight: var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400)); 3171 letter-spacing: var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em)); 3172} 3173.mat-mdc-dialog-container .mat-mdc-dialog-content { 3174 padding: var(--mat-dialog-content-padding, 20px 24px); 3175} 3176.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content { 3177 padding: var(--mat-dialog-with-actions-content-padding, 20px 24px 0); 3178} 3179.mat-mdc-dialog-container .mat-mdc-dialog-title + .mat-mdc-dialog-content { 3180 padding-top: 0; 3181} 3182 3183.mat-mdc-dialog-actions { 3184 display: flex; 3185 position: relative; 3186 flex-shrink: 0; 3187 flex-wrap: wrap; 3188 align-items: center; 3189 box-sizing: border-box; 3190 min-height: 52px; 3191 margin: 0; 3192 border-top: 1px solid transparent; 3193 padding: var(--mat-dialog-actions-padding, 16px 24px); 3194 justify-content: var(--mat-dialog-actions-alignment, flex-end); 3195} 3196@media (forced-colors: active) { 3197 .mat-mdc-dialog-actions { 3198 border-top-color: CanvasText; 3199 } 3200} 3201.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start, .mat-mdc-dialog-actions[align=start] { 3202 justify-content: start; 3203} 3204.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center, .mat-mdc-dialog-actions[align=center] { 3205 justify-content: center; 3206}
3207.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end, .mat-mdc-dialog-actions[align=end] { 3208 justify-content: flex-end; 3209} 3210.mat-mdc-dialog-actions .mat-button-base + .mat-button-base, 3211.mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base { 3212 margin-left: 8px; 3213} 3214[dir=rtl] .mat-mdc-dialog-actions .mat-button-base + .mat-button-base, 3215[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base { 3216 margin-left: 0; 3217 margin-right: 8px; 3218} 3219 3220.mat-mdc-dialog-component-host { 3221 display: contents; 3222} 3223`],encapsulation:2,changeDetection:1})}return n})(),ul$1="--mat-dialog-transition-duration";function _l$1(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?Jt$4(n.substring(0,n.length-2)):n.endsWith("s")?Jt$4(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var na$1=(function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n})(na$1||{}),an=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new eo$2(1);_beforeClosed=new eo$2(1);_result;_closeFallbackTimeout;_state=na$1.OPEN;_closeInteractionType;constructor(r,e,t){this._ref=r,this._config=e,this._containerInstance=t,this.disableClose=e.disableClose,this.id=r.id,r.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Yt$5(i=>i.state==="opened"),bn$3(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Yt$5(i=>i.state==="closed"),bn$3(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),WD(this.backdropClick(),this.keydownEvents().pipe(Yt$5(i=>i.keyCode===27&&!this.disableClose&&!Ye$4(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),fl$1(this,i.type==="keydown"?"keyboard":"mouse"));});}close(r){let e=this._config.closePredicate;e&&!e(r,this._config,this.componentInstance)||(this._result=r,this._containerInstance._animationStateChanged.pipe(Yt$5(t=>t.state==="closing"),bn$3(1)).subscribe(t=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=na$1.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(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=na$1.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function fl$1(n,r,e){return n._closeInteractionType=r,n.close(e)}var Wm$1=new I$4("MatMdcDialogData"),qm$1=new I$4("mat-mdc-dialog-default-options"),Qm$1=new I$4("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$4(Ee$4);return ()=>Te$4(n)}}),vr$1=(()=>{class n{_defaultOptions=g$4(qm$1,{optional:true});_scrollStrategy=g$4(Qm$1);_parentDialog=g$4(n,{optional:true,skipSelf:true});_idGenerator=g$4(re$4);_injector=g$4(Ee$4);_dialog=g$4(nn);_animationsDisabled=ct$1();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ye$5;_afterOpenedAtThisLevel=new ye$5;dialogConfigClass=aa$1;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;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}afterAllClosed=aE(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Jf(void 0)));constructor(){this._dialogRefConstructor=an,this._dialogContainerType=Um$1,this._dialogDataToken=Wm$1;}open(e,t){let i;t=D$6(D$6({},this._defaultOptions||new aa$1),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(e,E$7(D$6({},t),{positionStrategy:St$2(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleStr
3223ing()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:Jt$2,useValue:t}]},templateContext:()=>({dialogRef:i}),providers:(o,l,f)=>(i=new this._dialogRefConstructor(o,t,f),i.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:f},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:i}])}));return i.componentRef=a.componentRef,i.componentInstance=a.componentInstance,this.openDialogs.push(i),this.afterOpened.next(i),i.afterClosed().subscribe(()=>{let o=this.openDialogs.indexOf(i);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||this._getAfterAllClosed().next());}),i}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close();}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),Jv=(()=>{class n{dialogRef=g$4(an,{optional:true});_elementRef=g$4(Vt$3);_dialog=g$4(vr$1);ariaLabel;type="button";dialogResult;_matDialogClose;ngOnInit(){this.dialogRef||(this.dialogRef=bl$1(this._elementRef,this._dialog.openDialogs));}ngOnChanges(e){let t=e._matDialogClose;t&&(this.dialogResult=t.currentValue);}_onButtonClick(e){this._elementRef.nativeElement.getAttribute("aria-disabled")!=="true"&&fl$1(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult);}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,i){t&1&&Ey("click",function(o){return i._onButtonClick(o)}),t&2&&ly("aria-label",i.ariaLabel||null)("type",i.type);},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[El$2]})}return n})(),gl$1=(()=>{class n{_dialogRef=g$4(an,{optional:true});_elementRef=g$4(Vt$3);_dialog=g$4(vr$1);ngOnInit(){this._dialogRef||(this._dialogRef=bl$1(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd();});}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove();});}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n})}return n})(),ey=(()=>{class n extends gl$1{id=g$4(re$4).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(t,i){t&2&&vy("id",i.id);},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[Xm$2]})}return n})(),ty=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[iT([Ge$3])]})}return n})(),iy=(()=>{class n extends gl$1{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1);}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1);}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(t,i){t&2&&xy("mat-mdc-dialog-actions-align-start",i.align==="start")("mat-mdc-dialog-actions-align-center",i.al
3223ign==="center")("mat-mdc-dialog-actions-align-end",i.align==="end");},inputs:{align:"align"},features:[Xm$2]})}return n})();function bl$1(n,r){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}var ny=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({providers:[vr$1],imports:[ia$1,Jt$3,_t$2,it$2]})}return n})();var Ym$1=["*",[["mat-option"],["ng-container"]]],Km$1=["*","mat-option, ng-container"],$m$1=["text"],Xm$1=[[["mat-icon"]],"*"],Zm$1=["mat-icon","*"];function Jm$1(n,r){if(n&1&&fy(0,"mat-pseudo-checkbox",1),n&2){let e=d_$1();dy("disabled",e.disabled)("state",e.selected?"checked":"unchecked");}}function eh(n,r){if(n&1&&fy(0,"mat-pseudo-checkbox",3),n&2){let e=d_$1();dy("disabled",e.disabled);}}function th(n,r){if(n&1&&(Js$2(0,"span",4),H_$1(1),gd$2()),n&2){let e=d_$1();SC(),Ed$2("(",e.group.label,")");}}var Si=new I$4("MAT_OPTION_PARENT_COMPONENT"),Ii$2=new I$4("MatOptgroup"),ih=(()=>{class n{label;disabled=false;_labelId=g$4(re$4).getId("mat-optgroup-label-");_inert;constructor(){let e=g$4(Si,{optional:true});this._inert=e?.inertGroups??false;}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(t,i){t&2&&ly("role",i._inert?null:"group")("aria-disabled",i._inert?null:i.disabled.toString())("aria-labelledby",i._inert?null:i._labelId);},inputs:{label:"label",disabled:[2,"disabled","disabled",tM$1]},exportAs:["matOptgroup"],features:[tS([{provide:Ii$2,useExisting:n}])],ngContentSelectors:Km$1,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(t,i){t&1&&(p_$1(Ym$1),md$2(0,"span",0)(1,"span",1),H_$1(2),h_$1(3),yd$2()(),h_$1(4,1)),t&2&&(xy("mdc-list-item--disabled",i.disabled),vy("id",i._labelId),SC(2),Ed$2("",i.label," "));},styles:[`.mat-mdc-optgroup { 3224 color: var(--mat-optgroup-label-text-color, var(--mat-sys-on-surface-variant)); 3225 font-family: var(--mat-optgroup-label-text-font, var(--mat-sys-title-small-font)); 3226 line-height: var(--mat-optgroup-label-text-line-height, var(--mat-sys-title-small-line-height)); 3227 font-size: var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size)); 3228 letter-spacing: var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking)); 3229 font-weight: var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight)); 3230} 3231 3232.mat-mdc-optgroup-label { 3233 display: flex; 3234 position: relative; 3235 align-items: center; 3236 justify-content: flex-start; 3237 overflow: hidden; 3238 min-height: 48px; 3239 padding: 0 16px; 3240 outline: none; 3241} 3242.mat-mdc-optgroup-label.mdc-list-item--disabled { 3243 opacity: 0.38; 3244} 3245.mat-mdc-optgroup-label .mdc-list-item__primary-text { 3246 font-size: inherit; 3247 font-weight: inherit; 3248 letter-spacing: inherit; 3249 line-height: inherit; 3250 font-family: inherit; 3251 text-decoration: inherit; 3252 text-transform: inherit; 3253 white-space: normal; 3254 color: inherit; 3255} 3256`],encapsulation:2})}return n})(),rn=class{source;isUserInput;constructor(r,e=false){this.source=r,this.isUserInput=e;}},ei=(()=>{class n{_element=g$4(Vt$3);_changeDetectorRef=g$4(Od$2);_parent=g$4(Si,{optional:true});group=g$4(Ii$2,{optional:true});_signalDisableRipple=false;_selected=false;_active=false;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=g$4(re$4).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e);}_disabled=Es$1(false);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return !!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new kt$3;_text;_stateChanges=new ye$5;constructor(){let e=g$4(P$3);e.load(Bn$1),e.load(Bt$1),this._signalDisableRipple=!!this._parent&&No$1(this._parent.disableRipple);}get active(){return this._active}get viewValue(){return (this._text?.nativeElement.textContent||"").trim()}select(e=true){this._selected||(this._selected=true,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent());}deselect(e=true){this._selected&&(this._selected=false,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent());}focus(e,t){let i=this._getHostElement();typeof i.focus=="function"&&i.focus(t);}setActiveStyles(){this._active||(this._active=true,this._changeDetectorRef.markForCheck());}setInactiveStyles(){this._active&&(this._active=false,this._changeDetectorRef.markForCheck());}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Ye$4(e)&&(this._selectViaInteraction(),e.preventDefault());}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:true,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(true));}_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=false){this.onSelectionChange.emit(new rn(this,e));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-option"]],viewQuery:function(t,i){if(t&1&&by($m$1,7),t&2){let a;m_$1(a=y_$1())&&(i._text=a.first);}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,i){t&1&&Ey("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),t&2&&(vy("id",i.id),ly("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),xy("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled));},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",tM$1]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Zm$1,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,i){t&1&&(p_$1(Xm$1),ZT(0,Jm$1,1,2,"mat-pseudo-checkbox",1),h_$1(1),Js$2(2,"span",2,0),h_$1(4,1),gd$2(),ZT(5,eh,1,1,"mat-pseudo-checkbox",3),ZT(6,th,2,1,"span",4),fy(7,"div",5)),t&2&&(YT(i.multiple?0:-1),SC(5),YT(!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator?5:-1),SC(),YT(i.group&&i.group._inert?6:-1),SC(),dy("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple));},dependencies:[Zn,jr$1],styles:[`.mat-mdc-option { 3257 -webkit-user-select: none; 3258 user-select: none; 3259 -moz-osx-font-smoothing: grayscale; 3260 -webkit-font-smoothing: antialiased; 3261 display: flex; 3262 position: relative; 3263 align-items: center; 3264 justify-content: flex-start; 3265 overflow: hidden; 3266 min-height: 48px; 3267 padding: 0 16px; 3268 cursor: pointer; 3269 -webkit-tap-highlight-color: transparent; 3270 color: var(--mat-option-label-text-color, var(--mat-sys-on-surface)); 3271 font-family: var(--mat-option-label-text-font, var(--mat-sys-label-large-font)); 3272 line-height: var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height)); 3273 font-size: var(--mat-option-label-text-size, var(--mat-sys-body-large-size)); 3274 letter-spacing: var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking)); 3275 font-weight: var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight)); 3276} 3277.mat-mdc-option:hover:not(.mdc-list-item--disabled) { 3278 background-color: var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent)); 3279} 3280.mat-mdc-option:focus.mdc-list-item, .mat-mdc-option.mat-mdc-option-active.mdc-list-item { 3281 background-color: var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent)); 3282 outline: 0; 3283} 3284.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) { 3285 background-color: var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container)); 3286} 3287.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) .mdc-list-item__primary-text { 3288 color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container)); 3289} 3290.mat-mdc-option .mat-pseudo-checkbox { 3291 --mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container)); 3292} 3293.mat-mdc-option.mdc-list-item { 3294 align-items: center; 3295 background: transparent; 3296} 3297.mat-mdc-option.mdc-list-item--disabled { 3298 cursor: default; 3299 pointer-events: none; 3300} 3301.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 { 3302 opacity: 0.38; 3303} 3304.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) { 3305 padding-left: 32px; 3306} 3307[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) { 3308 padding-left: 16px; 3309 padding-right: 32px; 3310} 3311.mat-mdc-option .mat-icon, 3312.mat-mdc-option .mat-pseudo-checkbox-full { 3313 margin-right: 16px; 3314 flex-shrink: 0; 3315} 3316[dir=rtl] .mat-mdc-option .mat-icon, 3317[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full { 3318 margin-right: 0; 3319 margin-left: 16px; 3320} 3321.mat-mdc-option .mat-pseudo-checkbox-minimal { 3322 margin-left: 16px; 3323 flex-shrink: 0; 3324} 3325[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal { 3326 margin-right: 16px; 3327 margin-left: 0; 3328} 3329.mat-mdc-option .mat-mdc-option-ripple { 3330 top: 0; 3331 left: 0; 3332 right: 0; 3333 bottom: 0; 3334 position: absolute; 3335 pointer-events: none; 3336} 3337.mat-mdc-option .mdc-list-item__primary-text { 3338 white-space: normal; 3339 font-size: inherit; 3340 font-weight: inherit; 3341 letter-spacing: inherit; 3342 line-height: inherit; 3343 font-family: inherit; 3344 text-decoration: inherit; 3345 text-transform: inherit; 3346 margin-right: auto; 3347} 3348[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text { 3349 margin-right: 0; 3350 margin-left: auto; 3351} 3352@media (forced-colors: active) { 3353 .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after { 3354 content: ""; 3355 position: absolute; 3356 top: 50%; 3357 right: 16px; 3358 transform: translateY(-50%); 3359 width: 10px; 3360 height: 0; 3361 border-bottom: solid 10px; 3362 border-radius: 10px; 3363 } 3364 [dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after { 3365 right: auto; 3366 left: 16px; 3367 } 3368} 3369 3370.mat-mdc-option-multiple { 3371 --mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent); 3372} 3373 3374.mat-mdc-option-active .mat-focus-indicator::before { 3375 content: ""; 3376} 3377`],encapsulation:2})}return n})();function ra$1(n,r,e){if(e.length){let t=r.toArray(),i=e.toArray(),a=0;for(let o=0;o<n+1;o++)t[o].group&&t[o].group===i[a]&&a++;return a}return 0}function oa$1(n,r,e,t){return n<e?n:n+r>e+t?Math.max(0,n-t+r):e}var yr=class{_box;_destroyed=new ye$5;
3377_resizeSubject=new ye$5;_resizeObserver;_elementObservables=new Map;constructor(r){this._box=r,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)));}observe(r){return this._elementObservables.has(r)||this._elementObservables.set(r,new R$4(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(r,{box:this._box}),()=>{this._resizeObserver?.unobserve(r),t.unsubscribe(),this._elementObservables.delete(r);}}).pipe(Yt$5(e=>e.some(t=>t.target===r)),Xf$1({bufferSize:1,refCount:true}),Hf$1(this._destroyed))),this._elementObservables.get(r)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear();}},sa$1=(()=>{class n{_cleanupErrorListener;_observers=new Map;_ngZone=g$4(q$3);constructor(){}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.();}observe(e,t){let i=t?.box||"content-box";return this._observers.has(i)||this._observers.set(i,new yr(i)),this._observers.get(i).observe(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var nh=["notch"],ah=["*"],vl$1=["iconPrefixContainer"],yl$1=["textPrefixContainer"],xl$1=["iconSuffixContainer"],wl$1=["textSuffixContainer"],rh=["textField"],oh=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],sh=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function lh(n,r){n&1&&fy(0,"span",21);}function dh(n,r){if(n&1&&(Js$2(0,"label",20),h_$1(1,1),ZT(2,lh,1,0,"span",21),gd$2()),n&2){let e=d_$1(2);dy("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ly("for",e._control.disableAutomaticLabeling?null:e._control.id),SC(2),YT(!e.hideRequiredMarker&&e._control.required?2:-1);}}function ch(n,r){if(n&1&&ZT(0,dh,3,5,"label",20),n&2){let e=d_$1();YT(e._hasFloatingLabel()?0:-1);}}function mh(n,r){n&1&&fy(0,"div",7);}function hh(n,r){}function ph(n,r){if(n&1&&ey$1(0,hh,0,0,"ng-template",13),n&2){d_$1(2);let e=D_$1(1);dy("ngTemplateOutlet",e);}}function uh(n,r){if(n&1&&(Js$2(0,"div",9),ZT(1,ph,1,1,null,13),gd$2()),n&2){let e=d_$1();dy("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),SC(),YT(e._forceDisplayInfixLabel()?-1:1);}}function _h(n,r){n&1&&(Js$2(0,"div",10,2),h_$1(2,2),gd$2());}function fh(n,r){n&1&&(Js$2(0,"div",11,3),h_$1(2,3),gd$2());}function gh(n,r){}function bh(n,r){if(n&1&&ey$1(0,gh,0,0,"ng-template",13),n&2){d_$1();let e=D_$1(1);dy("ngTemplateOutlet",e);}}function vh(n,r){n&1&&(Js$2(0,"div",14,4),h_$1(2,4),gd$2());}function yh(n,r){n&1&&(Js$2(0,"div",15,5),h_$1(2,5),gd$2());}function xh(n,r){n&1&&fy(0,"div",16);}function wh(n,r){n&1&&(Js$2(0,"div",18),h_$1(1,6),gd$2());}function kh(n,r){if(n&1&&(Js$2(0,"mat-hint",22),H_$1(1),gd$2()),n&2){let e=d_$1(2);dy("id",e._hintLabelId),SC(),jy(e.hintLabel);}}function Ch(n,r){if(n&1&&(Js$2(0,"div",19),ZT(1,kh,2,2,"mat-hint",22),h_$1(2,7),fy(3,"div",23),h_$1(4,8),gd$2()),n&2){let e=d_$1();SC(),YT(e.hintLabel?1:-1);}}var xr$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-label"]]})}return n})(),kr=new I$4("MatError"),Dh=(()=>{class n{id=g$4(re$4).getId("mat-mdc-error-");static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(t,i){t&2&&vy("id",i.id);},inputs:{id:"id"},features:[tS([{provide:kr,useExisting:n}])]})}return n})(),wr$1=(()=>{class n{align="start";id=g$4(re$4).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,i){t&2&&(vy("id",i.id),ly("al
3377ign",null),xy("mat-mdc-form-field-hint-end",i.align==="end"));},inputs:{align:"align",id:"id"}})}return n})(),Cr$1=new I$4("MatPrefix"),Mh=(()=>{class n{set _isTextSelector(e){this._isText=true;}_isText=false;static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[tS([{provide:Cr$1,useExisting:n}])]})}return n})(),Dr=new I$4("MatSuffix"),Sh=(()=>{class n{set _isTextSelector(e){this._isText=true;}_isText=false;static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[tS([{provide:Dr,useExisting:n}])]})}return n})(),El$1=new I$4("FloatingLabelParent"),kl$1=(()=>{class n{_elementRef=g$4(Vt$3);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize();}_floating=false;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe();}_monitorResize=false;_resizeObserver=g$4(sa$1);_ngZone=g$4(q$3);_parent=g$4(El$1);_resizeSubscription=new W$4;ngOnDestroy(){this._resizeSubscription.unsubscribe();}getWidth(){return Ih(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 \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,i){t&2&&xy("mdc-floating-label--float-above",i.floating);},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return n})();function Ih(n){let r=n;if(r.offsetParent!==null)return r.scrollWidth;let e=r.cloneNode(true);
3377e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var Cl$1="mdc-line-ripple--active",la$1="mdc-line-ripple--deactivating",Dl$1=(()=>{class n{_elementRef=g$4(Vt$3);_cleanupTransitionEnd;constructor(){let e=g$4(q$3),t=g$4(qo$1);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=t.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd);});}activate(){let e=this._elementRef.nativeElement.classList;e.remove(la$1),e.add(Cl$1);}deactivate(){this._elementRef.nativeElement.classList.add(la$1);}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,i=t.contains(la$1);e.propertyName==="opacity"&&i&&t.remove(Cl$1,la$1);};ngOnDestroy(){this._cleanupTransitionEnd();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return n})(),Ml$1=(()=>{class n{_elementRef=g$4(Vt$3);_ngZone=g$4(q$3);open=false;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,t=e.querySelector(".mdc-floating-label");t?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="");}))):e.classList.add("mdc-notched-outline--no-label");}_setNotchWidth(e){let t=this._notch.nativeElement;!this.open||!e?t.style.width="":t.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`;}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,i){if(t&1&&by(nh,5),t&2){let a;m_$1(a=y_$1())&&(i._notch=a.first);}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,i){t&2&&xy("mdc-notched-outline--notched",i.open);},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},ngContentSelectors:ah,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(t,i){t&1&&(p_$1(),py(0,"div",1),md$2(1,"div",2,0),h_$1(3),yd$2(),py(4,"div",3));},encapsulation:2})}return n})(),Vt=(()=>{class n{value=null;stateChanges;id;placeholder;ngControl=null;focused=false;empty=false;shouldLabelFloat=false;required=false;disabled=false;errorState=false;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n})}return n})();var kt$1=new I$4("MatFormField"),Tl$1=new I$4("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Sl$1="fill",Eh="auto",Il$1="fixed",Th="translateY(-50%)",da$1=(()=>{class n{_elementRef=g$4(Vt$3);_changeDetectorRef=g$4(Od$2);_platform=g$4(_$7);_idGenerator=g$4(re$4);_ngZone=g$4(q$3);_defaults=g$4(Tl$1,{optional:true});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=mU("iconPrefixContainer");_textPrefixContainerSignal=mU("textPrefixContainer");_iconSuffixContainerSignal=mU("iconSuffixContainer");_textSuffixContainerSignal=mU("textSuffixContainer");_prefixSuffixContainers=wS(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=yU(xr$1);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Er$2(e);}_hideRequiredMarker=false;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Eh}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck());}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let t=e||this._defaults?.appearance||Sl$1;this._appearanceSignal.set(t);}_appearanceSignal=Es$1(Sl$1);
3377get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Il$1}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Il$1;}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints();}_hintLabel="";_hasIconPrefix=false;_hasTextPrefix=false;_hasIconSuffix=false;_hasTextSuffix=false;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e;}_destroyed=new ye$5;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=ct$1();constructor(){let e=this._defaults,t=g$4(qe$4);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),ih$1(()=>this._currentDirection=t.valueSignal()),this._syncOutlineLabelOffset();}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled");},300);}),this._changeDetectorRef.detectChanges();}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix();}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck();}
3377ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete();}getLabelId=wS(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always");}_initializeControl(e){let t=this._control,i="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(i+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(i+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck();}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(Jf([void 0,void 0]),ve$4(()=>[t.errorState,t.userAriaDescribedBy]),DE(),Yt$5(([[a,o],[l,f]])=>a!==l||o!==f)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(Hf$1(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(),WD(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=true,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=false,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e);}_syncOutlineLabelOffset(){IU({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset());});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"});}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())});}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return !this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=wS(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():false}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getSubscriptMessageType(){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=[];
3377if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let a=this._hintChildren?this._hintChildren.find(l=>l.align==="start"):null,o=this._hintChildren?this._hintChildren.find(l=>l.align==="end"):null;a?e.push(a.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id);}else this._errorChildren&&e.push(...this._errorChildren.map(a=>a.id));let t=this._control.describedByIds,i;if(t){let a=this._describedByIds||e;i=e.concat(t.filter(o=>o&&!a.includes(o)));}else i=e;this._control.setDescribedByIds(i),this._describedByIds=e;}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return ["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,t=this._textPrefixContainer?.nativeElement,i=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,o=e?.getBoundingClientRect().width??0,l=t?.getBoundingClientRect().width??0,f=i?.getBoundingClientRect().width??0,R=a?.getBoundingClientRect().width??0,G=this._currentDirection==="rtl"?"-1":"1",re=`${o+l}px`,ze=`calc(${G} * (${re} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,un=`var(--mat-mdc-form-field-label-transform, ${Th} translateX(${ze}))`,_n=o+l+f+R;return [un,_n]}_writeOutlinedLabelStyles(e){if(e!==null){let[t,i]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=t),i!==null&&this._notchedOutline?._setMaxWidth(i);}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-form-field"]],contentQueries:function(t,i,a){if(t&1&&(Ty(a,i._labelChild,xr$1,5),Cy(a,Vt,5)(a,Cr$1,5)(a,Dr,5)(a,kr,5)(a,wr$1,5)),t&2){v_$1();let o;m_$1(o=y_$1())&&(i._formFieldControl=o.first),m_$1(o=y_$1())&&(i._prefixChildren=o),m_$1(o=y_$1())&&(i._suffixChildren=o),m_$1(o=y_$1())&&(i._errorChildren=o),m_$1(o=y_$1())&&(i._hintChildren=o);}},viewQuery:function(t,i){if(t&1&&(_y(i._iconPrefixContainerSignal,vl$1,5)(i._textPrefixContainerSignal,yl$1,5)(i._iconSuffixContainerSignal,xl$1,5)(i._textSuffixContainerSignal,wl$1,5),by(rh,5)(vl$1,5)(yl$1,5)(xl$1,5)(wl$1,5)(kl$1,5)(Ml$1,5)(Dl$1,5)),t&2){v_$1(4);let a;m_$1(a=y_$1())&&(i._textField=a.first),m_$1(a=y_$1())&&(i._iconPrefixContainer=a.first),m_$1(a=y_$1())&&(i._textPrefixContainer=a.first),m_$1(a=y_$1())&&(i._iconSuffixContainer=a.first),m_$1(a=y_$1())&&(i._textSuffixContainer=a.first),m_$1(a=y_$1())&&(i._floatingLabel=a.first),m_$1(a=y_$1())&&(i._notchedOutline=a.first),m_$1(a=y_$1())&&(i._lineRipple=a.first);}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(t,i){t&2&&xy("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-appearance-fill",i.appearance=="fill")("mat-form-field-appearance-outline",i.appearance=="outline")("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-primary",i.color!=="accent"&&i.color!=="warn")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"));},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[tS([{provide:kt$1,useExisting:n},{provide:El$1,useExisting:n}])],ngContentSelectors:sh,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",""],["aria-atomic","true","aria-live","polite",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"],["matFormField
3377FloatingLabel","",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(t,i){if(t&1&&(p_$1(oh),ey$1(0,ch,1,1,"ng-template",null,0,DS),Js$2(2,"div",6,1),Ey("click",function(o){return i._control.onContainerClick(o)}),ZT(4,mh,1,0,"div",7),Js$2(5,"div",8),ZT(6,uh,2,2,"div",9),ZT(7,_h,3,0,"div",10),ZT(8,fh,3,0,"div",11),Js$2(9,"div",12),ZT(10,bh,1,1,null,13),h_$1(11),gd$2(),ZT(12,vh,3,0,"div",14),ZT(13,yh,3,0,"div",15),gd$2(),ZT(14,xh,1,0,"div",16),gd$2(),Js$2(15,"div",17),ZT(16,wh,2,0,"div",18)(17,Ch,5,1,"div",19),gd$2()),t&2){let a;SC(2),xy("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),SC(2),YT(!i._hasOutline()&&!i._control.disabled?4:-1),SC(2),YT(i._hasOutline()?6:-1),SC(),YT(i._hasIconPrefix?7:-1),SC(),YT(i._hasTextPrefix?8:-1),SC(2),YT(!i._hasOutline()||i._forceDisplayInfixLabel()?10:-1),SC(2),YT(i._hasTextSuffix?12:-1),SC(),YT(i._hasIconSuffix?13:-1),SC(),YT(i._hasOutline()?-1:14),SC(),xy("mat-mdc-form-field-subscript-dynamic-size",i.subscriptSizing==="dynamic");let o=i._getSubscriptMessageType();SC(),YT((a=o)==="error"?16:a==="hint"?17:-1);}},dependencies:[kl$1,Ml$1,LM,Dl$1,wr$1],styles:[`.mdc-text-field { 3378 display: inline-flex; 3379 align-items: baseline; 3380 padding: 0 16px; 3381 position: relative; 3382 box-sizing: border-box; 3383 overflow: hidden; 3384 will-change: opacity, transform, color; 3385 border-top-left-radius: 4px; 3386 border-top-right-radius: 4px; 3387 border-bottom-right-radius: 0; 3388 border-bottom-left-radius: 0; 3389} 3390 3391.mdc-text-field__input { 3392 width: 100%; 3393 min-width: 0; 3394 border: none; 3395 border-radius: 0; 3396 background: none; 3397 padding: 0; 3398 -moz-appearance: none; 3399 -webkit-appearance: none; 3400 height: 28px; 3401} 3402.mdc-text-field__input::-webkit-calendar-picker-indicator, .mdc-text-field__input::-webkit-search-cancel-button { 3403 display: none; 3404} 3405.mdc-text-field__input::-ms-clear { 3406 display: none; 3407} 3408.mdc-text-field__input:focus { 3409 outline: none; 3410} 3411.mdc-text-field__input:invalid { 3412 box-shadow: none; 3413} 3414.mdc-text-field__input::placeholder { 3415 opacity: 0; 3416} 3417.mdc-text-field__input::-moz-placeholder { 3418 opacity: 0; 3419} 3420.mdc-text-field__input::-webkit-input-placeholder { 3421 opacity: 0; 3422} 3423.mdc-text-field__input:-ms-input-placeholder { 3424 opacity: 0; 3425} 3426.mdc-text-field--no-label .mdc-text-field__input::placeholder, .mdc-text-field--focused .mdc-text-field__input::placeholder { 3427 opacity: 1; 3428} 3429.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder, .mdc-text-field--focused .mdc-text-field__input::-moz-placeholder { 3430 opacity: 1; 3431} 3432.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder { 3433 opacity: 1; 3434} 3435.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder { 3436 opacity: 1; 3437} 3438.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder { 3439 opacity: 0; 3440} 3441.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder { 3442 opacity: 0; 3443} 3444.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder { 3445 opacity: 0; 3446} 3447.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder { 3448 opacity: 0; 3449} 3450.mdc-text-field--outlined .mdc-text-field__input, .mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input { 3451 height: 100%; 3452} 3453.mdc-text-field--outlined .mdc-text-field__input { 3454 display: flex; 3455 border: none !important; 3456 background-color: transparent; 3457} 3458.mdc-text-field--disabled .mdc-text-field__input { 3459 pointer-events: auto; 3460} 3461.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input { 3462 color: var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface)); 3463 caret-color: var(--mat-form-field-filled-caret-color, var(--mat-sys-primary)); 3464} 3465.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder { 3466 color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); 3467} 3468.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder { 3469 color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); 3470} 3471.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder { 3472 color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); 3473} 3474.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder { 3475 color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); 3476} 3477.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input { 3478 color: var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface)); 3479 caret-color: var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary)); 3480} 3481.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder { 3482 color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); 3483} 3484.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder { 3485 color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); 3486} 3487.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder { 3488 color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); 3489} 3490.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder { 3491 color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); 3492} 3493.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input { 3494 caret-color: var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error)); 3495} 3496.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input { 3497 caret-color: var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error)); 3498} 3499.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input { 3500 color: var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 3501} 3502.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input { 3503 color: var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 3504} 3505@media (forced-colors: active) { 3506 .mdc-text-field--disabled .mdc-text-field__input { 3507 background-color: Window; 3508 } 3509} 3510 3511.mdc-text-field--filled { 3512 height: 56px; 3513 border-bottom-right-radius: 0; 3514 border-bottom-left-radius: 0; 3515 border-top-left-radius: var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small)); 3516 border-top-right-radius: var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small)); 3517} 3518.mdc-text-field--filled:not(.mdc-text-field--disabled) { 3519 background-color: var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant)); 3520} 3521.mdc-text-field--filled.mdc-text-field--disabled { 3522 background-color: var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent)); 3523} 3524 3525.mdc-text-field--outlined { 3526 height: 56px; 3527 overflow: visible; 3528 padding-right: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))); 3529 padding-left: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px); 3530} 3531[dir=rtl] .mdc-text-field--outlined { 3532 padding-right: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px); 3533 padding-left: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))); 3534} 3535 3536.mdc-floating-label { 3537 position: absolute; 3538 left: 0; 3539 transform-origin: left top; 3540 line-height: 1.15rem; 3541 text-align: left; 3542 text-overflow: ellipsis; 3543 white-space: nowrap; 3544 cursor: text; 3545 overflow: hidden; 3546 will-change: transform; 3547} 3548[dir=rtl] .mdc-floating-label { 3549 right: 0; 3550 left: auto; 3551 transform-origin: right top; 3552 text-align: right; 3553} 3554.mdc-text-field .mdc-floating-label { 3555 top: 50%; 3556 transform: translateY(-50%); 3557 pointer-events: none; 3558} 3559.mdc-notched-outline .mdc-floating-label { 3560 display: inline-block; 3561 position: relative; 3562 max-width: 100%; 3563} 3564.mdc-text-field--outlined .mdc-floating-label { 3565 left: 4px; 3566 right: auto; 3567} 3568[dir=rtl] .mdc-text-field--outlined .mdc-floating-label { 3569 left: auto; 3570 right: 4px; 3571} 3572.mdc-text-field--filled .mdc-floating-label { 3573 left: 16px; 3574 right: auto; 3575} 3576[dir=rtl] .mdc-text-field--filled .mdc-floating-label { 3577 left: auto; 3578 right: 16px; 3579} 3580.mdc-text-field--disabled .mdc-floating-label { 3581 cursor: default; 3582} 3583@media (forced-colors: active) { 3584 .mdc-text-field--disabled .mdc-floating-label { 3585 z-index: 1; 3586 } 3587} 3588.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label { 3589 display: none; 3590} 3591.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label { 3592 color: var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant)); 3593} 3594.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label { 3595 color: var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary)); 3596} 3597.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):h
3597over .mdc-floating-label { 3598 color: var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant)); 3599} 3600.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label { 3601 color: var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 3602} 3603.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label { 3604 color: var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error)); 3605} 3606.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label { 3607 color: var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error)); 3608} 3609.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label { 3610 color: var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container)); 3611} 3612.mdc-text-field--filled .mdc-floating-label { 3613 font-family: var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font)); 3614 font-size: var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size)); 3615 font-weight: var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight)); 3616 letter-spacing: var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking)); 3617} 3618.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label { 3619 color: var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant)); 3620} 3621.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label { 3622 color: var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary)); 3623} 3624.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label { 3625 color: var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface)); 3626} 3627.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label { 3628 color: var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 3629} 3630.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label { 3631 color: var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error)); 3632} 3633.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label { 3634 color: var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error)); 3635} 3636.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label { 3637 color: var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container)); 3638} 3639.mdc-text-field--outlined .mdc-floating-label { 3640 font-family: var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font)); 3641 font-size: var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size)); 3642 font-weight: var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight)); 3643 letter-spacing: var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking)); 3644} 3645 3646.mdc-floating-label--float-above { 3647 cursor: auto; 3648 transform: translateY(-106%) scale(0.75); 3649} 3650.mdc-text-field--filled .mdc-floating-label--float-above { 3651 transform: translateY(-106%) scale(0.75); 3652} 3653.mdc-text-field--outlined .mdc-floating-label--float-above { 3654 transform: translateY(-37.25px) scale(1); 3655 font-size: 0.75rem; 3656} 3657.mdc-notched-outline .mdc-floating-label--float-above { 3658 text-overflow: clip; 3659} 3660.mdc-notched-outline--upgraded .mdc-floating-label--float-above { 3661 max-width: 133.3333333333%; 3662} 3663.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 { 3664 transform: translateY(-34.75px) scale(0.75); 3665} 3666.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 { 3667 font-size: 1rem; 3668} 3669 3670.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after { 3671 margin-left: 1px; 3672 margin-right: 0; 3673 content: "*"; 3674} 3675[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after { 3676 margin-left: 0; 3677 margin-right: 1px; 3678} 3679 3680.mdc-notched-outline { 3681 display: flex; 3682 position: absolute; 3683 top: 0; 3684 right: 0; 3685 left: 0; 3686 box-sizing: border-box; 3687 width: 100%; 3688 max-width: 100%; 3689 height: 100%; 3690 text-align: left; 3691 pointer-events: none; 3692} 3693[dir=rtl] .mdc-notched-outline { 3694 text-align: right; 3695} 3696.mdc-text-field--outlined .mdc-notched-outline { 3697 z-index: 1; 3698} 3699 3700.mat-mdc-notch-piece { 3701 box-sizing: border-box; 3702 height: 100%; 3703 pointer-events: none; 3704 border: none; 3705 border-top: 1px solid; 3706 border-bottom: 1px solid; 3707} 3708.mdc-text-field--focused .mat-mdc-notch-piece { 3709 border-width: 2px; 3710} 3711.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece { 3712 border-color: var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline)); 3713 border-width: var(--mat-form-field-outlined-outline-width, 1px); 3714} 3715.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):h
3715over .mat-mdc-notch-piece { 3716 border-color: var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface)); 3717} 3718.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece { 3719 border-color: var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary)); 3720} 3721.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece { 3722 border-color: var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 3723} 3724.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece { 3725 border-color: var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error)); 3726} 3727.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 { 3728 border-color: var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container)); 3729} 3730.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece { 3731 border-color: var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error)); 3732} 3733.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece { 3734 border-width: var(--mat-form-field-outlined-focus-outline-width, 2px); 3735} 3736 3737.mdc-notched-outline__leading { 3738 border-left: 1px solid; 3739 border-right: none; 3740 border-top-right-radius: 0; 3741 border-bottom-right-radius: 0; 3742 border-top-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); 3743 border-bottom-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); 3744} 3745.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading { 3746 width: max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))); 3747} 3748[dir=rtl] .mdc-notched-outline__leading { 3749 border-left: none; 3750 border-right: 1px solid; 3751 border-bottom-left-radius: 0; 3752 border-top-left-radius: 0; 3753 border-top-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); 3754 border-bottom-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); 3755} 3756 3757.mdc-notched-outline__trailing { 3758 flex-grow: 1; 3759 border-left: none; 3760 border-right: 1px solid; 3761 border-top-left-radius: 0; 3762 border-bottom-left-radius: 0; 3763 border-top-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); 3764 border-bottom-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); 3765} 3766[dir=rtl] .mdc-notched-outline__trailing { 3767 border-left: 1px solid; 3768 border-right: none; 3769 border-top-right-radius: 0; 3770 border-bottom-right-radius: 0; 3771 border-top-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); 3772 border-bottom-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); 3773} 3774 3775.mdc-notched-outline__notch { 3776 flex: 0 0 auto; 3777 width: auto; 3778} 3779.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch { 3780 max-width: min(var(--mat-form-field-notch-max-width, 100%), calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2)); 3781} 3782.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch { 3783 max-width: min(100%, calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2)); 3784} 3785.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch { 3786 padding-top: 1px; 3787} 3788.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch { 3789 padding-top: 2px; 3790} 3791.mdc-notched-outline--notched .mdc-notched-outline__notch { 3792 padding-left: 0; 3793 padding-right: 8px; 3794 border-top: none; 3795} 3796[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch { 3797 padding-left: 8px; 3798 padding-right: 0; 3799} 3800.mdc-notched-outline--no-label .mdc-notched-outline__notch { 3801 display: none; 3802} 3803 3804.mdc-line-ripple::before, .mdc-line-ripple::after { 3805 position: absolute; 3806 bottom: 0; 3807 left: 0; 3808 width: 100%; 3809 border-bottom-style: solid; 3810 content: ""; 3811} 3812.mdc-line-ripple::before { 3813 z-index: 1; 3814 border-bottom-width: var(--mat-form-field-filled-active-indicator-height, 1px); 3815} 3816.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before { 3817 border-bottom-color: var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant)); 3818} 3819.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):h
3819over .mdc-line-ripple::before { 3820 border-bottom-color: var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface)); 3821} 3822.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before { 3823 border-bottom-color: var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 3824} 3825.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before { 3826 border-bottom-color: var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error)); 3827} 3828.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before { 3829 border-bottom-color: var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container)); 3830} 3831.mdc-line-ripple::after { 3832 transform: scaleX(0); 3833 opacity: 0; 3834 z-index: 2; 3835} 3836.mdc-text-field--filled .mdc-line-ripple::after { 3837 border-bottom-width: var(--mat-form-field-filled-focus-active-indicator-height, 2px); 3838} 3839.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after { 3840 border-bottom-color: var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary)); 3841} 3842.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after { 3843 border-bottom-color: var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error)); 3844} 3845 3846.mdc-line-ripple--active::after { 3847 transform: scaleX(1); 3848 opacity: 1; 3849} 3850 3851.mdc-line-ripple--deactivating::after { 3852 opacity: 0; 3853} 3854 3855.mdc-text-field--disabled { 3856 pointer-events: none; 3857} 3858 3859.mat-mdc-form-field-textarea-control { 3860 vertical-align: middle; 3861 resize: vertical; 3862 box-sizing: border-box; 3863 height: auto; 3864 margin: 0; 3865 padding: 0; 3866 border: none; 3867 overflow: auto; 3868} 3869 3870.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control { 3871 -moz-osx-font-smoothing: grayscale; 3872 -webkit-font-smoothing: antialiased; 3873 font: inherit; 3874 letter-spacing: inherit; 3875 text-decoration: inherit; 3876 text-transform: inherit; 3877 border: none; 3878} 3879 3880.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label { 3881 -moz-osx-font-smoothing: grayscale; 3882 -webkit-font-smoothing: antialiased; 3883 line-height: normal; 3884 pointer-events: all; 3885 will-change: auto; 3886} 3887 3888.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label { 3889 cursor: inherit; 3890} 3891 3892.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input, 3893.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control { 3894 height: auto; 3895} 3896 3897.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color] { 3898 height: 23px; 3899} 3900 3901.mat-mdc-text-field-wrapper { 3902 height: auto; 3903 flex: auto; 3904 will-change: auto; 3905} 3906 3907.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper { 3908 padding-left: 0; 3909 --mat-mdc-form-field-label-offset-x: -16px; 3910} 3911 3912.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper { 3913 padding-right: 0; 3914} 3915 3916[dir=rtl] .mat-mdc-text-field-wrapper { 3917 padding-left: 16px; 3918 padding-right: 16px; 3919} 3920[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper { 3921 padding-left: 0; 3922} 3923[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper { 3924 padding-right: 0; 3925} 3926 3927.mat-form-field-disabled .mdc-text-field__input::placeholder { 3928 color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 3929} 3930.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder { 3931 color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 3932} 3933.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder { 3934 color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 3935} 3936.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder { 3937 color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 3938} 3939 3940.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder { 3941 transition-delay: 40ms; 3942 transition-duration: 110ms; 3943 opacity: 1; 3944} 3945 3946.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label { 3947 left: auto; 3948 right: auto; 3949} 3950 3951.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input { 3952 display: inline-block; 3953} 3954 3955.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch { 3956 padding-top: 0; 3957} 3958 3959.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 { 3960 border-left: 1px solid transparent; 3961} 3962 3963[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 { 3964 border-left: none; 3965 border-right: 1px solid transparent; 3966} 3967 3968.mat-mdc-form-field-infix { 3969 min-height: var(--mat-form-field-container-height, 56px); 3970 padding-top: var(--mat-form-field-filled-with-label-container-padding-top, 24px); 3971 padding-bottom: var(--mat-form-field-filled-with-label-container-padding-bottom, 8px); 3972} 3973.mdc-text-field--outlined .mat-mdc-form-field-infix, .mdc-text-field--no-label .mat-mdc-form-field-infix { 3974 padding-top: var(--mat-form-field-container-vertical-padding, 16px); 3975 padding-bottom: var(--mat-form-field-container-vertical-padding, 16px); 3976} 3977 3978.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label { 3979 top: calc(var(--mat-form-field-container-height, 56px) / 2); 3980} 3981 3982.mdc-text-field--filled .mat-mdc-floating-label { 3983 display: var(--mat-form-field-filled-label-display, block); 3984} 3985 3986.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above { 3987 --mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) 3988 scale(var(--mat-mdc-form-field-floating-label-scale, 0.75)); 3989 transform: var(--mat-mdc-form-field-label-transform); 3990} 3991 3992@keyframes _mat-form-field-subscript-animation { 3993 from { 3994 opacity: 0; 3995 transform: translateY(-5px); 3996 } 3997 to { 3998 opacity: 1; 3999 transform: translateY(0); 4000 } 4001} 4002.mat-mdc-form-field-subscript-wrapper { 4003 box-sizing: border-box; 4004 width: 100%; 4005 position: relative; 4006} 4007 4008.mat-mdc-form-field-hint-wrapper, 4009.mat-mdc-form-field-error-wrapper { 4010 position: absolute; 4011 top: 0; 4012 left: 0; 4013 right: 0; 4014 padding: 0 16px; 4015 opacity: 1; 4016 transform: translateY(0); 4017 animation: _mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2); 4018} 4019 4020.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper, 4021.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper { 4022 position: static; 4023} 4024 4025.mat-mdc-form-field-bottom-align::before { 4026 content: ""; 4027 display: inline-block; 4028 height: 16px; 4029} 4030 4031.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before { 4032 content: unset; 4033} 4034 4035.mat-mdc-form-field-hint-end { 4036 order: 1; 4037} 4038 4039.mat-mdc-form-field-hint-wrapper { 4040 display: flex; 4041} 4042 4043.mat-mdc-form-field-hint-spacer { 4044 flex: 1 0 1em; 4045} 4046 4047.mat-mdc-form-field-error { 4048 display: block; 4049 color: var(--mat-form-field-error-text-color, var(--mat-sys-error)); 4050} 4051 4052.mat-mdc-form-field-subscript-wrapper, 4053.mat-mdc-form-field-bottom-align::before { 4054 -moz-osx-font-smoothing: grayscale; 4055 -webkit-font-smoothing: antialiased; 4056 font-family: var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font)); 4057 line-height: var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height)); 4058 font-size: var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size)); 4059 letter-spacing: var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking)); 4060 font-weight: var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight)); 4061} 4062 4063.mat-mdc-form-field-focus-overlay { 4064 top: 0; 4065 left: 0; 4066 right: 0; 4067 bottom: 0; 4068 position: absolute; 4069 opacity: 0; 4070 pointer-events: none; 4071 background-color: var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface)); 4072} 4073.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay { 4074 opacity: var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 4075} 4076.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay { 4077 opacity: var(--mat-form-field-focus-state-layer-opacity, 0); 4078} 4079 4080select.mat-mdc-form-field-input-control { 4081 -moz-appearance: none; 4082 -webkit-appearance: none; 4083 background-color: transparent; 4084 display: inline-flex; 4085 box-sizing: border-box; 4086} 4087select.mat-mdc-form-field-input-control:not(:disabled) { 4088 cursor: pointer; 4089} 4090select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option { 4091 color: var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10)); 4092} 4093select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled { 4094 color: var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent)); 4095} 4096 4097.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after {
4098 content: ""; 4099 width: 0; 4100 height: 0; 4101 border-left: 5px solid transparent; 4102 border-right: 5px solid transparent; 4103 border-top: 5px solid; 4104 position: absolute; 4105 right: 0; 4106 top: 50%; 4107 margin-top: -2.5px; 4108 pointer-events: none; 4109 color: var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant)); 4110} 4111[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after { 4112 right: auto; 4113 left: 0; 4114} 4115.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after { 4116 color: var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary)); 4117} 4118.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after { 4119 color: var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 4120} 4121.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control { 4122 padding-right: 15px; 4123} 4124[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control { 4125 padding-right: 0; 4126 padding-left: 15px; 4127} 4128 4129@media (forced-colors: active) { 4130 .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper { 4131 outline: solid 1px; 4132 } 4133} 4134@media (forced-colors: active) { 4135 .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper { 4136 outline-color: GrayText; 4137 } 4138} 4139 4140@media (forced-colors: active) { 4141 .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper { 4142 outline: dashed 3px; 4143 } 4144} 4145 4146@media (forced-colors: active) { 4147 .mat-mdc-form-field.mat-focused .mdc-notched-outline { 4148 border: dashed 3px; 4149 } 4150} 4151 4152.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] { 4153 line-height: 1; 4154} 4155.mat-mdc-form-field-input-control::-webkit-datetime-edit { 4156 line-height: 1; 4157 padding: 0; 4158 margin-bottom: -2px; 4159} 4160 4161.mat-mdc-form-field { 4162 --mat-mdc-form-field-floating-label-scale: 0.75; 4163 display: inline-flex; 4164 flex-direction: column; 4165 min-width: 0; 4166 text-align: left; 4167 -moz-osx-font-smoothing: grayscale; 4168 -webkit-font-smoothing: antialiased; 4169 font-family: var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font)); 4170 line-height: var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)); 4171 font-size: var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size)); 4172 letter-spacing: var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking)); 4173 font-weight: var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight)); 4174} 4175.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above { 4176 font-size: calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale)); 4177} 4178.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above { 4179 font-size: var(--mat-form-field-outlined-label-text-populated-size); 4180} 4181[dir=rtl] .mat-mdc-form-field { 4182 text-align: right; 4183} 4184 4185.mat-mdc-form-field-flex { 4186 display: inline-flex; 4187 align-items: baseline; 4188 box-sizing: border-box; 4189 width: 100%; 4190} 4191 4192.mat-mdc-text-field-wrapper { 4193 width: 100%; 4194 z-index: 0; 4195} 4196 4197.mat-mdc-form-field-icon-prefix, 4198.mat-mdc-form-field-icon-suffix { 4199 align-self: center; 4200 line-height: 0; 4201 pointer-events: auto; 4202 position: relative; 4203 z-index: 1; 4204} 4205.mat-mdc-form-field-icon-prefix > .mat-icon, 4206.mat-mdc-form-field-icon-suffix > .mat-icon { 4207 padding: 0 12px; 4208 box-sizing: content-box; 4209} 4210 4211.mat-mdc-form-field-icon-prefix { 4212 color: var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant)); 4213} 4214.mat-form-field-disabled .mat-mdc-form-field-icon-prefix { 4215 color: var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 4216} 4217 4218.mat-mdc-form-field-icon-suffix { 4219 color: var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant)); 4220} 4221.mat-form-field-disabled .mat-mdc-form-field-icon-suffix { 4222 color: var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 4223} 4224.mat-form-field-invalid .mat-mdc-form-field-icon-suffix { 4225 color: var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error)); 4226} 4227.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix { 4228 color: var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container)); 4229} 4230.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix { 4231 color: var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error)); 4232} 4233 4234.mat-mdc-form-field-icon-prefix, 4235[dir=rtl] .mat-mdc-form-field-icon-suffix { 4236 padding: 0 4px 0 0; 4237} 4238 4239.mat-mdc-form-field-icon-suffix, 4240[dir=rtl] .mat-mdc-form-field-icon-prefix { 4241 padding: 0 0 0 4px; 4242} 4243 4244.mat-mdc-form-field-subscript-wrapper .mat-icon, 4245.mat-mdc-form-field label .mat-icon { 4246 width: 1em; 4247 height: 1em; 4248 font-size: inherit; 4249} 4250 4251.mat-mdc-form-field-infix { 4252 flex: auto; 4253 min-width: 0; 4254 width: 180px; 4255 position: relative; 4256 box-sizing: border-box; 4257} 4258.mat-mdc-form-field-infix:has(textarea[cols]) { 4259 width: auto; 4260} 4261 4262.mat-mdc-form-field .mdc-notched-outline__notch { 4263 margin-left: -1px; 4264 -webkit-clip-path: inset(-9em -999em -9em 1px); 4265 clip-path: inset(-9em -999em -9em 1px); 4266} 4267[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch { 4268 margin-left: 0; 4269 margin-right: -1px; 4270 -webkit-clip-path: inset(-9em 1px -9em -999em); 4271 clip-path: inset(-9em 1px -9em -999em); 4272} 4273 4274.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label { 4275 transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1); 4276} 4277.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input { 4278 transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1); 4279} 4280.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder { 4281 transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1); 4282} 4283.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder { 4284 transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1); 4285} 4286.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder { 4287 transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1); 4288} 4289.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder { 4290 transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1); 4291} 4292.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder { 4293 transition-delay: 40ms; 4294 transition-duration: 110ms; 4295} 4296.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder { 4297 transition-delay: 40ms; 4298 transition-duration: 110ms; 4299} 4300.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder { 4301 transition-delay: 40ms; 4302 transition-duration: 110ms; 4303} 4304.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder { 4305 transition-delay: 40ms; 4306 transition-duration: 110ms; 4307} 4308.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before { 4309 transition-duration: 75ms; 4310} 4311.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after { 4312 transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1); 4313} 4314.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper, 4315.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper { 4316 animation-duration: 300ms; 4317} 4318 4319.mdc-notched-outline .mdc-floating-label { 4320 max-width: calc(100% + 1px); 4321} 4322 4323.mdc-notched-outline--upgraded .mdc-floating-label--float-above { 4324 max-width: calc(133.3333333333% + 1px); 4325} 4326`],encapsulation:2})}return n})();var Ei$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Dn$1,Jn,ei,it$2]})}return n})();var Ah=["panel"],Rh=["*"];function Fh(n,r){if(n&1&&(md$2(0,"div",1,0),h_$1(2),yd$2()),n&2){let e=r.id,t=d_$1();x_$1(t._classList),xy("mat-mdc-autocomplete-visible",t.showPanel)("mat-mdc-autocomplete-hidden",!t.showPanel)("mat-autocomplete-panel-animations-enabled",!t._animationsDisabled)("mat-primary",t._color==="primary")("mat-accent",t._color==="accent")("mat-warn",t._color==="warn"),vy("id",t.id),ly("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e));}}var Mr=class{source;option;constructor(r,e){this.source=r,this.option=e;}},Al$1=new I$4("mat-autocomplete-default-options",{providedIn:"root",factory:()=>
4326({autoActiveFirstOption:false,autoSelectActiveOption:false,hideSingleSelectionIndicator:false,requireSelection:false,hasBackdrop:false})}),x0$1=(()=>{class n{_changeDetectorRef=g$4(Od$2);_elementRef=g$4(Vt$3);_defaults=g$4(Al$1);_animationsDisabled=ct$1();_activeOptionChanges=W$4.EMPTY;_keyManager;showPanel=false;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=false;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck();}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=false;optionSelected=new kt$3;opened=new kt$3;closed=new kt$3;optionActivated=new kt$3;set classList(e){this._classList=e,this._elementRef.nativeElement.className="";}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties();}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck();}id=g$4(re$4).getId("mat-autocomplete-");inertGroups;constructor(){let e=g$4(_$7);this.inertGroups=e?.SAFARI||false,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??false;}ngAfterContentInit(){this._keyManager=new ne$4(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null});}),this._setVisibility();}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe();}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e);}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck();}_emitSelectEvent(e){let t=new Mr(this,e);this.optionSelected.emit(t);}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_skipPredicate(){return false}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,ei,5)(a,Ii$2,5),t&2){let o;m_$1(o=y_$1())&&(i.options=o),m_$1(o=y_$1())&&(i.optionGroups=o);}},viewQuery:function(t,i){if(t&1&&by(Et$3,7)(Ah,5),t&2){let a;m_$1(a=y_$1())&&(i.template=a.first),m_$1(a=y_$1())&&(i.panel=a.first);}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",tM$1],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",tM$1],requireSelection:[2,"requireSelection","requireSelection",tM$1],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",tM$1],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",tM$1]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[tS([{provide:Si,useExisting:n}])],ngContentSelectors:Rh,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(t,i){t&1&&(p_$1(),ty$1(0,Fh,3,17,"ng-template"));},styles:[`div.mat-mdc-autocomplete-panel { 4327 width: 100%; 4328 max-height: 256px; 4329 visibility: hidden; 4330 transform-origin: center top; 4331 overflow: auto; 4332 padding: 8px 0; 4333 box-sizing: border-box; 4334 position: relative; 4335 border-radius: var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small)); 4336 box-shadow: var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)); 4337 background-color: var(--mat-autocomplete-background-color, var(--mat-sys-surface-container)); 4338} 4339@media (forced-colors: active) { 4340 div.mat-mdc-autocomplete-panel { 4341 outline: solid 1px; 4342 } 4343} 4344.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel { 4345 border-top-left-radius: 0; 4346 border-top-right-radius: 0; 4347} 4348.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel { 4349 border-bottom-left-radius: 0; 4350 border-bottom-right-radius: 0; 4351 transform-origin: center bottom; 4352} 4353div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible { 4354 visibility: visible; 4355} 4356 4357div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden, 4358.cdk-overlay-pane:has(> .mat-mdc-autocomplete-hidden) { 4359 visibility: hidden; 4360 pointer-events: none; 4361} 4362 4363@keyframes _mat-autocomplete-enter { 4364 from { 4365 opacity: 0; 4366 transform: scaleY(0.8); 4367 } 4368 to { 4369 opacity: 1; 4370 transform: none; 4371 } 4372} 4373.mat-autocomplete-panel-animations-enabled { 4374 animation: _mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1); 4375} 4376 4377mat-autocomplete { 4378 display: none; 4379} 4380`],encapsulation:2})}return n})();var Oh={provide:Fe$1,useExisting:ns(()=>Vh),multi:true};var Ph=new I$4("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$4(Ee$4);return ()=>$t$3(n)}}),Vh=(()=>{class n{_environmentInjector=g$4(pe$6);_element=g$4(Vt$3);_injector=g$4(Ee$4);
4380_viewContainerRef=g$4(Ct$6);_zone=g$4(q$3);_changeDetectorRef=g$4(Od$2);_dir=g$4(qe$4,{optional:true});_formField=g$4(kt$1,{optional:true,host:true});_viewportRuler=g$4(G$3);_scrollStrategy=g$4(Ph);_renderer=g$4(qo$1);_animationsDisabled=ct$1();_defaults=g$4(Al$1,{optional:true});_overlayRef=null;_portal;_componentDestroyed=false;_initialized=new ye$5;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=false;_closingActionsSubscription;_viewportSubscription=W$4.EMPTY;_breakpointObserver=g$4(Zt$3);_handsetLandscapeSubscription=W$4.EMPTY;_canOpenOnNextFocus=true;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new ye$5;_overlayPanelClass=Ft$2(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus();};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=false;_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler);}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition());}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=true,this._destroyPanel(),this._closeKeyEventStream.complete();}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=false;openPanel(){this._openPanelInternal();}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit();}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=false,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=false,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges());}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition();}get panelClosingActions(){return WD(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Yt$5(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Yt$5(()=>this._overlayAttached)):ki$3()).pipe(ve$4(e=>e instanceof rn?e:null))}optionSelections=aE(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(Jf(e),Bi$1(()=>WD(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(Bi$1(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new R$4(e=>{let t=a=>{let o=F$5(a),l=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,f=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&o!==this._element.nativeElement&&!this._hasFocus()&&(!l||!l.contains(o))&&(!f||!f.contains(o))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(o)&&e.next(a);},i=[this._renderer.listen("document","click",t),this._renderer.listen("document","auxclick",t),this._renderer.listen("document","touchend",t)];return ()=>{i.forEach(a=>a());}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e));}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this._element.nativeElement.disabled=e;}_handleKeydown(e){let t=e,i=t.keyCode,a=Ye$4(t);if(i===27&&!a&&t.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&i===13&&this.panelOpen&&!a)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){let o=this.autocomplete._keyManager.activeItem,l=i===38||i===40;i===9||l&&!a&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):l&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(l||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pe
4380ndingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)));}}_handleInput(e){let t=e.target,i=t.value;if(t.type==="number"&&(i=i==""?null:parseFloat(i)),this._previousValue!==i){if(this._previousValue=i,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(i),!i)this._clearPreviousSelectedOption(null,false);else if(this.panelOpen&&!this.autocomplete.requireSelection){let a=this.autocomplete.options?.find(o=>o.selected);if(a){let o=this._getDisplayValue(a.value);i!==o&&a.deselect(false);}}if(this._canOpen()&&this._hasFocus()){let a=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(a);}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(true)):this._canOpenOnNextFocus=true;}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal();}_hasFocus(){return Xt$4()===this._element.nativeElement}_floatLabel(e=false){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=true);}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=false);}_subscribeToClosingActions(){let e=new R$4(i=>{Jg(()=>{i.next();},{injector:this._environmentInjector});}),t=this.autocomplete.options?.changes.pipe(Uf$1(()=>this._positionStrategy.reapplyLastPosition()),Qf$1(0))??ki$3();return WD(e,t).pipe(Bi$1(()=>this._zone.run(()=>{let i=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),i!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),bn$3(1)).subscribe(i=>this._setValueAndClose(i))}_emitOpened(){this.autocomplete.opened.emit();}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null);}_getDisplayValue(e){let t=this.autocomplete;return t&&t.displayWith?t.displayWith(e):e}_assignOptionValue(e){let t=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,false),this._updateNativeInputValue(t??"");}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e;}_setValueAndClose(e){let t=this.autocomplete,i=e?e.source:this._pendingAutoselectedOption;i?(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),t._emitSelectEvent(i),this._element.nativeElement.focus()):t.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel();}_clearPreviousSelectedOption(e,t){this.autocomplete?.options?.forEach(i=>{i!==e&&i.selected&&i.deselect(t);});}_openPanelInternal(e=this._element.nativeElement.value){this._attachOverlay(e),this._floatLabel();}_attachOverlay(e){if(!this.autocomplete)return;let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new B$2(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),t=it$1(this._injector,this._getOverlayConfig()),this._overlayRef=t,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()});}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(qi$2.HandsetLandscape).subscribe(a=>{a.matches?this._positionStrategy.withFlexibleDimensions(true).withGrowAfterOpen(true).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(false).withGrowAfterOpen(false).withViewportMargin(0);})),t&&!t.hasAttached()&&(t.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let i=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=true,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this.panelOpen&&i!==this.panelOpen&&this._emitOpened();}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ye$4(e)||e.keyCode===38&&Ye$4(e,"altKey"))&&(this._pe
vendor: 4,440 bytes, line 4380
4380ndingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault());};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe());}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0;}_getOverlayConfig(){return new N$2({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Kt$3(this._injector,this._getConnectedElement()).withFlexibleDimensions(false).withPush(false).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}],o;this.position==="above"?o=a:this.position==="below"?o=t:o=[...t,...a],e.withPositions(o);}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let t=-1;for(let i=0;i<e.options.length;i++)if(!e.options.get(i).disabled){t=i;break}e._keyManager.setActiveItem(t);}else e._keyManager.setActiveItem(-1);}_canOpen(){let e=this._element.nativeElement;return !e.readOnly&&!e.disabled&&!this.autocompleteDisabled}_scrollToOption(e){let t=this.autocomplete,i=ra$1(e,t.options,t.optionGroups);if(e===0&&i===1)t._setScrollTop(0);else if(t.panel){let a=t.options.toArray()[e];if(a){let o=a._getHostElement(),l=oa$1(o.offsetTop,o.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(l);}}}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(t,i){t&1&&Ey("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),t&2&&ly("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-controls",i.autocompleteDisabled||!i.panelOpen?null:i.autocomplete?.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox");},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",tM$1]},exportAs:["matAutocompleteTrigger"],features:[tS([Oh]),El$2]})}return n})(),w0$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Jt$3,Ei$1,Ht$3,Ei$1,it$2]})}return n})();var Lh=["*"],Ti=(()=>{class n{labelPosition="after";static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,i){t&2&&xy("mdc-form-field--align-en
4380d",i.labelPosition==="before");},inputs:{labelPosition:"labelPosition"},ngContentSelectors:Lh,decls:1,vars:0,template:function(t,i){t&1&&(p_$1(),h_$1(0));},styles:[`.mat-internal-form-field { 4381 -moz-osx-font-smoothing: grayscale; 4382 -webkit-font-smoothing: antialiased; 4383 display: inline-flex; 4384 align-items: center; 4385 vertical-align: middle; 4386} 4387.mat-internal-form-field > label { 4388 margin-left: 0; 4389 margin-right: auto; 4390 padding-left: 4px; 4391 padding-right: 0; 4392 order: 0; 4393} 4394[dir=rtl] .mat-internal-form-field > label { 4395 margin-left: auto; 4396 margin-right: 0; 4397 padding-left: 0; 4398 padding-right: 4px; 4399} 4400 4401.mdc-form-field--align-end > label { 4402 margin-left: auto; 4403 margin-right: 0; 4404 padding-left: 0; 4405 padding-right: 4px; 4406 order: -1; 4407} 4408[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label { 4409 margin-left: 0; 4410 margin-right: auto; 4411 padding-left: 4px; 4412 padding-right: 0; 4413} 4414`],encapsulation:2})}return n})();var Bh=["input"],Nh=["label"],zh=["*"],Sr$1={color:"accent",clickAction:"check-indeterminate",disabledInteractive:false},Hh=new I$4("mat-checkbox-default-options",{providedIn:"root",factory:()=>Sr$1}),nt$1=(function(n){return n[n.Init=0]="Init",n[n.Checked=1]="Checked",n[n.Unchecked=2]="Unchecked",n[n.Indeterminate=3]="Indeterminate",n})(nt$1||{}),Ir=class{source;checked},jh=(()=>{class n{_elementRef=g$4(Vt$3);_changeDetectorRef=g$4(Od$2);_ngZone=g$4(q$3);_animationsDisabled=ct$1();_options=g$4(Hh,{optional:true});focus(){this._inputElement.nativeElement.focus();}_createChangeEvent(e){let t=new Ir;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return `${this.id||this._uniqueId}-input`}required=false;labelPosition="after";name=null;change=new kt$3;indeterminateChange=new kt$3;value;disableRipple=false;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=nt$1.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){g$4(P$3).load(Bn$1);let e=g$4(new nv("tabindex"),{optional:true});this._options=this._options||Sr$1,this.color=this._options.color||Sr$1.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=g$4(re$4).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??false;}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());}_checked=false;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck());}_disabled=false;get indeterminate(){return this._indeterminate()}set indeterminate(e){let t=e!=this._indeterminate();this._indeterminate.set(e),t&&(e?this._transitionCheckState(nt$1.Indeterminate):this._transitionCheckState(this.checked?nt$1.Checked:nt$1.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e);}_indeterminate=Es$1(false);_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!==true?{required:true}:null}registerOnValidatorChange(e){this._validatorChangeFn=e;}_transitionCheckState(e){let t=this._currentCheckState,i=this._getAnimationTargetElement();if(!(t===e||!i)&&(this._currentAnimationClass&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);let a=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(a);},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.set(false),this.indeterminateChange.emit(false);}),this._checked=!this._checked,this._transitionCheckState(this._checked?nt$1.Checked:nt$1.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,t){if(this._animationsDisabled)return "";switch(e){case nt$1.Init:if(t===nt$1.Checked)return this._animationClasses.uncheckedToChecked;if(t==nt$1.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case nt$1.Unchecked:return t===nt$1.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case nt$1.Checked:return t===nt$1.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case nt$1.Indeterminate:return t===nt$1.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return ""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.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 \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-checkbox"]],viewQuery:function(t,i){if(t&1&&by(Bh,5)(Nh,5),t&2){let a;m_$1(a=y_$1())&&(i._inputElement=a.first),m_$1(a=y_$1())&&(i._labelElement=a.first);}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(t,i){t&2&&(vy("id",i.id),ly("tabindex",null)("aria-label",null)("aria-labelledby",null),x_$1(i.color?"mat-"+i.color:"mat-accent"),xy("_mat-animation-noopable",i._animationsDisabled)("mdc-checkbox--disabled",i.disabled)("mat-mdc-checkbox-disabled",i.disabled)("mat-mdc-checkbox-checked",i.checked)("mat-mdc-checkbox-disabled-interactive",i.disabledInteractive));},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",tM$1],ariaControl
vendor: 15,076 bytes, lines 4414-4673
4414s:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",tM$1],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",tM$1],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:nM(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",tM$1],checked:[2,"checked","checked",tM$1],disabled:[2,"disabled","disabled",tM$1],indeterminate:[2,"indeterminate","indeterminate",tM$1]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[tS([{provide:Fe$1,useExisting:ns(()=>n),multi:true},{provide:qe$2,useExisting:n,multi:true}]),El$2],ngContentSelectors:zh,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,i){if(t&1&&(p_$1(),Js$2(0,"div",3),Ey("click",function(o){return i._preventBubblingFromLabel(o)}),Js$2(1,"div",4,0)(3,"div",5),Ey("click",function(){return i._onTouchTargetClick()}),gd$2(),Js$2(4,"input",6,1),Ey("blur",function(){return i._onBlur()})("click",function(){return i._onInputClick()})("change",function(o){return i._onInteractionEvent(o)}),gd$2(),fy(6,"div",7),Js$2(7,"div",8),Xp$2(),Js$2(8,"svg",9),fy(9,"path",10),gd$2(),Jp$2(),fy(10,"div",11),gd$2(),fy(11,"div",12),gd$2(),Js$2(12,"label",13,2),h_$1(14),gd$2()()),t&2){let a=D_$1(2);dy("labelPosition",i.labelPosition),SC(4),xy("mdc-checkbox--selected",i.checked),dy("checked",i.checked)("indeterminate",i.indeterminate)("disabled",i.disabled&&!i.disabledInteractive)("id",i.inputId)("required",i.required)("tabIndex",i.disabled&&!i.disabledInteractive?-1:i.tabIndex),ly("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("aria-checked",i.indeterminate?"mixed":null)("aria-controls",i.ariaControls)("aria-disabled",i.disabled&&i.disabledInteractive?true:null)("aria-expanded",i.ariaExpanded)("aria-owns",i.ariaOwns)("name",i.name)("value",i.value),SC(7),dy("matRippleTrigger",a)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",true),SC(),dy("for",i.inputId);}},dependencies:[jr$1,Ti],styles:[`.mdc-checkbox { 4415 display: inline-block; 4416 position: relative; 4417 flex: 0 0 18px; 4418 box-sizing: content-box; 4419 width: 18px; 4420 height: 18px; 4421 line-height: 0; 4422 white-space: nowrap; 4423 cursor: pointer; 4424 vertical-align: bottom; 4425 padding: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2); 4426 margin: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 4427} 4428.mdc-checkbox:hover > .mdc-checkbox__ripple { 4429 opacity: var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 4430 background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface)); 4431} 4432.mdc-checkbox:hover > .mat-mdc-checkbox-ripple > .mat-ripple-element { 4433 background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface)); 4434} 4435.mdc-checkbox .mdc-checkbox__native-control:focus + .mdc-checkbox__ripple { 4436 opacity: var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 4437 background-color: var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface)); 4438} 4439.mdc-checkbox .mdc-checkbox__native-control:focus ~ .mat-mdc-checkbox-ripple .mat-ripple-element { 4440 background-color: var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface)); 4441} 4442.mdc-checkbox:active > .mdc-checkbox__native-control + .mdc-checkbox__ripple { 4443 opacity: var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 4444 background-color: var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary)); 4445} 4446.mdc-checkbox:active > .mdc-checkbox__native-control ~ .mat-mdc-checkbox-ripple .mat-ripple-element { 4447 background-color: var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary)); 4448} 4449.mdc-checkbox:hover > .mdc-checkbox__native-control:checked + .mdc-checkbox__ripple { 4450 opacity: var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 4451 background-color: var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary)); 4452} 4453.mdc-checkbox:hover > .mdc-checkbox__native-control:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element { 4454 background-color: var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary)); 4455} 4456.mdc-checkbox .mdc-checkbox__native-control:focus:checked + .mdc-checkbox__ripple { 4457 opacity: var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 4458 background-color: var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary)); 4459} 4460.mdc-checkbox .mdc-checkbox__native-control:focus:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element { 4461 background-color: var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary)); 4462} 4463.mdc-checkbox:active > .mdc-checkbox__native-control:checked + .mdc-checkbox__ripple { 4464 opacity: var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 4465 background-color: var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface)); 4466} 4467.mdc-checkbox:active > .mdc-checkbox__native-control:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element { 4468 background-color: var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface)); 4469} 4470.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control ~ .mat-mdc-checkbox-ripple .mat-ripple-element, 4471.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control + .mdc-checkbox__ripple { 4472 background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface)); 4473} 4474.mdc-checkbox .mdc-checkbox__native-control { 4475 position: absolute; 4476 margin: 0; 4477 padding: 0; 4478 opacity: 0; 4479 cursor: inherit; 4480 z-index: 1; 4481 width: var(--mat-checkbox-state-layer-size, 40px); 4482 height: var(--mat-checkbox-state-layer-size, 40px); 4483 top: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 4484 right: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 4485 left: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 4486} 4487 4488.mdc-checkbox--disabled { 4489 cursor: default; 4490 pointer-events: none; 4491} 4492 4493.mdc-checkbox__background { 4494 display: inline-flex; 4495 position: absolute; 4496 align-items: center; 4497 justify-content: center; 4498 box-sizing: border-box; 4499 width: 18px; 4500 height: 18px; 4501 border: 2px solid currentColor; 4502 border-radius: 2px; 4503 background-color: transparent; 4504 pointer-events: none; 4505 will-change: background-color, border-color; 4506 transition: background-color 90ms cubic-bezier(0.4, 0, 0.6, 1), border-color 90ms cubic-bezier(0.4, 0, 0.6, 1); 4507 -webkit-print-color-adjust: exact; 4508 color-adjust: exact; 4509 border-color: var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant)); 4510 top: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2); 4511 left: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2); 4512} 4513 4514.mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background, 4515.mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background { 4516 border-color: var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary)); 4517 background-color: var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary)); 4518} 4519 4520.mdc-checkbox--disabled .mdc-checkbox__background { 4521 border-color: var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 4522} 4523@media (forced-colors: active) { 4524 .mdc-checkbox--disabled .mdc-checkbox__background { 4525 border-color: GrayText; 4526 } 4527} 4528 4529.mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background, 4530.mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background { 4531 background-color: var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 4532 border-color: transparent; 4533} 4534@media (forced-colors: active) { 4535 .mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background, 4536 .mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background { 4537 border-color: GrayText; 4538 } 4539} 4540 4541.mdc-checkbox:hover > .mdc-checkbox__native-control:not(:checked) ~ .mdc-checkbox__background, 4542.mdc-checkbox:hover > .mdc-checkbox__native-control:not(:indeterminate) ~ .mdc-checkbox__background { 4543 border-color: var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface)); 4544 background-color: transparent; 4545} 4546 4547.mdc-checkbox:hover > .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background, 4548.mdc-checkbox:hover > .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background { 4549 border-color: var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary)); 4550 background-color: var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary)); 4551} 4552 4553.mdc-checkbox__native-control:focus:focus:not(:checked) ~ .mdc-checkbox__background, 4554.mdc-checkbox__native-control:focus:focus:not(:indeterminate) ~ .mdc-checkbox__background { 4555 border-color: var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface)); 4556} 4557 4558.mdc-checkbox__native-control:focus:focus:checked ~ .mdc-checkbox__background, 4559.mdc-checkbox__native-control:focus:focus:indeterminate ~ .mdc-checkbox__background { 4560 border-color: var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary)); 4561 background-color: var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary)); 4562} 4563 4564.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover > .mdc-checkbox__native-control ~ .mdc-checkbox__background, 4565.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus ~ .mdc-checkbox__background, 4566.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background { 4567 border-color: var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 4568} 4569@media (forced-colors: active) { 4570 .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover > .mdc-checkbox__native-control ~ .mdc-checkbox__background, 4571 .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus ~ .mdc-checkbox__background, 4572 .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background { 4573 border-color: GrayText; 4574 } 4575} 4576.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background, 4577.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background { 4578 background-color: var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 4579 border-color: transparent; 4580} 4581 4582.mdc-checkbox__checkmark { 4583 position: absolute; 4584 top: 0; 4585 right: 0; 4586 bottom: 0; 4587 left: 0; 4588 width: 100%; 4589 opacity: 0; 4590 transition: opacity 180ms cubic-bezier(0.4, 0, 0.6, 1); 4591 color: var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary)); 4592} 4593@media (forced-colors: active) { 4594 .mdc-checkbox__checkmark { 4595 color: CanvasText; 4596 } 4597} 4598 4599.mdc-checkbox--disabled .mdc-checkbox__checkmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark { 4600 color: var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface)); 4601} 4602@media (forced-colors: active) { 4603 .mdc-checkbox--disabled .mdc-checkbox__checkmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark { 4604 color: GrayText; 4605 } 4606} 4607 4608.mdc-checkbox__checkmark-path { 4609 transition: stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1); 4610 stroke: currentColor; 4611 stroke-width: 3.12px; 4612 stroke-dashoffset: 29.7833385; 4613 stroke-dasharray: 29.7833385; 4614} 4615 4616.mdc-checkbox__mixedmark { 4617 width: 100%; 4618 height: 0; 4619 transform: scaleX(0) rotate(0deg); 4620 border-width: 1px; 4621 border-style: solid; 4622 opacity: 0; 4623 transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1); 4624 border-color: var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary)); 4625} 4626@media (forced-colors: active) { 4627 .mdc-checkbox__mixedmark { 4628 margin: 0 1px; 4629 } 4630} 4631 4632.mdc-checkbox--disabled .mdc-checkbox__mixedmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark { 4633 border-color: var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface)); 4634} 4635@media (forced-colors: active) { 4636 .mdc-checkbox--disabled .mdc-checkbox__mixedmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark { 4637 border-color: GrayText; 4638 } 4639} 4640 4641.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background, 4642.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background, 4643.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background, 4644.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background { 4645 animation-duration: 180ms; 4646 animation-timing-function: linear; 4647} 4648 4649.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path { 4650 animation: mdc-checkbox-unchecked-checked-checkmark-path 180ms linear; 4651 transition: none; 4652} 4653 4654.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark { 4655 animation: mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear; 4656 transition: none; 4657} 4658 4659.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path { 4660 animation: mdc-checkbox-checked-unchecked-checkmark-path 90ms linear; 4661 transition: none; 4662} 4663 4664.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark { 4665 animation: mdc-checkbox-checked-indeterminate-checkmark 90ms linear; 4666 transition: none; 4667} 4668.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark { 4669 animation: mdc-checkbox-checked-indeterminate-mixedmark 90ms linear; 4670 transition: none; 4671} 4672 4673.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark {
4674 animation: mdc-checkbox-indeterminate-checked-checkmark 500ms linear; 4675 transition: none; 4676} 4677.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark { 4678 animation: mdc-checkbox-indeterminate-checked-mixedmark 500ms linear; 4679 transition: none; 4680} 4681 4682.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark { 4683 animation: mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear; 4684 transition: none; 4685} 4686 4687.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background, 4688.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background { 4689 transition: border-color 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1); 4690} 4691.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path, 4692.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path { 4693 stroke-dashoffset: 0; 4694} 4695 4696.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__checkmark { 4697 transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1), transform 180ms cubic-bezier(0, 0, 0.2, 1); 4698 opacity: 1; 4699} 4700.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__mixedmark { 4701 transform: scaleX(1) rotate(-45deg); 4702} 4703 4704.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__checkmark { 4705 transform: rotate(45deg); 4706 opacity: 0; 4707 transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1); 4708} 4709.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__mixedmark { 4710 transform: scaleX(1) rotate(0deg); 4711 opacity: 1; 4712} 4713 4714@keyframes mdc-checkbox-unchecked-checked-checkmark-path { 4715 0%, 50% { 4716 stroke-dashoffset: 29.7833385; 4717 } 4718 50% { 4719 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 4720 } 4721 100% { 4722 stroke-dashoffset: 0; 4723 } 4724} 4725@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark { 4726 0%, 68.2% { 4727 transform: scaleX(0); 4728 } 4729 68.2% { 4730 animation-timing-function: cubic-bezier(0, 0, 0, 1); 4731 } 4732 100% { 4733 transform: scaleX(1); 4734 } 4735} 4736@keyframes mdc-checkbox-checked-unchecked-checkmark-path { 4737 from { 4738 animation-timing-function: cubic-bezier(0.4, 0, 1, 1); 4739 opacity: 1; 4740 stroke-dashoffset: 0; 4741 } 4742 to { 4743 opacity: 0; 4744 stroke-dashoffset: -29.7833385; 4745 } 4746} 4747@keyframes mdc-checkbox-checked-indeterminate-checkmark { 4748 from { 4749 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 4750 transform: rotate(0deg); 4751 opacity: 1; 4752 } 4753 to { 4754 transform: rotate(45deg); 4755 opacity: 0; 4756 } 4757} 4758@keyframes mdc-checkbox-indeterminate-checked-checkmark { 4759 from { 4760 animation-timing-function: cubic-bezier(0.14, 0, 0, 1); 4761 transform: rotate(45deg); 4762 opacity: 0; 4763 } 4764 to { 4765 transform: rotate(360deg); 4766 opacity: 1; 4767 } 4768} 4769@keyframes mdc-checkbox-checked-indeterminate-mixedmark { 4770 from { 4771 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 4772 transform: rotate(-45deg); 4773 opacity: 0; 4774 } 4775 to { 4776 transform: rotate(0deg); 4777 opacity: 1; 4778 } 4779} 4780@keyframes mdc-checkbox-indeterminate-checked-mixedmark { 4781 from { 4782 animation-timing-function: cubic-bezier(0.14, 0, 0, 1); 4783 transform: rotate(0deg); 4784 opacity: 1; 4785 } 4786 to { 4787 transform: rotate(315deg); 4788 opacity: 0; 4789 } 4790} 4791@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark { 4792 0% { 4793 animation-timing-function: linear; 4794 transform: scaleX(1); 4795 opacity: 1; 4796 } 4797 32.8%, 100% { 4798 transform: scaleX(0); 4799 opacity: 0; 4800 } 4801} 4802.mat-mdc-checkbox { 4803 display: inline-block; 4804 position: relative; 4805 -webkit-tap-highlight-color: transparent; 4806} 4807.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mat-mdc-checkbox-touch-target, 4808.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__native-control, 4809.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__ripple, 4810.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mat-mdc-checkbox-ripple::before, 4811.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background, 4812.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark, 4813.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path, 4814.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__mixedmark { 4815 transition: none !important; 4816 animation: none !important; 4817} 4818.mat-mdc-checkbox label { 4819 cursor: pointer; 4820} 4821.mat-mdc-checkbox .mat-internal-form-field { 4822 color: var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface)); 4823 font-family: var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font)); 4824 line-height: var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height)); 4825 font-size: var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size)); 4826 letter-spacing: var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking)); 4827 font-weight: var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight)); 4828} 4829.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive { 4830 pointer-events: auto; 4831} 4832.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input { 4833 cursor: default; 4834} 4835.mat-mdc-checkbox.mat-mdc-checkbox-disabled label { 4836 cursor: default; 4837 color: var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 4838} 4839@media (forced-colors: active) { 4840 .mat-mdc-checkbox.mat-mdc-checkbox-disabled label { 4841 color: GrayText; 4842 } 4843} 4844.mat-mdc-checkbox label:empty { 4845 display: none; 4846} 4847.mat-mdc-checkbox .mdc-checkbox__ripple { 4848 opacity: 0; 4849} 4850 4851.mat-mdc-checkbox .mat-mdc-checkbox-ripple, 4852.mdc-checkbox__ripple { 4853 top: 0; 4854 left: 0; 4855 right: 0; 4856 bottom: 0; 4857 position: absolute; 4858 border-radius: 50%; 4859 pointer-events: none; 4860} 4861.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty), 4862.mdc-checkbox__ripple:not(:empty) { 4863 transform: translateZ(0); 4864} 4865 4866.mat-mdc-checkbox-ripple .mat-ripple-element { 4867 opacity: 0.1; 4868} 4869 4870.mat-mdc-checkbox-touch-target { 4871 position: absolute; 4872 top: 50%; 4873 left: 50%; 4874 height: var(--mat-checkbox-touch-target-size, 48px); 4875 width: var(--mat-checkbox-touch-target-size, 48px); 4876 transform: translate(-50%, -50%); 4877 display: var(--mat-checkbox-touch-target-display, block); 4878} 4879 4880.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before { 4881 border-radius: 50%; 4882} 4883 4884.mdc-checkbox__native-control:focus-visible ~ .mat-focus-indicator::before { 4885 content: ""; 4886} 4887`],encapsulation:2})}return n})(),H0=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[jh,it$2]})}return n})();var Er$1=new I$4("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>g$4(gn$2)}),Ai$2="Method not implemented",Ue$2=class Ue{locale;_localeChanges=new ye$5;localeChanges=this._localeChanges;setTime(r,e,t,i){throw new Error(Ai$2)}getHours(r){throw new Error(Ai$2)}getMinutes(r){throw new Error(Ai$2)}getSeconds(r){throw new Error(Ai$2)}parseTime(r,e){throw new Error(Ai$2)}addSeconds(r,e){throw new Error(Ai$2)}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return r==null||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next();}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}compareTime(r,e){return this.getHours(r)-this.getHours(e)||this.getMinutes(r)-this.getMinutes(e)||this.get
4887Seconds(r)-this.getSeconds(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),i=this.isValid(e);return t&&i?!this.compareDate(r,e):t==i}return r==e}sameTime(r,e){if(r&&e){let t=this.isValid(r),i=this.isValid(e);return t&&i?!this.compareTime(r,e):t==i}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}},ti=new I$4("mat-date-formats");var Gh=["tooltip"],Uh=20;var Wh=new I$4("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$4(Ee$4);return ()=>$t$3(n,{scrollThrottle:Uh})}}),qh=new I$4("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var Rl$1="tooltip-panel",Qh={passive:true},Yh=8,Kh=8,$h=24,Xh=200,on=(()=>{class n{_elementRef=g$4(Vt$3);_ngZone=g$4(q$3);_platform=g$4(_$7);_ariaDescriber=g$4(pr$2);_focusMonitor=g$4(Ot);_dir=g$4(qe$4);_injector=g$4(Ee$4);_viewContainerRef=g$4(Ct$6);_mediaMatcher=g$4(St$3);_document=g$4(Y$3);_renderer=g$4(qo$1);_animationsDisabled=ct$1();_defaultOptions=g$4(qh,{optional:true});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=false;_disabled=false;_tooltipClass;_viewInitialized=false;_pointerExitEventsInitialized=false;_tooltipComponent=Fl$1;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=false;_dirSubscribed=false;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()));}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Er$2(e),this._detach(),this._overlayRef=null;}get disabled(){return this._disabled}set disabled(e){let t=Er$2(e);this._disabled!==t&&(this._disabled=t,t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message));}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Jt$4(e);}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Jt$4(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay);}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let t=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(t);}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass);}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new ye$5;_isDestroyed=false;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=Yh;}ngAfterViewInit(){this._viewInitialized=true,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Hf$1(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0));});}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(t=>t()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=true,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e);}show(e=this.showDelay,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(t);this._detach(),this._portal=this._portal||new Z$1(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=i.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(Hf$1(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e);}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._cancelPendingAnimations(),this._detach()));}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e);}_isTooltipVisible(){return !!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;
4887if((!this.positionAtOrigin||!e)&&o._origin instanceof Vt$3)return this._overlayRef;this._detach();}let t=this._injector.get(tt$1).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${Rl$1}`,a=Kt$3(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(false).withViewportMargin(this._viewportMargin).withScrollableContainers(t).withPopoverLocation("global");return a.positionChanges.pipe(Hf$1(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0));}),this._overlayRef=it$1(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(Wh)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Hf$1(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Hf$1(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Hf$1(this._destroyed)).subscribe(o=>{o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0));}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=true,this._dir.change.pipe(Hf$1(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef);})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null;}_updatePosition(e){let t=e.getConfig().positionStrategy,i=this._getOrigin(),a=this._getOverlayPosition();t.withPositions([this._addOffset(D$6(D$6({},i.main),a.main)),this._addOffset(D$6(D$6({},i.fallback),a.fallback))]);}_addOffset(e){let t=Kh,i=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=i?-t:t:e.originX==="end"&&(e.offsetX=i?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",t=this.position,i;t=="above"||t=="below"?i={originX:"center",originY:t=="above"?"top":"bottom"}:t=="before"||t=="left"&&e||t=="right"&&!e?i={originX:"start",originY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(i={originX:"end",originY:"center"});let{x:a,y:o}=this._invertPosition(i.originX,i.originY);return {main:i,fallback:{originX:a,originY:o}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",t=this.position,i;t=="above"?i={overlayX:"center",overlayY:"bottom"}:t=="below"?i={overlayX:"center",overlayY:"top"}:t=="before"||t=="left"&&e||t=="right"&&!e?i={overlayX:"end",overlayY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(i={overlayX:"start",overlayY:"center"});let{x:a,y:o}=this._invertPosition(i.overlayX,i.overlayY);return {main:i,fallback:{overlayX:a,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Jg(()=>{this._tooltipInstance&&this._overlayRef.updatePosition();},{injector:this._injector}));}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck());}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:i,originY:a}=e,o;if(t==="center"?this._dir&&this._dir.value==="rtl"?o=i==="end"?"left":"right":o=i==="start"?"left":"right":o=t==="bottom"&&a==="top"?"above":"below",o!==this._currentPosition){let l=this._overlayRef;if(l){let f=`${this._cssClassPrefix}-${Rl$1}-`;l.removePanelClass(f+this._currentPosition),l.addPanelClass(f+o);}this._currentPosition=o;}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let t=e.targetTouches?.[0],i=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i);},this._defaultOptions?.touchLongPressShowDelay??a);})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t);}));}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=true,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let t=e.relatedTarget;(!t||!this._overlayRef?.overlayElement.contains(t))&&this.hide();}),this._addListener("wheel",e=>
4887{if(this._isTooltipVisible()){let t=this._document.elementFromPoint(e.clientX,e.clientY),i=this._elementRef.nativeElement;t!==i&&!i.contains(t)&&this.hide();}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay);};this._addListener("touchend",e),this._addListener("touchcancel",e);}}}_addListener(e,t){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,t,Qh));}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?true:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:false}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,i=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(e==="on"||!t.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent";}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=true,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Jg({write:()=>{this._ariaDescriptionPending=false,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip");}},{injector:this._injector}));}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!Ye$4(e):true;static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,i){t&2&&xy("mat-mdc-tooltip-disabled",i.disabled);},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return n})(),Fl$1=(()=>{class n{_changeDetectorRef=g$4(Od$2);_elementRef=g$4(Vt$3);_isMultiline=false;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=ct$1();_tooltip;_closeOnInteraction=false;_isVisible=false;_onHide=new ye$5;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(true),this._showTimeoutId=void 0;},e);}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(false),this._hideTimeoutId=void 0;},e);}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null;}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0);}_markForCheck(){this._changeDetectorRef.markForCheck();}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(false));}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck();}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>$h&&e.width>=Xh}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation);}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0;}_finalizeAnimation(e){e?this._closeOnInteraction=true:this.isVisible()||this._onHide.next();}_toggleVisibility(e){let t=this._tooltip.nativeElement,i=this._showAnimation,a=this._hideAnimation;if(t.classList.remove(e?a:i),t.classList.add(e?i:a),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let o=getComputedStyle(t);(o.getPropertyValue("animation-duration")==="0s"||o.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=true);}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(t,i){if(t&1&&by(Gh,7),t&2){let a;m_$1(a=y_$1())&&(i._tooltip=a.first);}},hostAttrs:["aria-hidden","true"],hostBindings:function(t,i){t&1&&Ey("mouseleave",function(o){return i._handleMouseLeave(o)});},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(t,i){t&1&&(md$2(0,"div",1,0),Iy("animationend",function(o){return i._handleAnimationEnd(o)}),md$2(2,"div",2),H_$1(3),yd$2()()),t&2&&(x_$1(i.tooltipClass),xy("mdc-tooltip--multiline",i._isMultiline),SC(3),jy(i.message));},styles:[`.mat-mdc-tooltip { 4888 position: relative; 4889 transform: scale(0); 4890 display: inline-flex; 4891} 4892.mat-mdc-tooltip::before { 4893 content: ""; 4894 top: 0; 4895 right: 0; 4896 bottom: 0; 4897 left: 0; 4898 z-index: -1; 4899 position: absolute; 4900} 4901.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before { 4902 top: -8px; 4903} 4904.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before { 4905 bottom: -8px; 4906} 4907.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before { 4908 left: -8px; 4909} 4910.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before { 4911 right: -8px; 4912} 4913.mat-mdc-tooltip._mat-animation-noopable { 4914 animation: none; 4915 transform: scale(1); 4916} 4917 4918.mat-mdc-tooltip-surface { 4919 word-break: normal;
4920 overflow-wrap: anywhere; 4921 padding: 4px 8px; 4922 min-width: 40px; 4923 max-width: 200px; 4924 min-height: 24px; 4925 max-height: 40vh; 4926 box-sizing: border-box; 4927 overflow: hidden; 4928 text-align: center; 4929 will-change: transform, opacity; 4930 background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface)); 4931 color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface)); 4932 border-radius: var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small)); 4933 font-family: var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font)); 4934 font-size: var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size)); 4935 font-weight: var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight)); 4936 line-height: var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height)); 4937 letter-spacing: var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking)); 4938} 4939.mat-mdc-tooltip-surface::before { 4940 position: absolute; 4941 box-sizing: border-box; 4942 width: 100%; 4943 height: 100%; 4944 top: 0; 4945 left: 0; 4946 border: 1px solid transparent; 4947 border-radius: inherit; 4948 content: ""; 4949 pointer-events: none; 4950} 4951.mdc-tooltip--multiline .mat-mdc-tooltip-surface { 4952 text-align: left; 4953} 4954[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface { 4955 text-align: right; 4956} 4957 4958.mat-mdc-tooltip-panel { 4959 line-height: normal; 4960} 4961.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive { 4962 pointer-events: none; 4963} 4964 4965@keyframes mat-mdc-tooltip-show { 4966 0% { 4967 opacity: 0; 4968 transform: scale(0.8); 4969 } 4970 100% { 4971 opacity: 1; 4972 transform: scale(1); 4973 } 4974} 4975@keyframes mat-mdc-tooltip-hide { 4976 0% { 4977 opacity: 1; 4978 transform: scale(1); 4979 } 4980 100% { 4981 opacity: 0; 4982 transform: scale(0.8); 4983 } 4984} 4985.mat-mdc-tooltip-show { 4986 animation: mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards; 4987} 4988 4989.mat-mdc-tooltip-hide { 4990 animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards; 4991} 4992`],encapsulation:2})}return n})();var ma$1=new I$4("MAT_INPUT_VALUE_ACCESSOR");var Ct$1=(()=>{class n{isErrorState(e,t){return !!(e&&e.invalid&&(e.touched||t&&t.submitted))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var Lt$1=class Lt{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=false;matcher;constructor(r,e,t,i,a){this._defaultMatcher=r,this.ngControl=e,this._parentFormGroup=t,this._parentForm=i,this._stateChanges=a;}updateErrorState(){let r=this.errorState,e=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,a=t?.isErrorState(i,e)??false;a!==r&&(this.errorState=a,this._stateChanges.next());}};function Zh(n,r){return this._trackRow(r)}var zl$1=(n,r)=>r.id;function Jh(n,r){if(n&1&&(md$2(0,"tr",0)(1,"td",3),H_$1(2),yd$2()()),n&2){let e=d_$1();SC(),Ny("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ly("colspan",e.numCols),SC(),Ed$2(" ",e.label," ");}}function ep$1(n,r){if(n&1&&(md$2(0,"td",3),H_$1(1),yd$2()),n&2){let e=d_$1(2);Ny("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ly("colspan",e._firstRowOffset),SC(),Ed$2(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ");}}function tp$1(n,r){if(n&1){let e=i_$1();md$2(0,"td",6)(1,"button",7),Iy("click",function(i){let a=Vp$2(e).$implicit,o=d_$1(2);return Hp$2(o._cellClicked(a,i))})("focus",function(i){let a=Vp$2(e).$implicit,o=d_$1(2);return Hp$2(o._emitActiveDateChange(a,i))}),md$2(2,"span",8),H_$1(3),yd$2(),py(4,"span",9),yd$2()();}if(n&2){let e=r.$implicit,t=r.$index,i=d_$1().$index,a=d_$1();Ny("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),ly("data-mat-row",i)("data-mat-col",t),SC(),x_$1(e.cssClasses),xy("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",a._isActiveCell(i,t))("mat-calendar-body-range-start",a._isRangeStart(e.compareValue))("mat-calendar-body-range-end",a._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",a._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",a._isComparisonBridgeStart(e.compareValue,i,t))("mat-calendar-body-comparison-bridge-end",a._isComparisonBridgeEnd(e.compareValue,i,t))("mat-calendar-body-comparison-start",a._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-e
4992nd",a._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",a._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",a._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",a._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",a._isInPreview(e.compareValue)),vy("tabIndex",a._isActiveCell(i,t)?0:-1),ly("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",a._isSelected(e.compareValue))("aria-current",a.todayValue===e.compareValue?"date":null)("aria-describedby",a._getDescribedby(e.compareValue)),SC(),xy("mat-calendar-body-selected",a._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",a._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",a.todayValue===e.compareValue),SC(),Ed$2(" ",e.displayValue," ");}}function ip$1(n,r){if(n&1&&(md$2(0,"tr",1),ZT(1,ep$1,2,6,"td",4),XT(2,tp$1,5,49,"td",5,zl$1),yd$2()),n&2){let e=r.$implicit,t=r.$index,i=d_$1();SC(),YT(t===0&&i._firstRowOffset?1:-1),SC(),JT(e);}}function np$1(n,r){if(n&1&&(Js$2(0,"th",2)(1,"span",6),H_$1(2),gd$2(),Js$2(3,"span",3),H_$1(4),gd$2()()),n&2){let e=r.$implicit;SC(2),jy(e.long),SC(2),jy(e.narrow);}}var ap$1=["*"];function rp$1(n,r){}function op$1(n,r){if(n&1){let e=i_$1();Js$2(0,"mat-month-view",4),zy("activeDateChange",function(i){Vp$2(e);let a=d_$1();return W_$1(a.activeDate,i)||(a.activeDate=i),Hp$2(i)}),Ey("_userSelection",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._dateSelected(i))})("dragStarted",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._dragStarted(i))})("dragEnded",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._dragEnded(i))}),gd$2();}if(n&2){let e=d_$1();$y("activeDate",e.activeDate),dy("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag);}}function sp$1(n,r){if(n&1){let e=i_$1();Js$2(0,"mat-year-view",5),zy("activeDateChange",function(i){Vp$2(e);let a=d_$1();return W_$1(a.activeDate,i)||(a.activeDate=i),Hp$2(i)}),Ey("monthSelected",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._monthSelectedInYearView(i))})("selectedChange",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._goToDateInView(i,"month"))}),gd$2();}if(n&2){let e=d_$1();$y("activeDate",e.activeDate),dy("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass);}}function lp$1(n,r){if(n&1){let e=i_$1();Js$2(0,"mat-multi-year-view",6),zy("activeDateChange",function(i){Vp$2(e);let a=d_$1();return W_$1(a.activeDate,i)||(a.activeDate=i),Hp$2(i)}),Ey("yearSelected",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._yearSelectedInMultiYearView(i))})("selectedChange",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._goToDateInView(i,"year"))}),gd$2();}if(n&2){let e=d_$1();$y("activeDate",e.activeDate),dy("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass);}}function dp$1(n,r){}var cp=["button"],mp$1=[[["","matDatepickerToggleIcon",""]]],hp$1=["[matDatepickerToggleIcon]"];function pp$1(n,r){n&1&&(Xp$2(),Js$2(0,"svg",2),fy(1,"path",3),gd$2());}var up$1=[[["input","matStartDate",""]],[["input","matEndDate",""]]],_p$1=["input[matStartDate]","input[matEndDate]"];var Oi=(()=>{class n{changes=new ye$5;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,t){return `${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return `${e} to ${t}`}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),fp$1=0,ln=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=fp$1++;
4992cssClasses;constructor(r,e,t,i,a,o=r,l){this.value=r,this.displayValue=e,this.ariaLabel=t,this.enabled=i,this.compareValue=o,this.rawValue=l,this.cssClasses=a instanceof Set?Array.from(a):a;}},gp$1={passive:false,capture:true},ha$1={passive:true,capture:true},Ol$1={passive:true},Fi$1=(()=>{class n{_elementRef=g$4(Vt$3);_ngZone=g$4(q$3);_platform=g$4(_$7);_intl=g$4(Oi);_eventCleanups;_skipNextFocus=false;_focusActiveCellAfterViewChecked=false;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=false);}isRange=false;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new kt$3;previewChange=new kt$3;activeDateChange=new kt$3;dragStarted=new kt$3;dragEnded=new kt$3;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=false;_injector=g$4(Ee$4);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=g$4(qo$1),t=g$4(re$4);this._startDateLabelId=t.getId("mat-calendar-body-start-"),this._endDateLabelId=t.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=t.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=t.getId("mat-calendar-body-comparison-end-"),g$4(P$3).load(Bn$1),this._ngZone.runOutsideAngular(()=>{let i=this._elementRef.nativeElement,a=[e.listen(i,"touchmove",this._touchmoveHandler,gp$1),e.listen(i,"mouseenter",this._enterHandler,ha$1),e.listen(i,"focus",this._enterHandler,ha$1),e.listen(i,"mouseleave",this._leaveHandler,ha$1),e.listen(i,"blur",this._leaveHandler,ha$1),e.listen(i,"mousedown",this._mousedownHandler,Ol$1),e.listen(i,"touchstart",this._mousedownHandler,Ol$1)];this._platform.isBrowser&&a.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=a;});}_cellClicked(e,t){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:t});}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t});}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let t=e.numCols,{rows:i,numCols:a}=this;(e.rows||t)&&(this._firstRowOffset=i&&i.length&&i[0].length?a-i[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/a}%`),(t||!this._cellWidth)&&(this._cellWidth=`${100/a}%`);}ngOnDestroy(){this._eventCleanups.forEach(e=>e());}_isActiveCell(e,t){let i=e*this.numCols+t;return e&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(e=true){Jg(()=>{setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=true),t.focus());});},{injector:this._injector});}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=true;}_isRangeStart(e){return Rr$1(e,this.startValue,this.endValue)}_isRangeEnd(e){return Fr(e,this.startValue,this.endValue)}_isInRange(e){return Or(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Rr$1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,i){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return false;let a=this.rows[t][i-1];if(!a){let o=this.rows[t-1];a=o&&o[o.length-1];}return a&&!this._isRangeEnd(a.compareValue)}_isComparisonBridgeEnd(e,t,i){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return false;let a=this.rows[t][i+1];if(!a){let o=this.rows[t+1];a=o&&o[0];}return a&&!this._isRangeStart(a.compareValue)}_isComparisonEnd(e){return Fr(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Or(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Rr$1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return Fr(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Or(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return `${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return `${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=false;return}if(e.target&&this.isRange){let t=this._getCellFromElement(e.target);t&&this._ngZone.run(()=>this.previewChange.emit({value:t.enabled?t:null,event:e}));}};_touchmoveHandler=e=>{if(!this.isRange)return;let t=Pl$1(e),i=t?this._getCellFromElement(t):null;t!==e.target&&(this._didDragSinceMouseDown=true),Ar(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:i?.enabled?i:null,event:e}));};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=true),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})));};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=false;let t=e.target&&this._getCellFromElement(e.target);!t||!this._isInRange(t.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:t.rawValue,event:e});});};_mouseupHandler=e=>{if(!this.isRange)return;let t=Ar(e.target);if(!t){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e});});return}t.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let i=this._getCellFromElement(t);this.dragEnded.emit({value:i?.rawValue??null,event:e});});};_touchendHandler=e=>{let t=Pl$1(e);t&&this._mouseupHandler({target:t});};_getCellFromElement(e){let t=Ar(e);if(t){let i=t.getAttribute("data-mat-row"),a=t.getAttribute("data-mat-col");if(i&&a)return this.rows[parseInt(i)]?.[parseInt(a)]||null}return null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numC
4992ols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[El$2],decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(t,i){t&1&&(ZT(0,Jh,3,6,"tr",0),XT(1,ip$1,4,1,"tr",1,Zh,true),md$2(3,"span",2),H_$1(4),yd$2(),md$2(5,"span",2),H_$1(6),yd$2(),md$2(7,"span",2),H_$1(8),yd$2(),md$2(9,"span",2),H_$1(10),yd$2()),t&2&&(YT(i._firstRowOffset<i.labelMinRequiredCells?0:-1),SC(),JT(i.rows),SC(2),vy("id",i._startDateLabelId),SC(),Ed$2(" ",i.startDateAccessibleName,` 4993`),SC(),vy("id",i._endDateLabelId),SC(),Ed$2(" ",i.endDateAccessibleName,` 4994`),SC(),vy("id",i._comparisonStartDateLabelId),SC(),By(" ",i.comparisonDateAccessibleName," ",i.startDateAccessibleName,` 4995`),SC(),vy("id",i._comparisonEndDateLabelId),SC(),By(" ",i.comparisonDateAccessibleName," ",i.endDateAccessibleName,` 4996`));},styles:[`.mat-calendar-body { 4997 min-width: 224px; 4998} 4999 5000.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { 5001 border-color: var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-sys-primary)); 5002} 5003 5004.mat-calendar-body-label { 5005 height: 0; 5006 line-height: 0; 5007 text-align: start; 5008 padding-left: 4.7142857143%; 5009 padding-right: 4.7142857143%; 5010 font-size: var(--mat-datepicker-calendar-body-label-text-size, var(--mat-sys-title-small-size)); 5011 font-weight: var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-sys-title-small-weight)); 5012 color: var(--mat-datepicker-calendar-body-label-text-color, var(--mat-sys-on-surface)); 5013} 5014 5015.mat-calendar-body-hidden-label { 5016 display: none; 5017} 5018 5019.mat-calendar-body-cell-container { 5020 position: relative; 5021 height: 0; 5022 line-height: 0; 5023} 5024 5025.mat-calendar-body-cell { 5026 position: absolute; 5027 top: 0; 5028 left: 0; 5029 width: 100%; 5030 height: 100%; 5031 background: none; 5032 text-align: center; 5033 outline: none; 5034 margin: 0; 5035 font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font)); 5036 font-size: var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size)); 5037 -webkit-user-select: none; 5038 user-select: none; 5039 cursor: pointer; 5040 outline: none; 5041 border: none; 5042 -webkit-tap-highlight-color: transparent; 5043} 5044.mat-calendar-body-cell::-moz-focus-inner { 5045 border: 0; 5046} 5047 5048.mat-calendar-body-cell::before, 5049.mat-calendar-body-cell::after, 5050.mat-calendar-body-cell-preview { 5051 content: ""; 5052 position: absolute; 5053 top: 5%; 5054 left: 0; 5055 z-index: 0; 5056 box-sizing: border-box; 5057 display: block; 5058 height: 90%; 5059 width: 100%; 5060} 5061 5062.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before, 5063.mat-calendar-body-range-start::after, 5064.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before, 5065.mat-calendar-body-comparison-start::after, 5066.mat-calendar-body-preview-start .mat-calendar-body-cell-preview { 5067 left: 5%; 5068 width: 95%; 5069 border-top-left-radius: 999px; 5070 border-bottom-left-radius: 999px; 5071} 5072[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before, 5073[dir=rtl] .mat-calendar-body-range-start::after, 5074[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before, 5075[dir=rtl] .mat-calendar-body-comparison-start::after, 5076[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview { 5077 left: 0; 5078 border-radius: 0; 5079 border-top-right-radius: 999px; 5080 border-bottom-right-radius: 999px; 5081} 5082
5083.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before, 5084.mat-calendar-body-range-end::after, 5085.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before, 5086.mat-calendar-body-comparison-end::after, 5087.mat-calendar-body-preview-end .mat-calendar-body-cell-preview { 5088 width: 95%; 5089 border-top-right-radius: 999px; 5090 border-bottom-right-radius: 999px; 5091} 5092[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before, 5093[dir=rtl] .mat-calendar-body-range-end::after, 5094[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before, 5095[dir=rtl] .mat-calendar-body-comparison-end::after, 5096[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview { 5097 left: 5%; 5098 border-radius: 0; 5099 border-top-left-radius: 999px; 5100 border-bottom-left-radius: 999px; 5101} 5102 5103[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after, 5104[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after { 5105 width: 95%; 5106 border-top-right-radius: 999px; 5107 border-bottom-right-radius: 999px; 5108} 5109 5110.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after, [dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after, 5111.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after, 5112[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after { 5113 width: 90%; 5114} 5115 5116.mat-calendar-body-in-preview { 5117 color: var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-sys-primary)); 5118} 5119.mat-calendar-body-in-preview .mat-calendar-body-cell-preview { 5120 border-top: dashed 1px; 5121 border-bottom: dashed 1px; 5122} 5123 5124.mat-calendar-body-preview-start .mat-calendar-body-cell-preview { 5125 border-left: dashed 1px; 5126} 5127[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview { 5128 border-left: 0; 5129 border-right: dashed 1px; 5130} 5131 5132.mat-calendar-body-preview-end .mat-calendar-body-cell-preview { 5133 border-right: dashed 1px; 5134} 5135[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview { 5136 border-right: 0; 5137 border-left: dashed 1px; 5138} 5139 5140.mat-calendar-body-disabled { 5141 cursor: default; 5142} 5143.mat-calendar-body-disabled > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { 5144 color: var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 5145} 5146.mat-calendar-body-disabled > .mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { 5147 border-color: var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 5148} 5149@media (forced-colors: active) { 5150 .mat-calendar-body-disabled { 5151 opacity: 0.5; 5152 } 5153} 5154 5155.mat-calendar-body-cell-content { 5156 top: 5%; 5157 left: 5%; 5158 z-index: 1; 5159 display: flex; 5160 align-items: center; 5161 justify-content: center; 5162 box-sizing: border-box; 5163 width: 90%; 5164 height: 90%; 5165 line-height: 1; 5166 border-width: 1px; 5167 border-style: solid; 5168 border-radius: 999px; 5169 color: var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface)); 5170 border-color: var(--mat-datepicker-calendar-date-outline-color, transparent); 5171} 5172.mat-calendar-body-cell-content.mat-focus-indicator { 5173 position: absolute; 5174} 5175@media (forced-colors: active) { 5176 .mat-calendar-body-cell-content { 5177 border: none; 5178 } 5179} 5180 5181.cdk-keyboard-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), .cdk-program-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { 5182 background-color: var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent)); 5183} 5184 5185@media (hover: hover) { 5186 .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { 5187 background-color: var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent)); 5188 } 5189} 5190.mat-calendar-body-selected { 5191 background-color: var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary)); 5192 color: var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary)); 5193} 5194.mat-calendar-body-disabled > .mat-calendar-body-selected { 5195 background-color: var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 5196} 5197.mat-calendar-body-selected.mat-calendar-body-today { 5198 box-shadow: inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary)); 5199} 5200 5201.mat-calendar-body-in-range::before { 5202 background: var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)); 5203} 5204 5205.mat-calendar-body-comparison-identical, 5206.mat-calendar-body-in-comparison-range::before { 5207 background: var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)); 5208} 5209 5210.mat-calendar-body-comparison-identical, 5211.mat-calendar-body-in-comparison-range::before { 5212 background: var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)); 5213} 5214 5215.mat-calendar-body-comparison-bridge-start::before, 5216[dir=rtl] .mat-calendar-body-comparison-bridge-end::before { 5217 background: linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%); 5218} 5219 5220.mat-calendar-body-comparison-bridge-end::before, 5221[dir=rtl] .mat-calendar-body-comparison-bridge-start::before { 5222 background: linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%); 5223} 5224 5225.mat-calendar-body-in-range > .mat-calendar-body-comparison-identical, 5226.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after { 5227 background: var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container)); 5228} 5229 5230.mat-calendar-body-comparison-identical.mat-calendar-body-selected, 5231.mat-calendar-body-in-comparison-range > .mat-calendar-body-selected { 5232 background: var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary)); 5233} 5234 5235@media (forced-colors: active) { 5236 .mat-datepicker-popup:not(:empty), 5237 .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected { 5238 outline: solid 1px; 5239 } 5240 .mat-calendar-body-today { 5241 outline: dotted 1px; 5242 } 5243 .mat-calendar-body-cell::before, 5244 .mat-calendar-body-cell::after, 5245 .mat-calendar-body-selected { 5246 background: none; 5247 } 5248 .mat-calendar-body-in-range::before, 5249 .mat-calendar-body-comparison-bridge-start::before, 5250 .mat-calendar-body-comparison-bridge-end::before { 5251 border-top: solid 1px; 5252 border-bottom: solid 1px; 5253 } 5254 .mat-calendar-body-range-start::before { 5255 border-left: solid 1px; 5256 } 5257 [dir=rtl] .mat-calendar-body-range-start::before { 5258 border-left: 0; 5259 border-right: solid 1px; 5260 } 5261 .mat-calendar-body-range-end::before { 5262 border-right: solid 1px; 5263 } 5264 [dir=rtl] .mat-calendar-body-range-end::before { 5265 border-right: 0; 5266 border-left: solid 1px; 5267 } 5268 .mat-calendar-body-in-comparison-range::before { 5269 border-top: dashed 1px; 5270 border-bottom: dashed 1px; 5271 } 5272 .mat-calendar-body-comparison-start::before { 5273 border-left: dashed 1px; 5274 } 5275 [dir=rtl] .mat-calendar-body-comparison-start::before { 5276 border-left: 0; 5277 border-right: dashed 1px; 5278 }
5279 .mat-calendar-body-comparison-end::before { 5280 border-right: dashed 1px; 5281 } 5282 [dir=rtl] .mat-calendar-body-comparison-end::before { 5283 border-right: 0; 5284 border-left: dashed 1px; 5285 } 5286} 5287`],encapsulation:2})}return n})();function Tr$1(n){return n?.nodeName==="TD"}function Ar(n){let r;return Tr$1(n)?r=n:Tr$1(n.parentNode)?r=n.parentNode:Tr$1(n.parentNode?.parentNode)&&(r=n.parentNode.parentNode),r?.getAttribute("data-mat-row")!=null?r:null}function Rr$1(n,r,e){return e!==null&&r!==e&&n<e&&n===r}function Fr(n,r,e){return r!==null&&r!==e&&n>=r&&n===e}function Or(n,r,e,t){return t&&r!==null&&e!==null&&r!==e&&n>=r&&n<=e}function Pl$1(n){let r=n.changedTouches[0];return document.elementFromPoint(r.clientX,r.clientY)}var Ke$4=class Ke{start;end;_disableStructuralEquivalency;constructor(r,e){this.start=r,this.end=e;}},ii=(()=>{class n{selection;_adapter;_selectionChanged=new ye$5;selectionChanged=this._selectionChanged;constructor(e,t){this.selection=e,this._adapter=t,this.selection=e;}updateSelection(e,t){let i=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:i});}ngOnDestroy(){this._selectionChanged.complete();}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(t){Db();};static \u0275prov=x$3({token:n,factory:n.\u0275fac})}return n})(),bp$1=(()=>{class n extends ii{constructor(e){super(null,e);}add(e){super.updateSelection(e,this);}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new n(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(t){return new(t||n)(M$6(Ue$2))};static \u0275prov=x$3({token:n,factory:n.\u0275fac})}return n})(),vp$1=(()=>{class n extends ii{constructor(e){super(new Ke$4(null,null),e);}add(e){let{start:t,end:i}=this.selection;t==null?t=e:i==null?i=e:(t=e,i=null),super.updateSelection(new Ke$4(t,i),this);}isValid(){let{start:e,end:t}=this.selection;return e==null&&t==null?true:e!=null&&t!=null?this._isValidDateInstance(e)&&this._isValidDateInstance(t)&&this._adapter.compareDate(e,t)<=0:(e==null||this._isValidDateInstance(e))&&(t==null||this._isValidDateInstance(t))}isComplete(){return this.selection.start!=null&&this.selection.end!=null}clone(){let e=new n(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(t){return new(t||n)(M$6(Ue$2))};static \u0275prov=x$3({token:n,factory:n.\u0275fac})}return n})(),Hl$1={provide:ii,useFactory:()=>g$4(ii,{optional:true,skipSelf:true})||new bp$1(g$4(Ue$2))},yp$1={provide:ii,useFactory:()=>g$4(ii,{optional:true,skipSelf:true})||new vp$1(g$4(Ue$2))},pa$1=new I$4("MAT_DATE_RANGE_SELECTION_STRATEGY"),xp$1=(()=>{class n{_dateAdapter;constructor(e){this._dateAdapter=e;}selectionFinished(e,t){let{start:i,end:a}=t;return i==null?i=e:a==null&&e&&this._dateAdapter.compareDate(e,i)>=0?a=e:(i=e,a=null),new Ke$4(i,a)}createPreview(e,t){let i=null,a=null;return t.start&&!t.end&&e&&(i=t.start,a=e),new Ke$4(i,a)}createDrag(e,t,i){let a=t.start,o=t.end;if(!a||!o)return null;let l=this._dateAdapter,f=l.compareDate(a,o)!==0,R=l.getYear(i)-l.getYear(e),G=l.getMonth(i)-l.getMonth(e),re=l.getDate(i)-l.getDate(e);return f&&l.sameDate(e,t.start)?(a=i,l.compareDate(i,o)>0&&(o=l.addCalendarYears(o,R),o=l.addCalendarMonths(o,G),o=l.addCalendarDays(o,re))):f&&l.sameDate(e,t.end)?(o=i,l.compareDate(i,a)<0&&(a=l.addCalendarYears(a,R),a=l.addCalendarMonths(a,G),a=l.addCalendarDays(a,re))):(a=l.addCalendarYears(a,R),a=l.addCalendarMonths(a,G),a=l.addCalendarDays(a,re),o=l.addCalendarYears(o,R),o=l.addCalendarMonths(o,G),o=l.addCalendarDays(o,re)),new Ke$4(a,o)}static \u0275fac=function(t){return new(t||n)(M$6(Ue$2))};static \u0275prov=x$3({token:n,factory:n.\u0275fac})}return n})(),Pr=7,wp$1=0,Vl$1=(()=>{class n{_changeDetectorRef=g$4(Od$2);_dateFormats=g$4(ti,{optional:true});_dateAdapter=g$4(Ue$2,{optional:true});_dir=g$4(qe$4,{optional:true});_rangeStrategy=g$4(pa$1,{optional:true});_rerenderSubscription=W$4.EMPTY;_selectionKeyPressed=false;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init();}_activeDate;get selected(){return this._selected}set selected(e){e instanceof Ke$4?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected);}_selected=null;
5287get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new kt$3;_userSelection=new kt$3;dragStarted=new kt$3;dragEnded=new kt$3;activeDateChange=new kt$3;_matCalendarBody;_monthLabel=Es$1("");_weeks=Es$1([]);_firstWeekOffset=Es$1(0);_rangeStart=Es$1(null);_rangeEnd=Es$1(null);_comparisonRangeStart=Es$1(null);_comparisonRangeEnd=Es$1(null);_previewStart=Es$1(null);_previewEnd=Es$1(null);_isRange=Es$1(false);_todayDate=Es$1(null);_weekdays=Es$1([]);constructor(){g$4(P$3).load(Bt$1),this._activeDate=this._dateAdapter.today();}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Jf(null)).subscribe(()=>this._init());}ngOnChanges(e){let t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview();}ngOnDestroy(){this._rerenderSubscription.unsubscribe();}_dateSelected(e){let t=e.value,i=this._getDateFromDayOfMonth(t),a,o;this._selected instanceof Ke$4?(a=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):a=o=this._getDateInCurrentMonth(this._selected),(a!==t||o!==t)&&this.selectedChange.emit(i),this._userSelection.emit({value:i,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck();}_updateActiveDate(e){let t=e.value,i=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(t),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this._activeDate);}_handleCalendarBodyKeydown(e){let t=this._activeDate,i=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=true,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Ye$4(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault();}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=false);}
5287_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((Pr+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%Pr),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck();}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e);}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked();}_previewChanged({event:e,value:t}){if(this._rangeStrategy){let i=t?t.rawValue:null,a=this._rangeStrategy.createPreview(i,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)),this.activeDrag&&i){let o=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,i,e);o&&(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)));}}}_dragEnded(e){if(this.activeDrag)if(e.value){let t=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:t??null,event:e.event});}else this.dragEnded.emit({value:null,event:e.event});}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map((o,l)=>({long:o,narrow:t[l],id:wp$1++}));this._weekdays.set(a.slice(e).concat(a.slice(0,e)));}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames(),i=[[]];for(let a=0,o=this._firstWeekOffset();a<e;a++,o++){o==Pr&&(i.push([]),o=0);let l=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a+1),f=this._shouldEnableDate(l),R=this._dateAdapter.format(l,this._dateFormats.display.dateA11yLabel),G=this.dateClass?this.dateClass(l,"month"):void 0;i[i.length-1].push(new ln(a+1,t[a],R,f,G,this._getCellCompareValue(l),l));}this._weeks.set(i);}_shouldEnableDate(e){return !!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return !!(e&&t&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){let t=this._dateAdapter.getYear(e),i=this._dateAdapter.getMonth(e),a=this._dateAdapter.getDate(e);return new Date(t,i,a).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof Ke$4?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(true)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(false)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd));}_canSelect(e){return !this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-month-view"]],viewQuery:function(t,i){if(t&1&&by(Fi$1,5),t&2){let a;m_$1(a=y_$1())&&(i._matCalendarBody=a.first);}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[El$2],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(t,i){t&1&&(Js$2(0,"table",0)(1,"thead",1)(2,"tr"),XT(3,np$1,5,2,"th",2,zl$1),gd$2(),Js$2(5,"tr",3),fy(6,"th",4),gd$2()(),Js$2(7,"tbody",5),Ey("selectedValueChange",function(o){return i._dateSelected(o)})("activeDateChange",function(o){return i._updateActiveDate(o)})("previewChange",function(o){return i._previewChanged(o)})("dragStarted",function(o){return i.dragStarted.emit(o)})("dragEnded",function(o){return i._dragEnded(o)})("keyup",function(o){return i._handleCalendarBodyKeyup(o)})("keydown",function(o){return i._handleCalendarBodyKeydown(o)}),gd$2()()),t&2&&(SC(3),JT(i._weekdays()),SC(4),dy("label",i._monthLabel())("rows",i._weeks())("todayValue",i._todayDate(
5287))("startValue",i._rangeStart())("endValue",i._rangeEnd())("comparisonStart",i._comparisonRangeStart())("comparisonEnd",i._comparisonRangeEnd())("previewStart",i._previewStart())("previewEnd",i._previewEnd())("isRange",i._isRange())("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1)("startDateAccessibleName",i.startDateAccessibleName)("endDateAccessibleName",i.endDateAccessibleName));},dependencies:[Fi$1],encapsulation:2})}return n})(),Dt$1=24,Vr=4,Ll$1=(()=>{class n{_changeDetectorRef=g$4(Od$2);_dateAdapter=g$4(Ue$2,{optional:true});_dir=g$4(qe$4,{optional:true});_rerenderSubscription=W$4.EMPTY;_selectionKeyPressed=false;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),jl$1(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init();}_activeDate;get selected(){return this._selected}set selected(e){e instanceof Ke$4?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e);}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate=null;dateFilter;dateClass;selectedChange=new kt$3;yearSelected=new kt$3;activeDateChange=new kt$3;_matCalendarBody;_years=Es$1([]);_todayYear=Es$1(0);_selectedYear=Es$1(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today();}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Jf(null)).subscribe(()=>this._init());}ngOnDestroy(){this._rerenderSubscription.unsubscribe();}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let t=this._dateAdapter.getYear(this._activeDate)-sn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),i=[];for(let a=0,o=[];a<Dt$1;a++)o.push(t+a),o.length==Vr&&(i.push(o.map(l=>this._createCellForYear(l))),o=[]);this._years.set(i),this._changeDetectorRef.markForCheck();}_yearSelected(e){let t=e.value,i=this._dateAdapter.createDate(t,0,1),a=this._getDateFromYear(t);this.yearSelected.emit(i),this.selectedChange.emit(a);}_updateActiveDate(e){let t=e.value,i=this._activeDate;this.activeDate=this._getDateFromYear(t),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate);}_handleCalendarBodyKeydown(e){let t=this._activeDate,i=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Vr);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Vr);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-sn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Dt$1-sn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Dt$1*10:-Dt$1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Dt$1*10:Dt$1);break;case 13:case 32:this._selectionKeyPressed=true;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault();}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=false);}_getActiveCell(){return sn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell();}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked();}_getDateFromYear(e){let t=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),i))}
5287_createCellForYear(e){let t=this._dateAdapter.createDate(e,0,1),i=this._dateAdapter.getYearName(t),a=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new ln(e,i,i,this._shouldEnableYear(e),a)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return false;if(!this.dateFilter)return true;let t=this._dateAdapter.createDate(e,0,1);for(let i=t;this._dateAdapter.getYear(i)==e;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return true;return false}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear.set(null),e instanceof Ke$4){let t=e.start||e.end;t&&this._selectedYear.set(this._dateAdapter.getYear(t));}else e&&this._selectedYear.set(this._dateAdapter.getYear(e));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-multi-year-view"]],viewQuery:function(t,i){if(t&1&&by(Fi$1,5),t&2){let a;m_$1(a=y_$1())&&(i._matCalendarBody=a.first);}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(t,i){t&1&&(Js$2(0,"table",0)(1,"thead",1)(2,"tr"),fy(3,"th",2),gd$2()(),Js$2(4,"tbody",3),Ey("selectedValueChange",function(o){return i._yearSelected(o)})("activeDateChange",function(o){return i._updateActiveDate(o)})("keyup",function(o){return i._handleCalendarBodyKeyup(o)})("keydown",function(o){return i._handleCalendarBodyKeydown(o)}),gd$2()()),t&2&&(SC(4),dy("rows",i._years())("todayValue",i._todayYear())("startValue",i._selectedYear())("endValue",i._selectedYear())("numCols",4)("cellAspectRatio",4/7)("activeCell",i._getActiveCell()));},dependencies:[Fi$1],encapsulation:2})}return n})();function jl$1(n,r,e,t,i){let a=n.getYear(r),o=n.getYear(e),l=Gl$1(n,t,i);return Math.floor((a-l)/Dt$1)===Math.floor((o-l)/Dt$1)}function sn(n,r,e,t){let i=n.getYear(r);return kp$1(i-Gl$1(n,e,t),Dt$1)}function Gl$1(n,r,e){let t=0;return e?t=n.getYear(e)-Dt$1+1:r&&(t=n.getYear(r)),t}function kp$1(n,r){return (n%r+r)%r}var Bl$1=(()=>{class n{_changeDetectorRef=g$4(Od$2);_dateFormats=g$4(ti,{optional:true});_dateAdapter=g$4(Ue$2,{optional:true});_dir=g$4(qe$4,{optional:true});_rerenderSubscription=W$4.EMPTY;_selectionKeyPressed=false;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init();}_activeDate;get selected(){return this._selected}set selected(e){e instanceof Ke$4?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e);}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate=null;dateFilter;dateClass;selectedChange=new kt$3;monthSelected=new kt$3;activeDateChange=new kt$3;_matCalendarBody;_months=Es$1([]);_yearLabel=Es$1("");_todayMonth=Es$1(null);_selectedMonth=Es$1(null);constructor(){this._activeDate=this._dateAdapter.today();}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Jf(null)).subscribe(()=>this._init());}ngOnDestroy(){this._rerenderSubscription.unsubscribe();}_monthSelected(e){let t=e.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(i);let a=this._getDateFromMonth(t);this.selectedChange.emit(a);}_updateActiveDate(e){let t=e.value,i=this._activeDate;this.activeDate=this._getDateFromMonth(t),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate);}_handleCalendarBodyKeydown(e){let t=this._activeDate,i=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=true;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault();}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=false);}
5287_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(i=>this._createCellForMonth(i,e[i])))),this._changeDetectorRef.markForCheck();}_focusActiveCell(){this._matCalendarBody._focusActiveCell();}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked();}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),i))}_createCellForMonth(e,t){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),a=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(i,"year"):void 0;return new ln(e,t.toLocaleUpperCase(),a,this._shouldEnableMonth(e),o)}_shouldEnableMonth(e){let t=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return false;if(!this.dateFilter)return true;let i=this._dateAdapter.createDate(t,e,1);for(let a=i;this._dateAdapter.getMonth(a)==e;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return true;return false}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){let i=this._dateAdapter.getYear(this.maxDate),a=this._dateAdapter.getMonth(this.maxDate);return e>i||e===i&&t>a}return false}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){let i=this._dateAdapter.getYear(this.minDate),a=this._dateAdapter.getMonth(this.minDate);return e<i||e===i&&t<a}return false}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof Ke$4?this._selectedMonth.set(this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end)):this._selectedMonth.set(this._getMonthInCurrentYear(e));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-year-view"]],viewQuery:function(t,i){if(t&1&&by(Fi$1,5),t&2){let a;m_$1(a=y_$1())&&(i._matCalendarBody=a.first);}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(t,i){t&1&&(Js$2(0,"table",0)(1,"thead",1)(2,"tr"),fy(3,"th",2),gd$2()(),Js$2(4,"tbody",3),Ey("selectedValueChange",function(o){return i._monthSelected(o)})("activeDateChange",function(o){return i._updateActiveDate(o)})("keyup",function(o){return i._handleCalendarBodyKeyup(o)})("keydown",function(o){return i._handleCalendarBodyKeydown(o)}),gd$2()()),t&2&&(SC(4),dy("label",i._yearLabel())("rows",i._months())("todayValue",i._todayMonth())("startValue",i._selectedMonth())("endValue",i._selectedMonth())("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",i._dateAdapter.getMonth(i.activeDate)));},dependencies:[Fi$1],encapsulation:2})}return n})(),Ul=(()=>{class n{_intl=g$4(Oi);calendar=g$4(Lr);_dateAdapter=g$4(Ue$2,{optional:true});_dateFormats=g$4(ti,{optional:true});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){g$4(P$3).load(Bt$1);let e=g$4(Od$2);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck();});}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month";}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Dt$1));}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Dt$1));}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):true}nextEnabled(){return !this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,t=this._intl,i=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=i.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=i.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=t.switchToMultiYearViewLabel,this._prevButtonLabel=t.prevMonthLabel,this._nextButtonLabel=t.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=i.getYearName(e.activeDate),this._periodButtonDescription=i.getYearName(e.activeDate),this._periodButtonLabel=t.switchToMonthViewLabel,this._prevButtonLabel=t.prevYearLabel,this._nextButtonLabel=t.nextYearLabel):(this._periodButtonText=t.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=t.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=t.switchToMonthViewLabel,this._prevButtonLabel=t.prevMultiYearLabel,this._nextButtonLabel=t.nextMultiYearLabel);}_isSameView(e,t){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):jl$1(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let t=this._dateAdapter.getYear(this.calendar.activeDate)-sn(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),i=t+Dt$1-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1));return [a,o]}_periodButtonLabelId=g$4(re$4).getId("mat-calendar-period-label-");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ap$1,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-control
5287s"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(t,i){t&1&&(p_$1(),Js$2(0,"div",0)(1,"div",1)(2,"span",2),H_$1(3),gd$2(),Js$2(4,"button",3),Ey("click",function(){return i.currentPeriodClicked()}),Js$2(5,"span",4),H_$1(6),gd$2(),Xp$2(),Js$2(7,"svg",5),fy(8,"polygon",6),gd$2()(),Jp$2(),fy(9,"div",7),h_$1(10),Js$2(11,"button",8),Ey("click",function(){return i.previousClicked()}),Xp$2(),Js$2(12,"svg",9),fy(13,"path",10),gd$2()(),Jp$2(),Js$2(14,"button",11),Ey("click",function(){return i.nextClicked()}),Xp$2(),Js$2(15,"svg",9),fy(16,"path",12),gd$2()()()()),t&2&&(SC(2),dy("id",i._periodButtonLabelId),SC(),jy(i.periodButtonDescription),SC(),ly("aria-label",i.periodButtonLabel)("aria-describedby",i._periodButtonLabelId),SC(2),jy(i.periodButtonText),SC(),xy("mat-calendar-invert",i.calendar.currentView!=="month"),SC(4),dy("disabled",!i.previousEnabled())("matTooltip",i.prevButtonLabel),ly("aria-label",i.prevButtonLabel),SC(3),dy("disabled",!i.nextEnabled())("matTooltip",i.nextButtonLabel),ly("aria-label",i.nextButtonLabel));},dependencies:[zs$1,Fi$2,on],encapsulation:2})}return n})(),Lr=(()=>{class n{_dateAdapter=g$4(Ue$2,{optional:true});_dateFormats=g$4(ti,{optional:true});_changeDetectorRef=g$4(Od$2);_elementRef=g$4(Vt$3);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=false;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof Ke$4?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new kt$3;yearSelected=new kt$3;monthSelected=new kt$3;viewChanged=new kt$3(true);_userSelection=new kt$3;_userDragDrop=new kt$3;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck();}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=true,this._changeDetectorRef.markForCheck(),t&&(this.stateChanges.next(),this.viewChanged.emit(t));}_currentView;_activeDrag=null;stateChanges=new ye$5;constructor(){this._intlChanges=g$4(Oi).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next();});}ngAfterContentInit(){this._calendarHeaderPortal=new Z$1(this.headerComponent||Ul),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView;}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=false,this.focusActiveCell());}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete();}ngOnChanges(e){let t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,i=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,a=t||i||e.dateFilter;if(a&&!a.firstChange){let o=this._getCurrentViewComponent();o&&(this._elementRef.nativeElement.contains(Xt$4())&&(this._moveFocusOnNextTick=true),this._changeDetectorRef.detectChanges(),o._init());}this.stateChanges.next();}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(false);}updateTodaysDate(){this._getCurrentViewComponent()?._init();}_dateSelected(e){let t=e.value;(this.selected instanceof Ke$4||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e);}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e);}_monthSelectedInYearView(e){this.monthSelected.emit(e);}_goToDateInView(e,t){this.activeDate=e,this.currentView=t;}_dragStarted(e){this._activeDrag=e;}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null);}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-calendar"]],viewQuery:function(t,i){if(t&1&&by(Vl$1,5)(Bl$1,5)(Ll$1,5),t&2){let a;m_$1(a=y_$1())&&(i.monthView=a.first),m_$1(a=y_$1())&&(i.yearView=a.first),m_$1(a=y_$1())&&(i.multiYearView=a.first);}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[tS([Hl$1]),El$2],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(t,i){if(t&1&&(ey$1(0,rp$1,0,0,"ng-template",0),Js$2(1,"div",1),ZT(2,op$1,1,11,"mat-month-view",2)(3,sp$1,1,6,"mat-year-view",3)(4,lp$1,1,6,"mat-multi-year-view",3),gd$2()),t&2){let a;dy("cdkPortalOutlet",i._calendarHeaderPortal),SC(2),YT((a=i.currentView)==="month"?2:a==="year"?3:a==="multi-year"?4:-1);}},dependencies:[Yt$2,Gn$1,Vl$1,Bl$1,Ll$1],styles:[`.mat-calendar { 5288 display: block; 5289 line-height: normal; 5290 font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font)); 5291 font-size: var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size)); 5292} 5293 5294.mat-calendar-header { 5295 padding: 8px 8px 0 8px; 5296} 5297 5298.mat-calendar-content { 5299 padding: 0 8px 8px 8px; 5300 outline: none; 5301} 5302
5303.mat-calendar-controls { 5304 display: flex; 5305 align-items: center; 5306 margin: 5% calc(4.7142857143% - 16px); 5307} 5308 5309.mat-calendar-spacer { 5310 flex: 1 1 auto; 5311} 5312 5313.mat-calendar-period-button { 5314 min-width: 0; 5315 margin: 0 8px; 5316 font-size: var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size)); 5317 font-weight: var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight)); 5318 --mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant)); 5319} 5320 5321.mat-calendar-arrow { 5322 display: inline-block; 5323 width: 10px; 5324 height: 5px; 5325 margin: 0 0 0 5px; 5326 vertical-align: middle; 5327 fill: var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant)); 5328} 5329.mat-calendar-arrow.mat-calendar-invert { 5330 transform: rotate(180deg); 5331} 5332[dir=rtl] .mat-calendar-arrow { 5333 margin: 0 5px 0 0; 5334} 5335@media (forced-colors: active) { 5336 .mat-calendar-arrow { 5337 fill: CanvasText; 5338 } 5339} 5340 5341.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled), 5342.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled) { 5343 color: var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant)); 5344} 5345[dir=rtl] .mat-calendar-previous-button, 5346[dir=rtl] .mat-calendar-next-button { 5347 transform: rotate(180deg); 5348} 5349 5350.mat-calendar-table { 5351 border-spacing: 0; 5352 border-collapse: collapse; 5353 width: 100%; 5354} 5355 5356.mat-calendar-table-header th { 5357 text-align: center; 5358 padding: 0 0 8px 0; 5359 color: var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant)); 5360 font-size: var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size)); 5361 font-weight: var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight)); 5362} 5363 5364.mat-calendar-table-header-divider { 5365 position: relative; 5366 height: 1px; 5367} 5368.mat-calendar-table-header-divider::after { 5369 content: ""; 5370 position: absolute; 5371 top: 0; 5372 left: -8px; 5373 right: -8px; 5374 height: 1px; 5375 background: var(--mat-datepicker-calendar-header-divider-color, transparent); 5376} 5377 5378.mat-calendar-body-cell-content::before { 5379 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1); 5380} 5381 5382.mat-calendar-body-cell:focus-visible .mat-focus-indicator::before { 5383 content: ""; 5384} 5385`],encapsulation:2})}return n})(),Cp$1=new I$4("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$4(Ee$4);return ()=>$t$3(n)}}),Wl$1=(()=>{class n{_elementRef=g$4(Vt$3);_animationsDisabled=ct$1();_changeDetectorRef=g$4(Od$2);_globalModel=g$4(ii);_dateAdapter=g$4(Ue$2);_ngZone=g$4(q$3);_rangeSelectionStrategy=g$4(pa$1,{optional:true});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=false;_animationDone=new ye$5;_isAnimating=false;_closeButtonText;_closeButtonFocused=false;_actionsPortal=null;_dialogLabelId=null;constructor(){if(g$4(P$3).load(Bt$1),this._closeButtonText=g$4(Oi).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,t=g$4(qo$1);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[t.listen(e,"animationstart",this._handleAnimationEvent),t.listen(e,"animationend",this._handleAnimationEvent),t.listen(e,"animationcancel",this._handleAnimationEvent)]);}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck();}),this._calendar.focusActiveCell();}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete();}_handleUserSelection(e){let t=this._model.selection,i=e.value,a=t instanceof Ke$4;if(a&&this._rangeSelectionStrategy){let o=this._rangeSelectionStrategy.selectionFinished(i,t,e.event);this._model.updateSelection(o,this);}else i&&(a||!this._dateAdapter.sameDate(i,t))&&this._model.add(i);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close();}_handleUserDragDrop(e){this._model.updateSelection(e.value,this);}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next();},200));}_handleAnimationEvent=e=>{let t=this._elementRef.nativeElement;e.target!==t||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",t.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next());};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this);}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(t,i){if(t&1&&by(Lr,5),t&2){let a;m_$1(a=y_$1())&&(i._calendar=a.first);}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(t,i){t&2&&(x_$1(i.color?"mat-"+i.color:""),xy("mat-datepicker-content-touch",i.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!i._animationsDisabled));},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(t,i){t&1&&(Js$2(0,"div",0)(1,"mat-calendar",1),Ey("yearSelected",function(o){return i.datepicker._selectYear(o)})("monthSelected",function(o){return i.datepicker._selectMonth(o)})("viewChanged",function(o){return i.datepicker._viewChanged(o)})("_userSelection",function(o){return i._handleUserSelection(o)})("_userDragDrop",function(o){return i._handleUserDragDrop(o)}),gd$2(),ey$1(2,dp$1,0,0,"ng-template",2),Js$2(3,"button",3),Ey("focus",function(){return i._closeButtonF
5385ocused=true})("blur",function(){return i._closeButtonFocused=false})("click",function(){return i.datepicker.close()}),H_$1(4),gd$2()()),t&2&&(xy("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),ly("aria-modal",true)("aria-labelledby",i._dialogLabelId??void 0),SC(),x_$1(i.datepicker.panelClass),dy("id",i.datepicker.id)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("startDateAccessibleName",i.startDateAccessibleName)("endDateAccessibleName",i.endDateAccessibleName),SC(),dy("cdkPortalOutlet",i._actionsPortal),SC(),xy("cdk-visually-hidden",!i._closeButtonFocused),dy("color",i.color||"primary"),SC(),jy(i._closeButtonText));},dependencies:[ri$1,Lr,Yt$2,zs$1],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { 5386 from { 5387 opacity: 0; 5388 transform: scaleY(0.8); 5389 } 5390 to { 5391 opacity: 1; 5392 transform: none; 5393 } 5394} 5395@keyframes _mat-datepicker-content-dialog-enter { 5396 from { 5397 opacity: 0; 5398 transform: scale(0.8); 5399 } 5400 to { 5401 opacity: 1; 5402 transform: none; 5403 } 5404} 5405@keyframes _mat-datepicker-content-exit { 5406 from { 5407 opacity: 1; 5408 } 5409 to { 5410 opacity: 0; 5411 } 5412} 5413.mat-datepicker-content { 5414 display: block; 5415 background-color: var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high)); 5416 color: var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface)); 5417 box-shadow: var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)); 5418 border-radius: var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large)); 5419} 5420.mat-datepicker-content.mat-datepicker-content-animations-enabled { 5421 animation: _mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1); 5422} 5423.mat-datepicker-content .mat-calendar { 5424 width: 296px; 5425 height: 354px; 5426} 5427.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar { 5428 height: auto; 5429} 5430.mat-datepicker-content .mat-datepicker-close-button { 5431 position: absolute; 5432 top: 100%; 5433 left: 0; 5434 margin-top: 8px; 5435} 5436.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button { 5437 display: none; 5438} 5439 5440.mat-datepicker-content-container { 5441 display: flex; 5442 flex-direction: column; 5443 justify-content: space-between; 5444} 5445 5446.mat-datepicker-content-touch { 5447 display: block; 5448 max-height: 80vh; 5449 box-shadow: var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)); 5450 border-radius: var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large)); 5451 position: relative; 5452 overflow: visible; 5453 min-height: fit-content; 5454} 5455.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled { 5456 animation: _mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1); 5457} 5458.mat-datepicker-content-touch .mat-datepicker-content-container { 5459 min-height: 312px; 5460 max-height: 788px; 5461 min-width: 250px; 5462 max-width: 750px; 5463} 5464.mat-datepicker-content-touch .mat-calendar { 5465 width: 100%; 5466 height: auto; 5467} 5468 5469.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled { 5470 animation: _mat-datepicker-content-exit 100ms linear; 5471} 5472 5473@media all and (orientation: landscape) { 5474 .mat-datepicker-content-touch .mat-datepicker-content-container { 5475 width: 64vh; 5476 height: 80vh; 5477 } 5478} 5479@media all and (orientation: portrait) { 5480 .mat-datepicker-content-touch .mat-datepicker-content-container { 5481 width: 80vw; 5482 height: 100vw; 5483 } 5484 .mat-datepicker-content-touch .mat-datepicker-content-container-with-actions { 5485 height: 115vw; 5486 } 5487} 5488`],encapsulation:2})}return n})(),ua$1=(()=>{class n{_injector=g$4(Ee$4);
5488_viewContainerRef=g$4(Ct$6);_dateAdapter=g$4(Ue$2,{optional:true});_dir=g$4(qe$4,{optional:true});_model=g$4(ii);_animationsDisabled=ct$1();_scrollStrategy=g$4(Cp$1);_inputStateChanges=W$4.EMPTY;_document=g$4(Y$3);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e;}_color;touchUi=false;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0));}_disabled;xPosition="start";yPosition="below";restoreFocus=true;yearSelected=new kt$3;monthSelected=new kt$3;viewChanged=new kt$3(true);dateClass;openedStream=new kt$3;closedStream=new kt$3;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=wr$2(e);}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close();}_opened=false;id=g$4(re$4).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new ye$5;_changeDetectorRef=g$4(Od$2);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck();});}ngOnChanges(e){let t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){let i=this._overlayRef.getConfig().positionStrategy;i instanceof wt$2&&(this._setConnectedPositions(i),this.opened&&this._overlayRef.updatePosition());}this.stateChanges.next(void 0);}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete();}select(e){this._model.add(e);}_selectYear(e){this.yearSelected.emit(e);}_selectMonth(e){this.monthSelected.emit(e);}_viewChanged(e){this.viewChanged.emit(e);}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,true);}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,true));}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Xt$4(),this._openOverlay(),this._opened=true,this.openedStream.emit());}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",t=()=>{this._opened&&(this._opened=false,this.closedStream.emit());};if(this._componentRef){let{instance:i,location:a}=this._componentRef;i._animationDone.pipe(bn$3(1)).subscribe(()=>{let o=this._document.activeElement;e&&(!o||o===this._document.activeElement||a.nativeElement.contains(o))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay();}),i._startExitAnimation();}e?setTimeout(t):t();}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection();}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,false);}_openOverlay(){this._destroyOverlay();let e=this.touchUi,t=new Z$1(Wl$1,this._viewContainerRef),i=this._overlayRef=it$1(this._injector,new N$2({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:true,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Te$4(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(i).subscribe(a=>{a&&a.preventDefault(),this.close();}
5488),i.keydownEvents().subscribe(a=>{let o=a.keyCode;(o===38||o===40||o===37||o===39||o===33||o===34)&&a.preventDefault();}),this._componentRef=i.attach(t),this._forwardContentValues(this._componentRef.instance),e||Jg(()=>{i.updatePosition();},{injector:this._injector});}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null);}_getDialogStrategy(){return St$2(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Kt$3(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(false).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let t=this.xPosition==="end"?"end":"start",i=t==="start"?"end":"start",a=this.yPosition==="above"?"bottom":"top",o=a==="top"?"bottom":"top";return e.withPositions([{originX:t,originY:o,overlayX:t,overlayY:a},{originX:t,originY:a,overlayX:t,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:i,originY:a,overlayX:i,overlayY:o}])}_getCloseStream(e){let t=["ctrlKey","shiftKey","metaKey"];return WD(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Yt$5(i=>i.keyCode===27&&!Ye$4(i)||this.datepickerInput&&Ye$4(i,"altKey")&&i.keyCode===38&&t.every(a=>!Ye$4(i,a)))))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",tM$1],disabled:[2,"disabled","disabled",tM$1],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",tM$1],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",tM$1]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[El$2]})}return n})(),Yx=(()=>{class n extends ua$1{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[tS([Hl$1,{provide:ua$1,useExisting:n}]),Xm$2],decls:0,vars:0,template:function(t,i){},encapsulation:2})}return n})(),Ri=class{target;targetElement;value=null;constructor(r,e){this.target=r,this.targetElement=e,this.value=this.target.value;}},ql$1=(()=>{class n{_elementRef=g$4(Vt$3);_dateAdapter=g$4(Ue$2,{optional:true});_dateFormats=g$4(ti,{optional:true});_isInitialized=false;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,true);}_model;get disabled(){return !!this._disabled||this._parentDisabled()}set disabled(e){let t=e,i=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&i.blur&&i.blur();}_disabled;dateChange=new kt$3;dateInput=new kt$3;stateChanges=new ye$5;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=W$4.EMPTY;_localeSubscription=W$4.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return !t||this._matchesFilter(t)?null:{matDatepickerFilter:true}};_minValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),i=this._getMinDate();return !i||!t||this._dateAdapter.compareDate(i,t)<=0?null:{matDatepickerMin:{min:i,actual:t}}};_maxValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),i=this._getMaxDate();return !i||!t||this._dateAdapter.compareDate(i,t)>=0?null:{matDatepickerMax:{max:i,actual:t}}};_getValidators(){return [this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>
5488{if(this._shouldHandleChangeEvent(t)){let i=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(i),this._cvaOnChange(i),this._onTouched(),this._formatValue(i),this.dateInput.emit(new Ri(this,this._elementRef.nativeElement)),this.dateChange.emit(new Ri(this,this._elementRef.nativeElement));}});}_lastValueValid=false;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,true);});}ngAfterViewInit(){this._isInitialized=true;}ngOnChanges(e){Ql(e,this._dateAdapter)&&this.stateChanges.next(void 0);}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete();}registerOnValidatorChange(e){this._validatorOnChange=e;}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value);}registerOnChange(e){this._cvaOnChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e;}_onKeydown(e){let t=["ctrlKey","shiftKey","metaKey"];Ye$4(e,"altKey")&&e.keyCode===40&&t.every(a=>!Ye$4(e,a))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault());}_onInput(e){let t=e.target.value,i=this._lastValueValid,a=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(a),a=this._dateAdapter.getValidDateOrNull(a);let o=!this._dateAdapter.sameDate(a,this.value);!a||o?this._cvaOnChange(a):(t&&!this.value&&this._cvaOnChange(a),i!==this._lastValueValid&&this._validatorOnChange()),o&&(this._assignValue(a),this.dateInput.emit(new Ri(this,this._elementRef.nativeElement)));}_onChange(){this.dateChange.emit(new Ri(this,this._elementRef.nativeElement));}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched();}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):"";}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e;}_isValidValue(e){return !e||this._dateAdapter.isValid(e)}_parentDisabled(){return false}_assignValueProgrammatically(e,t){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),t&&this._formatValue(e);}_matchesFilter(e){let t=this._getDateFilter();return !t||t(e)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,inputs:{value:"value",disabled:[2,"disabled","disabled",tM$1]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[El$2]})}return n})();function Ql(n,r){let e=Object.keys(n);for(let t of e){let{previousValue:i,currentValue:a}=n[t];if(r.isDateInstance(i)&&r.isDateInstance(a)){if(!r.sameDate(i,a))return true}else return true}return false}var Dp$1={provide:Fe$1,useExisting:ns(()=>Yl$1),multi:true},Mp$1={provide:qe$2,useExisting:ns(()=>Yl$1),multi:true},Yl$1=(()=>{class n extends ql$1{_formField=g$4(kt$1,{optional:true});_closedSubscription=W$4.EMPTY;_openedSubscription=W$4.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null);}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id);}),this._registerModel(e.registerInput(this)));}_datepicker;_ariaOwns=Es$1(null);get min(){return this._min}set min(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange());}_min=null;get max(){return this._max}set max(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange());}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange();}_dateFilter;_validator=null;constructor(){super(),this._validator=ht$1.compose(super._getValidators());}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}
5488getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe();}_openPopup(){this._datepicker&&this._datepicker.open();}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this);}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,i){t&1&&Ey("input",function(o){return i._onInput(o)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(o){return i._onKeydown(o)}),t&2&&(vy("disabled",i.disabled),ly("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",i._ariaOwns())("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null));},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[tS([Dp$1,Mp$1,{provide:ma$1,useExisting:n}]),Xm$2]})}return n})(),Sp$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matDatepickerToggleIcon",""]]})}return n})(),Ip$1=(()=>{class n{_intl=g$4(Oi);_changeDetectorRef=g$4(Od$2);_stateChanges=W$4.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e;}_disabled;disableRipple=false;_customIcon;_button;constructor(){let e=g$4(new nv("tabindex"),{optional:true}),t=Number(e);this.tabIndex=t||t===0?t:null;}ngOnChanges(e){e.datepicker&&this._watchStateChanges();}ngOnDestroy(){this._stateChanges.unsubscribe();}ngAfterContentInit(){this._watchStateChanges();}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation());}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:ki$3(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:ki$3(),i=this.datepicker?WD(this.datepicker.openedStream,this.datepicker.closedStream):ki$3();this._stateChanges.unsubscribe(),this._stateChanges=WD(this._intl.changes,e,t,i).subscribe(()=>this._changeDetectorRef.markForCheck());}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,Sp$1,5),t&2){let o;m_$1(o=y_$1())&&(i._customIcon=o.first);}},viewQuery:function(t,i){if(t&1&&by(cp,5),t&2){let a;m_$1(a=y_$1())&&(i._button=a.first);}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,i){t&1&&Ey("click",function(o){return i._open(o)}),t&2&&(ly("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),xy("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&i.datepicker.color==="accent")("mat-warn",i.datepicker&&i.datepicker.color==="warn"));},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",tM$1],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[El$2],ngContentSelectors:hp$1,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,i){t&1&&(p_$1(mp$1),Js$2(0,"button",1,0),ZT(2,pp$1,2,0,":svg:svg",2),h_$1(3),gd$2()),t&2&&(dy("tabIndex",i.disabled?-1:i.tabIndex)("disabled",i.disabled)("disableRipple",i.disableRipple),ly("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("aria-expanded",i.datepicker?i.datepicker.opened:null),SC(2),YT(i._customIcon?-1:2));},dependencies:[Fi$2],styles:[`.mat-datepicker-toggle { 5489 pointer-events: auto; 5490 color: var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant)); 5491} 5492.mat-datepicker-toggle button { 5493 color: inherit; 5494} 5495 5496.mat-datepicker-toggle-active { 5497 color: var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary)); 5498} 5499 5500@media (forced-colors: active) { 5501 .mat-datepicker-toggle-default-icon { 5502 color: CanvasText; 5503 } 5504} 5505`],encapsulation:2})}return n})(),Ep$1=(()=>{class n{_changeDetectorRef=g$4(Od$2);_elementRef=g$4(Vt$3);_dateAdapter=g$4(Ue$2,{optional:true});_formField=g$4(kt$1,{optional:true});_closedSubscription=W$4.EMPTY;_openedSubscription=W$4.EMPTY;_startInput;_endInput;get value(){return this._model?this._model.selection:null}id=g$4(re$4).getId("mat-date-range-input-");focused=false;get shouldLabelFloat(){return this.focused||!this.empty}controlType="mat-date-range-input";get placeholder(){let e=this._startInput?._getPlaceholder()||"",t=this._endInput?._getPlaceholder()||"";return e||t?`${e} ${this.separator} ${t}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe(),this._ariaOwns.set(this.rangePicker.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched(),this._ariaOwns.set(null);}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id);}),this._registerModel(this._model));}_rangePicker;_ariaOwns=Es$1(null);get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??false}set required(e){this._required=e;}_required;get dateFilter(){return this._dateFilter}set dateFilter(e){let t=this._startInput,i=this._endInput,a=t&&t._matchesFilter(t.value),o=i&&i._matchesFilter(t.value);this._dateFilter=e,t&&t._matchesFilter(t.value)!==a&&t._validatorOnChange(),i&&i._matchesFilter(i.value)!==o&&i._validatorOnChange();}_dateFilter;get min(){return this._min}set min(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._revalidate());}_min=null;get max(){return this._max}set max(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._revalidate());}_max=null;get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){e!==this._groupDisabled&&(this._groupDisabled=e,this.stateChanges.next(void 0));}_groupDisabled=false;get errorState(){return this._startInput&&this._endInput?this._startInput.errorState||this._endInput.errorState:false}get empty(){let e=this._startInput?this._startInput.isEmpty():false,t=this._endInput?this._endInput.isEmpty():false;return e&&t}_ariaDescribedBy=null;_model;separator="\u2013";comparisonStart=null;comparisonEnd=null;ngControl;stateChanges=new ye$5;disableAutomaticLabeling=true;constructor(){this._dateAdapter,this._formField?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&this._elementRef.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=g$4(vt$2,{optional:true,self:true});}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null;}onContainerClick(){!this.focused&&!this.disabled&&(!this._model||!this._model.selection.start?this._startInput.focus():this._endInput.focus());}ngAfterContentInit(){this._model&&this._registerModel(this._model),WD(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0);});}
5505ngOnChanges(e){Ql(e,this._dateAdapter)&&this.stateChanges.next(void 0);}ngOnDestroy(){this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe(),this.stateChanges.complete();}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(e){let t=e==="start"?this._startInput:this._endInput;return t?t.getMirrorValue():""}_shouldHidePlaceholders(){return this._startInput?!this._startInput.isEmpty():false}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck();}_openDatepicker(){this._rangePicker&&this._rangePicker.open();}_shouldHideSeparator(){return (!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){let e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=e!==null,this.stateChanges.next();}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange();}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e);}_isTargetRequired(e){return e?.ngControl?.control?.hasValidator(ht$1.required)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-date-range-input"]],hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(t,i){t&2&&(ly("id",i.id)("aria-labelledby",i._getAriaLabelledby())("aria-describedby",i._ariaDescribedBy)("data-mat-calendar",i.rangePicker?i.rangePicker.id:null),xy("mat-date-range-input-hide-placeholders",i._shouldHidePlaceholders())("mat-date-range-input-required",i.required));},inputs:{rangePicker:"rangePicker",required:[2,"required","required",tM$1],dateFilter:"dateFilter",min:"min",max:"max",disabled:[2,"disabled","disabled",tM$1],separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[tS([{provide:Vt,useExisting:n}]),El$2],ngContentSelectors:_p$1,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(t,i){t&1&&(p_$1(up$1),Js$2(0,"div",0),Ey("cdkFocusChange",function(o){return i._updateFocus(o)}),Js$2(1,"div",1),h_$1(2),Js$2(3,"span",2),H_$1(4),gd$2()(),Js$2(5,"span",3),H_$1(6),gd$2(),Js$2(7,"div",4),h_$1(8,1),Js$2(9,"span",2),H_$1(10),gd$2()()()),t&2&&(SC(4),jy(i._getInputMirrorValue("start")),SC(),xy("mat-date-range-input-separator-hidden",i._shouldHideSeparator()),SC(),jy(i.separator),SC(4),jy(i._getInputMirrorValue("end")));},dependencies:[Gn$1],styles:[`.mat-date-range-input { 5506 display: block; 5507 width: 100%; 5508} 5509 5510.mat-date-range-input-container { 5511 display: flex; 5512 align-items: center; 5513} 5514 5515.mat-date-range-input-separator { 5516 transition: opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1); 5517 margin: 0 4px; 5518 color: var(--mat-datepicker-range-input-separator-color, var(--mat-sys-on-surface)); 5519} 5520.mat-form-field-disabled .mat-date-range-input-separator { 5521 color: var(--mat-datepicker-range-input-disabled-state-separator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 5522} 5523._mat-animation-noopable .mat-date-range-input-separator { 5524 transition: none; 5525} 5526 5527.mat-date-range-input-separator-hidden { 5528 -webkit-user-select: none; 5529 user-select: none; 5530 opacity: 0; 5531 transition: none; 5532} 5533 5534.mat-date-range-input-wrapper { 5535 position: relative; 5536 overflow: hidden; 5537 max-width: calc(50% - 4px); 5538} 5539 5540.mat-date-range-input-end-wrapper { 5541 flex-grow: 1; 5542} 5543 5544.mat-date-range-input-inner { 5545 position: absolute; 5546 top: 0; 5547 left: 0; 5548 font: inherit; 5549 background: transparent; 5550 color: currentColor; 5551 border: none; 5552 outline: none; 5553 padding: 0; 5554 margin: 0; 5555 vertical-align: bottom; 5556 text-align: inherit; 5557 -webkit-appearance: none; 5558 width: 100%; 5559 height: 100%; 5560} 5561.mat-date-range-input-inner:-moz-ui-invalid { 5562 box-shadow: none; 5563} 5564.mat-date-range-input-inner::placeholder { 5565 transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1); 5566} 5567.mat-date-range-input-inner::-moz-placeholder { 5568 transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1); 5569} 5570.mat-date-range-input-inner::-webkit-input-placeholder { 5571 transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1); 5572} 5573.mat-date-range-input-inner:-ms-input-placeholder { 5574 transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1); 5575} 5576.mat-date-range-input-inner[disabled] { 5577 color: var(--mat-datepicker-range-input-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 5578} 5579.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder, .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder { 5580 -webkit-user-select: none; 5581 user-select: none; 5582 color: transparent !important; 5583 -webkit-text-fill-color: transparent; 5584 transition: none; 5585} 5586@media (forced-colors: active) { 5587 .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder, .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder { 5588 opacity: 0; 5589 } 5590} 5591.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder, .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder { 5592 -webkit-user-select: none; 5593 user-select: none; 5594 color: transparent !important; 5595 -webkit-text-fill-color: transparent; 5596 transition: none; 5597} 5598@media (forced-colors: active) { 5599 .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder, .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder { 5600 opacity: 0; 5601 } 5602} 5603.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder, .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder { 5604 -webkit-user-select: none; 5605 user-select: none; 5606 color: transparent !important; 5607 -webkit-text-fill-color: transparent; 5608 transition: none; 5609} 5610@media (forced-colors: active) { 5611 .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder, .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder { 5612 opacity: 0; 5613 } 5614} 5615.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder, .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder { 5616 -webkit-user-select: none; 5617 user-select: none; 5618 color: transparent !important; 5619 -webkit-text-fill-color: transparent; 5620 transition: none; 5621} 5622@media (forced-colors: active) { 5623 .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder, .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder { 5624 opacity: 0; 5625 } 5626} 5627._mat-animation-noopable .mat-date-range-input-inner::placeholder { 5628 transition: none; 5629} 5630._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder { 5631 transition: none; 5632} 5633._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder { 5634 transition: none; 5635} 5636._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder { 5637 transition: none; 5638} 5639 5640.mat-date-range-input-mirror { 5641 -webkit-user-select: none; 5642 user-select: none; 5643 visibility: hidden; 5644 white-space: nowrap; 5645 display: inline-block; 5646 min-width: 2px; 5647} 5648 5649.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix { 5650 width: 200px; 5651} 5652`],encapsulation:2})}return n})();function Tp$1(n){return Br(n,true)}function Nl$1(n){return n.nodeType===Node.ELEMENT_NODE}function Ap$1(n){return n.nodeName==="INPUT"}function Rp$1(n){return n.nodeName==="TEXTAREA"}function Br(n,r){if(Nl$1(n)&&r){let t=(n.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((i,a)=>{let o=document.getElementById(a);return o&&i.push(o),i},[]);if(t.length)return t.map(i=>Br(i,false)).join(" ")}if(Nl$1(n)){let e=n.getAttribute("aria-label")?.trim();if(e)return e}if(Ap$1(n)||Rp$1(n)){if(n.labels?.length)return Array.from(n.labels).map(i=>Br(i,false)).join(" ");let e=n.getAttribute("placeholder")?.trim();if(e)return e;let t=n.getAttribute("title")?.trim();if(t)return t}return (n.textContent||"").replace(/\s+/g," ").trim()}var Kl$1=(()=>{class n extends ql$1{_rangeInput=g$4(Ep$1);_elementRef=g$4(Vt$3);_defaultErrorStateMatcher=g$4(Ct$1);_injector=g$4(Ee$4);_rawValue=Es$1("");_parentForm=g$4(jt$1,{optional:true});_parentFormGroup=g$4(Gt$1,{optional:true});ngControl;_dir=g$4(qe$4,{optional:true});_errorStateTracker;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e;}constructor(){super(),this._errorStateTracker=new Lt$1(this._defaultErrorStateMatcher,null,this._parentFormGroup,this._parentForm,this.stateChanges);}ngOnInit(){let e=this._injector.get(Ye$2,null,{optional:true,self:true});e&&(this.ngControl=e,this._errorStateTracker.ngControl=e);}ngAfterContentInit(){this._register();}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._rawValue.set(this._elementRef.nativeElement.value);}isEmpty(){return this._rawValue().length===0}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus();}getMirrorValue(){let e=this._rawValue();return e.length>0?e:this._getPlaceholder()}updateErrorState(){this._errorStateTracker.updateErrorState();}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange();}_openPopup(){this._rangeInput._openDatepicker();}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e,t){super._assignValueProgrammatically(e,t),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange(),this._rawValue.set(this._elementRef.nativeElement.value);}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange();}_getAccessibleName(){return Tp$1(this._elementRef.nativeElement)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,inputs:{errorStateMatcher:"errorStateMatcher"},features:[Xm$2]})}return n})(),Kx=(()=>{class n extends Kl$1{_startValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),i=this._model?this._model.selection.end:null;return !t||!i||this._dateAdapter.compareDate(t,i)<=0?null:{matStartDateInvalid:{end:i,actual:t}}};_validator=ht$1.compose([...super._getValidators(),this._startValidator]);_register(){this._rangeInput._startInput=this;}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.start?!e.selection.start||!!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!!e.selection.start:false}_assignValueToModel(e){if(this._model){let t=new Ke$4(e,this._model.selection.end);this._model.updateSelection(t,this),this._rangeInput._handleChildValueChange();}}_onKeydown(e){let t=this._rangeInput._endInput,i=this._elementRef.nativeElement,a=this._dir?.value!=="rtl";(e.keyCode===39&&a||e.keyCode===37&&!a)&&i.selectionStart===i.value.length&&i.selectionEnd===i.value.length?(e.preventDefault(),t._elementRef.nativeElement.setSelectionRange(0,0),t.focus()):super._onKeydown(e);}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(t,i){t&1&&Ey("input",function(o){return i._onInput(o)})("change",function(){return i._onChange()})("keydown",function(o){return i._onKeydown(o)})("blur",function(){return i._onBlur()}),t&2&&(vy("disabled",i.disabled),ly("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",i._rangeInput._ariaOwns()||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null));},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[tS([{provide:Fe$1,useExisting:n,multi:true},{provide:qe$2,useExisting:n,multi:true}]),Xm$2]})}return n})(),$x=(()=>{class n extends Kl$1{_endValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),i=this._model?this._model.selection.start:null;return !t||!i||this._dateAdapter.compareDate(t,i)>=0?null:{matEndDateInvalid:{start:i,actual:t}}};_register(){this._rangeInput._endInput=this;}_validator=ht$1.compose([...super._getValidators(),this._endValidator]);_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.end?!e.selection.end||!!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!!e.selection.end:false}_assignValueToModel(e){if(this._model){let t=new Ke$4(this._model.selection.start,e);this._model.updateSelection(t,this);}}_moveCaretToEndOfStartInput(){let e=this._rangeInput._startInput._elementRef.nativeElement,t=e.value;t.length>0&&e.setSelectionRange(t.length,t.length),e.focus();}_onKeydown(e){let t=this._elementRef.nativeElement,i=this._dir?.value!=="rtl";e.keyCode===8&&!t.value?this._moveCaretToEndOfStartInput():(e.keyCode===37&&i||e.keyCode===39&&!i)&&t.selectionStart===0&&t.selectionEnd===0?(e.preventDefault(),this._moveCaretToEndOfStartInput()):super._onKeydown(e);}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(t,i){t&1&&Ey("input",function(o){return i._onInput(o)})("change",function(){return i._onChange()})("keydown",function(o){return i._onKeydown(o)})("blur",function(){return i._onBlur()}),t&2&&(vy("disabled",i.disabled),ly("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",i._rangeInput._ariaOwns()||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null));},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[tS([{provide:Fe$1,useExisting:n,multi:true},{provide:qe$2,useExisting:n,multi:true}]),Xm$2]})}return n})(),Xx=(()=>{class n extends ua$1{_forwardContentValues(e){super._forwardContentValues(e);let t=this.datepickerInput;t&&(e.comparisonStart=t.comparisonStart,e.comparisonEnd=t.comparisonEnd,e.startDateAccessibleName=t._getStartDateAccessibleName(),e.endDateAccessibleName=t._getEndDateAccessibleName());}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[tS([yp$1,{provide:pa$1,useFactory:()=>g$4(pa$1,{optional:true,skipSelf:true})||new xp$1(g$4(Ue$2))},{provide:ua$1,useExisting:n}]),Xm$2],decls:0,vars:0,template:function(t,i){},encapsulation:2})}return n})();var Zx=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({providers:[Oi],imports:[Vs$1,Jt$3,di$1,_t$2,Wl$1,Ip$1,Ul,it$2,Ht$3]})}return n})();var dn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[ln$1,da$1,it$2]})}return n})();var $l=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["ng-component"]],hostAt
5652trs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,i){},styles:[`textarea.cdk-textarea-autosize { 5653 resize: none; 5654} 5655 5656textarea.cdk-textarea-autosize-measuring { 5657 padding: 2px 0 !important; 5658 box-sizing: content-box !important; 5659 height: auto !important; 5660 overflow: hidden !important; 5661} 5662 5663textarea.cdk-textarea-autosize-measuring-firefox { 5664 padding: 2px 0 !important; 5665 box-sizing: content-box !important; 5666 height: 0 !important; 5667} 5668 5669@keyframes cdk-text-field-autofill-start { /*!*/ } 5670@keyframes cdk-text-field-autofill-end { /*!*/ } 5671.cdk-text-field-autofill-monitored:-webkit-autofill { 5672 animation: cdk-text-field-autofill-start 0s 1ms; 5673} 5674 5675.cdk-text-field-autofill-monitored:not(:-webkit-autofill) { 5676 animation: cdk-text-field-autofill-end 0s 1ms; 5677} 5678`],encapsulation:2})}return n})(),Fp$1={passive:true},Xl$1=(()=>{class n{_platform=g$4(_$7);_ngZone=g$4(q$3);_renderer=g$4(Kn$3).createRenderer(null,null);_styleLoader=g$4(P$3);_monitoredElements=new Map;monitor(e){if(!this._platform.isBrowser)return wn$2;this._styleLoader.load($l);let t=N$3(e),i=this._monitoredElements.get(t);if(i)return i.subject;let a=new ye$5,o="cdk-text-field-autofilled",l=R=>{R.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(o)?(t.classList.add(o),this._ngZone.run(()=>a.next({target:R.target,isAutofilled:true}))):R.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(o)&&(t.classList.remove(o),this._ngZone.run(()=>a.next({target:R.target,isAutofilled:false})));},f=this._ngZone.runOutsideAngular(()=>(t.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(t,"animationstart",l,Fp$1)));return this._monitoredElements.set(t,{subject:a,unlisten:f}),a}stopMonitoring(e){let t=N$3(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t));}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t));}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})();var xw=(()=>{class n{_elementRef=g$4(Vt$3);_platform=g$4(_$7);_ngZone=g$4(q$3);_renderer=g$4(qo$1);_resizeEvents=new ye$5;_previousValue;_initialHeight;_destroyed=new ye$5;_listenerCleanups;_minRows;_maxRows;_enabled=true;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Jt$4(e),this._setMinHeight();}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Jt$4(e),this._setMaxHeight();}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(true):this.reset());}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight();}_cachedLineHeight;_cachedPlaceholderHeight;_document=g$4(Y$3);_hasFocus=false;_isViewInited=false;constructor(){g$4(P$3).load($l),this._textareaElement=this._elementRef.nativeElement;}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e);}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e);}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe(qD(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(true);});}),this._isViewInited=true,this.resizeToFitContent(true));}
5678ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete();}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(false),t=e.style;e.rows=1,t.position="absolute",t.visibility="hidden",t.border="none",t.padding="0",t.height="",t.minHeight="",t.maxHeight="",t.top=t.bottom=t.left=t.right="auto",t.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight();}_measureScrollHeight(){let e=this._textareaElement,t=e.style.marginBottom||"",i=this._platform.FIREFOX,a=this._hasFocus,o=i?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";a&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(o);let l=e.scrollHeight-4;return e.classList.remove(o),a&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e;}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus";};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent();}resizeToFitContent(e=false){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let t=this._elementRef.nativeElement,i=t.value;if(!e&&this._minRows===this._previousMinRows&&i===this._previousValue)return;let a=this._measureScrollHeight(),o=Math.max(a,this._cachedPlaceholderHeight||0);t.style.height=`${o}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t));}),this._previousValue=i,this._previousMinRows=this._minRows;}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight);}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:t,selectionEnd:i}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,i);}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,i){t&1&&Ey("input",function(){return i._noopInputHandler()});},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",tM$1],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return n})(),Zl$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({})}return n})();var Op$1=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Pp$1=new I$4("MAT_INPUT_CONFIG"),Nw=(()=>{class n{_elementRef=g$4(Vt$3);_platform=g$4(_$7);ngControl=g$4(Ye$2,{optional:true,self:true});_autofillMonitor=g$4(Xl$1);_ngZone=g$4(q$3);_formField=g$4(kt$1,{optional:true});_renderer=g$4(qo$1);_uid=g$4(re$4).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=g$4(Pp$1,{optional:true});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=false;_isNativeSelect=false;_isTextarea=false;_isInFormField=false;focused=false;stateChanges=new ye$5;controlType="mat-input";autofilled=false;get disabled(){return this._disabled}set disabled(e){this._disabled=Er$2(e),this.focused&&(this.focused=false,this.stateChanges.next());}_disabled=false;get id(){return this._id}set id(e){this._id=e||this._uid;}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(ht$1.required)??false}set required(e){this._required=Er$2(e);}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&_o$2().has(this._type)&&(this._elementRef.nativeElement.type=this._type);}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next());}get readonly(){return this._readonly}set readonly(e){this._readonly=Er$2(e);}_readonly=false;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e;}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>_o$2().has(e));constructor(){let e=g$4(jt$1,{optional:true}),t=g$4(Gt$1,{optional:true}),i=g$4(Ct$1),a=g$4(ma$1,{optional:true,self:true}),o=this._elementRef.nativeElement,l=o.nodeName.toLowerCase();a?No$1(a.value)?this._signalBasedValueAccessor=a:this._inputValueAccessor=a:this._inputValueAccessor=o,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(o,"keyup",this._iOSKeyupListener);}),this._errorStateTracker=new Lt$1(i,this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=l==="select",this._isTextarea=l==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||false,this._isNativeSelect&&(this.controlType=o.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&ih$1(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next();});}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next();});}
5678ngOnChanges(){this.stateChanges.next();}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.();}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){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0);}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 t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder");}}_getPlaceholder(){return this.placeholder||null}_validateType(){Op$1.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,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby");}onContainerClick(){this.focused||this.focus();}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0));};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,i){t&1&&Ey("focus",function(){return i._focusChanged(true)})("blur",function(){return i._focusChanged(false)})("input",function(){return i._onInput()}),t&2&&(vy("id",i.id)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),ly("name",i.name||null)("readonly",i._getReadonlyAttribute())("aria-disabled",i.disabled&&i.disabledInteractive?"true":null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),xy("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mat-mdc-input-disabled-interactive",i.disabledInteractive)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",tM$1]},exportAs:["matInput"],features:[tS([{provide:Vt,useExisting:n}]),El$2]})}return n})(),zw=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[dn,dn,Zl$1,it$2]})}return n})();var Vp$1=["input"],Lp$1=["formField"],Bp$1=["*"],ba$1=class ba{source;value;constructor(r,e){this.source=r,this.value=e;}},Np$1={provide:Fe$1,useExisting:ns(()=>Hp$1),multi:true},Jl=new I$4("MatRadioGroup"),zp$1=new I$4("mat-radio-default-options",{providedIn:"root",factory:()=>({color:"accent",disabledInteractive:false})}
5678),Hp$1=(()=>{class n{_changeDetector=g$4(Od$2);_value=null;_name=g$4(re$4).getId("mat-radio-group-");_selected=null;_isInitialized=false;_labelPosition="after";_disabled=false;_required=false;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new kt$3;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames();}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck();}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton());}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=true);}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton();}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck();}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck();}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck();}_disabledInteractive=false;ngAfterContentInit(){this._isInitialized=true,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null);});}ngOnDestroy(){this._buttonChanges?.unsubscribe();}_touch(){this.onTouched&&this.onTouched();}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck();});}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t);}));}_emitChangeEvent(){this._isInitialized&&this.change.emit(new ba$1(this._selected,this._value));}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck());}writeValue(e){this.value=e,this._changeDetector.markForCheck();}registerOnChange(e){this._controlValueAccessorChangeFn=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-radio-group"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,ed$1,5),t&2){let o;m_$1(o=y_$1())&&(i._radios=o);}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",tM$1],required:[2,"required","required",tM$1],disabledInteractive:[2,"disabledInteractive","disabledInteractive",tM$1]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[tS([Np$1,{provide:Jl,useExisting:n}])]})}return n})(),ed$1=(()=>{class n{_elementRef=g$4(Vt$3);_changeDetector=g$4(Od$2);_focusMonitor=g$4(Ot);_radioDispatcher=g$4(hi);_defaultOptions=g$4(zp$1,{optional:true});_ngZone=g$4(q$3);_renderer=g$4(qo$1);_uniqueId=g$4(re$4).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=false;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck());}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)));}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e;}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e);}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e;}
5678get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e;}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e;}_disabledInteractive;change=new kt$3;radioGroup;get inputId(){return `${this.id||this._uniqueId}-input`}_checked=false;_disabled=false;_required=false;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=ct$1();_injector=g$4(Ee$4);constructor(){g$4(P$3).load(Bn$1);let e=g$4(Jl,{optional:true}),t=g$4(new nv("tabindex"),{optional:true});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??false,t&&(this.tabIndex=nM(t,0));}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e);}_markForCheck(){this._changeDetector.markForCheck();}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,t)=>{e!==this.id&&t===this.name&&(this.checked=false);});}ngDoCheck(){this._updateTabIndex();}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,true).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch();}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick);});}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener();}_emitChangeEvent(){this.change.emit(new ba$1(this,this._value));}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=true,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent());}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus();}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck());}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault();};_updateTabIndex(){let e=this.radioGroup,t;if(!e||!e.selected||this.disabled?t=this.tabIndex:t=e.selected===this?this.tabIndex:-1,t!==this._previousTabIndex){let i=this._inputElement?.nativeElement;i&&(i.setAttribute("tabindex",t+""),this._previousTabIndex=t,Jg(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===i&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===i&&this._inputElement.nativeElement.blur());});},{injector:this._injector}));}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-radio-button"]],viewQuery:function(t,i){if(t&1&&by(Vp$1,5)(Lp$1,7,Vt$3),t&2){let a;m_$1(a=y_$1())&&(i._inputElement=a.first),m_$1(a=y_$1())&&(i._rippleTrigger=a.first);}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(t,i){t&1&&Ey("focus",function(){return i._inputElement.nativeElement.focus()}),t&2&&(ly("id",i.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),xy("mat-primary",i.color==="primary")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("mat-mdc-radio-checked",i.checked)("mat-mdc-radio-disabled",i.disabled)("mat-mdc-radio-disabled-interactive",i.disabledInteractive)("_mat-animation-noopable",i._noopAnimations));},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",tM$1],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:nM(e)],checked:[2,"checked","checked",tM$1],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",tM$1],required:[2,"required","required",tM$1],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",tM$1]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Bp$1,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],["aria-hidden","true",1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],["aria-hidden","true",1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner
5678-circle"],["mat-ripple","","aria-hidden","true",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(t,i){t&1&&(p_$1(),Js$2(0,"div",2,0)(2,"div",3)(3,"div",4),Ey("click",function(o){return i._onTouchTargetClick(o)}),gd$2(),Js$2(4,"input",5,1),Ey("change",function(o){return i._onInputInteraction(o)}),gd$2(),Js$2(6,"div",6),fy(7,"div",7)(8,"div",8),gd$2(),Js$2(9,"div",9),fy(10,"div",10),gd$2()(),Js$2(11,"label",11),h_$1(12),gd$2()()),t&2&&(dy("labelPosition",i.labelPosition),SC(2),xy("mdc-radio--disabled",i.disabled),SC(2),dy("id",i.inputId)("checked",i.checked)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),ly("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),SC(5),dy("matRippleTrigger",i._rippleTrigger.nativeElement)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",true),SC(2),dy("for",i.inputId));},dependencies:[jr$1,Ti],styles:[`.mat-mdc-radio-button { 5679 -webkit-tap-highlight-color: transparent; 5680} 5681.mat-mdc-radio-button .mdc-radio { 5682 display: inline-block; 5683 position: relative; 5684 flex: 0 0 auto; 5685 box-sizing: content-box; 5686 width: 20px; 5687 height: 20px; 5688 cursor: pointer; 5689 will-change: opacity, transform, border-color, color; 5690 padding: calc((var(--mat-radio-state-layer-size, 40px) - 20px) / 2); 5691} 5692.mat-mdc-radio-button .mdc-radio:hover > .mdc-radio__native-control:not([disabled]):not(:focus) ~ .mdc-radio__background::before { 5693 opacity: 0.04; 5694 transform: scale(1); 5695} 5696.mat-mdc-radio-button .mdc-radio:hover > .mdc-radio__native-control:not([disabled]) ~ .mdc-radio__background > .mdc-radio__outer-circle { 5697 border-color: var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface)); 5698} 5699.mat-mdc-radio-button .mdc-radio:hover > .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__outer-circle { 5700 border-color: var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary)); 5701} 5702.mat-mdc-radio-button .mdc-radio:hover > .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__inner-circle { 5703 background-color: var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor)); 5704} 5705.mat-mdc-radio-button .mdc-radio:active > .mdc-radio__native-control:enabled:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle { 5706 border-color: var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface)); 5707} 5708.mat-mdc-radio-button .mdc-radio:active > .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__outer-circle { 5709 border-color: var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary)); 5710} 5711.mat-mdc-radio-button .mdc-radio:active > .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__inner-circle { 5712 background-color: var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor)); 5713} 5714.mat-mdc-radio-button .mdc-radio__background { 5715 display: inline-block; 5716 position: relative; 5717 box-sizing: border-box; 5718 width: 20px; 5719 height: 20px; 5720} 5721.mat-mdc-radio-button .mdc-radio__background::before { 5722 position: absolute; 5723 transform: scale(0, 0); 5724 border-radius: 50%; 5725 opacity: 0; 5726 pointer-events: none; 5727 content: ""; 5728 transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1); 5729 width: var(--mat-radio-state-layer-size, 40px); 5730 height: var(--mat-radio-state-layer-size, 40px); 5731 top: calc(-1 * (var(--mat-radio-state-layer-size, 40px) - 20px) / 2); 5732 left: calc(-1 * (var(--mat-radio-state-layer-size, 40px) - 20px) / 2); 5733} 5734.mat-mdc-radio-button .mdc-radio__outer-circle { 5735 position: absolute; 5736 top: 0; 5737 left: 0; 5738 box-sizing: border-box; 5739 width: 100%; 5740 height: 100%; 5741 border-width: 2px; 5742 border-style: solid; 5743 border-radius: 50%; 5744 transition: border-color 90ms cubic-bezier(0.4, 0, 0.6, 1); 5745}
5746.mat-mdc-radio-button .mdc-radio__inner-circle { 5747 position: absolute; 5748 top: 0; 5749 left: 0; 5750 box-sizing: border-box; 5751 width: 100%; 5752 height: 100%; 5753 transform: scale(0); 5754 border-radius: 50%; 5755 transition: transform 90ms cubic-bezier(0.4, 0, 0.6, 1), background-color 90ms cubic-bezier(0.4, 0, 0.6, 1); 5756} 5757@media (forced-colors: active) { 5758 .mat-mdc-radio-button .mdc-radio__inner-circle { 5759 background-color: CanvasText !important; 5760 } 5761} 5762.mat-mdc-radio-button .mdc-radio__native-control { 5763 position: absolute; 5764 margin: 0; 5765 padding: 0; 5766 opacity: 0; 5767 top: 0; 5768 right: 0; 5769 left: 0; 5770 cursor: inherit; 5771 z-index: 1; 5772 width: var(--mat-radio-state-layer-size, 40px); 5773 height: var(--mat-radio-state-layer-size, 40px); 5774} 5775.mat-mdc-radio-button .mdc-radio__native-control:checked + .mdc-radio__background, .mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background { 5776 transition: opacity 90ms cubic-bezier(0, 0, 0.2, 1), transform 90ms cubic-bezier(0, 0, 0.2, 1); 5777} 5778.mat-mdc-radio-button .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__outer-circle, .mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__outer-circle { 5779 transition: border-color 90ms cubic-bezier(0, 0, 0.2, 1); 5780} 5781.mat-mdc-radio-button .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__inner-circle, .mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__inner-circle { 5782 transition: transform 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1); 5783} 5784.mat-mdc-radio-button .mdc-radio__native-control:focus + .mdc-radio__background::before { 5785 transform: scale(1); 5786 opacity: 0.12; 5787 transition: opacity 90ms cubic-bezier(0, 0, 0.2, 1), transform 90ms cubic-bezier(0, 0, 0.2, 1); 5788} 5789.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle { 5790 border-color: var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface)); 5791 opacity: var(--mat-radio-disabled-unselected-icon-opacity, 0.38); 5792} 5793.mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background { 5794 cursor: default; 5795} 5796.mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__outer-circle { 5797 border-color: var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface)); 5798 opacity: var(--mat-radio-disabled-selected-icon-opacity, 0.38); 5799} 5800.mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__inner-circle { 5801 background-color: var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor)); 5802 opacity: var(--mat-radio-disabled-selected-icon-opacity, 0.38); 5803} 5804.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle { 5805 border-color: var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant)); 5806} 5807.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__outer-circle { 5808 border-color: var(--mat-radio-selected-icon-color, var(--mat-sys-primary)); 5809} 5810.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__inner-circle { 5811 background-color: var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor)); 5812} 5813.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked + .mdc-radio__background > .mdc-radio__outer-circle { 5814 border-color: var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary)); 5815} 5816.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked + .mdc-radio__background > .mdc-radio__inner-circle { 5817 background-color: var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor)); 5818} 5819.mat-mdc-radio-button .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__inner-circle { 5820 transform: scale(0.5); 5821 transition: transform 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1); 5822} 5823.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled { 5824 pointer-events: auto; 5825} 5826.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle { 5827 border-color: var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface)); 5828 opacity: var(--mat-radio-disabled-unselected-icon-opacity, 0.38); 5829} 5830.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__outer-circle, 5831.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus + .mdc-radio__background > .mdc-radio__outer-circle, 5832.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control + .mdc-radio__background > .mdc-radio__outer-circle { 5833 border-color: var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface)); 5834 opacity: var(--mat-radio-disabled-selected-icon-opacity, 0.38); 5835} 5836.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked + .mdc-radio__background >
5836 .mdc-radio__inner-circle, 5837.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus + .mdc-radio__background > .mdc-radio__inner-circle, 5838.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control + .mdc-radio__background > .mdc-radio__inner-circle { 5839 background-color: var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor)); 5840 opacity: var(--mat-radio-disabled-selected-icon-opacity, 0.38); 5841} 5842.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before, 5843.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle, 5844.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle { 5845 transition: none !important; 5846} 5847.mat-mdc-radio-button label { 5848 cursor: pointer; 5849} 5850.mat-mdc-radio-button label:empty { 5851 display: none; 5852} 5853.mat-mdc-radio-button .mdc-radio__background::before { 5854 background-color: var(--mat-radio-ripple-color, var(--mat-sys-on-surface)); 5855} 5856.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element, 5857.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before { 5858 background-color: var(--mat-radio-checked-ripple-color, var(--mat-sys-primary)); 5859} 5860.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element, 5861.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before { 5862 background-color: var(--mat-radio-ripple-color, var(--mat-sys-on-surface)); 5863} 5864.mat-mdc-radio-button .mat-internal-form-field { 5865 color: var(--mat-radio-label-text-color, var(--mat-sys-on-surface)); 5866 font-family: var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font)); 5867 line-height: var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height)); 5868 font-size: var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size)); 5869 letter-spacing: var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking)); 5870 font-weight: var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight)); 5871} 5872.mat-mdc-radio-button .mdc-radio--disabled + label { 5873 color: var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 5874} 5875.mat-mdc-radio-button .mat-radio-ripple { 5876 top: 0; 5877 left: 0; 5878 right: 0; 5879 bottom: 0; 5880 position: absolute; 5881 pointer-events: none; 5882 border-radius: 50%; 5883} 5884.mat-mdc-radio-button .mat-radio-ripple > .mat-ripple-element { 5885 opacity: 0.14; 5886} 5887.mat-mdc-radio-button .mat-radio-ripple::before { 5888 border-radius: 50%; 5889} 5890.mat-mdc-radio-button .mdc-radio > .mdc-radio__native-control:focus:enabled:not(:checked) ~ .mdc-radio__background > .mdc-radio__outer-circle { 5891 border-color: var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface)); 5892} 5893.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before { 5894 content: ""; 5895} 5896 5897.mat-mdc-radio-disabled { 5898 cursor: default; 5899 pointer-events: none; 5900} 5901.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive { 5902 pointer-events: auto; 5903} 5904 5905.mat-mdc-radio-touch-target { 5906 position: absolute; 5907 top: 50%; 5908 left: 50%; 5909 height: var(--mat-radio-touch-target-size, 48px); 5910 width: var(--mat-radio-touch-target-size, 48px); 5911 transform: translate(-50%, -50%); 5912 display: var(--mat-radio-touch-target-display, block); 5913} 5914[dir=rtl] .mat-mdc-radio-touch-target { 5915 left: auto; 5916 right: 50%; 5917 transform: translate(50%, -50%); 5918} 5919`],encapsulation:2})}return n})(),sk=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Dn$1,ed$1,it$2]})}return n})();var jp$1=["trigger"],Gp$1=["panel"],Up$1=[[["mat-select-trigger"]],"*"],Wp$1=["mat-select-trigger","*"];function qp$1(n,r){if(n&1&&(Js$2(0,"span",4),H_$1(1),gd$2()),n&2){let e=d_$1();SC(),jy(e.placeholder);}}function Qp$1(n,r){n&1&&h_$1(0);}function Yp$1(n,r){if(n&1&&(Js$2(0,"span",11),H_$1(1),gd$2()),n&2){let e=d_$1(2);SC(),jy(e.triggerValue);}}function Kp$1(n,r){if(n&1&&(Js$2(0,"span",5),ZT(1,Qp$1,1,0)(2,Yp$1,2,1,"span",11),gd$2()),n&2){let e=d_$1();SC(),YT(e.customTrigger?1:2);}}function $p$1(n,r){if(n&1){let e=i_$1();Js$2(0,"div",12,1),Ey("keydown",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._handleKeydown(i))}),h_$1(2,1),gd$2();}if(n&2){let e=d_$1();x_$1(e.panelClass),xy("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",e._parentFormField?.color==="primary")("mat-accent",e._parentFormField?.color==="accent")("mat-warn",e._parentFormField?.color==="warn")("mat-undefined",!e._parentFormField?.color),ly("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby());}}var Xp$1=new I$4("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$4(Ee$4);return ()=>$t$3(n)}}),Zp$1=new I$4("MAT_SELECT_CONFIG"),td$1=new I$4("MatSelectTrigger"),Hr=class{source;value;constructor(r,e){this.source=r,this.value=e;}},id$1=(()=>
5919{class n{_viewportRuler=g$4(G$3);_changeDetectorRef=g$4(Od$2);_elementRef=g$4(Vt$3);_dir=g$4(qe$4,{optional:true});_idGenerator=g$4(re$4);_renderer=g$4(qo$1);_parentFormField=g$4(kt$1,{optional:true});ngControl=g$4(Ye$2,{self:true,optional:true});_liveAnnouncer=g$4(ci$2);_defaultOptions=g$4(Zp$1,{optional:true});_animationsDisabled=ct$1();_popoverLocation;_initialized=new ye$5;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=ra$1(e,this.options,this.optionGroups),o=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=oa$1(o.offsetTop,o.offsetHeight,i.scrollTop,i.offsetHeight);}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0);}_getChangeEvent(e){return new Hr(this,e)}_scrollStrategyFactory=g$4(Xp$1);_panelOpen=false;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new ye$5;_errorStateTracker;stateChanges=new ye$5;disableAutomaticLabeling=true;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=false;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=false;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e);}_disableRipple=Es$1(false);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties();}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??false;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next();}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ht$1.required)??false}set required(e){this._required=e,this.stateChanges.next();}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e;}_multiple=false;disableOptionCentering=this._defaultOptions?.disableOptionCentering??false;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);}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next();}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e;}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??false;optionSelectionChanges=aE(()=>{let e=this.options;return e?e.changes.pipe(Jf(e),Bi$1(()=>WD(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(Bi$1(()=>this.optionSelectionChanges))});openedChange=new kt$3;_openedStream=this.openedChange.pipe(Yt$5(e=>e),ve$4(()=>{}));
5919_closedStream=this.openedChange.pipe(Yt$5(e=>!e),ve$4(()=>{}));selectionChange=new kt$3;valueChange=new kt$3;constructor(){let e=g$4(Ct$1),t=g$4(jt$1,{optional:true}),i=g$4(Gt$1,{optional:true}),a=g$4(new nv("tabindex"),{optional:true}),o=g$4(Qt$2,{optional:true});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Lt$1(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this._popoverLocation=o?.usePopover===false?null:"inline",this.id=this.id;}ngOnInit(){this._selectionModel=new yt(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Hf$1(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(Hf$1(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect());}),this.options.changes.pipe(Jf(null),Hf$1(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection();});}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby");}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState());}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass));}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete();}toggle(){this.panelOpen?this.close():this.open();}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._panelOpen=true,this._overlayDir.positionChange.pipe(bn$3(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled();}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(true)));}close(){this._panelOpen&&(this._panelOpen=false,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(false)));}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0;};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay());}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay();},200);e.classList.add("mat-select-panel-exit");}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck();}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(t=>t.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":false}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e));}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,o=this._keyManager;if(!o.isTyping()&&a&&!Ye$4(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let l=this.selected;o.onKeydown(e);let f=this.selected;f&&l!==f&&this._liveAnnouncer.announce(f.viewValue,1e4);}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,o=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!o&&(i===13||i===32)&&t.activeItem&&!Ye$4(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!o&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let l=this.options.some(f=>!f.disabled&&!f.selected);this.options.forEach(f=>{f.disabled||(l?f.select():f.deselect());});}else {let l=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==l&&t.activeItem._selectViaInteraction();}}_handleOverlayKeydown(e){e.keyCode===27&&!Ye$4(e)&&(e.preventDefault(),this.close());}_onFocus(){this.disabled||(this._focused=true,this.stateChanges.next());}_onBlur(){this._focused=false,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next());}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(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else {let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1);}this._changeDetectorRef.markForCheck();}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return false;try{return (i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch(a){return false}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,true):false}_skipPredicate=e=>this.panelOpen?false:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Gt$3?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 ne$4(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=WD(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Hf$1(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus());}),WD(...this.options.map(t=>t._stateChanges)).pipe(Hf$1(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next();});}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next();}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next();}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck();}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e);}else this._keyManager.setActiveItem(this._selectionModel.selected[0]);}_canOpen(){return !this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e);}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+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()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby");}onContainerClick(e){let t=F$5(e);t&&(t.tagName==="MAT-OPTION"||t.classList.contains("cdk-overlay-backdrop")||t.closest(".mat-mdc-select-panel"))||(this.focus(),this.open());}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,td$1,5)(a,ei,5)(a,Ii$2,5),t&2){let o;m_$1(o=y_$1())&&(i.customTrigger=o.first),m_$1(o=y_$1())&&(i.options=o),m_$1(o=y_$1())&&(i.optionGroups=o);}}
5919,viewQuery:function(t,i){if(t&1&&by(jp$1,5)(Gp$1,5)(ti$1,5),t&2){let a;m_$1(a=y_$1())&&(i.trigger=a.first),m_$1(a=y_$1())&&(i.panel=a.first),m_$1(a=y_$1())&&(i._overlayDir=a.first);}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,i){t&1&&Ey("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(ly("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),xy("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple)("mat-select-open",i.panelOpen));},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",tM$1],disableRipple:[2,"disableRipple","disableRipple",tM$1],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:nM(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",tM$1],placeholder:"placeholder",required:[2,"required","required",tM$1],multiple:[2,"multiple","multiple",tM$1],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",tM$1],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",nM],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",tM$1]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[tS([{provide:Vt,useExisting:n},{provide:Si,useExisting:n}]),El$2],ngContentSelectors:Wp$1,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(t,i){if(t&1&&(p_$1(Up$1),Js$2(0,"div",2,0),Ey("click",function(){return i.open()}),Js$2(3,"div",3),ZT(4,qp$1,2,1,"span",4)(5,Kp$1,3,1,"span",5),gd$2(),Js$2(6,"div",6)(7,"div",7),Xp$2(),Js$2(8,"svg",8),fy(9,"path",9),gd$2()()()(),ey$1(10,$p$1,3,16,"ng-template",10),Ey("detach",function(){return i.close()})("backdropClick",function(){return i.close()})("overlayKeydown",function(o){return i._handleOverlayKeydown(o)})),t&2){let a=D_$1(1);SC(3),ly("id",i._valueId),SC(),YT(i.empty?4:5),SC(6),dy("cdkConnectedOverlayDisableClose",true)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",true)("cdkConnectedOverlayUsePopover",i._popoverLocation);}},dependencies:[Gt$3,ti$1],styles:[`@keyframes _mat-select-enter { 5920 from { 5921 opacity: 0; 5922 transform: scaleY(0.8); 5923 } 5924 to { 5925 opacity: 1; 5926 transform: none; 5927 } 5928} 5929@keyframes _mat-select-exit { 5930 from { 5931 opacity: 1; 5932 } 5933 to { 5934 opacity: 0; 5935 } 5936} 5937.mat-mdc-select { 5938 display: inline-block; 5939 width: 100%; 5940 outline: none; 5941 -moz-osx-font-smoothing: grayscale; 5942 -webkit-font-smoothing: antialiased; 5943 color: var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface)); 5944 font-family: var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font)); 5945 line-height: var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height)); 5946 font-size: var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size)); 5947 font-weight: var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight)); 5948 letter-spacing: var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking)); 5949} 5950 5951div.mat-mdc-select-panel { 5952 box-shadow: var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)); 5953} 5954 5955.mat-mdc-select-disabled { 5956 color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 5957} 5958.mat-mdc-select-disabled .mat-mdc-select-placeholder { 5959 color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 5960} 5961 5962.mat-mdc-select-trigger { 5963 display: inline-flex; 5964 align-items: center; 5965 cursor: pointer; 5966 position: relative; 5967 box-sizing: border-box; 5968 width: 100%; 5969} 5970.mat-mdc-select-disabled .mat-mdc-select-trigger { 5971 -webkit-user-select: none; 5972 user-select: none; 5973 cursor: default; 5974} 5975 5976.mat-mdc-select-value { 5977 width: 100%; 5978 overflow: hidden; 5979 text-overflow: ellipsis; 5980 white-space: nowrap; 5981} 5982 5983.mat-mdc-select-value-text { 5984 white-space: nowrap; 5985 overflow: hidden; 5986 text-overflow: ellipsis; 5987} 5988 5989.mat-mdc-select-arrow-wrapper { 5990 height: 24px; 5991 flex-shrink: 0; 5992 display: inline-flex; 5993 align-items: center; 5994} 5995.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper { 5996 transform: none; 5997} 5998 5999.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow, 6000.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after {
6001 color: var(--mat-select-invalid-arrow-color, var(--mat-sys-error)); 6002} 6003 6004.mat-mdc-select-arrow { 6005 width: 10px; 6006 height: 5px; 6007 position: relative; 6008 color: var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant)); 6009} 6010.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow { 6011 color: var(--mat-select-focused-arrow-color, var(--mat-sys-primary)); 6012} 6013.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow { 6014 color: var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 6015} 6016.mat-select-open .mat-mdc-select-arrow { 6017 transform: rotate(180deg); 6018} 6019.mat-form-field-animations-enabled .mat-mdc-select-arrow { 6020 transition: transform 80ms linear; 6021} 6022.mat-mdc-select-arrow svg { 6023 fill: currentColor; 6024 position: absolute; 6025 top: 50%; 6026 left: 50%; 6027 transform: translate(-50%, -50%); 6028} 6029@media (forced-colors: active) { 6030 .mat-mdc-select-arrow svg { 6031 fill: CanvasText; 6032 } 6033 .mat-mdc-select-disabled .mat-mdc-select-arrow svg { 6034 fill: GrayText; 6035 } 6036} 6037 6038div.mat-mdc-select-panel { 6039 width: 100%; 6040 max-height: 275px; 6041 outline: 0; 6042 overflow: auto; 6043 padding: 8px 0; 6044 box-sizing: border-box; 6045 transform-origin: top center; 6046 border-radius: 0 0 4px 4px; 6047 position: relative; 6048 background-color: var(--mat-select-panel-background-color, var(--mat-sys-surface-container)); 6049} 6050.mat-mdc-select-panel-above div.mat-mdc-select-panel { 6051 border-radius: 4px 4px 0 0; 6052 transform-origin: bottom center; 6053} 6054@media (forced-colors: active) { 6055 div.mat-mdc-select-panel { 6056 outline: solid 1px; 6057 } 6058} 6059 6060.mat-select-panel-animations-enabled { 6061 animation: _mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1); 6062} 6063.mat-select-panel-animations-enabled.mat-select-panel-exit { 6064 animation: _mat-select-exit 100ms linear; 6065} 6066 6067.mat-mdc-select-placeholder { 6068 transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1); 6069 color: var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant)); 6070} 6071.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder, ._mat-animation-noopable .mat-mdc-select-placeholder { 6072 transition: none; 6073} 6074.mat-form-field-hide-placeholder .mat-mdc-select-placeholder { 6075 color: transparent; 6076 -webkit-text-fill-color: transparent; 6077 transition: none; 6078 display: block; 6079} 6080 6081.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper { 6082 cursor: pointer; 6083} 6084.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label { 6085 max-width: calc(100% - 18px); 6086} 6087.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above { 6088 max-width: calc(100% / 0.75 - 24px); 6089} 6090.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch { 6091 max-width: calc(100% - 60px); 6092} 6093.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch { 6094 max-width: calc(100% - 24px); 6095} 6096 6097.mat-mdc-select-min-line:empty::before { 6098 content: " "; 6099 white-space: pre; 6100 width: 1px; 6101 display: inline-block; 6102 visibility: hidden; 6103} 6104 6105.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper { 6106 transform: var(--mat-select-arrow-transform, translateY(-8px)); 6107} 6108`],encapsulation:2})}return n})(),Vk=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-select-trigger"]],features:[tS([{provide:td$1,useExisting:n}])]})}return n})(),nd$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Jt$3,Ei$1,it$2,Ht$3,dn,Ei$1]})}return n})();var Jp$1=["knob"],eu$1=["valueIndicatorContainer"];function tu$1(n,r){if(n&1&&(Js$2(0,"div",2,1)(2,"div",5)(3,"span",6),H_$1(4),gd$2()()()),n&2){let e=d_$1();SC(4),jy(e.valueIndicatorText);}}var iu$1=["trackActive"],nu$1=["*"];function au$1(n,r){if(n&1&&fy(0,"div"),n&2){let e=r.$implicit,t=r.$index,i=d_$1(3);x_$1(e===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),Ny("transform",i._calcTickMarkTransform(t));}}function ru$1(n,r){if(n&1&&XT(0,au$1,1,4,"div",8,QT),n&2){let e=d_$1(2);JT(e._tickMarks);}}function ou$1(n,r){if(n&1&&(Js$2(0,"div",6,1),ZT(2,ru$1,2,0),gd$2()),n&2){let e=d_$1();
6108SC(2),YT(e._cachedWidth?2:-1);}}function su$1(n,r){if(n&1&&fy(0,"mat-slider-visual-thumb",7),n&2){let e=d_$1();dy("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText);}}var J$1=(function(n){return n[n.START=1]="START",n[n.END=2]="END",n})(J$1||{}),Pi=(function(n){return n[n.ACTIVE=0]="ACTIVE",n[n.INACTIVE=1]="INACTIVE",n})(Pi||{}),jr=new I$4("_MatSlider"),ad$1=new I$4("_MatSliderThumb"),lu$1=new I$4("_MatSliderRangeThumb"),rd$1=new I$4("_MatSliderVisualThumb");var du$1=(()=>{class n{_cdr=g$4(Od$2);_ngZone=g$4(q$3);_slider=g$4(jr);_renderer=g$4(qo$1);_listenerCleanups;discrete=false;thumbPosition;valueIndicatorText;_ripple;_knob;_valueIndicatorContainer;_sliderInput;_sliderInputEl;_hoverRippleRef;_focusRippleRef;_activeRippleRef;_isHovered=false;_isActive=false;_isValueIndicatorVisible=false;_hostElement=g$4(Vt$3).nativeElement;_platform=g$4(_$7);ngAfterViewInit(){let e=this._slider._getInput(this.thumbPosition);e&&(this._ripple.radius=24,this._sliderInput=e,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let t=this._sliderInputEl,i=this._renderer;this._listenerCleanups=[i.listen(t,"pointermove",this._onPointerMove),i.listen(t,"pointerdown",this._onDragStart),i.listen(t,"pointerup",this._onDragEnd),i.listen(t,"pointerleave",this._onMouseLeave),i.listen(t,"focus",this._onFocus),i.listen(t,"blur",this._onBlur)];}));}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e());}_onPointerMove=e=>{if(this._sliderInput._isFocused)return;let t=this._hostElement.getBoundingClientRect(),i=this._slider._isCursorOnSliderThumb(e,t);this._isHovered=i,i?this._showHoverRipple():this._hideRipple(this._hoverRippleRef);};_onMouseLeave=()=>{this._isHovered=false,this._hideRipple(this._hoverRippleRef);};_onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused");};_onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused");};_onDragStart=e=>{e.button===0&&(this._isActive=true,this._showActiveRipple());};_onDragEnd=()=>{this._isActive=false,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple();};_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"));}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},true),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"));}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"));}_isShowingRipple(e){return e?.state===D$4.FADING_IN||e?.state===D$4.VISIBLE}_showRipple(e,t){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===J$1.START?J$1.END:J$1.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!t)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:true,persistent:true})}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let t=this._getSibling();t._isShowingAnyRipple()||(this._hideValueIndicator(),t._hideValueIndicator());}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator");}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator");}_getSibling(){return this._slider._getThumb(this.thumbPosition===J$1.START?J$1.END:J$1.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(t,i){if(t&1&&by(jr$1,5)(Jp$1,5)(eu$1,5),t&2){let a;m_$1(a=y_$1())&&(i._ripple=a.first),m_$1(a=y_$1())&&(i._knob=a.first),m_$1(a=y_$1())&&(i._valueIndicatorContainer=a.first);}}
6108,hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[tS([{provide:rd$1,useExisting:n}])],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(t,i){t&1&&(ZT(0,tu$1,5,1,"div",2),fy(1,"div",3,0)(3,"div",4)),t&2&&(YT(i.discrete?0:-1),SC(3),dy("matRippleDisabled",true));},dependencies:[jr$1],styles:[`.mat-mdc-slider-visual-thumb .mat-ripple { 6109 height: 100%; 6110 width: 100%; 6111} 6112 6113.mat-mdc-slider .mdc-slider__tick-marks { 6114 justify-content: start; 6115} 6116.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active, 6117.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive { 6118 position: absolute; 6119 left: 2px; 6120} 6121`],encapsulation:2})}return n})(),aC=(()=>{class n{_ngZone=g$4(q$3);_cdr=g$4(Od$2);_elementRef=g$4(Vt$3);_dir=g$4(qe$4,{optional:true});_globalRippleOptions=g$4(me$4,{optional:true});_trackActive;_thumbs;_input;_inputs;get disabled(){return this._disabled}set disabled(e){this._disabled=e;let t=this._getInput(J$1.END),i=this._getInput(J$1.START);t&&(t.disabled=this._disabled),i&&(i.disabled=this._disabled);}_disabled=false;get discrete(){return this._discrete}set discrete(e){this._discrete=e,this._updateValueIndicatorUIs();}_discrete=false;get showTickMarks(){return this._showTickMarks}set showTickMarks(e){this._showTickMarks=e,this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI());}_showTickMarks=false;get min(){return this._min}set min(e){let t=e==null||isNaN(e)?this._min:e;this._min!==t&&this._updateMin(t);}_min=0;color;disableRipple=false;_updateMin(e){let t=this._min;this._min=e,this._isRange?this._updateMinRange({old:t,new:e}):this._updateMinNonRange(e),this._onMinMaxOrStepChange();}_updateMinRange(e){let t=this._getInput(J$1.END),i=this._getInput(J$1.START),a=t.value,o=i.value;i.min=e.new,t.min=Math.max(e.new,i.value),i.max=Math.min(t.max,t.value),i._updateWidthInactive(),t._updateWidthInactive(),e.new<e.old?this._onTranslateXChangeBySideEffect(t,i):this._onTranslateXChangeBySideEffect(i,t),a!==t.value&&this._onValueChange(t),o!==i.value&&this._onValueChange(i);}_updateMinNonRange(e){let t=this._getInput(J$1.END);if(t){let i=t.value;t.min=e,t._updateThumbUIByValue(),this._updateTrackUI(t),i!==t.value&&this._onValueChange(t);}}get max(){return this._max}set max(e){let t=e==null||isNaN(e)?this._max:e;this._max!==t&&this._updateMax(t);}_max=100;_updateMax(e){let t=this._max;this._max=e,this._isRange?this._updateMaxRange({old:t,new:e}):this._updateMaxNonRange(e),this._onMinMaxOrStepChange();}_updateMaxRange(e){let t=this._getInput(J$1.END),i=this._getInput(J$1.START),a=t.value,o=i.value;t.max=e.new,i.max=Math.min(e.new,t.value),t.min=i.value,t._updateWidthInactive(),i._updateWidthInactive(),e.new>e.old?this._onTranslateXChangeBySideEffect(i,t):this._onTranslateXChangeBySideEffect(t,i),a!==t.value&&this._onValueChange(t),o!==i.value&&this._onValueChange(i);}_updateMaxNonRange(e){let t=this._getInput(J$1.END);if(t){let i=t.value;t.max=e,t._updateThumbUIByValue(),this._updateTrackUI(t),i!==t.value&&this._onValueChange(t);}}get step(){return this._step}set step(e){let t=isNaN(e)?this._step:e;this._step!==t&&this._updateStep(t);}_step=1;_updateStep(e){this._step=e,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange();}_updateStepRange(){let e=this._getInput(J$1.END),t=this._getInput(J$1.START),i=e.value,a=t.value,o=t.value;e.min=this._min,t.max=this._max,e.step=this._step,t.step=this._step,this._platform.SAFARI&&(e.value=e.value,t.value=t.value),e.min=Math.max(this._min,t.value),t.max=Math.min(this._max,e.value),t._updateWidthInactive(),e._updateWidthInactive(),e.value<o?this._onTranslateXChangeBySideEffect(t,e):this._onTranslateXChangeBySideEffect(e,t),i!==e.value&&this._onValueChange(e),a!==t.value&&this._onValueChange(t);}_updateStepNonRange(){let e=this._getInput(J$1.END);if(e){let t=e.value;e.step=this._step,this._platform.SAFARI&&(e.value=e.value),e._updateThumbUIByValue(),t!==e.value&&this._onValueChange(e);}}displayWith=e=>`${e}`;_tickMarks;_noopAnimations=ct$1();_resizeObserver=null;_cachedWidth;_cachedLeft;_rippleRadius=24;startValueIndicatorText="";endValueIndicatorText="";_endThumbTransform;_startThumbTransform;_isRange=false;_isRtl=wS(()=>this._dir?.valueSignal()==="rtl");_hasViewInitialized=false;_tickMarkTrackWidth=0;_hasAnimation=false;_resizeTimer=null;_platform=g$4(_$7);constructor(){g$4(P$3).load(Bn$1);let e=this._isRtl();IU(()=>{let t=this._isRtl();t!==e&&(e=t,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI());});}_knobRadius=8;_inputPadding;ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let e=this._getInput(J$1.END),t=this._getInput(J$1.START);this._isRange=!!e&&!!t,this._cdr.detectChanges();let i=this._getThumb(J$1.END);this._rippleRadius=i._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(e,t):this._initUINonRange(e),this._updateTrackUI(e),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges();}
6121_initUINonRange(e){e.initProps(),e.initUI(),this._updateValueIndicatorUI(e),this._hasViewInitialized=true,e._updateThumbUIByValue();}_initUIRange(e,t){e.initProps(),e.initUI(),t.initProps(),t.initUI(),e._updateMinMax(),t._updateMinMax(),e._updateStaticStyles(),t._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=true,e._updateThumbUIByValue(),t._updateThumbUIByValue();}ngOnDestroy(){this._resizeObserver?.disconnect(),this._resizeObserver=null;}_onDirChangeRange(){let e=this._getInput(J$1.END),t=this._getInput(J$1.START);e._setIsLeftThumb(),t._setIsLeftThumb(),e.translateX=e._calcTranslateXByValue(),t.translateX=t._calcTranslateXByValue(),e._updateStaticStyles(),t._updateStaticStyles(),e._updateWidthInactive(),t._updateWidthInactive(),e._updateThumbUIByValue(),t._updateThumbUIByValue();}_onDirChangeNonRange(){this._getInput(J$1.END)._updateThumbUIByValue();}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize());}),this._resizeObserver.observe(this._elementRef.nativeElement);});}_isActive(){return this._getThumb(J$1.START)._isActive||this._getThumb(J$1.END)._isActive}_getValue(e=J$1.END){let t=this._getInput(e);return t?t.value:this.min}_skipUpdate(){return !!(this._getInput(J$1.START)?._skipUIUpdate||this._getInput(J$1.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left;}_setTrackActiveStyles(e){let t=this._trackActive.nativeElement.style;t.left=e.left,t.right=e.right,t.transformOrigin=e.transformOrigin,t.transform=e.transform;}_calcTickMarkTransform(e){let t=e*(this._tickMarkTrackWidth/(this._tickMarks.length-1));return `translateX(${this._isRtl()?this._cachedWidth-6-t:t}px)`}_onTranslateXChange(e){this._hasViewInitialized&&(this._updateThumbUI(e),this._updateTrackUI(e),this._updateOverlappingThumbUI(e));}_onTranslateXChangeBySideEffect(e,t){this._hasViewInitialized&&(e._updateThumbUIByValue(),t._updateThumbUIByValue());}_onValueChange(e){this._hasViewInitialized&&(this._updateValueIndicatorUI(e),this._updateTickMarkUI(),this._cdr.detectChanges());}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck());}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let e=this._getInput(J$1.END),t=this._getInput(J$1.START);e._updateThumbUIByValue(),t._updateThumbUIByValue(),e._updateStaticStyles(),t._updateStaticStyles(),e._updateMinMax(),t._updateMinMax(),e._updateWidthInactive(),t._updateWidthInactive();}else {let e=this._getInput(J$1.END);e&&e._updateThumbUIByValue();}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges();}}_thumbsOverlap=false;_areThumbsOverlapping(){let e=this._getInput(J$1.START),t=this._getInput(J$1.END);return !e||!t?false:t.translateX-e.translateX<20}_updateOverlappingThumbClassNames(e){let t=e.getSibling(),i=this._getThumb(e.thumbPosition);this._getThumb(t.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),i._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap);}_updateOverlappingThumbUI(e){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(e));}_updateThumbUI(e){if(this._skipUpdate())return;let t=this._getThumb(e.thumbPosition===J$1.END?J$1.END:J$1.START);t._hostElement.style.transform=`translateX(${e.translateX}px)`;}_updateValueIndicatorUI(e){if(this._skipUpdate())return;let t=this.displayWith(e.value);if(this._hasViewInitialized?e._valuetext.set(t):e._hostElement.setAttribute("aria-valuetext",t),this.discrete){e.thumbPosition===J$1.START?this.startValueIndicatorText=t:this.endValueIndicatorText=t;let i=this._getThumb(e.thumbPosition);t.length<3?i._hostElement.classList.add("mdc-slider__thumb--short-value"):i._hostElement.classList.remove("mdc-slider__thumb--short-value");}}_updateValueIndicatorUIs(){let e=this._getInput(J$1.END),t=this._getInput(J$1.START);
6121e&&this._updateValueIndicatorUI(e),t&&this._updateValueIndicatorUI(t);}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let e=this._step&&this._step>0?this._step:1,i=(Math.floor(this.max/e)*e-this.min)/(this.max-this.min);this._tickMarkTrackWidth=(this._cachedWidth-6)*i;}_updateTrackUI(e){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(e):this._updateTrackUINonRange(e));}_updateTrackUIRange(e){let t=e.getSibling();if(!t||!this._cachedWidth)return;let i=Math.abs(t.translateX-e.translateX)/this._cachedWidth;e._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-t.translateX}px`,transformOrigin:"right",transform:`scaleX(${i})`}):this._setTrackActiveStyles({left:`${t.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${i})`});}_updateTrackUINonRange(e){this._isRtl()?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-e.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${e.fillPercentage})`});}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let e=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(e):this._updateTickMarkUINonRange(e);}_updateTickMarkUINonRange(e){let t=this._getValue(),i=Math.max(Math.round((t-this.min)/e),0)+1,a=Math.max(Math.round((this.max-t)/e),0)-1;this._isRtl()?i++:a++,this._tickMarks=Array(i).fill(Pi.ACTIVE).concat(Array(a).fill(Pi.INACTIVE));}_updateTickMarkUIRange(e){let t=this._getValue(),i=this._getValue(J$1.START),a=Math.max(Math.round((i-this.min)/e),0),o=Math.max(Math.round((t-i)/e)+1,0),l=Math.max(Math.round((this.max-t)/e),0);this._tickMarks=Array(a).fill(Pi.INACTIVE).concat(Array(o).fill(Pi.ACTIVE),Array(l).fill(Pi.INACTIVE));}_getInput(e){if(e===J$1.END&&this._input)return this._input;if(this._inputs?.length)return e===J$1.START?this._inputs.first:this._inputs.last}_getThumb(e){return e===J$1.END?this._thumbs?.last:this._thumbs?.first}_setTransition(e){this._hasAnimation=!this._platform.IOS&&e&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation);}_isCursorOnSliderThumb(e,t){let i=t.width/2,a=t.x+i,o=t.y+i,l=e.clientX-a,f=e.clientY-o;return Math.pow(l,2)+Math.pow(f,2)<Math.pow(i,2)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-slider"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,ad$1,5)(a,lu$1,4),t&2){let o;m_$1(o=y_$1())&&(i._input=o.first),m_$1(o=y_$1())&&(i._inputs=o);}},viewQuery:function(t,i){if(t&1&&by(iu$1,5)(rd$1,5),t&2){let a;m_$1(a=y_$1())&&(i._trackActive=a.first),m_$1(a=y_$1())&&(i._thumbs=a);}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(t,i){t&2&&(x_$1("mat-"+(i.color||"primary")),xy("mdc-slider--range",i._isRange)("mdc-slider--disabled",i.disabled)("mdc-slider--discrete",i.discrete)("mdc-slider--tick-marks",i.showTickMarks)("_mat-animation-noopable",i._noopAnimations));},inputs:{disabled:[2,"disabled","disabled",tM$1],discrete:[2,"discrete","discrete",tM$1],showTickMarks:[2,"showTickMarks","showTickMarks",tM$1],min:[2,"min","min",nM],color:"color",disableRipple:[2,"disableRipple","disableRipple",tM$1],max:[2,"max","max",nM],step:[2,"step","step",nM],displayWith:"displayWith"},exportAs:["matSlider"],features:[tS([{provide:jr,useExisting:n}])],ngContentSelectors:nu$1,decls:9,vars:5,consts:[["trackActive",""],["tickMarkContainer",""],[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],[1,"mdc-slider__tick-marks"],[3,"discrete","thumbPosition","valueIndicatorText"],[3,"class","transform"]],template:function(t,i){t&1&&(p_$1(),h_$1(0),Js$2(1,"div",2),fy(2,"div",3),Js$2(3,"div",4),fy(4,"div",5,0),gd$2(),ZT(6,ou$1,3,1,"div",6),gd$2(),ZT(7,su$1,1,3,"mat-slider-visual-thumb",7),fy(8,"mat-slider-visual-thumb",7)),t&2&&(SC(6),YT(i.showTickMarks?6:-1),SC(),YT(i._isRange?7:-1),SC(),dy("discrete",i.discrete)("thumbPosition",2)("valueIndicatorText",i.endValueIndicatorText));}
6121,dependencies:[du$1],styles:[`.mdc-slider__track { 6122 position: absolute; 6123 top: 50%; 6124 transform: translateY(-50%); 6125 width: 100%; 6126 pointer-events: none; 6127 height: var(--mat-slider-inactive-track-height, 4px); 6128} 6129 6130.mdc-slider__track--active, 6131.mdc-slider__track--inactive { 6132 display: flex; 6133 height: 100%; 6134 position: absolute; 6135 width: 100%; 6136} 6137 6138.mdc-slider__track--active { 6139 overflow: hidden; 6140 border-radius: var(--mat-slider-active-track-shape, var(--mat-sys-corner-full)); 6141 height: var(--mat-slider-active-track-height, 4px); 6142 top: calc((var(--mat-slider-inactive-track-height, 4px) - var(--mat-slider-active-track-height, 4px)) / 2); 6143} 6144 6145.mdc-slider__track--active_fill { 6146 border-top-style: solid; 6147 box-sizing: border-box; 6148 height: 100%; 6149 width: 100%; 6150 position: relative; 6151 transform-origin: left; 6152 transition: transform 80ms ease; 6153 border-color: var(--mat-slider-active-track-color, var(--mat-sys-primary)); 6154 border-top-width: var(--mat-slider-active-track-height, 4px); 6155} 6156.mdc-slider--disabled .mdc-slider__track--active_fill { 6157 border-color: var(--mat-slider-disabled-active-track-color, var(--mat-sys-on-surface)); 6158} 6159[dir=rtl] .mdc-slider__track--active_fill { 6160 -webkit-transform-origin: right; 6161 transform-origin: right; 6162} 6163 6164.mdc-slider__track--inactive { 6165 left: 0; 6166 top: 0; 6167 opacity: 0.24; 6168 background-color: var(--mat-slider-inactive-track-color, var(--mat-sys-surface-variant)); 6169 height: var(--mat-slider-inactive-track-height, 4px); 6170 border-radius: var(--mat-slider-inactive-track-shape, var(--mat-sys-corner-full)); 6171} 6172.mdc-slider--disabled .mdc-slider__track--inactive { 6173 background-color: var(--mat-slider-disabled-inactive-track-color, var(--mat-sys-on-surface)); 6174 opacity: 0.24; 6175} 6176.mdc-slider__track--inactive::before { 6177 position: absolute; 6178 box-sizing: border-box; 6179 width: 100%; 6180 height: 100%; 6181 top: 0; 6182 left: 0; 6183 border: 1px solid transparent; 6184 border-radius: inherit; 6185 content: ""; 6186 pointer-events: none; 6187} 6188@media (forced-colors: active) { 6189 .mdc-slider__track--inactive::before { 6190 border-color: CanvasText; 6191 } 6192} 6193 6194.mdc-slider__value-indicator-container { 6195 bottom: 44px; 6196 left: 50%; 6197 pointer-events: none; 6198 position: absolute; 6199 transform: var(--mat-slider-value-indicator-container-transform, translateX(-50%) rotate(-45deg)); 6200} 6201.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container { 6202 pointer-events: auto; 6203} 6204 6205.mdc-slider__value-indicator { 6206 display: flex; 6207 align-items: center; 6208 transform: scale(0); 6209 transform-origin: var(--mat-slider-value-indicator-transform-origin, 0 28px); 6210 transition: transform 100ms cubic-bezier(0.4, 0, 1, 1); 6211 word-break: normal; 6212 background-color: var(--mat-slider-label-container-color, var(--mat-sys-primary)); 6213 color: var(--mat-slider-label-label-text-color, var(--mat-sys-on-primary)); 6214 width: var(--mat-slider-value-indicator-width, 28px); 6215 height: var(--mat-slider-value-indicator-height, 28px); 6216 padding: var(--mat-slider-value-indicator-padding, 0); 6217 opacity: var(--mat-slider-value-indicator-opacity, 1); 6218 border-radius: var(--mat-slider-value-indicator-border-radius, 50% 50% 50% 0); 6219} 6220.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator { 6221 transition: transform 100ms cubic-bezier(0, 0, 0.2, 1); 6222 transform: scale(1); 6223} 6224.mdc-slider__value-indicator::before { 6225 border-left: 6px solid transparent; 6226 border-right: 6px solid transparent; 6227 border-top: 6px solid; 6228 bottom: -5px; 6229 content: ""; 6230 height: 0; 6231 left: 50%; 6232 position: absolute; 6233 transform: translateX(-50%); 6234 width: 0; 6235 display: var(--mat-slider-value-indicator-caret-display, none); 6236 border-top-color: var(--mat-slider-label-container-color, var(--mat-sys-primary)); 6237} 6238.mdc-slider__value-indicator::after { 6239 position: absolute; 6240 box-sizing: border-box; 6241 width: 100%; 6242 height: 100%; 6243 top: 0; 6244 left: 0; 6245 border: 1px solid transparent; 6246 border-radius: inherit; 6247 content: ""; 6248 pointer-events: none; 6249} 6250@media (forced-colors: active) { 6251 .mdc-slider__value-indicator::after { 6252 border-color: CanvasText; 6253 } 6254} 6255 6256.mdc-slider__value-indicator-text { 6257 text-align: center;
6258 width: var(--mat-slider-value-indicator-width, 28px); 6259 transform: var(--mat-slider-value-indicator-text-transform, rotate(45deg)); 6260 font-family: var(--mat-slider-label-label-text-font, var(--mat-sys-label-medium-font)); 6261 font-size: var(--mat-slider-label-label-text-size, var(--mat-sys-label-medium-size)); 6262 font-weight: var(--mat-slider-label-label-text-weight, var(--mat-sys-label-medium-weight)); 6263 line-height: var(--mat-slider-label-label-text-line-height, var(--mat-sys-label-medium-line-height)); 6264 letter-spacing: var(--mat-slider-label-label-text-tracking, var(--mat-sys-label-medium-tracking)); 6265} 6266 6267.mdc-slider__thumb { 6268 -webkit-user-select: none; 6269 user-select: none; 6270 display: flex; 6271 left: -24px; 6272 outline: none; 6273 position: absolute; 6274 height: 48px; 6275 width: 48px; 6276 pointer-events: none; 6277} 6278.mdc-slider--discrete .mdc-slider__thumb { 6279 transition: transform 80ms ease; 6280} 6281.mdc-slider--disabled .mdc-slider__thumb { 6282 pointer-events: none; 6283} 6284 6285.mdc-slider__thumb--top { 6286 z-index: 1; 6287} 6288 6289.mdc-slider__thumb-knob { 6290 position: absolute; 6291 box-sizing: border-box; 6292 left: 50%; 6293 top: 50%; 6294 transform: translate(-50%, -50%); 6295 border-style: solid; 6296 width: var(--mat-slider-handle-width, 20px); 6297 height: var(--mat-slider-handle-height, 20px); 6298 border-width: calc(var(--mat-slider-handle-height, 20px) / 2) calc(var(--mat-slider-handle-width, 20px) / 2); 6299 box-shadow: var(--mat-slider-handle-elevation, var(--mat-sys-level1)); 6300 background-color: var(--mat-slider-handle-color, var(--mat-sys-primary)); 6301 border-color: var(--mat-slider-handle-color, var(--mat-sys-primary)); 6302 border-radius: var(--mat-slider-handle-shape, var(--mat-sys-corner-full)); 6303} 6304.mdc-slider__thumb:hover .mdc-slider__thumb-knob { 6305 background-color: var(--mat-slider-hover-handle-color, var(--mat-sys-primary)); 6306 border-color: var(--mat-slider-hover-handle-color, var(--mat-sys-primary)); 6307} 6308.mdc-slider__thumb--focused .mdc-slider__thumb-knob { 6309 background-color: var(--mat-slider-focus-handle-color, var(--mat-sys-primary)); 6310 border-color: var(--mat-slider-focus-handle-color, var(--mat-sys-primary)); 6311} 6312.mdc-slider--disabled .mdc-slider__thumb-knob { 6313 background-color: var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface)); 6314 border-color: var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface)); 6315} 6316.mdc-slider__thumb--top .mdc-slider__thumb-knob, .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob, .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob { 6317 border: solid 1px #fff; 6318 box-sizing: content-box; 6319 border-color: var(--mat-slider-with-overlap-handle-outline-color, var(--mat-sys-on-primary)); 6320 border-width: var(--mat-slider-with-overlap-handle-outline-width, 1px); 6321} 6322 6323.mdc-slider__tick-marks { 6324 align-items: center; 6325 box-sizing: border-box; 6326 display: flex; 6327 height: 100%; 6328 justify-content: space-between; 6329 padding: 0 1px; 6330 position: absolute; 6331 width: 100%; 6332} 6333 6334.mdc-slider__tick-mark--active, 6335.mdc-slider__tick-mark--inactive { 6336 width: var(--mat-slider-with-tick-marks-container-size, 2px); 6337 height: var(--mat-slider-with-tick-marks-container-size, 2px); 6338 border-radius: var(--mat-slider-with-tick-marks-container-shape, var(--mat-sys-corner-full)); 6339} 6340 6341.mdc-slider__tick-mark--inactive { 6342 opacity: var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38); 6343 background-color: var(--mat-slider-with-tick-marks-inactive-container-color, var(--mat-sys-on-surface-variant)); 6344} 6345.mdc-slider--disabled .mdc-slider__tick-mark--inactive { 6346 opacity: var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38); 6347 background-color: var(--mat-slider-with-tick-marks-disabled-container-color, var(--mat-sys-on-surface)); 6348} 6349 6350.mdc-slider__tick-mark--active { 6351 opacity: var(--mat-slider-with-tick-marks-active-container-opacity, 0.38); 6352 background-color: var(--mat-slider-with-tick-marks-active-container-color, var(--mat-sys-on-primary)); 6353} 6354 6355.mdc-slider__input { 6356 cursor: pointer; 6357 left: 2px; 6358 margin: 0; 6359 height: 44px; 6360 opacity: 0; 6361 position: absolute; 6362 top: 2px; 6363 width: 44px; 6364 box-sizing: content-box; 6365} 6366.mdc-slider__input.mat-mdc-slider-input-no-pointer-events { 6367 pointer-events: none; 6368} 6369.mdc-slider__input.mat-slider__right-input { 6370 left: auto; 6371 right: 0; 6372} 6373 6374.mat-mdc-slider { 6375 display: inline-block; 6376 box-sizing: border-box; 6377 outline: none; 6378 vertical-align: middle; 6379 cursor: pointer; 6380 height: 48px; 6381 margin: 0 8px; 6382 position: relative; 6383 touch-action: pan-y; 6384 width: auto; 6385 min-width: 112px; 6386 -webkit-tap-highlight-color: transparent; 6387}
6388.mat-mdc-slider.mdc-slider--disabled { 6389 cursor: auto; 6390 opacity: 0.38; 6391} 6392.mat-mdc-slider.mdc-slider--disabled .mdc-slider__input { 6393 cursor: auto; 6394} 6395.mat-mdc-slider .mdc-slider__thumb, 6396.mat-mdc-slider .mdc-slider__track--active_fill { 6397 transition-duration: 0ms; 6398} 6399.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb, 6400.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill { 6401 transition-duration: 80ms; 6402} 6403.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb, 6404.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill { 6405 transition-duration: 0ms; 6406} 6407.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb, 6408.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill { 6409 transition-duration: 80ms; 6410} 6411.mat-mdc-slider .mat-ripple .mat-ripple-element { 6412 background-color: var(--mat-slider-ripple-color, var(--mat-sys-primary)); 6413} 6414.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple { 6415 background-color: var(--mat-slider-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 5%, transparent)); 6416} 6417.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple, 6418.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple { 6419 background-color: var(--mat-slider-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 20%, transparent)); 6420} 6421.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb, .mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill, 6422.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator { 6423 transition: none; 6424} 6425.mat-mdc-slider .mat-focus-indicator::before { 6426 border-radius: 50%; 6427} 6428 6429.mdc-slider__thumb--focused .mat-focus-indicator::before { 6430 content: ""; 6431} 6432`],encapsulation:2})}return n})();var cu$1={provide:Fe$1,useExisting:ns(()=>mu$1),multi:true};var mu$1=(()=>{class n{_ngZone=g$4(q$3);_elementRef=g$4(Vt$3);_cdr=g$4(Od$2);_slider=g$4(jr);_platform=g$4(_$7);_listenerCleanups;get value(){return nM(this._hostElement.value,0)}set value(e){e===null&&(e=this._getDefaultValue()),e=isNaN(e)?0:e;let t=e+"";if(!this._hasSetInitialValue){this._initialValue=t;return}this._isActive||this._setValue(t);}_setValue(e){this._hostElement.value=e,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck();}valueChange=new kt$3;dragStart=new kt$3;dragEnd=new kt$3;get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(e){this._translateX=e;}_translateX;thumbPosition=J$1.END;get min(){return nM(this._hostElement.min,0)}set min(e){this._hostElement.min=e+"",this._cdr.detectChanges();}get max(){return nM(this._hostElement.max,0)}set max(e){this._hostElement.max=e+"",this._cdr.detectChanges();}get step(){return nM(this._hostElement.step,0)}set step(e){this._hostElement.step=e+"",this._cdr.detectChanges();}get disabled(){return tM$1(this._hostElement.disabled)}set disabled(e){this._hostElement.disabled=e,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled);}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl()?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl()?1:0}_hostElement=this._elementRef.nativeElement;_valuetext=Es$1("");_knobRadius=8;_tickMarkOffset=3;_isActive=false;_isFocused=false;_setIsFocused(e){this._isFocused=e;}_hasSetInitialValue=false;_initialValue;_formControl;_destroyed=new ye$5;_skipUIUpdate=false;_onChangeFn;_onTouchedFn=()=>{};_isControlInitialized=false;constructor(){let e=g$4(qo$1);this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[e.listen(this._hostElement,"pointerdown",this._onPointerDown.bind(this)),e.listen(this._hostElement,"pointermove",this._onPointerMove.bind(this)),e.listen(this._hostElement,"pointerup",this._onPointerUp.bind(this))];});}
6432ngOnDestroy(){this._listenerCleanups.forEach(e=>e()),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete();}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=true),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue();}initUI(){this._updateThumbUIByValue();}_initValue(){this._hasSetInitialValue=true,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges());}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(false),this._onTouchedFn();}_onFocus(){this._slider._setTransition(false),this._slider._updateTrackUI(this),this._setIsFocused(true);}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:true});}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:true}),this._slider._onValueChange(this);}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled;}_onPointerDown(e){if(!(this.disabled||e.button!==0)){if(this._platform.IOS){let t=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=t,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=true,this._setIsFocused(true),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:true}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}));}}_handleValueCorrection(e){this._skipUIUpdate=true,setTimeout(()=>{this._skipUIUpdate=false,this._fixValue(e);},0);}_fixValue(e){let t=e.clientX-this._slider._cachedLeft,i=this._slider._cachedWidth,a=this._slider.step===0?1:this._slider.step,o=Math.floor((this._slider.max-this._slider.min)/a),l=this._slider._isRtl()?1-t/i:t/i,R=Math.round(l*o)/o*(this._slider.max-this._slider.min)+this._slider.min,G=Math.round(R/a)*a,re=this.value;if(G===re){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});return}this.value=G,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e);}_onPointerUp(){this._isActive&&(this._isActive=false,this._platform.SAFARI&&this._setIsFocused(false),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0));}_clamp(e){let t=this._tickMarkOffset,i=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(e,i),t)}_calcTranslateXByValue(){return this._slider._isRtl()?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`;}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e);}_updateThumbUIByPointerEvent(e,t){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(t);}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this);}writeValue(e){(this._isControlInitialized||e!==null)&&(this.value=e);}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=true;}registerOnTouched(e){this._onTouchedFn=e;}setDisabledState(e){this.disabled=e;}focus(){this._hostElement.focus();}blur(){this._hostElement.blur();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-sli
6432der__input"],hostVars:1,hostBindings:function(t,i){t&1&&Ey("change",function(){return i._onChange()})("input",function(){return i._onInput()})("blur",function(){return i._onBlur()})("focus",function(){return i._onFocus()}),t&2&&ly("aria-valuetext",i._valuetext());},inputs:{value:[2,"value","value",nM]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[tS([cu$1,{provide:ad$1,useExisting:n}])]})}return n})();var rC=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Dn$1,it$2]})}return n})();var hu$1=["switch"],pu=["*"];function uu$1(n,r){n&1&&(Js$2(0,"span",11),Xp$2(),Js$2(1,"svg",13),fy(2,"path",14),gd$2(),Js$2(3,"svg",15),fy(4,"path",16),gd$2()());}var _u$1=new I$4("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:false,hideIcon:false,disabledInteractive:false})}),va$1=class va{source;checked;constructor(r,e){this.source=r,this.checked=e;}},fu$1=(()=>{class n{_elementRef=g$4(Vt$3);_focusMonitor=g$4(Ot);_changeDetectorRef=g$4(Od$2);defaults=g$4(_u$1);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=false;_createChangeEvent(e){return new va$1(this,e)}_labelId;get buttonId(){return `${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus();}_noopAnimations=ct$1();_focused=false;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=false;color;disabled=false;disableRipple=false;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck();}hideIcon;disabledInteractive;change=new kt$3;toggleChange=new kt$3;get inputId(){return `${this.id||this._uniqueId}-input`}constructor(){g$4(P$3).load(Bn$1);let e=g$4(new nv("tabindex"),{optional:true}),t=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=t.color||"accent",this.id=this._uniqueId=g$4(re$4).getId("mat-mdc-slide-toggle-"),this.hideIcon=t.hideIcon??false,this.disabledInteractive=t.disabledInteractive??false,this._labelId=this._uniqueId+"-label";}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,true).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=true,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=false,this._onTouched(),this._changeDetectorRef.markForCheck();});});}ngOnChanges(e){e.required&&this._validatorOnChange();}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef);}writeValue(e){this.checked=!!e;}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}validate(e){return this.required&&e.value!==true?{required:true}:null}registerOnValidatorChange(e){this._validatorOnChange=e;}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck();}toggle(){this.checked=!this.checked,this._onChange(this.checked);}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked));}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new va$1(this,this.checked))));}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(t,i){if(t&1&&by(hu$1,5),t&2){let a;m_$1(a=y_$1())&&(i._switchElement=a.first);}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(t,i){t&2&&(vy("id",i.id),ly("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),x_$1(i.color?"mat-"+i.color:""),xy("mat-mdc-slide-toggle-focused",i._focused)("mat-mdc-slide-toggle-checked",i.checked)("_mat-animation-noopable",i._noopAnimations));},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",tM$1],color:"color",disabled:[2,"disabled","disabled",tM$1],disableRipple:[2,"disableRipple","disableRipple",tM$1],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:nM(e)],checked:[2,"checked","checked",tM$1],hideIcon:[2,"hideIcon","hideIcon",tM$1],disabledInteractive:[2,"disabledInteractive","disabledInteractive",tM$1]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[tS([{provide:Fe$1,useExisting:ns(()=>n),multi:true},{provide:qe$2,useExisting:n,multi:true}]),El$2],ngContentSelectors:pu,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(t,i){if(t&1&&(p_$1(),Js$2(0,"div",1)(1,"button",2,0),Ey("click",function(){return i._handleClick()}),fy(3,"div",3)(4,"span",4),Js$2(5,"span",5)(6,"span",6)(7,"span",7),fy(8,"span",8),gd$2(),Js$2(9,"span",9),fy(10,"span",10),gd$2(),ZT(11,uu$1,5,0,"span",11),gd$2()()(),Js$2(12,"label",12),Ey("click",function(o){return o.stopPropagation()}),h_$1(13),gd$2()()),t&2){let a=D_$1(2);dy("labelPosition",i.labelPosition),SC(),xy("mdc-switch--selected",i.checked)("mdc-switch--unselected",!i.checked)("mdc-switch--checked",i.checked)("mdc-switch--disabled",i.disabled)("mat-mdc-slide-toggle-disabled-interactive",i.disabledInteractive),dy("tabIndex",i.disabled&&!i.disabledInteractive?-1:i.tabIndex)("disabled",i.disabled&&!i.disabledInteractive),ly("id",i.buttonId)("name",i.name)("aria-label",i.ariaLabel)("aria-labelledby",i._getAriaLabelledBy())("aria-describedby",i.ariaDescribedby)("aria-required",i.required||null)("aria-checked",i.checked)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),SC(9),dy("matRippleTrigger",a)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",true),SC(),YT(i.hideIcon?-1:11),SC(),dy("for",i.buttonId),ly("id",i._labelId);}},dependencies:[jr$1,Ti],styles:[`.mdc-switch { 6433 align-items: center; 6434 background: none; 6435 border: none; 6436 cursor: pointer; 6437 display: inline-flex; 6438 flex-shrink: 0; 6439 margin: 0; 6440 outline: none; 6441 overflow: visible; 6442 padding: 0; 6443 position: relative;
6444 width: var(--mat-slide-toggle-track-width, 52px); 6445} 6446.mdc-switch.mdc-switch--disabled { 6447 cursor: default; 6448 pointer-events: none; 6449} 6450.mdc-switch.mat-mdc-slide-toggle-disabled-interactive { 6451 pointer-events: auto; 6452} 6453 6454.mdc-switch__track { 6455 overflow: hidden; 6456 position: relative; 6457 width: 100%; 6458 height: var(--mat-slide-toggle-track-height, 32px); 6459 border-radius: var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full)); 6460} 6461.mdc-switch--disabled.mdc-switch .mdc-switch__track { 6462 opacity: var(--mat-slide-toggle-disabled-track-opacity, 0.12); 6463} 6464.mdc-switch__track::before, .mdc-switch__track::after { 6465 border: 1px solid transparent; 6466 border-radius: inherit; 6467 box-sizing: border-box; 6468 content: ""; 6469 height: 100%; 6470 left: 0; 6471 position: absolute; 6472 width: 100%; 6473 border-width: var(--mat-slide-toggle-track-outline-width, 2px); 6474 border-color: var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline)); 6475} 6476.mdc-switch--selected .mdc-switch__track::before, .mdc-switch--selected .mdc-switch__track::after { 6477 border-width: var(--mat-slide-toggle-selected-track-outline-width, 2px); 6478 border-color: var(--mat-slide-toggle-selected-track-outline-color, transparent); 6479} 6480.mdc-switch--disabled .mdc-switch__track::before, .mdc-switch--disabled .mdc-switch__track::after { 6481 border-width: var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px); 6482 border-color: var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface)); 6483} 6484@media (forced-colors: active) { 6485 .mdc-switch__track { 6486 border-color: currentColor; 6487 } 6488} 6489.mdc-switch__track::before { 6490 transition: transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1); 6491 transform: translateX(0); 6492 background: var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant)); 6493} 6494.mdc-switch--selected .mdc-switch__track::before { 6495 transition: transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1); 6496 transform: translateX(100%); 6497} 6498[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before { 6499 transform: translateX(-100%); 6500} 6501.mdc-switch--selected .mdc-switch__track::before { 6502 opacity: var(--mat-slide-toggle-hidden-track-opacity, 0); 6503 transition: var(--mat-slide-toggle-hidden-track-transition, opacity 75ms); 6504} 6505.mdc-switch--unselected .mdc-switch__track::before { 6506 opacity: var(--mat-slide-toggle-visible-track-opacity, 1); 6507 transition: var(--mat-slide-toggle-visible-track-transition, opacity 75ms); 6508} 6509.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before { 6510 background: var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant)); 6511} 6512.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before { 6513 background: var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant)); 6514} 6515.mdc-switch:enabled:active .mdc-switch__track::before { 6516 background: var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant)); 6517} 6518.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before, .mdc-switch.mdc-switch--disabled .mdc-switch__track::before { 6519 background: var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant)); 6520} 6521.mdc-switch__track::after { 6522 transform: translateX(-100%); 6523 background: var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary)); 6524} 6525[dir=rtl] .mdc-switch__track::after { 6526 transform: translateX(100%); 6527} 6528.mdc-switch--selected .mdc-switch__track::after { 6529 transform: translateX(0); 6530} 6531.mdc-switch--selected .mdc-switch__track::after { 6532 opacity: var(--mat-slide-toggle-visible-track-opacity, 1); 6533 transition: var(--mat-slide-toggle-visible-track-transition, opacity 75ms); 6534} 6535.mdc-switch--unselected .mdc-switch__track::after { 6536 opacity: var(--mat-slide-toggle-hidden-track-opacity, 0); 6537 transition: var(--mat-slide-toggle-hidden-track-transition, opacity 75ms); 6538}
6539.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after { 6540 background: var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary)); 6541} 6542.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after { 6543 background: var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary)); 6544} 6545.mdc-switch:enabled:active .mdc-switch__track::after { 6546 background: var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary)); 6547} 6548.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after, .mdc-switch.mdc-switch--disabled .mdc-switch__track::after { 6549 background: var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface)); 6550} 6551 6552.mdc-switch__handle-track { 6553 height: 100%; 6554 pointer-events: none; 6555 position: absolute; 6556 top: 0; 6557 transition: transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1); 6558 left: 0; 6559 right: auto; 6560 transform: translateX(0); 6561 width: calc(100% - var(--mat-slide-toggle-handle-width)); 6562} 6563[dir=rtl] .mdc-switch__handle-track { 6564 left: auto; 6565 right: 0; 6566} 6567.mdc-switch--selected .mdc-switch__handle-track { 6568 transform: translateX(100%); 6569} 6570[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track { 6571 transform: translateX(-100%); 6572} 6573 6574.mdc-switch__handle { 6575 display: flex; 6576 pointer-events: auto; 6577 position: absolute; 6578 top: 50%; 6579 transform: translateY(-50%); 6580 left: 0; 6581 right: auto; 6582 transition: width 75ms cubic-bezier(0.4, 0, 0.2, 1), height 75ms cubic-bezier(0.4, 0, 0.2, 1), margin 75ms cubic-bezier(0.4, 0, 0.2, 1); 6583 width: var(--mat-slide-toggle-handle-width); 6584 height: var(--mat-slide-toggle-handle-height); 6585 border-radius: var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full)); 6586} 6587[dir=rtl] .mdc-switch__handle { 6588 left: auto; 6589 right: 0; 6590} 6591.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle { 6592 width: var(--mat-slide-toggle-unselected-handle-size, 16px); 6593 height: var(--mat-slide-toggle-unselected-handle-size, 16px); 6594 margin: var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px); 6595} 6596.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons) { 6597 margin: var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px); 6598} 6599.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle { 6600 width: var(--mat-slide-toggle-selected-handle-size, 24px); 6601 height: var(--mat-slide-toggle-selected-handle-size, 24px); 6602 margin: var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px); 6603} 6604.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons) { 6605 margin: var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px); 6606} 6607.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons) { 6608 width: var(--mat-slide-toggle-with-icon-handle-size, 24px); 6609 height: var(--mat-slide-toggle-with-icon-handle-size, 24px); 6610} 6611.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle { 6612 width: var(--mat-slide-toggle-pressed-handle-size, 28px); 6613 height: var(--mat-slide-toggle-pressed-handle-size, 28px); 6614} 6615.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle { 6616 margin: var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px); 6617} 6618.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle { 6619 margin: var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px); 6620} 6621.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after { 6622 opacity: var(--mat-slide-toggle-disabled-selected-handle-opacity, 1); 6623} 6624.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after { 6625 opacity: var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38); 6626} 6627.mdc-switch__handle::before, .mdc-switch__handle::after { 6628 border: 1px solid transparent; 6629 border-radius: inherit; 6630 box-sizing: border-box; 6631 content: ""; 6632 width: 100%; 6633 height: 100%; 6634 left: 0; 6635 position: absolute; 6636 top: 0; 6637 transition: background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1), border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1); 6638 z-index: -1; 6639} 6640@media (forced-colors: active) { 6641 .mdc-switch__handle::before, .mdc-switch__handle::after { 6642 border-color: currentColor; 6643 } 6644} 6645.mdc-switch--selected:enabled .mdc-switch__handle::after {
6646 background: var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary)); 6647} 6648.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after { 6649 background: var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container)); 6650} 6651.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after { 6652 background: var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container)); 6653} 6654.mdc-switch--selected:enabled:active .mdc-switch__handle::after { 6655 background: var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container)); 6656} 6657.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after, .mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after { 6658 background: var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface)); 6659} 6660.mdc-switch--unselected:enabled .mdc-switch__handle::after { 6661 background: var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline)); 6662} 6663.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after { 6664 background: var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant)); 6665} 6666.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after { 6667 background: var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant)); 6668} 6669.mdc-switch--unselected:enabled:active .mdc-switch__handle::after { 6670 background: var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant)); 6671} 6672.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after { 6673 background: var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface)); 6674} 6675.mdc-switch__handle::before { 6676 background: var(--mat-slide-toggle-handle-surface-color); 6677} 6678 6679.mdc-switch__shadow { 6680 border-radius: inherit; 6681 bottom: 0; 6682 left: 0; 6683 position: absolute; 6684 right: 0; 6685 top: 0; 6686} 6687.mdc-switch:enabled .mdc-switch__shadow { 6688 box-shadow: var(--mat-slide-toggle-handle-elevation-shadow); 6689} 6690.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow, .mdc-switch.mdc-switch--disabled .mdc-switch__shadow { 6691 box-shadow: var(--mat-slide-toggle-disabled-handle-elevation-shadow); 6692} 6693 6694.mdc-switch__ripple { 6695 left: 50%; 6696 position: absolute; 6697 top: 50%; 6698 transform: translate(-50%, -50%); 6699 z-index: -1; 6700 width: var(--mat-slide-toggle-state-layer-size, 40px); 6701 height: var(--mat-slide-toggle-state-layer-size, 40px); 6702} 6703.mdc-switch__ripple::after { 6704 content: ""; 6705 opacity: 0; 6706} 6707.mdc-switch--disabled .mdc-switch__ripple::after { 6708 display: none; 6709} 6710.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after { 6711 display: block; 6712} 6713.mdc-switch:hover .mdc-switch__ripple::after { 6714 transition: 75ms opacity cubic-bezier(0, 0, 0.2, 1); 6715} 6716.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after, .mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after { 6717 background: var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface)); 6718 opacity: var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 6719} 6720.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after {
6721 background: var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface)); 6722 opacity: var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 6723} 6724.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after { 6725 background: var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface)); 6726 opacity: var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 6727 transition: opacity 75ms linear; 6728} 6729.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after { 6730 background: var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary)); 6731 opacity: var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 6732} 6733.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after { 6734 background: var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary)); 6735 opacity: var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 6736} 6737.mdc-switch--selected:enabled:active .mdc-switch__ripple::after { 6738 background: var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary)); 6739 opacity: var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 6740 transition: opacity 75ms linear; 6741} 6742 6743.mdc-switch__icons { 6744 position: relative; 6745 height: 100%; 6746 width: 100%; 6747 z-index: 1; 6748 transform: translateZ(0); 6749} 6750.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons { 6751 opacity: var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38); 6752} 6753.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons { 6754 opacity: var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38); 6755} 6756 6757.mdc-switch__icon { 6758 bottom: 0; 6759 left: 0; 6760 margin: auto; 6761 position: absolute; 6762 right: 0; 6763 top: 0; 6764 opacity: 0; 6765 transition: opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1); 6766} 6767.mdc-switch--unselected .mdc-switch__icon { 6768 width: var(--mat-slide-toggle-unselected-icon-size, 16px); 6769 height: var(--mat-slide-toggle-unselected-icon-size, 16px); 6770 fill: var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant)); 6771} 6772.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon { 6773 fill: var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant)); 6774} 6775.mdc-switch--selected .mdc-switch__icon { 6776 width: var(--mat-slide-toggle-selected-icon-size, 16px); 6777 height: var(--mat-slide-toggle-selected-icon-size, 16px); 6778 fill: var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container)); 6779} 6780.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon { 6781 fill: var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface)); 6782} 6783 6784.mdc-switch--selected .mdc-switch__icon--on, 6785.mdc-switch--unselected .mdc-switch__icon--off { 6786 opacity: 1; 6787 transition: opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1); 6788} 6789 6790.mat-mdc-slide-toggle { 6791 -webkit-user-select: none; 6792 user-select: none; 6793 display: inline-block; 6794 -webkit-tap-highlight-color: transparent; 6795 outline: 0; 6796} 6797.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple, 6798.mat-mdc-slide-toggle .mdc-switch__ripple::after { 6799 top: 0; 6800 left: 0; 6801 right: 0; 6802 bottom: 0; 6803 position: absolute; 6804 border-radius: 50%; 6805 pointer-events: none; 6806} 6807.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty), 6808.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty) { 6809 transform: translateZ(0); 6810} 6811.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before { 6812 content: ""; 6813} 6814.mat-mdc-slide-toggle .mat-internal-form-field { 6815 color: var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface)); 6816 font-family: var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font)); 6817 line-height: var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height)); 6818 font-size: var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size)); 6819 letter-spacing: var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));
6820 font-weight: var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight)); 6821} 6822.mat-mdc-slide-toggle .mat-ripple-element { 6823 opacity: 0.12; 6824} 6825.mat-mdc-slide-toggle .mat-focus-indicator::before { 6826 border-radius: 50%; 6827} 6828.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track, 6829.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon, 6830.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before, 6831.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after, 6832.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before, 6833.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after { 6834 transition: none; 6835} 6836.mat-mdc-slide-toggle .mdc-switch:enabled + .mdc-label { 6837 cursor: pointer; 6838} 6839.mat-mdc-slide-toggle .mdc-switch--disabled + label { 6840 color: var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface)); 6841} 6842.mat-mdc-slide-toggle label:empty { 6843 display: none; 6844} 6845 6846.mat-mdc-slide-toggle-touch-target { 6847 position: absolute; 6848 top: 50%; 6849 left: 50%; 6850 height: var(--mat-slide-toggle-touch-target-size, 48px); 6851 width: 100%; 6852 transform: translate(-50%, -50%); 6853 display: var(--mat-slide-toggle-touch-target-display, block); 6854} 6855[dir=rtl] .mat-mdc-slide-toggle-touch-target { 6856 left: auto; 6857 right: 50%; 6858 transform: translate(50%, -50%); 6859} 6860`],encapsulation:2})}return n})(),wC=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[fu$1,it$2]})}return n})();var ya=["*"],gu$1=["content"],sd$1=[[["mat-drawer"],["mat-sidenav"]],[["mat-drawer-content"],["mat-sidenav-content"]],"*"],ld$1=["mat-drawer, mat-sidenav","mat-drawer-content, mat-sidenav-content","*"];function bu$1(n,r){if(n&1){let e=i_$1();Js$2(0,"div",1),Ey("click",function(){Vp$2(e);let i=d_$1();return Hp$2(i._onBackdropClicked())}),gd$2();}if(n&2){let e=d_$1();xy("mat-drawer-shown",e._isShowingBackdrop());}}function vu$1(n,r){n&1&&(Js$2(0,"mat-drawer-content"),h_$1(1,2),gd$2());}function yu$1(n,r){if(n&1){let e=i_$1();Js$2(0,"div",1),Ey("click",function(){Vp$2(e);let i=d_$1();return Hp$2(i._onBackdropClicked())}),gd$2();}if(n&2){let e=d_$1();xy("mat-drawer-shown",e._isShowingBackdrop());}}function xu$1(n,r){n&1&&(Js$2(0,"mat-sidenav-content"),h_$1(1,2),gd$2());}var wu$1=`.mat-drawer-container { 6861 position: relative; 6862 z-index: 1; 6863 color: var(--mat-sidenav-content-text-color, var(--mat-sys-on-background)); 6864 background-color: var(--mat-sidenav-content-background-color, var(--mat-sys-background)); 6865 box-sizing: border-box; 6866 display: block; 6867 overflow: hidden; 6868} 6869.mat-drawer-container[fullscreen] { 6870 top: 0; 6871 left: 0; 6872 right: 0; 6873 bottom: 0; 6874 position: absolute; 6875} 6876.mat-drawer-container[fullscreen].mat-drawer-container-has-open { 6877 overflow: hidden; 6878} 6879.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side { 6880 z-index: 3; 6881} 6882.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop, 6883.mat-drawer-container.ng-animate-disabled .mat-drawer-content, .ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop, 6884.ng-animate-disabled .mat-drawer-container .mat-drawer-content { 6885 transition: none; 6886} 6887 6888.mat-drawer-backdrop { 6889 top: 0; 6890 left: 0; 6891 right: 0; 6892 bottom: 0; 6893 position: absolute; 6894 display: block; 6895 z-index: 3; 6896 visibility: hidden; 6897} 6898.mat-drawer-backdrop.mat-drawer-shown { 6899 visibility: visible; 6900 background-color: var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent)); 6901} 6902.mat-drawer-transition .mat-drawer-backdrop { 6903 transition-duration: 400ms; 6904 transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1); 6905 transition-property: background-color, visibility; 6906} 6907@media (forced-colors: active) { 6908 .mat-drawer-backdrop { 6909 opacity: 0.5; 6910 } 6911} 6912 6913.mat-drawer-content { 6914 position: relative; 6915 z-index: 1; 6916 display: block; 6917 height: 100%; 6918 overflow: auto; 6919} 6920.mat-drawer-content.mat-drawer-content-hidden { 6921 opacity: 0; 6922} 6923.mat-drawer-transition .mat-drawer-content { 6924 transition-duration: 400ms; 6925 transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1); 6926 transition-property: transform, margin-left, margin-right; 6927} 6928 6929.mat-drawer { 6930 position: relative; 6931 z-index: 4; 6932 color: var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant)); 6933 box-shadow: var(--mat-sidenav-container-elevation-shadow, none); 6934 background-color: var(--mat-sidenav-container-background-color, var(--mat-sys-surface)); 6935 border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 6936 border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 6937 width: var(--mat-sidenav-container-width, 360px); 6938 display: block; 6939 position: absolute; 6940 top: 0; 6941 bottom: 0; 6942 z-index: 3; 6943 outline: 0; 6944 box-sizing: border-box; 6945 overflow-y: auto; 6946 transform: translate3d(-100%, 0, 0); 6947} 6948@media (forced-colors: active) { 6949 .mat-drawer, [dir=rtl] .mat-drawer.mat-drawer-end { 6950 border-right: solid 1px currentColor; 6951 } 6952} 6953@media (forced-colors: active) { 6954 [dir=rtl] .mat-drawer, .mat-drawer.mat-drawer-end { 6955 border-left: solid 1px currentColor;
6956 border-right: none; 6957 } 6958} 6959.mat-drawer.mat-drawer-side { 6960 z-index: 2; 6961} 6962.mat-drawer.mat-drawer-end { 6963 right: 0; 6964 transform: translate3d(100%, 0, 0); 6965 border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 6966 border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 6967 border-top-right-radius: 0; 6968 border-bottom-right-radius: 0; 6969} 6970[dir=rtl] .mat-drawer { 6971 border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 6972 border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 6973 border-top-right-radius: 0; 6974 border-bottom-right-radius: 0; 6975 transform: translate3d(100%, 0, 0); 6976} 6977[dir=rtl] .mat-drawer.mat-drawer-end { 6978 border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 6979 border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 6980 border-top-left-radius: 0; 6981 border-bottom-left-radius: 0; 6982 left: 0; 6983 right: auto; 6984 transform: translate3d(-100%, 0, 0); 6985} 6986.mat-drawer-transition .mat-drawer { 6987 transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); 6988} 6989.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) { 6990 visibility: hidden; 6991 box-shadow: none; 6992} 6993.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container { 6994 display: none; 6995} 6996.mat-drawer.mat-drawer-opened.mat-drawer-opened { 6997 transform: none; 6998} 6999 7000.mat-drawer-side { 7001 box-shadow: none; 7002 border-right-color: var(--mat-sidenav-container-divider-color, transparent); 7003 border-right-width: 1px; 7004 border-right-style: solid; 7005} 7006.mat-drawer-side.mat-drawer-end { 7007 border-left-color: var(--mat-sidenav-container-divider-color, transparent); 7008 border-left-width: 1px; 7009 border-left-style: solid; 7010 border-right: none; 7011} 7012[dir=rtl] .mat-drawer-side { 7013 border-left-color: var(--mat-sidenav-container-divider-color, transparent); 7014 border-left-width: 1px; 7015 border-left-style: solid; 7016 border-right: none; 7017} 7018[dir=rtl] .mat-drawer-side.mat-drawer-end { 7019 border-right-color: var(--mat-sidenav-container-divider-color, transparent); 7020 border-right-width: 1px; 7021 border-right-style: solid; 7022 border-left: none; 7023} 7024 7025.mat-drawer-inner-container { 7026 width: 100%; 7027 height: 100%; 7028 overflow: auto; 7029} 7030 7031.mat-sidenav-fixed { 7032 position: fixed; 7033} 7034`;var ku$1=new I$4("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:()=>false}),Wr=new I$4("MAT_DRAWER_CONTAINER"),cn=(()=>{class n extends Ge$3{_platform=g$4(_$7);_changeDetectorRef=g$4(Od$2);_element=g$4(Vt$3);_ngZone=g$4(q$3);_isInert=false;_container=g$4(Ur);ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>this._changeDetectorRef.markForCheck());}_drawerToggled(e){e.opened?this._ngZone.runOutsideAngular(()=>{e._animationEnd.pipe(Qf$1(50),bn$3(1)).subscribe(()=>this._updateInert());}):this._updateInert();}_updateInert(){let e=this._container._isShowingBackdrop();if(e!==this._isInert){let t=this._element.nativeElement;this._isInert=e,e?t.setAttribute("inert","true"):t.removeAttribute("inert");}}_shouldBeHidden(){if(this._platform.isBrowser)return false;let{start:e,end:t}=this._container;return e!=null&&e.mode!=="over"&&e.opened||t!=null&&t.mode!=="over"&&t.opened}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(t,i){t&2&&(Ny("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px"),xy("mat-drawer-content-hidden",i._shouldBeHidden()));},features:[tS([{provide:Ge$3,useExisting:n}]),Xm$2],ngContentSelectors:ya,decls:1,vars:0,template:function(t,i){t&1&&(p_$1(),h_$1(0));},encapsulation:2})}return n})(),Gr=(()=>{class n{_elementRef=g$4(Vt$3);_focusTrapFactory=g$4(hn$1);_focusMonitor=g$4(Ot);_platform=g$4(_$7);_ngZone=g$4(q$3);_renderer=g$4(qo$1);_interactivityChecker=g$4(bn$1);_doc=g$4(Y$3);_container=g$4(Wr,{optional:true});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached=false;_anchor=null;get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit());}_position="start";get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next();}_mode="over";get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Er$2(e);}_disableClose=false;get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=Er$2(e)),this._autoFocus=e;}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Er$2(e));}_opened=Es$1(false);_openedVia=null;_animationStarted=new ye$5;_animationEnd=new ye$5;openedChange=new kt$3(true);
7034_openedStream=this.openedChange.pipe(Yt$5(e=>e),ve$4(()=>{}));openedStart=this._animationStarted.pipe(Yt$5(()=>this.opened),hc$2(void 0));_closedStream=this.openedChange.pipe(Yt$5(e=>!e),ve$4(()=>{}));closedStart=this._animationStarted.pipe(Yt$5(()=>!this.opened),hc$2(void 0));_destroyed=new ye$5;onPositionChanged=new kt$3;_content;_modeChanged=new ye$5;_injector=g$4(Ee$4);_changeDetectorRef=g$4(Od$2);constructor(){this.openedChange.pipe(Hf$1(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program");}),this._eventCleanups=this._ngZone.runOutsideAngular(()=>{let e=this._renderer,t=this._elementRef.nativeElement;return [e.listen(t,"keydown",i=>{i.keyCode===27&&!this.disableClose&&!Ye$4(i)&&this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault();});}),e.listen(t,"transitionend",this._handleTransitionEvent),e.listen(t,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened);});}_focusByCssSelector(e,t){let i=this._elementRef.nativeElement.querySelector(e);i&&(this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let a=()=>{o(),l(),i.removeAttribute("tabindex");},o=this._renderer.listen(i,"blur",a),l=this._renderer.listen(i,"mousedown",a);})),i.focus(t));}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case false:case "dialog":return;case true:case "first-tabbable":Jg(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus();},{injector:this._injector});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null);}_isFocusWithinDrawer(){let e=this._doc.activeElement;return !!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=true,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState());}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete();}open(e){return this.toggle(true,e)}close(){return this.toggle(false)}_closeViaBackdropClick(){return this._setOpen(false,true,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);let i=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),i}_setOpen(e,t,i){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),(this._container?._content||this._container?._userContent)?._drawerToggled(this),this._container?._transitionsEnabled?(this._setIsAnimating(true),setTimeout(()=>this._animationStarted.next())):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next();}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&t&&this._restoreFocus(i),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(a=>{this.openedChange.pipe(bn$3(1)).subscribe(o=>a(o?"open":"close"));}))}_setIsAnimating(e){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",e);}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&!!this._container?._isShowingBackdrop());}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let t=this._elementRef.nativeElement,i=t.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),i.insertBefore(this._anchor,t)),i.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor);}_handleTransitionEvent=e=>{let t=this._elementRef.nativeElement;e.target===t&&this._ngZone.run(()=>{e.type==="transitionend"&&this._setIsAnimating(false),this._animationEnd.next(e);});};static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-drawer"]],viewQuery:function(t,i){if(t&1&&by(gu$1,5),t&2){let a;
7034m_$1(a=y_$1())&&(i._content=a.first);}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(t,i){t&2&&(ly("align",null)("tabIndex",i.mode!=="side"?"-1":null),Ny("visibility",!i._container&&!i.opened?"hidden":null),xy("mat-drawer-end",i.position==="end")("mat-drawer-over",i.mode==="over")("mat-drawer-push",i.mode==="push")("mat-drawer-side",i.mode==="side"));},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ya,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,i){t&1&&(p_$1(),Js$2(0,"div",1,0),h_$1(2),gd$2());},dependencies:[Ge$3],encapsulation:2})}return n})(),Ur=(()=>{class n{_dir=g$4(qe$4,{optional:true});_element=g$4(Vt$3);_ngZone=g$4(q$3);_changeDetectorRef=g$4(Od$2);_animationDisabled=ct$1();_transitionsEnabled=false;_allDrawers;_drawers=new Vs$2;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Er$2(e);}_autosize=g$4(ku$1);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Er$2(e);}_backdropOverride=null;backdropClick=new kt$3;_start=null;_end=null;_left=null;_right=null;_destroyed=new ye$5;_doCheckSubject=new ye$5;_contentMargins={left:null,right:null};_contentMarginChanges=new ye$5;get scrollable(){return this._userContent||this._content}_injector=g$4(Ee$4);constructor(){let e=g$4(_$7),t=g$4(G$3);this._dir?.change.pipe(Hf$1(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins();}),t.change().pipe(Hf$1(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&e.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=true;},200);});}ngAfterContentInit(){this._allDrawers.changes.pipe(Jf(this._allDrawers),Hf$1(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges();}),this._drawers.changes.pipe(Jf(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e);}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck();}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Bf$1(10),Hf$1(this._destroyed)).subscribe(()=>this.updateContentMargins());});}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete();}open(){this._drawers.forEach(e=>e.open());}close(){this._drawers.forEach(e=>e.close());}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let i=this._left._getWidth();e+=i,t-=i;}}if(this._right&&this._right.opened){if(this._right.mode=="side")t+=this._right._getWidth();else if(this._right.mode=="push"){let i=this._right._getWidth();t+=i,e-=i;}}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)));}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next());}_watchDrawerToggle(e){e._animationStarted.pipe(Hf$1(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck();}),e.mode!=="side"&&e.openedChange.pipe(Hf$1(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened));}_watchDrawerPosition(e){e.onPositionChanged.pipe(Hf$1(this._drawers.changes)).subscribe(()=>{Jg({read:()=>
7034this._validateDrawers()},{injector:this._injector});});}_watchDrawerMode(e){e._modeChanged.pipe(Hf$1(WD(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck();});}_setContainerClass(e){let t=this._element.nativeElement.classList,i="mat-drawer-container-has-open";e?t.add(i):t.remove(i);}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e);}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end);}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop();}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick());}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,cn,5)(a,Gr,5),t&2){let o;m_$1(o=y_$1())&&(i._content=o.first),m_$1(o=y_$1())&&(i._allDrawers=o);}},viewQuery:function(t,i){if(t&1&&by(cn,5),t&2){let a;m_$1(a=y_$1())&&(i._userContent=a.first);}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,i){t&2&&xy("mat-drawer-container-explicit-backdrop",i._backdropOverride);},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[tS([{provide:Wr,useExisting:n}])],ngContentSelectors:ld$1,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,i){t&1&&(p_$1(sd$1),ZT(0,bu$1,1,2,"div",0),h_$1(1),h_$1(2,1),ZT(3,vu$1,2,0,"mat-drawer-content")),t&2&&(YT(i.hasBackdrop?0:-1),SC(3),YT(i._content?-1:3));},dependencies:[cn],styles:[`.mat-drawer-container { 7035 position: relative; 7036 z-index: 1; 7037 color: var(--mat-sidenav-content-text-color, var(--mat-sys-on-background)); 7038 background-color: var(--mat-sidenav-content-background-color, var(--mat-sys-background)); 7039 box-sizing: border-box; 7040 display: block; 7041 overflow: hidden; 7042} 7043.mat-drawer-container[fullscreen] { 7044 top: 0; 7045 left: 0; 7046 right: 0; 7047 bottom: 0; 7048 position: absolute; 7049} 7050.mat-drawer-container[fullscreen].mat-drawer-container-has-open { 7051 overflow: hidden; 7052} 7053.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side { 7054 z-index: 3; 7055} 7056.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop, 7057.mat-drawer-container.ng-animate-disabled .mat-drawer-content, .ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop, 7058.ng-animate-disabled .mat-drawer-container .mat-drawer-content { 7059 transition: none; 7060} 7061 7062.mat-drawer-backdrop { 7063 top: 0; 7064 left: 0; 7065 right: 0; 7066 bottom: 0; 7067 position: absolute; 7068 display: block; 7069 z-index: 3; 7070 visibility: hidden; 7071} 7072.mat-drawer-backdrop.mat-drawer-shown { 7073 visibility: visible; 7074 background-color: var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent)); 7075} 7076.mat-drawer-transition .mat-drawer-backdrop { 7077 transition-duration: 400ms; 7078 transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1); 7079 transition-property: background-color, visibility; 7080} 7081@media (forced-colors: active) { 7082 .mat-drawer-backdrop { 7083 opacity: 0.5; 7084 } 7085} 7086 7087.mat-drawer-content { 7088 position: relative; 7089 z-index: 1; 7090 display: block; 7091 height: 100%; 7092 overflow: auto; 7093} 7094.mat-drawer-content.mat-drawer-content-hidden { 7095 opacity: 0; 7096} 7097.mat-drawer-transition .mat-drawer-content { 7098 transition-duration: 400ms; 7099 transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1); 7100 transition-property: transform, margin-left, margin-right; 7101} 7102 7103.mat-drawer { 7104 position: relative; 7105 z-index: 4; 7106 color: var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant)); 7107 box-shadow: var(--mat-sidenav-container-elevation-shadow, none); 7108 background-color: var(--mat-sidenav-container-background-color, var(--mat-sys-surface)); 7109 border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 7110 border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 7111 width: var(--mat-sidenav-container-width, 360px); 7112 display: block; 7113 position: absolute; 7114 top: 0; 7115 bottom: 0; 7116 z-index: 3; 7117 outline: 0; 7118 box-sizing: border-box; 7119 overflow-y: auto; 7120 transform: translate3d(-100%, 0, 0); 7121} 7122@media (forced-colors: active) { 7123 .mat-drawer, [dir=rtl] .mat-drawer.mat-drawer-end { 7124 border-right: solid 1px currentColor; 7125 } 7126} 7127@media (forced-colors: active) { 7128 [dir=rtl] .mat-drawer, .mat-drawer.mat-drawer-end { 7129 border-left: solid 1px currentColor;
7130 border-right: none; 7131 } 7132} 7133.mat-drawer.mat-drawer-side { 7134 z-index: 2; 7135} 7136.mat-drawer.mat-drawer-end { 7137 right: 0; 7138 transform: translate3d(100%, 0, 0); 7139 border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 7140 border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 7141 border-top-right-radius: 0; 7142 border-bottom-right-radius: 0; 7143} 7144[dir=rtl] .mat-drawer { 7145 border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 7146 border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 7147 border-top-right-radius: 0; 7148 border-bottom-right-radius: 0; 7149 transform: translate3d(100%, 0, 0); 7150} 7151[dir=rtl] .mat-drawer.mat-drawer-end { 7152 border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 7153 border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); 7154 border-top-left-radius: 0; 7155 border-bottom-left-radius: 0; 7156 left: 0; 7157 right: auto; 7158 transform: translate3d(-100%, 0, 0); 7159} 7160.mat-drawer-transition .mat-drawer { 7161 transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); 7162} 7163.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) { 7164 visibility: hidden; 7165 box-shadow: none; 7166} 7167.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container { 7168 display: none; 7169} 7170.mat-drawer.mat-drawer-opened.mat-drawer-opened { 7171 transform: none; 7172} 7173 7174.mat-drawer-side { 7175 box-shadow: none; 7176 border-right-color: var(--mat-sidenav-container-divider-color, transparent); 7177 border-right-width: 1px; 7178 border-right-style: solid; 7179} 7180.mat-drawer-side.mat-drawer-end { 7181 border-left-color: var(--mat-sidenav-container-divider-color, transparent); 7182 border-left-width: 1px; 7183 border-left-style: solid; 7184 border-right: none; 7185} 7186[dir=rtl] .mat-drawer-side { 7187 border-left-color: var(--mat-sidenav-container-divider-color, transparent); 7188 border-left-width: 1px; 7189 border-left-style: solid; 7190 border-right: none; 7191} 7192[dir=rtl] .mat-drawer-side.mat-drawer-end { 7193 border-right-color: var(--mat-sidenav-container-divider-color, transparent); 7194 border-right-width: 1px; 7195 border-right-style: solid; 7196 border-left: none; 7197} 7198 7199.mat-drawer-inner-container { 7200 width: 100%; 7201 height: 100%; 7202 overflow: auto; 7203} 7204 7205.mat-sidenav-fixed { 7206 position: fixed; 7207} 7208`],encapsulation:2})}return n})(),od$1=(()=>{class n extends cn{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[tS([{provide:Ge$3,useExisting:n},{provide:cn,useExisting:n}]),Xm$2],ngContentSelectors:ya,decls:1,vars:0,template:function(t,i){t&1&&(p_$1(),h_$1(0));},encapsulation:2})}return n})(),Cu$1=(()=>{class n extends Gr{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Er$2(e);}_fixedInViewport=false;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Jt$4(e);}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Jt$4(e);}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(t,i){t&2&&(ly("tabIndex",i.mode!=="side"?"-1":null)("align",null),Ny("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),xy("mat-drawer-end",i.position==="end")("mat-drawer-over",i.mode==="over")("mat-drawer-push",i.mode==="push")("mat-drawer-side",i.mode==="side")("mat-sidenav-fixed",i.fixedInViewport));},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[tS([{provide:Gr,useExisting:n}]),Xm$2],ngContentSelectors:ya,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,i){t&1&&(p_$1(),Js$2(0,"div",1,0),h_$1(2),gd$2());},dependencies:[Ge$3],encapsulation:2})}return n})(),jC=(()=>{class n extends Ur{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,od$1,5)(a,Cu$1,5),t&2){let o;
7208m_$1(o=y_$1())&&(i._content=o.first),m_$1(o=y_$1())&&(i._allDrawers=o);}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,i){t&2&&xy("mat-drawer-container-explicit-backdrop",i._backdropOverride);},exportAs:["matSidenavContainer"],features:[tS([{provide:Wr,useExisting:n},{provide:Ur,useExisting:n}]),Xm$2],ngContentSelectors:ld$1,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,i){t&1&&(p_$1(sd$1),ZT(0,yu$1,1,2,"div",0),h_$1(1),h_$1(2,1),ZT(3,xu$1,2,0,"mat-sidenav-content")),t&2&&(YT(i.hasBackdrop?0:-1),SC(3),YT(i._content?-1:3));},dependencies:[od$1],styles:[wu$1],encapsulation:2})}return n})(),GC=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Ht$3,it$2,Ht$3]})}return n})();var Du$1=["*",[["mat-toolbar-row"]]],Mu$1=["*","mat-toolbar-row"],Su$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return n})(),eD=(()=>{class n{_elementRef=g$4(Vt$3);_platform=g$4(_$7);_document=g$4(Y$3);color;_toolbarRows;ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()));}_checkToolbarMixedModes(){this._toolbarRows.length;}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-toolbar"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,Su$1,5),t&2){let o;m_$1(o=y_$1())&&(i._toolbarRows=o);}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(t,i){t&2&&(x_$1(i.color?"mat-"+i.color:""),xy("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",i._toolbarRows.length===0));},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Mu$1,decls:2,vars:0,template:function(t,i){t&1&&(p_$1(Du$1),h_$1(0),h_$1(1,1));},styles:[`.mat-toolbar { 7209 background: var(--mat-toolbar-container-background-color, var(--mat-sys-surface)); 7210 color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface)); 7211} 7212.mat-toolbar, .mat-toolbar h1, .mat-toolbar h2, .mat-toolbar h3, .mat-toolbar h4, .mat-toolbar h5, .mat-toolbar h6 { 7213 font-family: var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font)); 7214 font-size: var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size)); 7215 line-height: var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height)); 7216 font-weight: var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight)); 7217 letter-spacing: var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking)); 7218 margin: 0; 7219} 7220@media (forced-colors: active) { 7221 .mat-toolbar { 7222 outline: solid 1px; 7223 } 7224} 7225.mat-toolbar .mat-form-field-underline, 7226.mat-toolbar .mat-form-field-ripple, 7227.mat-toolbar .mat-focused .mat-form-field-ripple { 7228 background-color: currentColor; 7229} 7230.mat-toolbar .mat-form-field-label, 7231.mat-toolbar .mat-focused .mat-form-field-label, 7232.mat-toolbar .mat-select-value, 7233.mat-toolbar .mat-select-arrow, 7234.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow { 7235 color: inherit; 7236} 7237.mat-toolbar .mat-input-element { 7238 caret-color: currentColor; 7239} 7240.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed { 7241 --mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface)); 7242 --mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface)); 7243} 7244 7245.mat-toolbar-row, .mat-toolbar-single-row { 7246 display: flex; 7247 box-sizing: border-box; 7248 padding: 0 16px; 7249 width: 100%; 7250 flex-direction: row; 7251 align-items: center; 7252 white-space: nowrap; 7253 height: var(--mat-toolbar-standard-height, 64px); 7254} 7255@media (max-width: 599px) { 7256 .mat-toolbar-row, .mat-toolbar-single-row { 7257 height: var(--mat-toolbar-mobile-height, 56px); 7258 } 7259} 7260 7261.mat-toolbar-multiple-rows { 7262 display: flex; 7263 box-sizing: border-box; 7264 flex-direction: column; 7265 width: 100%; 7266 min-height: var(--mat-toolbar-standard-height, 64px); 7267} 7268@media (max-width: 599px) { 7269 .mat-toolbar-multiple-rows { 7270 min-height: var(--mat-toolbar-mobile-height, 56px); 7271 } 7272} 7273`],encapsulation:2})}return n})();var tD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();var Iu$1=["*"];var Eu$1=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Tu$1=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, 7274 [mat-card-title], [mat-card-subtitle], 7275 [matCardTitle], [matCardSubtitle]`,"*"],Au$1=new I$4("MAT_
7275CARD_CONFIG"),cD=(()=>{class n{appearance;constructor(){let e=g$4(Au$1,{optional:true});this.appearance=e?.appearance||"raised";}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(t,i){t&2&&xy("mat-mdc-card-outlined",i.appearance==="outlined")("mdc-card--outlined",i.appearance==="outlined")("mat-mdc-card-filled",i.appearance==="filled")("mdc-card--filled",i.appearance==="filled");},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:Iu$1,decls:1,vars:0,template:function(t,i){t&1&&(p_$1(),h_$1(0));},styles:[`.mat-mdc-card { 7276 display: flex; 7277 flex-direction: column; 7278 box-sizing: border-box; 7279 position: relative; 7280 border-style: solid; 7281 border-width: 0; 7282 background-color: var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low)); 7283 border-color: var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low)); 7284 border-radius: var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium)); 7285 box-shadow: var(--mat-card-elevated-container-elevation, var(--mat-sys-level1)); 7286} 7287.mat-mdc-card::after { 7288 position: absolute; 7289 top: 0; 7290 left: 0; 7291 width: 100%; 7292 height: 100%; 7293 border: solid 1px transparent; 7294 content: ""; 7295 display: block; 7296 pointer-events: none; 7297 box-sizing: border-box; 7298 border-radius: var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium)); 7299} 7300 7301.mat-mdc-card-outlined { 7302 background-color: var(--mat-card-outlined-container-color, var(--mat-sys-surface)); 7303 border-radius: var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium)); 7304 border-width: var(--mat-card-outlined-outline-width, 1px); 7305 border-color: var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant)); 7306 box-shadow: var(--mat-card-outlined-container-elevation, var(--mat-sys-level0)); 7307} 7308.mat-mdc-card-outlined::after { 7309 border: none; 7310} 7311 7312.mat-mdc-card-filled { 7313 background-color: var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest)); 7314 border-radius: var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium)); 7315 box-shadow: var(--mat-card-filled-container-elevation, var(--mat-sys-level0)); 7316} 7317 7318.mdc-card__media { 7319 position: relative; 7320 box-sizing: border-box; 7321 background-repeat: no-repeat; 7322 background-position: center; 7323 background-size: cover; 7324} 7325.mdc-card__media::before { 7326 display: block; 7327 content: ""; 7328} 7329.mdc-card__media:first-child { 7330 border-top-left-radius: inherit; 7331 border-top-right-radius: inherit; 7332} 7333.mdc-card__media:last-child { 7334 border-bottom-left-radius: inherit; 7335 border-bottom-right-radius: inherit; 7336} 7337 7338.mat-mdc-card-actions { 7339 display: flex; 7340 flex-direction: row; 7341 align-items: center; 7342 box-sizing: border-box; 7343 min-height: 52px; 7344 padding: 8px; 7345} 7346 7347.mat-mdc-card-title { 7348 font-family: var(--mat-card-title-text-font, var(--mat-sys-title-large-font)); 7349 line-height: var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height)); 7350 font-size: var(--mat-card-title-text-size, var(--mat-sys-title-large-size)); 7351 letter-spacing: var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking)); 7352 font-weight: var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight)); 7353} 7354 7355.mat-mdc-card-subtitle { 7356 color: var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface)); 7357 font-family: var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font)); 7358 line-height: var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height)); 7359 font-size: var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size)); 7360 letter-spacing: var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking)); 7361 font-weight: var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight)); 7362} 7363 7364.mat-mdc-card-title, 7365.mat-mdc-card-subtitle { 7366 display: block; 7367 margin: 0; 7368} 7369.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-title, 7370.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-subtitle { 7371 padding: 16px 16px 0; 7372} 7373 7374.mat-mdc-card-header { 7375 display: flex; 7376 padding: 16px 16px 0; 7377} 7378 7379.mat-mdc-card-content { 7380 display: block; 7381 padding: 0 16px; 7382} 7383.mat-mdc-card-content:first-child { 7384 padding-top: 16px; 7385} 7386.mat-mdc-card-content:last-child { 7387 padding-bottom: 16px; 7388} 7389 7390.mat-mdc-card-title-group { 7391 display: flex; 7392 justify-content: space-between; 7393 width: 100%; 7394} 7395 7396.mat-mdc-card-avatar { 7397 height: 40px; 7398 width: 40px; 7399 border-radius: 50%; 7400 flex-shrink: 0; 7401 margin-bottom: 16px; 7402 object-fit: cover; 7403} 7404.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-subtitle, 7405.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-title { 7406 line-height: normal; 7407} 7408 7409.mat-mdc-card-sm-image { 7410 width: 80px; 7411 height: 80px; 7412} 7413 7414.mat-mdc-card-md-image { 7415 width: 112px; 7416 height: 112px; 7417} 7418 7419.mat-mdc-card-lg-image { 7420 width: 152px; 7421 height: 152px; 7422} 7423 7424.mat-mdc-card-xl-image { 7425 width: 240px; 7426 height: 240px; 7427} 7428 7429.mat-mdc-card-subtitle ~ .mat-mdc-card-title, 7430.mat-mdc-card-title ~ .mat-mdc-card-subtitle, 7431.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title, 7432.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle, 7433.mat-mdc-card-title-group .mat-mdc-card-title, 7434.mat-mdc-card-title-group .mat-mdc-card-subtitle { 7435 padding-top: 0; 7436} 7437 7438.mat-mdc-card-content > :last-child:not(.mat-mdc-card-footer) { 7439 margin-bottom: 0; 7440} 7441
7442.mat-mdc-card-actions-align-end { 7443 justify-content: flex-end; 7444} 7445`],encapsulation:2})}return n})(),mD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return n})();var hD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return n})(),pD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return n})(),uD=(()=>{class n{align="start";static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(t,i){t&2&&xy("mat-mdc-card-actions-align-end",i.align==="end");},inputs:{align:"align"},exportAs:["matCardActions"]})}return n})(),_D=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:Tu$1,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(t,i){t&1&&(p_$1(Eu$1),h_$1(0),md$2(1,"div",0),h_$1(2,1),yd$2(),h_$1(3,2));},encapsulation:2})}return n})(),fD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-mdc-card-footer"]})}return n})(),gD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-mdc-card-image","mdc-card__media"]})}return n})();var bD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return n})();var vD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();var qr=new I$4("CdkAccordion"),dd$1=(()=>{class n{_stateChanges=new ye$5;_openCloseAllActions=new ye$5;id=g$4(re$4).getId("cdk-accordion-");multi=false;openAll(){this.multi&&this._openCloseAllActions.next(true);}closeAll(){this._openCloseAllActions.next(false);}ngOnChanges(e){this._stateChanges.next(e);}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",tM$1]},exportAs:["cdkAccordion"],features:[tS([{provide:qr,useExisting:n}]),El$2]})}return n})(),cd$1=(()=>{class n{accordion=g$4(qr,{optional:true,skipSelf:true});_changeDetectorRef=g$4(Od$2);_expansionDispatcher=g$4(hi);_openCloseAllSubscription=W$4.EMPTY;closed=new kt$3;opened=new kt$3;destroyed=new kt$3;expandedChange=new kt$3;id=g$4(re$4).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let t=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,t);}else this.closed.emit();this._changeDetectorRef.markForCheck();}}_expanded=false;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e);}_disabled=Es$1(false);_removeUniqueSelectionListener=()=>{};ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,t)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===t&&this.id!==e&&(this.expanded=false);}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions());}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe();}toggle(){this.disabled||(this.expanded=!this.expanded);}close(){this.disabled||(this.expanded=false);}open(){this.disabled||(this.expanded=true);}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e);})}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",tM$1],disabled:[2,"disabled","disabled",tM$1]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[tS([{provide:qr,useValue:void 0}])]})}return n})(),md$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({})}return n})();var Ru$1=["body"],Fu=["bodyWrapper"],Ou$1=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Pu$1=["mat-expansion-panel-header","*","mat-action-row"];function Vu$1(n,r){}var Lu$1=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Bu$1=["mat-panel-title","mat-panel-description","*"];function Nu$1(n,r){n&1&&(md$2(0,"span",1),Xp$2(),md$2(1,"svg",2),py(2,"path",3),yd$2()());}var Qr=new I$4("MAT_ACCORDION"),hd$1=new I$4("MAT_EXPANSION_PANEL"),zu$1=(()=>{class n{_template=g$4(Et$3);_expansionPanel=g$4(hd$1,{optional:true});static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]})}return n})(),pd$1=new I$4("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Hu$1=(()=>
7445{class n extends cd$1{_viewContainerRef=g$4(Ct$6);_animationsDisabled=ct$1();_document=g$4(Y$3);_ngZone=g$4(q$3);_elementRef=g$4(Vt$3);_renderer=g$4(qo$1);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e;}_hideToggle=false;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e;}_togglePosition;afterExpand=new kt$3;afterCollapse=new kt$3;_inputChanges=new ye$5;accordion=g$4(Qr,{optional:true,skipSelf:true});_lazyContent;_body;_bodyWrapper;_portal;_headerId=g$4(re$4).getId("mat-expansion-panel-header-");constructor(){super();let e=g$4(pd$1,{optional:true});this._expansionDispatcher=g$4(hi),e&&(this.hideToggle=e.hideToggle);}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":false}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded;}close(){this.expanded=false;}open(){this.expanded=true;}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Jf(null),Yt$5(()=>this.expanded&&!this._portal),bn$3(1)).subscribe(()=>{this._portal=new B$2(this._lazyContent._template,this._viewContainerRef);}),this._setupAnimationEvents();}ngOnChanges(e){this._inputChanges.next(e);}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete();}_containsFocus(){if(this._body){let e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return false}_transitionEndListener=({target:e,propertyName:t})=>{e===this._bodyWrapper?.nativeElement&&t==="grid-template-rows"&&this._ngZone.run(()=>
7445{this.expanded?this.afterExpand.emit():this.afterCollapse.emit();});};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled");},200);});}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,zu$1,5),t&2){let o;m_$1(o=y_$1())&&(i._lazyContent=o.first);}},viewQuery:function(t,i){if(t&1&&by(Ru$1,5)(Fu,5),t&2){let a;m_$1(a=y_$1())&&(i._body=a.first),m_$1(a=y_$1())&&(i._bodyWrapper=a.first);}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(t,i){t&2&&xy("mat-expanded",i.expanded)("mat-expansion-panel-spacing",i._hasSpacing());},inputs:{hideToggle:[2,"hideToggle","hideToggle",tM$1],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[tS([{provide:Qr,useValue:void 0},{provide:hd$1,useExisting:n}]),Xm$2,El$2],ngContentSelectors:Pu$1,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,i){t&1&&(p_$1(Ou$1),h_$1(0),Js$2(1,"div",2,0)(3,"div",3,1)(5,"div",4),h_$1(6,1),ey$1(7,Vu$1,0,0,"ng-template",5),gd$2(),h_$1(8,2),gd$2()()),t&2&&(SC(),ly("inert",i.expanded?null:""),SC(2),dy("id",i.id),ly("aria-labelledby",i._headerId),SC(4),dy("cdkPortalOutlet",i._portal));},dependencies:[Yt$2],styles:[`.mat-expansion-panel { 7446 box-sizing: content-box; 7447 display: block; 7448 margin: 0; 7449 overflow: hidden; 7450} 7451.mat-expansion-panel.mat-expansion-panel-animations-enabled { 7452 transition: margin 225ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); 7453} 7454.mat-expansion-panel { 7455 position: relative; 7456 background: var(--mat-expansion-container-background-color, var(--mat-sys-surface)); 7457 color: var(--mat-expansion-container-text-color, var(--mat-sys-on-surface)); 7458 border-radius: var(--mat-expansion-container-shape, 12px); 7459} 7460.mat-expansion-panel:not([class*=mat-elevation-z]) { 7461 box-shadow: var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)); 7462} 7463.mat-accordion .mat-expansion-panel:not(.mat-expanded), .mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing) { 7464 border-radius: 0; 7465} 7466.mat-accordion .mat-expansion-panel:first-of-type { 7467 border-top-right-radius: var(--mat-expansion-container-shape, 12px); 7468 border-top-left-radius: var(--mat-expansion-container-shape, 12px); 7469} 7470.mat-accordion .mat-expansion-panel:last-of-type { 7471 border-bottom-right-radius: var(--mat-expansion-container-shape, 12px); 7472 border-bottom-left-radius: var(--mat-expansion-container-shape, 12px); 7473} 7474@media (forced-colors: active) { 7475 .mat-expansion-panel { 7476 outline: solid 1px; 7477 } 7478} 7479 7480.mat-expansion-panel-content-wrapper { 7481 display: grid; 7482 grid-template-rows: 0fr; 7483 grid-template-columns: 100%; 7484} 7485.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper { 7486 transition: grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1); 7487} 7488.mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper { 7489 grid-template-rows: 1fr; 7490} 7491@supports not (grid-template-rows: 0fr) { 7492 .mat-expansion-panel-content-wrapper { 7493 height: 0; 7494 } 7495 .mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper { 7496 height: auto; 7497 } 7498} 7499@media print { 7500 .mat-expansion-panel-content-wrapper { 7501 height: 0; 7502 } 7503 .mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper { 7504 height: auto; 7505 } 7506} 7507 7508.mat-expansion-panel-content { 7509 display: flex; 7510 flex-direction: column; 7511 overflow: visible; 7512 min-height: 0; 7513 visibility: hidden; 7514} 7515.mat-expansion-panel-animations-enabled .mat-expansion-panel-content { 7516 transition: visibility 190ms linear; 7517} 7518.mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper > .mat-expansion-panel-content { 7519 visibility: visible; 7520} 7521.mat-expansion-panel-content { 7522 font-family: var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font)); 7523 font-size: var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size)); 7524 font-weight: var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight)); 7525 line-height: var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height)); 7526 letter-spacing: var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking)); 7527} 7528 7529.mat-expansion-panel-body { 7530 padding: 0 24px 16px; 7531} 7532 7533.mat-expansion-panel-spacing { 7534 margin: 16px 0; 7535} 7536.mat-accordion > .mat-expansion-panel-spacing:first-child, .mat-accordion > *:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing { 7537 margin-top: 0; 7538} 7539.mat-accordion > .mat-expansion-panel-spacing:last-child, .mat-accordion > *:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing { 7540 margin-bottom: 0; 7541} 7542 7543.mat-action-row { 7544 border-top-style: solid; 7545 border-top-width: 1px; 7546 display: flex; 7547 flex-direction: row; 7548 justify-content: flex-end; 7549 padding: 16px 8px 16px 24px; 7550 border-top-color: var(--mat-expansion-actions-divider-color, var(--mat-sys-outline)); 7551} 7552.mat-action-row .mat-button-base, 7553.mat-action-row .mat-mdc-button-base { 7554 margin-left: 8px; 7555} 7556[dir=rtl] .mat-action-row .mat-button-base, 7557[dir=rtl] .mat-action-row .mat-mdc-button-base { 7558 margin-left: 0; 7559 margin-right: 8px; 7560} 7561`],encapsulation:2})}return n})(),XD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]})}return n})(),ju$1=(()=>{class n{panel=g$4(Hu$1,{host:true});_element=g$4(Vt$3);_focusMonitor=g$4(Ot);_changeDetectorRef=g$4(Od$2);_parentChangeSubscription=W$4.EMPTY;constructor(){g$4(P$3).load(Bn$1);let e=this.panel,t=g$4(pd$1,{optional:true}),i=g$4(new nv("tabindex"),{optional:true}),a=e.accordion?e.accordion._stateChanges.pipe(Yt$5(o=>!!(o.hideToggle||o.togglePosition))):wn$2;
7561this.tabIndex=parseInt(i||"")||0,this._parentChangeSubscription=WD(e.opened,e.closed,a,e._inputChanges.pipe(Yt$5(o=>!!(o.hideToggle||o.disabled||o.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Yt$5(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),t&&(this.expandedHeight=t.expandedHeight,this.collapsedHeight=t.collapsedHeight);}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle();}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return !this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Ye$4(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t);}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this);});}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(t,i){t&1&&Ey("click",function(){return i._toggle()})("keydown",function(o){return i._keydown(o)}),t&2&&(ly("id",i.panel._headerId)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),Ny("height",i._getHeaderHeight()),xy("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after",i._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",i._getTogglePosition()==="before"));},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:nM(e)]},ngContentSelectors:Bu$1,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(t,i){t&1&&(p_$1(Lu$1),md$2(0,"span",0),h_$1(1),h_$1(2,1),h_$1(3,2),yd$2(),ZT(4,Nu$1,3,0,"span",1)),t&2&&(xy("mat-content-hide-toggle",!i._showToggle()),SC(4),YT(i._showToggle()?4:-1));},styles:[`.mat-expansion-panel-header { 7562 display: flex; 7563 flex-direction: row; 7564 align-items: center; 7565 padding: 0 24px; 7566 border-radius: inherit; 7567} 7568.mat-expansion-panel-animations-enabled .mat-expansion-panel-header { 7569 transition: height 225ms cubic-bezier(0.4, 0, 0.2, 1); 7570} 7571.mat-expansion-panel-header::before { 7572 border-radius: inherit; 7573} 7574.mat-expansion-panel-header { 7575 height: var(--mat-expansion-header-collapsed-state-height, 48px); 7576 font-family: var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font)); 7577 font-size: var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size)); 7578 font-weight: var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight)); 7579 line-height: var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height)); 7580 letter-spacing: var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking)); 7581} 7582.mat-expansion-panel-header.mat-expanded { 7583 height: var(--mat-expansion-header-expanded-state-height, 64px); 7584} 7585.mat-expansion-panel-header[aria-disabled=true] { 7586 color: var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 7587} 7588.mat-expansion-panel-header:not([aria-disabled=true]) { 7589 cursor: pointer; 7590} 7591.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover { 7592 background: var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent)); 7593} 7594@media (hover: none) { 7595 .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover { 7596 background: var(--mat-expansion-container-background-color, var(--mat-sys-surface)); 7597 } 7598} 7599.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused, .mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused { 7600 background: var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent)); 7601} 7602.mat-expansion-panel-header._mat-animation-noopable { 7603 transition: none; 7604} 7605.mat-expansion-panel-header:focus, .mat-expansion-panel-header:hover { 7606 outline: none; 7607} 7608.mat-expansion-panel-header.mat-expanded:focus, .mat-expansion-panel-header.mat-expanded:hover { 7609 background: inherit; 7610} 7611.mat-expansion-panel-header.mat-expansion-toggle-indicator-before { 7612 flex-direction: row-reverse; 7613} 7614.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator { 7615 margin: 0 16px 0 0; 7616} 7617[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator { 7618 margin: 0 0 0 16px; 7619} 7620 7621.mat-content { 7622 display: flex; 7623 flex: 1; 7624 flex-direction: row; 7625 overflow: hidden; 7626} 7627.mat-content.mat-content-hide-toggle { 7628 margin-right: 8px; 7629} 7630[dir=rtl] .mat-content.mat-content-hide-toggle { 7631 margin-right: 0; 7632 margin-left: 8px; 7633} 7634.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle { 7635 margin-left: 24px; 7636 margin-right: 0; 7637} 7638[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle { 7639 margin-right: 24px; 7640 margin-left: 0; 7641} 7642 7643.mat-expansion-panel-header-title { 7644 color: var(--mat-expansion-header-text-color, var(--mat-sys-on-surface)); 7645} 7646 7647.mat-expansion-panel-header-title, 7648.mat-expansion-panel-header-description { 7649 display: flex; 7650 flex-grow: 1; 7651 flex-basis: 0; 7652 margin-right: 16px; 7653 align-items: center; 7654} 7655[dir=rtl] .mat-expansion-panel-header-title, 7656[dir=rtl] .mat-expansion-panel-header-description { 7657 margin-right: 0; 7658 margin-left: 16px; 7659} 7660.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title, 7661.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description { 7662 color: inherit; 7663} 7664 7665.mat-expansion-panel-header-description { 7666 flex-grow: 2; 7667 color: var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant)); 7668} 7669 7670.mat-expansion-panel-animations-enabled .mat-expansion-indicator { 7671 transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1); 7672} 7673.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator { 7674 transform: rotate(180deg); 7675} 7676.mat-expansion-indicator::after { 7677 border-style: solid; 7678 border-width: 0 2px 2px 0; 7679 content: ""; 7680 padding: 3px; 7681 transform: rotate(45deg); 7682 vertical-align: middle; 7683 color: var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant)); 7684 display: var(--mat-expansion-legacy-header-indicator-display, none); 7685} 7686.mat-expansion-indicator svg { 7687 width: 24px; 7688 height: 24px; 7689 margin: 0 -8px; 7690 vertical-align: middle; 7691 fill: var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant)); 7692 display: var(--mat-expansion-header-indicator-display, inline-block); 7693} 7694 7695@media (forced-colors: active) { 7696 .mat-expansion-panel-content { 7697 border-top: 1px solid; 7698 border-top-left-radius: 0; 7699 border-top-right-radius: 0; 7700 } 7701} 7702`],encapsulation:2})}return n})(),ZD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return n})(),JD=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return n})(),eM=(()=>{class n extends dd$1{_keyManager;_ownHeaders=new Vs$2;_headers;hideToggle=false;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(Jf(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges();}),this._keyManager=new ie$3(this._ownHeaders).withWrap().withHomeAndEnd();}_handleHeaderKeydown(e){this._keyManager.onKeydown(e);}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e);}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy();}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["mat-accordion"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,ju$1,5),t&2){let o;m_$1(o=y_$1())&&(i._headers=o);}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,i){t&2&&xy("mat-accordion-multi",i.multi);},inputs:{hideToggle:[2,"hideToggle","hideToggle",tM$1],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[tS([{provide:Qr,useExisting:n}]),Xm$2]})}return n})(),tM=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[md$1,_t$2,it$2]})}return n})();var Yr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();var dM=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Yr,it$2,Yr]})}return n})();var Gu$1=["*"];function Uu$1(n,r){n&1&&h_$1(0);}var Kr=(()=>{class n{_elementRef=g$4(Vt$3);focus(){this._elementRef.nativeElement.focus();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return n})(),$r=(()=>{class n{template=g$4(Et$3);static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkStepLabel",""]]})}return n})();
7702var ui={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},Wu$1=new I$4("STEPPER_GLOBAL_OPTIONS"),xa$1=(()=>{class n{_stepperOptions;_stepper=g$4(Vi$1);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e);}_interacted=Es$1(false);interactedStream=new kt$3;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e);}_state=Es$1(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e);}_editable=Es$1(true);optional=false;get completed(){let e=this._completedOverride(),t=this._interacted();return e??(t&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e);}_completedOverride=Es$1(null);index=Es$1(-1);isSelected=wS(()=>this._stepper.selectedIndex===this.index());indicatorType=wS(()=>{let e=this.isSelected(),t=this.completed,i=this._state()??ui.NUMBER,a=this._editable();return this._showError()&&this.hasError&&!e?ui.ERROR:this._displayDefaultIndicatorType?!t||e?ui.NUMBER:a?ui.EDIT:ui.DONE:t&&!e?ui.DONE:t&&e?i:a&&e?ui.EDIT:i});isNavigable=wS(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e);}_customError=Es$1(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=g$4(Wu$1,{optional:true});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==false;}select(){this._stepper.selected=this;}reset(){this._interacted.set(false),this._completedOverride()!=null&&this._completedOverride.set(false),this._customError()!=null&&this._customError.set(false),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset());}ngOnChanges(){this._stepper._stateChanged();}_markAsInteracted(){this._interacted()||(this._interacted.set(true),this.interactedStream.emit(this));}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["cdk-step"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,$r,5)(a,vt$2,5),t&2){let o;m_$1(o=y_$1())&&(i.stepLabel=o.first),m_$1(o=y_$1())&&(i._childForms=o);}},viewQuery:function(t,i){if(t&1&&by(Et$3,7),t&2){let a;m_$1(a=y_$1())&&(i.content=a.first);}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",tM$1],optional:[2,"optional","optional",tM$1],completed:[2,"completed","completed",tM$1],hasError:[2,"hasError","hasError",tM$1]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[El$2],ngContentSelectors:Gu$1,decls:1,vars:0,template:function(t,i){t&1&&(p_$1(),ty$1(0,Uu$1,1,0,"ng-template"));},encapsulation:2})}return n})(),Vi$1=(()=>{class n{_dir=g$4(qe$4,{optional:true});_changeDetectorRef=g$4(Od$2);_elementRef=g$4(Vt$3);_destroyed=new ye$5;_keyManager;_steps;steps=new Vs$2;_stepHeader;_sortedHeaders=new Vs$2;get linear(){return this._linear()}set linear(e){this._linear.set(e);}_linear=Es$1(false);get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e);}_selectedIndex=Es$1(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1;}selectionChange=new kt$3;selectedIndexChange=new kt$3;_groupId=g$4(re$4).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical");}_orientation="horizontal";ngAfterContentInit(){this._steps.changes.pipe(Jf(this._steps),Hf$1(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.forEach((t,i)=>t.index.set(i)),this.steps.notifyOnChanges();});}ngAfterViewInit(){if(this._stepHeader.changes.pipe(Jf(this._stepHeader),Hf$1(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,i)=>t._elementRef.nativeElement.compareDocumentPosition(i._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges();}),this._keyManager=new ie$3(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ki$3()).pipe(Jf(this._layoutDirection()),Hf$1(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0));}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let t of e)t._markAsInteracted();}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete();}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1);}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0);}
7702reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged();}_getStepLabelId(e){return `${this._groupId}-label-${e}`}_getStepContentId(e){return `${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck();}_getAnimationDirection(e){let t=e-this._selectedIndex();return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let t=this.steps.toArray(),i=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:i,selectedStep:t[e],previouslySelectedStep:t[i]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged();}_onKeydown(e){let t=Ye$4(e),i=e.keyCode,a=this._keyManager;a?.activeItemIndex!=null&&!t&&(i===32||i===13)?(this.selectedIndex=a.activeItemIndex,e.preventDefault()):a?.setFocusOrigin("keyboard").onKeydown(e);}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let i=t.stepControl;return (i?i.invalid||i.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride()}):false}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Xt$4();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkStepper",""]],contentQueries:function(t,i,a){if(t&1&&Cy(a,xa$1,5)(a,Kr,5),t&2){let o;m_$1(o=y_$1())&&(i._steps=o),m_$1(o=y_$1())&&(i._stepHeader=o);}},inputs:{linear:[2,"linear","linear",tM$1],selectedIndex:[2,"selectedIndex","selectedIndex",nM],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return n})(),ud$1=(()=>{class n{_stepper=g$4(Vi$1);type="submit";static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,i){t&1&&Ey("click",function(){return i._stepper.next()}),t&2&&vy("type",i.type);},inputs:{type:"type"}})}return n})(),_d$1=(()=>{class n{_stepper=g$4(Vi$1);type="button";static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,i){t&1&&Ey("click",function(){return i._stepper.previous()}),t&2&&vy("type",i.type);},inputs:{type:"type"}})}return n})(),fd$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();var qu$1=(n,r,e)=>({index:n,active:r,optional:e});function Qu$1(n,r){if(n&1&&gy(0,2),n&2){let e=d_$1();dy("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",iS(2,qu$1,e.index,e.active,e.optional));}}function Yu$1(n,r){if(n&1&&(Js$2(0,"span",7),H_$1(1),gd$2()),n&2){let e=d_$1(2);SC(),jy(e._getDefaultTextForState(e.state));}}function Ku$1(n,r){if(n&1&&(Js$2(0,"span",8),H_$1(1),gd$2()),n&2){let e=d_$1(3);SC(),jy(e._intl.completedLabel);}}function $u$1(n,r){if(n&1&&(Js$2(0,"span",8),H_$1(1),gd$2()),n&2){let e=d_$1(3);SC(),jy(e._intl.editableLabel);}}function Xu$1(n,r){if(n&1&&(ZT(0,Ku$1,2,1,"span",8)(1,$u$1,2,1,"span",8),Js$2(2,"mat-icon",7),H_$1(3),gd$2()),n&2){let e=d_$1(2);YT(e.state==="done"?0:e.state==="edit"?1:-1),SC(3),jy(e._getDefaultTextForState(e.state));}}function Zu$1(n,r){if(n&1&&ZT(0,Yu$1,2,1,"span",7)(1,Xu$1,4,2),n&2){let t=d_$1();YT((t.state)==="number"?0:1);}}function Ju$1(n,r){n&1&&(Js$2(0,"div",4),gy(1,9),gd$2()),n&2&&(SC(),dy("ngTemplateOutlet",r.template));}function e_(n,r){if(n&1&&(Js$2(0,"div",4),H_$1(1),gd$2()),n&2){let e=d_$1();SC(),jy(e.label);}}function t_(n,r){if(n&1&&(Js$2(0,"div",5),H_$1(1),gd$2()),n&2){let e=d_$1();
7702SC(),jy(e._intl.optionalLabel);}}function i_(n,r){if(n&1&&(Js$2(0,"div",6),H_$1(1),gd$2()),n&2){let e=d_$1();SC(),jy(e.errorMessage);}}var gd$1=["*"];function n_(n,r){}function a_(n,r){if(n&1&&(h_$1(0),ey$1(1,n_,0,0,"ng-template",0)),n&2){let e=d_$1();SC(),dy("cdkPortalOutlet",e._portal);}}var r_=["animatedContainer"],bd$1=n=>({steps:n}),vd$1=n=>({step:n});function o_(n,r){n&1&&h_$1(0);}function s_(n,r){if(n&1&&(Js$2(0,"div",5),gy(1,9)(2,6),gd$2()),n&2){let e=d_$1(2),t=D_$1(6);SC(),dy("ngTemplateOutlet",e.headerPrefix()),SC(),dy("ngTemplateOutlet",t)("ngTemplateOutletContext",rS(3,bd$1,e.steps));}}function l_(n,r){if(n&1&&gy(0,6),n&2){let e=d_$1(2),t=D_$1(6);dy("ngTemplateOutlet",t)("ngTemplateOutletContext",rS(2,bd$1,e.steps));}}function d_(n,r){if(n&1&&(Js$2(0,"div",10,2),gy(2,9),gd$2()),n&2){let e=r.$implicit,t=r.$index,i=d_$1(2);x_$1("mat-horizontal-stepper-content-"+i._getAnimationDirection(t)),dy("id",i._getStepContentId(t)),ly("aria-labelledby",i._getStepLabelId(t))("inert",i.selectedIndex===t?null:""),SC(2),dy("ngTemplateOutlet",e.content);}}function c_(n,r){if(n&1&&(Js$2(0,"div",3),ZT(1,s_,3,5,"div",5)(2,l_,1,4,"ng-container",6),Js$2(3,"div",7),XT(4,d_,3,6,"div",8,KT),gd$2()()),n&2){let e=d_$1();SC(),YT(e.headerPrefix()?1:2),SC(3),JT(e.steps);}}function m_(n,r){if(n&1&&gy(0,9),n&2){let e=d_$1(2);dy("ngTemplateOutlet",e.headerPrefix());}}function h_(n,r){if(n&1&&(Js$2(0,"div",11),gy(1,6),Js$2(2,"div",12,2)(4,"div",13)(5,"div",14),gy(6,9),gd$2()()()()),n&2){let e=r.$implicit,t=r.$index,i=r.$index,a=r.$count,o=d_$1(2),l=D_$1(4);SC(),dy("ngTemplateOutlet",l)("ngTemplateOutletContext",rS(11,vd$1,e)),SC(),xy("mat-stepper-vertical-line",i!==a-1)("mat-vertical-content-container-active",o.selectedIndex===t),ly("inert",o.selectedIndex===t?null:"")("aria-label",o.ariaLabel),SC(2),dy("id",o._getStepContentId(t)),ly("aria-labelledby",o._getStepLabelId(t)),SC(2),dy("ngTemplateOutlet",e.content);}}function p_(n,r){if(n&1&&(Js$2(0,"div",4),ZT(1,m_,1,1,"ng-container",9),XT(2,h_,7,13,"div",11,KT),gd$2()),n&2){let e=d_$1();SC(),YT(e.headerPrefix()?1:-1),SC(),JT(e.steps);}}function u_(n,r){if(n&1){let e=i_$1();Js$2(0,"mat-step-header",15),Ey("click",function(){let i=Vp$2(e).step;return Hp$2(i.select())})("keydown",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._onKeydown(i))}),gd$2();}if(n&2){let e=r.step,t=d_$1();xy("mat-horizontal-stepper-header",t.orientation==="horizontal")("mat-vertical-stepper-header",t.orientation==="vertical"),dy("tabIndex",t._getFocusIndex()===e.index()?0:-1)("id",t._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",t._iconOverrides)("disableRipple",t.disableRipple||!e.isNavigable())("color",e.color||t.color),ly("role",t.orientation==="horizontal"?"tab":"button")("aria-posinset",t.orientation==="horizontal"?e.index()+1:null)("aria-setsize",t.orientation==="horizontal"?t.steps.length:null)("aria-selected",t.orientation==="horizontal"?e.isSelected():null)("aria-current",t.orientation==="vertical"&&e.isSelected()?"step":null)("aria-disabled",t.orientation==="vertical"&&e.isSelected()?"true":null)("aria-expanded",t.orientation==="vertical"?e.isSelected():null)("aria-controls",t._getStepContentId(e.index()))("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:true);}}function __(n,r){n&1&&fy(0,"div",17);}function f_(n,r){if(n&1&&(gy(0,6),ZT(1,__,1,0,"div",17)),n&2){let e=r.$implicit,t=r.$index,i=r.$count;d_$1(2);let a=D_$1(4);dy("ngTemplateOutlet",a)("ngTemplateOutletContext",rS(3,vd$1,e)),SC(),YT(t!==i-1?1:-1);}}function g_(n,r){if(n&1&&(Js$2(0,"div",16),XT(1,f_,2,5,null,null,KT),gd$2()),n&2){let e=r.steps,t=d_$1();ly("aria-label",t.ariaLabel),SC(),JT(e);}}var Xr=(()=>{class n extends $r{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matStepLabel",""]],features:[Xm$2]})}return n})(),b_=(()=>{class n{changes=new ye$5;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),Zr=(()=>{class n extends Kr{_intl=g$4(b_);_focusMonitor=g$4(Ot);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected=false;active=false;optional=false;disableRipple=false;color;constructor(){super();let e=g$4(P$3);e.load(Bn$1),e.load(Bt$1);let t=g$4(Od$2);this._intlSubscription=this._intl.changes.subscribe(()=>t.markForCheck());}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true);}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef);}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t);}_stringLabel(){return this.label instanceof Xr?null:this.label}_templateLabel(){return this.label instanceof Xr?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return !this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","",1,"mat-step-header"],hostVars:4,hostBindings:function(t,i){t&2&&(x_$1("mat-"+(i.color||"primary")),xy("mat-step-header-empty-label",i._hasEmptyLabel()));},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[Xm$2],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,i){if(t&1&&(fy(0,"div",0),Js$2(1,"div")(2,"div",1),ZT(3,Qu$1,1,6,"ng-container",2)(4,Zu$1,2,1),gd$2()(),Js$2(5,"div",3),ZT(6,Ju$1,2,1,"div",4)(7,e_,2,1,"div",4),ZT(8,t_,2,1,"div",5),ZT(9,i_,2,1,"div",6),gd$2()),t&2){let a;dy("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disableRipple),SC(),x_$1(Q_$1("mat-step-icon-state-",i.state," mat-step-icon")),xy("mat-step-icon-selected",i.selected),SC(2),YT(i.iconOverrides&&i.iconOverrides[i.state]?3:4),SC(2),xy("mat-step-label-active",i.active)("mat-step-label-selected",i.selected)("mat-step-label-error",i.state=="error"),SC(),YT((a=i._templateLabel())?6:i._stringLabel()?7:-1,a),SC(2),YT(i._hasOptionalLabel()?8:-1),SC(),YT(i._hasErrorLabel()?9:-1);}},dependencies:[jr$1,LM,ms],styles:[`.mat-step-header { 7703 overflow: hidden; 7704 outline: none; 7705 cursor: pointer; 7706 position: relative; 7707 box-sizing: content-box; 7708 -webkit-tap-highlight-color: transparent; 7709} 7710.mat-step-header:focus-visible .mat-focus-indicator::before { 7711 content: ""; 7712} 7713.mat-step-header:hover[aria-disabled=true] { 7714 cursor: default; 7715} 7716.mat-step-header:hover:not([aria-disabled]), .mat-step-header:hover[aria-disabled=false] { 7717 background-color: var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent)); 7718 border-radius: var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium)); 7719} 7720.mat-step-header.cdk-keyboard-focused, .mat-step-header.cdk-program-focused { 7721 background-color: var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent)); 7722 border-radius: var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium)); 7723} 7724@media (hover: none) { 7725 .mat-step-header:hover { 7726 background: none; 7727 } 7728} 7729@media (forced-colors: active) { 7730 .mat-step-header { 7731 outline: solid 1px; 7732 } 7733 .mat-step-header[aria-selected=true] .mat-step-label { 7734 text-decoration: underline; 7735 } 7736 .mat-step-header[aria-disabled=true] { 7737 outline-color: GrayText; 7738 } 7739 .mat-step-header[aria-disabled=true] .mat-step-label, 7740 .mat-step-header[aria-disabled=true] .mat-step-icon, 7741 .mat-step-header[aria-disabled=true] .mat-step-optional { 7742 color: GrayText; 7743 } 7744} 7745 7746.mat-step-optional { 7747 font-size: 12px; 7748 color: var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant)); 7749} 7750 7751.mat-step-sub-label-error { 7752 font-size: 12px; 7753 font-weight: normal; 7754} 7755 7756.mat-step-icon { 7757 border-radius: 50%; 7758 height: 24px; 7759 width: 24px; 7760 flex-shrink: 0; 7761 position: relative; 7762 color: var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface)); 7763 background-color: var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant)); 7764} 7765 7766.mat-step-icon-content { 7767 position: absolute; 7768 top: 50%; 7769 left: 50%; 7770 transform: translate(-50%, -50%); 7771 display: flex; 7772} 7773 7774.mat-step-icon .mat-icon { 7775 font-size: 16px; 7776 height: 16px; 7777 width: 16px; 7778} 7779 7780.mat-step-icon-state-error { 7781 background-color: var(--mat-stepper-header-error-state-icon-background-color, transparent); 7782 color: var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error)); 7783} 7784.mat-step-icon-state-error .mat-icon { 7785 font-size: 24px; 7786 height: 24px; 7787 width: 24px; 7788} 7789 7790.mat-step-label { 7791 display: inline-block; 7792 white-space: nowrap; 7793 overflow: hidden; 7794 text-overflow: ellipsis; 7795 min-width: 50px; 7796 vertical-align: middle; 7797 font-family: var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font)); 7798 font-size: var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size)); 7799 font-weight: var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight)); 7800 color: var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant)); 7801} 7802.mat-step-label.mat-step-label-active { 7803 color: var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant)); 7804} 7805.mat-step-label.mat-step-label-error { 7806 color: var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error)); 7807 font-size: var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size)); 7808} 7809.mat-step-label.mat-step-label-selected { 7810 font-size: var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size)); 7811 font-weight: var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight)); 7812} 7813.mat-step-header-empty-label .mat-step-label { 7814 min-width: 0; 7815} 7816 7817.mat-step-text-label { 7818 text-overflow: ellipsis; 7819 overflow: hidden; 7820} 7821 7822.mat-step-header .mat-step-header-ripple { 7823 top: 0; 7824 left: 0; 7825 right: 0; 7826 bottom: 0; 7827 position: absolute; 7828 pointer-events: none; 7829} 7830 7831.mat-step-icon-selected { 7832 background-color: var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary)); 7833 color: var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary)); 7834} 7835 7836.mat-step-icon-state-done { 7837 background-color: var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary)); 7838 color: var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary)); 7839} 7840 7841.mat-step-icon-state-edit { 7842 background-color: var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary)); 7843 color: var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary)); 7844} 7845`],encapsulation:2})}return n})(),v_=(()=>{class n{templateRef=g$4(Et$3);name;static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return n})(),y_=(()=>{class n{_template=g$4(Et$3);static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["ng-template","matStepContent",""]]})}return n})(),x_=(()=>{class n extends xa$1{_errorStateMatcher=g$4(Ct$1,{skipSelf:true});
7845_viewContainerRef=g$4(Ct$6);_isSelected=W$4.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Bi$1(()=>this._stepper.selectionChange.pipe(ve$4(e=>e.selectedStep===this),Jf(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new B$2(this._lazyContent._template,this._viewContainerRef));});}ngOnDestroy(){this._isSelected.unsubscribe();}isErrorState(e,t){let i=this._errorStateMatcher.isErrorState(e,t),a=!!(e&&e.invalid&&this.interacted);return i||a}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-step"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,Xr,5)(a,y_,5),t&2){let o;m_$1(o=y_$1())&&(i.stepLabel=o.first),m_$1(o=y_$1())&&(i._lazyContent=o.first);}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[tS([{provide:Ct$1,useExisting:n},{provide:xa$1,useExisting:n}]),Xm$2],ngContentSelectors:gd$1,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,i){t&1&&(p_$1(),ey$1(0,a_,2,1,"ng-template"));},dependencies:[Yt$2],encapsulation:2})}return n})(),w_=(()=>{class n extends Vi$1{_ngZone=g$4(q$3);_renderer=g$4(qo$1);_animationsDisabled=ct$1();_cleanupTransition;_isAnimating=Es$1(false);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new Vs$2;_icons;animationDone=new kt$3;disableRipple=false;color;labelPosition="end";headerPosition="top";ariaLabel=null;headerPrefix=hU(null);_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e;}_animationDuration="";_isServer=!g$4(_$7).isBrowser;constructor(){super();let t=g$4(Vt$3).nativeElement.nodeName.toLowerCase();this.orientation=t==="mat-vertical-stepper"?"vertical":"horizontal";}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Hf$1(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(Hf$1(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(true);}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend);},200);});}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=false;this._animatedContainers.changes.pipe(Jf(null),Hf$1(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=true,this.animationDone.emit()),this._stateChanged();}));}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.();}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let t=e.target;if(!t)return;let i=this.orientation==="horizontal"&&e.propertyName==="transform"&&t.classList.contains("mat-horizontal-stepper-content-current"),a=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&t.classList.contains("mat-vertical-content-container-active");(i||a)&&this._animatedContainers.find(l=>l.nativeElement===t)&&this._onAnimationDone();};_onAnimationDone(){this._isAnimating.set(false),this.animationDone.emit();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,i,a){if(t&1&&Cy(a,x_,5)(a,v_,5),t&2){let o;m_$1(o=y_$1())&&(i._steps=o),m_$1(o=y_$1())&&(i._icons=o);}},viewQuery:function(t,i){if(t&1&&by(Zr,5)(r_,5),t&2){let a;m_$1(a=y_$1())&&(i._stepHeader=a),m_$1(a=y_$1())&&(i._animatedContainers=a);}},hostVars:14,hostBindings:function(t,i){t&2&&(Ny("--mat-stepper-animation-duration",i._getAnimationDuration()),xy("mat-stepper-horizontal",i.orientation==="horizontal")("mat-stepper-vertical",i.orientation==="vertical")("mat-stepper-label-position-end",i.orientation==="horizontal"&&i.labelPosition=="end")("mat-stepper-label-position-bottom",i.orientation==="horizontal"&&i.labelPosition=="bottom")("mat-stepper-header-position-bottom",i.headerPosition==="bottom")("mat-stepper-animating",i._isAnimating()));},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",ariaLabel:[0,"aria-label","ariaLabel"],headerPrefix:[1,"headerPrefix"],animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[tS([{provide:Vi$1,useExisting:n}]),Xm$2],ngContentSelectors:gd$1,decls:7,vars:2,consts:[["stepTemplate",""],["horizontalStepsTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-vertical-stepper-wrapper"],[1,"mat-horizontal-stepper-header-wrapper"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","regi
7845on",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"],["aria-orientation","horizontal","role","tablist",1,"mat-horizontal-stepper-header-container"],[1,"mat-stepper-horizontal-line"]],template:function(t,i){if(t&1&&(p_$1(),ZT(0,o_,1,0),ZT(1,c_,6,1,"div",3)(2,p_,4,1,"div",4),ey$1(3,u_,1,27,"ng-template",null,0,DS)(5,g_,3,1,"ng-template",null,1,DS)),t&2){let a;YT(i._isServer?0:-1),SC(),YT((a=i.orientation)==="horizontal"?1:a==="vertical"?2:-1);}},dependencies:[LM,Zr],styles:[`.mat-stepper-vertical, 7846.mat-stepper-horizontal { 7847 display: block; 7848 font-family: var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font)); 7849 background: var(--mat-stepper-container-color, var(--mat-sys-surface)); 7850} 7851 7852.mat-horizontal-stepper-header-wrapper { 7853 align-items: center; 7854 display: flex; 7855} 7856 7857.mat-horizontal-stepper-header-container { 7858 white-space: nowrap; 7859 display: flex; 7860 align-items: center; 7861 flex-grow: 1; 7862} 7863.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container { 7864 align-items: flex-start; 7865} 7866.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container { 7867 order: 1; 7868} 7869 7870.mat-stepper-horizontal-line { 7871 border-top-width: 1px; 7872 border-top-style: solid; 7873 flex: auto; 7874 height: 0; 7875 margin: 0 -16px; 7876 min-width: 32px; 7877 border-top-color: var(--mat-stepper-line-color, var(--mat-sys-outline)); 7878} 7879.mat-stepper-label-position-bottom .mat-stepper-horizontal-line { 7880 margin: 0; 7881 min-width: 0; 7882 position: relative; 7883 top: calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px); 7884} 7885 7886.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before, .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after { 7887 border-top-width: 1px; 7888 border-top-style: solid; 7889 content: ""; 7890 display: inline-block; 7891 height: 0; 7892 position: absolute; 7893 width: calc(50% - 20px); 7894} 7895 7896.mat-horizontal-stepper-header { 7897 display: flex; 7898 overflow: hidden; 7899 align-items: center; 7900 padding: 0 24px; 7901 height: var(--mat-stepper-header-height, 72px); 7902} 7903.mat-horizontal-stepper-header .mat-step-icon { 7904 margin-right: 8px; 7905 flex: none; 7906} 7907[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon { 7908 margin-right: 0; 7909 margin-left: 8px; 7910} 7911.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon { 7912 margin: 0; 7913} 7914.mat-horizontal-stepper-header::before, .mat-horizontal-stepper-header::after { 7915 border-top-color: var(--mat-stepper-line-color, var(--mat-sys-outline)); 7916} 7917.mat-stepper-label-position-bottom .mat-horizontal-stepper-header { 7918 padding: calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px; 7919} 7920.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before, .mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after { 7921 top: calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px); 7922} 7923.mat-stepper-label-position-bottom .mat-horizontal-stepper-header { 7924 box-sizing: border-box; 7925 flex-direction: column; 7926 height: auto; 7927} 7928.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after { 7929 right: 0; 7930} 7931.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before { 7932 left: 0; 7933} 7934[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after { 7935 display: none; 7936} 7937.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon { 7938 margin-right: 0; 7939 margin-left: 0; 7940} 7941.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label { 7942 padding: 16px 0 0 0; 7943 text-align: center; 7944 width: 100%; 7945} 7946 7947.mat-vertical-stepper-header { 7948 display: flex; 7949 align-items: center; 7950 height: 24px; 7951 padding: calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px; 7952} 7953.mat-vertical-stepper-header .mat-step-icon { 7954 margin-right: 12px; 7955} 7956[dir=rtl] .mat-vertical-stepper-header .mat-step-icon { 7957 margin-right: 0; 7958 margin-left: 12px; 7959} 7960 7961.mat-horizontal-stepper-wrapper { 7962 display: flex; 7963 flex-direction: column; 7964} 7965 7966.mat-horizontal-stepper-content { 7967 visibility: hidden; 7968 overflow: hidden; 7969 outline: 0; 7970 height: 0; 7971} 7972.mat-stepper-animations-enabled .mat-horizontal-stepper-content { 7973 transition: transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1); 7974} 7975.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous { 7976 transform: translate3d(-100%, 0, 0); 7977} 7978.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next { 7979 transform: translate3d(100%, 0, 0); 7980} 7981.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current { 7982 visibility: visible; 7983 transform: none; 7984 height: auto; 7985} 7986.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current { 7987 overflow: visible; 7988} 7989 7990.mat-horizontal-content-container { 7991 overflow: hidden; 7992 padding: 0 24px 24px 24px; 7993} 7994@media (forced-colors: active) { 7995 .mat-horizontal-content-container { 7996 outline: solid 1px; 7997 } 7998} 7999.mat-stepper-header-position-bottom .mat-horizontal-content-container { 8000 padding: 24px 24px 0 24px; 8001} 8002 8003.mat-vertical-content-container { 8004 display: grid; 8005 grid-template-rows: 0fr; 8006 grid-template-columns: 100%; 8007 margin-left: 36px; 8008 border: 0; 8009 position: relative; 8010} 8011.mat-stepper-animations-enabled .mat-vertical-content-container { 8012 transition: grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1); 8013} 8014.mat-vertical-content-container.mat-vertical-content-container-active { 8015 grid-template-rows: 1fr; 8016} 8017.mat-step:last-child .mat-vertical-content-container { 8018 border: none; 8019} 8020@media (forced-colors: active) { 8021 .mat-vertical-content-container { 8022 outline: solid 1px; 8023 } 8024} 8025[dir=rtl] .mat-vertical-content-container { 8026 margin-left: 0; 8027 margin-right: 36px; 8028} 8029@supports not (grid-template-rows: 0fr) { 8030 .mat-vertical-content-container { 8031 height: 0; 8032 } 8033 .mat-vertical-content-container.mat-vertical-content-container-active { 8034 height: auto; 8035 } 8036} 8037 8038.mat-stepper-vertical-line::before { 8039 content: ""; 8040 position: absolute; 8041 left: 0; 8042 border-left-width: 1px; 8043 border-left-style: solid; 8044 border-left-color: var(--mat-stepper-line-color, var(--mat-sys-outline)); 8045 top: calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2)); 8046 bottom: calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2)); 8047} 8048[dir=rtl] .mat-stepper-vertical-line::before { 8049 left: auto; 8050 right: 0; 8051} 8052 8053.mat-vertical-stepper-content { 8054 overflow: hidden; 8055 outline: 0; 8056 visibility: hidden; 8057} 8058.mat-stepper-animations-enabled .mat-vertical-stepper-content { 8059 transition: visibility var(--mat-stepper-animation-duration, 0) linear; 8060} 8061.mat-vertical-content-container-active > .mat-vertical-stepper-content { 8062 visibility: visible; 8063} 8064 8065.mat-vertical-content { 8066 padding: 0 24px 24px 24px; 8067} 8068`],encapsulation:2})}return n})(),n1=(()=>{class n extends ud$1{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,i){t&2&&vy("type",i.type);},features:[Xm$2]})}return n})(),a1=(()=>{class n extends _d$1{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,i){t&2&&vy("type",i.type);},features:[Xm$2]})}return n})(),r1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({providers:[Ct$1],imports:[_t$2,fd$1,us,Dn$1,w_,Zr,it$2]})}return n})();var ao=["*"];function k_(n,r){n&1&&h_$1(0);}var C_=["tabListContainer"],D_=["tabList"],M_=["tabListInner"],S_=["nextPaginator"],I_=["previousPaginator"],E_=["content"];function T_(n,r){}var A_=["tabBodyWrapper"],R_=["tabHeader"];function F_(n,r){}function O_(n,r){if(n&1&&ey$1(0,F_,0,0,"ng-template",12),n&2){let e=d_$1().$implicit;dy("cdkPortalOutlet",e.templateLabel);}}function P_(n,r){if(n&1&&H_$1(0),n&2){let e=d_$1().$implicit;jy(e.textLabel);}}function V_(n,r){if(n&1){let e=i_$1();Js$2(0,"div",7,2),Ey("click",function(){let i=Vp$2(e),a=i.$implicit,o=i.$index,l=d_$1(),f=D_$1(1);return Hp$2(l._handleClick(a,f,o))})("cdkFocusChange",function(i){let a=Vp$2(e).$index,o=d_$1();return Hp$2(o._tabFocusChanged(i,a))}),fy(2,"span",8)(3,"div",9),Js$2(4,"span",10)(5,"span",11),ZT(6,O_,1,1,null,12)(7,P_,1,1),gd$2()()();}if(n&2){let e=r.$implicit,t=r.$index,i=D_$1(1),a=d_$1();x_$1(e.labelClass),xy("mdc-tab--active",a.selectedIndex===t),dy("id",a._getTabLabelId(e,t))("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),ly("tabIndex",a._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(t))("aria-selected",a.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),SC(3),dy("matRippleTrigger",i)("matRippleDisabled",e.disabled||a.disableRipple),SC(3),YT(e.templateLabel?6:7
8068);}}function L_(n,r){n&1&&h_$1(0);}function B_(n,r){if(n&1){let e=i_$1();Js$2(0,"mat-tab-body",13),Ey("_onCentered",function(){Vp$2(e);let i=d_$1();return Hp$2(i._removeTabBodyWrapperHeight())})("_onCentering",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._setTabBodyWrapperHeight(i))})("_beforeCentering",function(i){Vp$2(e);let a=d_$1();return Hp$2(a._bodyCentered(i))}),gd$2();}if(n&2){let e=r.$implicit,t=r.$index,i=d_$1();x_$1(e.bodyClass),dy("id",i._getTabContentId(t))("content",e.content)("position",e.position)("animationDuration",i._bodyAnimationDuration)("preserveContent",i.preserveContent),ly("tabindex",i.contentTabIndex!=null&&i.selectedIndex===t?i.contentTabIndex:null)("aria-labelledby",i._getTabLabelId(e,t))("aria-hidden",i.selectedIndex!==t);}}var N_=new I$4("MatTabContent"),z_=(()=>{class n{template=g$4(Et$3);static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matTabContent",""]],features:[tS([{provide:N_,useExisting:n}])]})}return n})(),H_=new I$4("MatTabLabel"),kd$1=new I$4("MAT_TAB"),j_=(()=>{class n extends gi{_closestTab=g$4(kd$1,{optional:true});static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[tS([{provide:H_,useExisting:n}]),Xm$2]})}return n})(),Cd$1=new I$4("MAT_TAB_GROUP"),G_=(()=>{class n{_viewContainerRef=g$4(Ct$6);_closestTabGroup=g$4(Cd$1,{optional:true});disabled=false;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e);}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new ye$5;position=null;origin=null;isActive=false;constructor(){g$4(P$3).load(Bn$1);}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next();}ngOnDestroy(){this._stateChanges.complete();}ngOnInit(){this._contentPortal=new B$2(this._explicitContent||this._implicitContent,this._viewContainerRef);}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-tab"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,j_,5)(a,z_,7,Et$3),t&2){let o;m_$1(o=y_$1())&&(i.templateLabel=o.first),m_$1(o=y_$1())&&(i._explicitContent=o.first);}},viewQuery:function(t,i){if(t&1&&by(Et$3,7),t&2){let a;m_$1(a=y_$1())&&(i._implicitContent=a.first);}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(t,i){t&2&&ly("id",null);},inputs:{disabled:[2,"disabled","disabled",tM$1],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[tS([{provide:kd$1,useExisting:n}]),El$2],ngContentSelectors:ao,decls:1,vars:0,template:function(t,i){t&1&&(p_$1(),ty$1(0,k_,1,0,"ng-template"));},encapsulation:2,changeDetection:1})}return n})(),Jr="mdc-tab-indicator--active",yd$1="mdc-tab-indicator--no-transition",to=class{_items;_currentItem;constructor(r){this._items=r;}hide(){this._items.forEach(r=>r.deactivateInkBar()),this._currentItem=void 0;}alignToElement(r){let e=this._items.find(i=>i.elementRef.nativeElement===r),t=this._currentItem;if(e!==t&&(t?.deactivateInkBar(),e)){let i=t?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(i),this._currentItem=e;}}},U_=(()=>{class n{_elementRef=g$4(Vt$3);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=false;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement());}activateInkBar(e){let t=this._elementRef.nativeElement;if(!e||!t.getBoundingClientRect||!this._inkBarContentElement){t.classList.add(Jr);return}let i=t.getBoundingClientRect(),a=e.width/i.width,o=e.left-i.left;t.classList.add(yd$1),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${a})`),t.getBoundingClientRect(),t.classList.remove(yd$1),t.classList.add(Jr),this._inkBarContentElement.style.setProperty("transform","");}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(Jr);}ngOnInit(){this._createInkBarElement();}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null;}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,t=this._inkBarElement=e.createElement("span"),i=this._inkBarContentElement=e.createElement("span");t.className="mdc-tab-indicator",i.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",t.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 \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",tM$1]}})}return n})();var Dd$2=(()=>{class n extends U_{elementRef=g$4(Vt$3);disabled=false;focus(){this.elementRef.nativeElement.focus();}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,i){t&2&&(ly("aria-disabled",!!i.disabled),xy("mat-mdc-tab-disabled",i.disabled));},inputs:{disabled:[2,"disabled","disabled",tM$1]},features:[Xm$2]})}return n})(),xd$1={passive:true},W_=650,q_=100,Q_=(()=>{class n{_elementRef=g$4(Vt$3);_changeDetectorRef=g$4(Od$2);
8068_viewportRuler=g$4(G$3);_dir=g$4(qe$4,{optional:true});_ngZone=g$4(q$3);_platform=g$4(_$7);_sharedResizeObserver=g$4(sa$1);_injector=g$4(Ee$4);_renderer=g$4(qo$1);_animationsDisabled=ct$1();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=false;_destroyed=new ye$5;_showPaginationControls=false;_disableScrollAfter=true;_disableScrollBefore=true;_tabLabelCount;_scrollDistanceChanged=false;_keyManager;_currentTextContent;_stopScrolling=new ye$5;disablePagination=false;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let t=isNaN(e)?0:e;this._selectedIndex!=t&&(this._selectedIndexChanged=true,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t));}_selectedIndex=0;selectFocusedIndex=new kt$3;indexFocused=new kt$3;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())]);}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),xd$1),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),xd$1));}ngAfterContentInit(){let e=this._dir?this._dir.change:ki$3("ltr"),t=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Bf$1(32),Hf$1(this._destroyed)),i=this._viewportRuler.change(150).pipe(Hf$1(this._destroyed)),a=()=>{this.updatePagination(),this._alignInkBarToSelectedTab();};this._keyManager=new ie$3(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>false),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),Jg(a,{injector:this._injector}),WD(e,i,t,this._items.changes,this._itemsResized()).pipe(Hf$1(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),a();});}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection());}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o);});}_itemsResized(){return typeof ResizeObserver!="function"?wn$2:this._items.changes.pipe(Jf(this._items),Bi$1(e=>new R$4(t=>this._ngZone.runOutsideAngular(()=>{let i=new ResizeObserver(a=>t.next(a));return e.forEach(a=>i.observe(a.elementRef.nativeElement)),()=>{i.disconnect();}}))),EE(1),Yt$5(e=>e.some(t=>t.contentRect.width>0&&t.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=false,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=false,this._changeDetectorRef.markForCheck());}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete();}_handleKeydown(e){if(!Ye$4(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let t=this._items.get(this.focusIndex);t&&!t.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]:true}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let t=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?t.scrollLeft=0:t.scrollLeft=t.scrollWidth-t.offsetWidth;}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,t=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}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 t=this._tabListContainer.nativeElement.offsetWidth,i=(e=="before"?-1:1)*t/3;return this._scrollTo(this._scrollDistance+i)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e);}_scrollToLabel(e){if(this.disablePagination)return;let t=this._items?this._items.toArray()[e]:null;if(!t)return;let i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:o}=t.elementRef.nativeElement,l,f;this._getLayoutDirection()=="ltr"?(l=a,f=l+o):(f=this._tabListInner.nativeElement.offsetWidth-a,l=f-o);let R=this.scrollDistance,G=this.scrollDistance+i;l<R?this.scrollDistance-=R-l:f>G&&(this.scrollDistance+=Math.min(f-G,l-R));}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=false;else {let e=this._tabListInner.nativeElement.scrollWidth,t=this._elementRef.nativeElement.offsetWidth,i=e-t>=5;i||(this.scrollDistance=0),i!==this._showPaginationControls&&(this._showPaginationControls=i,this._changeDetectorRef.markForCheck());}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=true:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck());}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,t=this._tabListContainer.nativeElement.offsetWidth;return e-t||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide();}_stopInterval(){this._stopScrolling.next();}_handlePaginatorPress(e,t){t&&t.button!=null&&t.button!==0||(this._stopInterval(),xt$2(W_,q_).pipe(Hf$1(WD(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:i,distance:a}=this._scrollHeader(e);(a===0||a>=i)&&this._stopInterval();}));}_scrollTo(e){if(this.disablePagination)return {maxScrollDistance:0,distance:0};let t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=true,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,inputs:{disablePagination:[2,"disablePagination","disablePagination",tM$1],selectedIndex:[2,"selectedIndex","selectedIndex",nM]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return n})(),Y_=(()=>{class n extends Q_{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=false;ngAfterContentInit(){this._inkBar=new to(this._items),super.ngAfterContentInit();}_itemSelected(e){e.preventDefault();}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-tab-header"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,Dd$2,4),t&2){let o;m_$1(o=y_$1())&&(i._items=o);}},viewQuery:function(t,i){if(t&1&&by(C_,7)(D_,7)(M_,7)(S_,5)(I_,5),t&2){let a;m_$1(a=y_$1())&&(i._tabListContainer=a.first),m_$1(a=y_$1())&&(i._tabList=a.first),m_$1(a=y_$1())&&(i._tabListInner=a.first),m_$1(a=y_$1())&&(i._nextPaginator=a.first),m_$1(a=y_$1())&&(i._previousPaginator=a.first);}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(t,i){t&2&&xy("mat-mdc-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-mdc-tab-header-rtl",i._getLayoutDirection()=="rtl");},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",tM$1]},features:[Xm$2],ngContentSelectors:ao,decls:13,vars:10,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-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(t,i){t&1&&(p_$1(),Js$2(0,"div",5,0),Ey("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),fy(2,"div",6),gd$2(),Js$2(3,"div",7,1),Ey("keydown",function(o){return i._handleKeydown(o)}),Js$2(5,"div",8,2),Ey("cdkObserveContent",function(){return i._onContentChanges()}),Js$2(7,"div",9,3),h_$1(9),gd$2()()(),Js$2(10,"div",10,4),Ey("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),fy(12,"div",6),gd$2()),t&2&&(xy("mat-mdc-tab-header-pagination-disabled",i._disableScrollBefore),dy("matRippleDisabled",i._disableScrollBefore||i.disableRipple),SC(3),xy("_mat-animation-noopable",i._animationsDisabled),SC(2),ly("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null),SC(5),xy("mat-mdc-tab-header-pagination-disabled",i._disableScrollAfter),dy("matRippleDisabled",i._disableScrollAfter||i.disableRipple));},dependencies:[jr$1,sa$2],styles:[`.mat-mdc-tab-header { 8069 display: flex; 8070 overflow: hidden; 8071 position: relative; 8072 flex-shrink: 0; 8073} 8074 8075.mdc-tab-indicator .mdc-tab-indicator__content { 8076 transition-duration: var(--mat-tab-header-animation-duration, 250ms); 8077} 8078 8079.mat-mdc-tab-header-pagination { 8080 -webkit-user-select: none; 8081 user-select: none; 8082 position: relative; 8083 display: none; 8084 justify-content: center; 8085 align-items: center; 8086 min-width: 32px; 8087 cursor: pointer; 8088 z-index: 2; 8089 -webkit-tap-highlight-color: transparent; 8090 touch-action: none; 8091 box-sizing: content-box; 8092 outline: 0; 8093} 8094.mat-mdc-tab-header-pagination::-moz-focus-inner { 8095 border: 0; 8096} 8097.mat-mdc-tab-header-pagination .mat-ripple-element { 8098 opacity: 0.12; 8099 background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface)); 8100} 8101.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination { 8102 display: flex; 8103} 8104 8105.mat-mdc-tab-header-pagination-before, 8106.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after { 8107 padding-left: 4px; 8108} 8109.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron, 8110.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron { 8111 transform: rotate(-135deg); 8112} 8113 8114.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before, 8115.mat-mdc-tab-header-pagination-after { 8116 padding-right: 4px; 8117} 8118.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron, 8119.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron { 8120 transform: rotate(45deg); 8121} 8122 8123.mat-mdc-tab-header-pagination-chevron { 8124 border-style: solid; 8125 border-width: 2px 2px 0 0; 8126 height: 8px; 8127 width: 8px; 8128 border-color: var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface)); 8129} 8130 8131.mat-mdc-tab-header-pagination-disabled { 8132 box-shadow: none; 8133 cursor: default; 8134 pointer-events: none; 8135} 8136.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron { 8137 opacity: 0.4; 8138} 8139 8140.mat-mdc-tab-list { 8141 flex-grow: 1; 8142 position: relative; 8143 transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1); 8144} 8145._mat-animation-noopable .mat-mdc-tab-list { 8146 transition: none; 8147} 8148 8149.mat-mdc-tab-label-container { 8150 display: flex; 8151 flex-grow: 1; 8152 overflow: hidden; 8153 z-index: 1; 8154 border-bottom-style: solid; 8155 border-bottom-width: var(--mat-tab-divider-height, 1px); 8156 border-bottom-color: var(--mat-tab-divider-color, var(--mat-sys-surface-variant)); 8157} 8158.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container { 8159 border-bottom: none; 8160 border-top-style: solid; 8161 border-top-width: var(--mat-tab-divider-height, 1px); 8162 border-top-color: var(--mat-tab-divider-color, var(--mat-sys-surface-variant)); 8163} 8164 8165.mat-mdc-tab-labels { 8166 display: flex; 8167 flex: 1 0 auto; 8168} 8169[mat-align-tabs=center] > .mat-mdc-tab-header .mat-mdc-tab-labels { 8170 justify-content: center; 8171} 8172[mat-align-tabs=end] > .mat-mdc-tab-header .mat-mdc-tab-labels { 8173 justify-content: flex-end; 8174} 8175.cdk-drop-list .mat-mdc-tab-labels, .mat-mdc-tab-labels.cdk-drop-list { 8176 min-height: var(--mat-tab-container-height, 48px); 8177} 8178 8179.mat-mdc-tab::before { 8180 margin: 5px; 8181} 8182@media (forced-colors: active) { 8183 .mat-mdc-tab[aria-disabled=true] { 8184 color: GrayText; 8185 } 8186} 8187`],encapsulation:2,changeDetection:1})}return n})(),K_=new I$4("MAT_TABS_CONFIG"),wd$1=(()=>{class n extends Yt$2{_host=g$4(io);_ngZone=g$4(q$3);_centeringSub=W$4.EMPTY;_leavingSub=W$4.EMPTY;ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Jf(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content);});}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach());});}
8187ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe();}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matTabBodyHost",""]],features:[Xm$2]})}return n})(),io=(()=>{class n{_elementRef=g$4(Vt$3);_dir=g$4(qe$4,{optional:true});_ngZone=g$4(q$3);_injector=g$4(Ee$4);_renderer=g$4(qo$1);_diAnimationsDisabled=ct$1();_eventCleanups;_initialized=false;_fallbackTimer;_positionIndex;_dirChangeSubscription=W$4.EMPTY;_position;_previousPosition;_onCentering=new kt$3;_beforeCentering=new kt$3;_afterLeavingCenter=new kt$3;_onCentered=new kt$3(true);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=false;set position(e){this._positionIndex=e,this._computePositionAnimationState();}constructor(){if(this._dir){let e=g$4(Od$2);this._dirChangeSubscription=this._dir.change.subscribe(t=>{this._computePositionAnimationState(t),e.markForCheck();});}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(true),Jg(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=true;}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe();}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,t=i=>{i.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),i.type==="transitionend"&&this._transitionDone());};this._eventCleanups=[this._renderer.listen(e,"transitionstart",i=>{i.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted());}),this._renderer.listen(e,"transitionend",t),this._renderer.listen(e,"transitioncancel",t)];});}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight);}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit();}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e);}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)));}_simulateTransitionEvents(){this._transitionStarted(),Jg(()=>this._transitionDone(),{injector:this._injector});}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-tab-body"]],viewQuery:function(t,i){if(t&1&&by(wd$1,5)(E_,5),t&2){let a;m_$1(a=y_$1())&&(i._portalHost=a.first),m_$1(a=y_$1())&&(i._contentElement=a.first);}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(t,i){t&2&&ly("inert",i._position==="center"?null:"");},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(t,i){t&1&&(Js$2(0,"div",1,0),ey$1(2,T_,0,0,"ng-template",2),gd$2()),t&2&&xy("mat-tab-body-content-left",i._position==="left")("mat-tab-body-content-right",i._position==="right")("mat-tab-body-content-can-animate",i._position==="center"||i._previousPosition==="center");},dependencies:[wd$1,Ge$3],styles:[`.mat-mdc-tab-body { 8188 top: 0; 8189 left: 0; 8190 right: 0; 8191 bottom: 0; 8192 position: absolute; 8193 display: block; 8194 overflow: hidden; 8195 outline: 0; 8196 flex-basis: 100%; 8197} 8198.mat-mdc-tab-body.mat-mdc-tab-body-active { 8199 position: relative; 8200 overflow-x: hidden; 8201 overflow-y: auto; 8202 z-index: 1; 8203 flex-grow: 1; 8204} 8205.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active { 8206 overflow-y: hidden; 8207} 8208 8209.mat-mdc-tab-body-content { 8210 height: 100%; 8211 overflow: auto; 8212 transform: none; 8213 visibility: hidden; 8214} 8215.mat-tab-body-animating > .mat-mdc-tab-body-content, .mat-mdc-tab-body-active > .mat-mdc-tab-body-content { 8216 visibility: visible; 8217} 8218.mat-tab-body-animating > .mat-mdc-tab-body-content { 8219 min-height: 1px; 8220} 8221.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content { 8222 overflow: hidden; 8223} 8224 8225.mat-tab-body-content-can-animate { 8226 transition: transform var(--mat-tab-body-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1); 8227} 8228.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate { 8229 transition: none; 8230} 8231 8232.mat-tab-body-content-left { 8233 transform: translate3d(-100%, 0, 0); 8234} 8235 8236.mat-tab-body-content-right { 8237 transform: translate3d(100%, 0, 0); 8238} 8239`],encapsulation:2,changeDetection:1})}return n})(),O1=(()=>{class n{_elementRef=g$4(Vt$3);_changeDetectorRef=g$4(Od$2);_ngZone=g$4(q$3);_tabsSubscription=W$4.EMPTY;_tabLabelSubscription=W$4.EMPTY;_tabBodySubscription=W$4.EMPTY;_diAnimationsDisabled=ct$1();_bodyAnimationDuration;_headerAnimationDuration;_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new Vs$2;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck();}_fitInkBarToContent=false;stretchTabs=true;alignTabs=null;dynamicHeight=false;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e;}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=e,e&&typeof e=="object"?(this._bodyAnimationDuration=eo(e.body),this._headerAnimationDuration=eo(e.header)):this._headerAnimationDuration=this._bodyAnimationDuration=eo(e);}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e;}_contentTabIndex=null;disablePagination=false;disableRipple=false;preserveContent=false;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e;}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new kt$3;focusChange=new kt$3;animationDone=new kt$3;selectedTabChange=new kt$3(true);_groupId;_isServer=!g$4(_$7).isBrowser;constructor(){let e=g$4(K_,{optional:true});this._groupId=g$4(re$4).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:false,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:false,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:false,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:true,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null;}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let t=this._selectedIndex==null;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));let i=this._tabBodyWrapper.nativeElement;i.style.minHeight=i.clientHeight+"px";}
8239Promise.resolve().then(()=>{this._tabs.forEach((i,a)=>i.isActive=a===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="");});}this._tabs.forEach((t,i)=>{t.position=i-e,this._selectedIndex!=null&&t.position==0&&!t.origin&&(t.origin=e-this._selectedIndex);}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck());}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let t=this._tabs.toArray(),i;for(let a=0;a<t.length;a++)if(t[a].isActive){this._indexToSelect=this._selectedIndex=a,this._lastFocusedTabIndex=null,i=t[a];break}!i&&t[e]&&Promise.resolve().then(()=>{t[e].isActive=true,this.selectedTabChange.emit(this._createChangeEvent(e));});}this._changeDetectorRef.markForCheck();});}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(true));}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Jf(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges();});}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe();}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab();}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination();}focusTab(e){let t=this._tabHeader;t&&(t.focusIndex=e);}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e));}_createChangeEvent(e){let t=new no;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=WD(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck());}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,t){return e.id||`${this._groupId}-label-${t}`}_getTabContentId(e){return `${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px");}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit());}_handleClick(e,t,i){t.focusIndex=i,e.disabled||(this.selectedIndex=i);}_getTabIndex(e){let t=this._lastFocusedTabIndex??this.selectedIndex;return e===t?0:-1}_tabFocusChanged(e,t){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=t);}_bodyCentered(e){e&&this._tabBodies?.forEach((t,i)=>t._setActiveClass(i===this._selectedIndex));}_bodyAnimationsDisabled(){return this._diAnimationsDisabled||this._bodyAnimationDuration==="0"||this._bodyAnimationDuration==="0ms"}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-tab-group"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,G_,5),t&2){let o;m_$1(o=y_$1())&&(i._allTabs=o);}},viewQuery:function(t,i){if(t&1&&by(A_,5)(R_,5)(io,5),t&2){let a;m_$1(a=y_$1())&&(i._tabBodyWrapper=a.first),m_$1(a=y_$1())&&(i._tabHeader=a.first),m_$1(a=y_$1())&&(i._tabBodies=a);}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:13,hostBindings:function(t,i){t&2&&(ly("mat-align-tabs",i.alignTabs),x_$1("mat-"+(i.color||"primary")),Ny("--mat-tab-body-animation-duration",i._bodyAnimationDuration)("--mat-tab-header-animation-duration",i._headerAnimationDuration),xy("mat-mdc-tab-group-dynamic-height",i.dynamicHeight)("mat-mdc-tab-group-inverted-header",i.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",i.stretchTabs));},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",tM$1],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",tM$1],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",tM$1],selectedIndex:[2,"selectedIndex","selectedIndex",nM],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",nM],disablePagination:[2,"disablePagination","disablePagination",tM$1],disableRipple:[2,"disableRipple","disableRipple",tM$1],preserveContent:[2,"preserveContent","preserveContent",tM$1],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[tS([{provide:Cd$1,useExisting:n}])],ngContentSelectors:ao,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(t,i){t&1&&(p_$1(),Js$2(0,"mat-tab-header",3,0),Ey("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),XT(2,V_,8,17,"div",4,KT),gd$2(),ZT(4,L_,1,0),Js$2(5,"div",5,1),XT(7,B_,1,10,"mat-tab-body",6,KT),gd$2()),t&2&&(dy("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),uy("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby),SC(2),JT(i._tabs),SC(2),YT(i._isServer?4:-1),SC(),xy("_mat-animation-noopable",i._bodyAnimationsDisabled()),SC(2),JT(i._tabs));},dependencies:[Y_,Dd$2,Gn$1,jr$1,Yt$2,io],styles:[`.mdc-tab { 8240 min-width: 90px; 8241 padding: 0 24px; 8242 display: flex; 8243 flex: 1 0 auto; 8244 justify-content: center; 8245 box-sizing: border-box; 8246 border: none; 8247 outline: none; 8248 text-align: center; 8249 white-space: nowrap; 8250 cursor: pointer; 8251 z-index: 1; 8252 touch-action: manipulation; 8253} 8254 8255.mdc-tab__content { 8256 display: flex; 8257 align-items: center; 8258 justify-content: center; 8259 height: inherit; 8260 pointer-events: none; 8261} 8262 8263.mdc-tab__text-label { 8264 transition: 150ms color linear; 8265 display: inline-block; 8266 line-height: 1; 8267 z-index: 2; 8268} 8269 8270.mdc-tab--active .mdc-tab__text-label { 8271 transition-delay: 100ms; 8272} 8273 8274._mat-animation-noopable .mdc-tab__text-label { 8275 transition: none; 8276} 8277 8278.mdc-tab-indicator { 8279 display: flex; 8280 position: absolute; 8281 top: 0; 8282 left: 0; 8283 justify-content: center; 8284 width: 100%; 8285 height: 100%; 8286 pointer-events: none; 8287 z-index: 1; 8288} 8289 8290.mdc-tab-indicator__content { 8291 transition: var(--mat-tab-header-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1); 8292 transform-origin: left; 8293 opacity: 0; 8294} 8295 8296.mdc-tab-indicator__content--underline { 8297 align-self: flex-end; 8298 box-sizing: border-box; 8299 width: 100%; 8300 border-top-style: solid; 8301} 8302 8303.mdc-tab-indicator--active .mdc-tab-indicator__content { 8304 opacity: 1; 8305} 8306 8307._mat-animation-noopable .mdc-tab-indicator__content, .mdc-tab-indicator--no-transition .mdc-tab-indicator__content { 8308 transition: none; 8309} 8310 8311.mat-mdc-tab-ripple.mat-mdc-tab-ripple { 8312 position: absolute; 8313 top: 0; 8314 left: 0; 8315 bottom: 0; 8316 right: 0; 8317 pointer-events: none; 8318} 8319 8320.mat-mdc-tab { 8321 -webkit-tap-highlight-color: transparent; 8322 -webkit-font-smoothing: antialiased; 8323 -moz-osx-font-smoothing: grayscale; 8324 text-decoration: none; 8325 background: none; 8326 height: var(--mat-tab-container-height, 48px); 8327 font-family: var(--mat-tab-label-text-font, var(--mat-sys-title-small-font)); 8328 font-size: var(--mat-tab-label-text-size, var(--mat-sys-title-small-size)); 8329 letter-spacing: var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking)); 8330 line-height: var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height)); 8331 font-weight: var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight)); 8332} 8333.mat-mdc-tab.mdc-tab { 8334 flex-grow: 0; 8335} 8336.mat-mdc-tab .mdc-tab-indicator__content--underline { 8337 border-color: var(--mat-tab-active-indicator-color, var(--mat-sys-primary)); 8338 border-top-width: var(--mat-tab-active-indicator-height, 2px); 8339 border-radius: var(--mat-tab-active-indicator-shape, 0); 8340} 8341.mat-mdc-tab:hover .mdc-tab__text-label { 8342 color: var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface)); 8343} 8344.mat-mdc-tab:focus .mdc-tab__text-label { 8345 color: var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface)); 8346} 8347.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label { 8348 color: var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface)); 8349} 8350.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before, 8351.mat-mdc-tab.mdc-tab--active .mat-ripple-element { 8352 background-color: var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface)); 8353} 8354.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label { 8355 color: var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface)); 8356} 8357.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline { 8358 border-color: var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary)); 8359} 8360.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label { 8361 color: var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface)); 8362} 8363.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline { 8364 border-color: var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary)); 8365} 8366.mat-mdc-tab.mat-mdc-tab-disabled { 8367 opacity: 0.4; 8368 pointer-events: none; 8369} 8370.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content { 8371 pointer-events: none; 8372} 8373.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before, 8374.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element { 8375 background-color: var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant)); 8376} 8377.mat-mdc-tab .mdc-tab__ripple::before { 8378 content: ""; 8379 display: block; 8380 position: absolute; 8381 top: 0; 8382 left: 0; 8383 right: 0; 8384 bottom: 0; 8385 opacity: 0; 8386 pointer-events: none; 8387 background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface)); 8388} 8389.mat-mdc-tab .mdc-tab__text-label { 8390 color: var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface)); 8391 display: inline-flex; 8392 align-items: center; 8393} 8394.mat-mdc-tab .mdc-tab__content { 8395 position: relative; 8396 pointer-events: auto; 8397} 8398.mat-mdc-tab:hover .mdc-tab__ripple::before { 8399 opacity: 0.04; 8400} 8401.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before, .mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before { 8402 opacity: 0.12; 8403} 8404.mat-mdc-tab .mat-ripple-element { 8405 opacity: 0.12; 8406 background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface)); 8407} 8408.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs > .mat-mdc-tab-header .mat-mdc-tab { 8409 flex-grow: 1; 8410} 8411 8412.mat-mdc-tab-group { 8413 display: flex; 8414 flex-direction: column; 8415 max-width: 100%; 8416} 8417.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination { 8418 background-color: var(--mat-tab-background-color); 8419} 8420.mat-mdc-tab-group.mat-tabs-with-background.mat-primary > .mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label { 8421 color: var(--mat-tab-foreground-color); 8422} 8423.mat-mdc-tab-group.mat-tabs-with-background.mat-primary > .mat-mdc-tab-header .mdc-tab-indicator__content--underline { 8424 border-color: var(--mat-tab-foreground-color); 8425} 8426.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary) > .mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label { 8427 color: var(--mat-tab-foreground-color); 8428} 8429.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary) > .mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline { 8430 border-color: var(--mat-tab-foreground-color); 8431} 8432.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron, 8433.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-focus-indicator::before, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron, 8434.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-focus-indicator::before { 8435 border-color: var(--mat-tab-foreground-color); 8436} 8437.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-ripple-element, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mdc-tab__ripple::before, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-ripple-element, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mdc-tab__ripple::before { 8438 background-color: var(--mat-tab-foreground-color); 8439} 8440.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron { 8441 color: var(--mat-tab-foreground-color); 8442} 8443.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header { 8444 flex-direction: column-reverse; 8445} 8446.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline { 8447 align-self: flex-start; 8448} 8449 8450.mat-mdc-tab-body-wrapper { 8451 position: relative; 8452 overflow: hidden; 8453 display: flex; 8454 transition: height 500ms cubic-bezier(0.35, 0, 0.25, 1); 8455} 8456.mat-mdc-tab-body-wrapper._mat-animation-noopable { 8457 transition: none !important; 8458 animation: none !important; 8459} 8460`],encapsulation:2,changeDetection:1})}return n})(),no=class{index;tab};function eo(n){let r=n+"";return /^\d+$/.test(r)?n+"ms":r}var P1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();var ro=class{dataNodes;expansionModel=new yt(true);trackBy;getLevel;isExpandable;getChildren;toggle(r){this.expansionModel.toggle(this._trackByValue(r));}expand(r){this.expansionModel.select(this._trackByValue(r));}collapse(r){this.expansionModel.deselect(this._trackByValue(r));}isExpanded(r){return this.expansionModel.isSelected(this._trackByValue(r))}toggleDescendants(r){this.expansionModel.isSelected(this._trackByValue(r))?this.collapseDescendants(r):this.expandDescendants(r);}collapseAll(){this.expansionModel.clear();}expandDescendants(r){let e=[r];e.push(...this.getDescendants(r)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)));}collapseDescendants(r){let e=[r];e.push(...this.getDescendants(r)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)));}_trackByValue(r){return this.trackBy?this.trackBy(r):r}},Md$1=class Md extends ro{getLevel;isExpandable;options;constructor(r,e,t){super(),this.getLevel=r,this.isExpandable=e,this.options=t,this.options&&(this.trackBy=this.options.trackBy);}getDescendants(r){let e=this.dataNodes.indexOf(r),t=[];for(let i=e+1;i<this.dataNodes.length&&this.getLevel(r)<this.getLevel(this.dataNodes[i]);i++)t.push(this.dataNodes[i]);return t}
8460expandAll(){this.expansionModel.select(...this.dataNodes.map(r=>this._trackByValue(r)));}};var so=new I$4("CDK_TREE_NODE_OUTLET_NODE"),wa$1=(()=>{class n{viewContainer=g$4(Ct$6);_node=g$4(so,{optional:true});static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkTreeNodeOutlet",""]]})}return n})(),oo=class{$implicit;level;index;count;constructor(r){this.$implicit=r;}},ka$1=(()=>{class n{template=g$4(Et$3);when;static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return n})();function Sd$1(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}var Li$1=(()=>{class n{_differs=g$4(Rd$2);_changeDetectorRef=g$4(Od$2);_elementRef=g$4(Vt$3);_dir=g$4(qe$4);_onDestroy=new ye$5;_dataDiffer;_defaultNodeDef=null;_dataSubscription;_levels=new Map;_parents=new Map;_ariaSets=new Map;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e);}_dataSource;treeControl;levelAccessor;childrenAccessor;trackBy;expansionKey;_nodeOutlet;_nodeDefs;viewChange=new Jr$1({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new Jr$1([]);_nodeType=new Jr$1(null);_nodes=new Jr$1(new Map);_keyManagerNodes=new Jr$1([]);_keyManagerFactory=g$4(tr$2);_keyManager;_viewInit=false;ngAfterContentInit(){this._initializeKeyManager();}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges();}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this._nodes.complete(),this._keyManagerNodes.complete(),this._nodeType.complete(),this._flattenedNodes.complete(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription?.unsubscribe(),this._dataSubscription=void 0,this._keyManager?.destroy();}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer();}ngAfterViewInit(){this._viewInit=true;}_updateDefaultNodeDefinition(){let e=this._nodeDefs.filter(t=>!t.when);e.length>1,this._defaultNodeDef=e[0];}_setNodeTypeIfUnset(e){this._nodeType.value===null&&this._nodeType.next(e);}_switchDataSource(e){this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription?.unsubscribe(),this._dataSubscription=void 0,e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._subscribeToDataChanges();}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new yt(true),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let e;yi(this._dataSource)?e=this._dataSource.connect(this):nE(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=ki$3(this._dataSource)),e&&(this._dataSubscription=this._getRenderData(e).pipe(Hf$1(this._onDestroy)).subscribe(t=>{this._renderDataChanges(t);}));}_getRenderData(e){let t=this._getExpansionModel();return iE([e,this._nodeType,t.changed.pipe(Jf(null),Uf$1(i=>{this._emitExpansionChanges(i);}))]).pipe(Bi$1(([i,a])=>a===null?ki$3({renderNodes:i,flattenedNodes:null,nodeType:a}):this._computeRenderingData(i,a).pipe(ve$4(o=>E$7(D$6({},o),{nodeType:a})))))}_renderDataChanges(e){if(e.nodeType===null){this.renderNodeChanges(e.renderNodes);return}this._updateCachedData(e.flattenedNodes),this.renderNodeChanges(e.renderNodes),this._updateKeyManagerItems(e.flattenedNodes);}_emitExpansionChanges(e){if(!e)return;let t=this._nodes.value;for(let i of e.added)t.get(i)?._emitExpansionState(true);for(let i of e.removed)t.get(i)?._emitExpansionState(false);}_initializeKeyManager(){let e=iE([this._keyManagerNodes,this._nodes]).pipe(ve$4(([i,a])=>i.reduce((o,l)=>{let f=a.get(this._getExpansionKey(l));return f&&o.push(f),o},[]))),t={trackBy:i=>this._getExpansionKey(i.data),skipPredicate:i=>!!i.isDisabled,typeAheadDebounceInterval:true,horizontalOrientation:this._dir.value};this._keyManager=this._keyManagerFactory(e,t);}_initializeDataDiffer(){let e=this.trackBy??((t,i)=>this._getExpansionKey(i));this._dataDiffer=this._differs.find([]).create(e);}_checkTreeControlUsage(){}renderNodeChanges(e,t=this._dataDiffer,i=this._nodeOutlet.viewContainer,a){let o=t.diff(e);!o&&!this._viewInit||(o?.forEachOperation((l,f,R)=>{if(l.previousIndex==null)this.insertNode(e[R],R,i,a);else if(R==null)i.remove(f);else {let G=i.get(f);i.move(G,R);}}),o?.forEachIdentityChange(l=>{let f=l.item;if(l.currentIndex!=null){let R=i.get(l.currentIndex);R.context.$implicit=f;}}),a?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges());}_getNodeDef(e,t){if(this._nodeDefs.length===1)return this._nodeDefs.first;let i=this._nodeDefs.find(a=>a.when&&a.when(t,e))||this._defaultNodeDef;return i}insertNode(e,t,i,a){let o=this._getLevelAccessor(),l=this._getNodeDef(e,t),f=this._getExpansionKey(e),R=new oo(e);R.index=t,a??=this._parents.get(f)??void 0,o?R.level=o(e):a!==void 0&&this._levels.has(this._getExpansionKey(a))?R.level=this._levels.get(this._getExpansionKey(a))+1:R.level=0,this._levels.set(f,R.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(l.template,R,t),_i.mostRecentTreeNode&&(_i.mostRecentTreeNode.data=e);}isExpanded(e){return !!(this.treeControl?.isExpanded(e)||this._expansionModel?.isSelected(this._getExpansionKey(e)))}toggle(e){this.treeControl?this.treeControl.toggle(e):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(e));}expand(e){this.treeControl?this.treeControl.expand(e):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(e));}collapse(e){this.treeControl?this.treeControl.collapse(e):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(e));}toggleDescendants(e){this.treeControl?this.treeControl.toggleDescendants(e):this._expansionModel&&(this.isExpanded(e)?this.collapseDescendants(e):this.expandDescendants(e));}expandDescendants(e){if(this.treeControl)this.treeControl.expandDescendants(e);else if(this._expansionModel){let t=this._expansionModel;t.select(this._getExpansionKey(e)),this._getDescendants(e).pipe(bn$3(1),Hf$1(this._onDestroy)).subscribe(i=>{t.select(...i.map(a=>this._getExpansionKey(a)));});}}collapseDescendants(e){if(this.treeControl)this.treeControl.collapseDescendants(e);else if(this._expansionModel){let t=this._expansionModel;t.deselect(this._getExpansionKey(e)),this._getDescendants(e).pipe(bn$3(1),Hf$1(this._onDestroy)).subscribe(i=>{t.deselect(...i.map(a=>this._getExpansionKey(a)));});}}
8460expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._forEachExpansionKey(e=>this._expansionModel?.select(...e));}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._forEachExpansionKey(e=>this._expansionModel?.deselect(...e));}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(e){let t=this._getLevelAccessor(),i=this._expansionModel??this.treeControl?.expansionModel;if(!i)return ki$3([]);let a=this._getExpansionKey(e),o=i.changed.pipe(Bi$1(f=>f.added.includes(a)?ki$3(true):f.removed.includes(a)?ki$3(false):wn$2),Jf(this.isExpanded(e)));if(t)return iE([o,this._flattenedNodes]).pipe(ve$4(([f,R])=>f?this._findChildrenByLevel(t,R,e,1):[]));let l=this._getChildrenAccessor();if(l)return oe$4(l(e)??[]);throw Sd$1()}_findChildrenByLevel(e,t,i,a){let o=this._getExpansionKey(i),l=t.findIndex(re=>this._getExpansionKey(re)===o),f=e(i),R=f+a,G=[];for(let re=l+1;re<t.length;re++){let Re=e(t[re]);if(Re<=f)break;Re<=R&&G.push(t[re]);}return G}_registerNode(e){this._nodes.value.set(this._getExpansionKey(e.data),e),this._nodes.next(this._nodes.value);}_unregisterNode(e){this._nodes.value.delete(this._getExpansionKey(e.data)),this._nodes.next(this._nodes.value);}_getLevel(e){return this._levels.get(this._getExpansionKey(e))}_getSetSize(e){return this._getAriaSet(e).length}_getPositionInSet(e){let t=this._getAriaSet(e),i=this._getExpansionKey(e);return t.findIndex(a=>this._getExpansionKey(a)===i)+1}_getNodeParent(e){let t=this._parents.get(this._getExpansionKey(e.data));return t&&this._nodes.value.get(this._getExpansionKey(t))}_getNodeChildren(e){return this._getDirectChildren(e.data).pipe(ve$4(t=>t.reduce((i,a)=>{let o=this._nodes.value.get(this._getExpansionKey(a));return o&&i.push(o),i},[])))}_sendKeydownToKeyManager(e){if(e.target===this._elementRef.nativeElement)this._keyManager.onKeydown(e);else {let t=this._nodes.getValue();for(let[,i]of t)if(e.target===i._elementRef.nativeElement){this._keyManager.onKeydown(e);break}}}_getDescendants(e){if(this.treeControl)return ki$3(this.treeControl.getDescendants(e));if(this.levelAccessor){let t=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,e,1/0);return ki$3(t)}if(this.childrenAccessor)return this._getAllChildrenRecursively(e).pipe(Kr$1((t,i)=>(t.push(...i),t),[]));throw Sd$1()}_getAllChildrenRecursively(e){return this.childrenAccessor?oe$4(this.childrenAccessor(e)).pipe(bn$3(1),Bi$1(t=>{for(let i of t)this._parents.set(this._getExpansionKey(i),e);return ki$3(...t).pipe(ji$2(i=>dr$3(ki$3([i]),this._getAllChildrenRecursively(i))))})):ki$3([])}_getExpansionKey(e){return this.expansionKey?.(e)??e}_getAriaSet(e){let t=this._getExpansionKey(e),i=this._parents.get(t),a=i?this._getExpansionKey(i):null;return this._ariaSets.get(a)??[e]}_findParentForNode(e,t,i){if(!i.length)return null;let a=this._levels.get(this._getExpansionKey(e))??0;for(let o=t-1;o>=0;o--){let l=i[o];if((this._levels.get(this._getExpansionKey(l))??0)<a)return l}return null}_flattenNestedNodesWithExpansion(e,t=0){let i=this._getChildrenAccessor();return i?ki$3(...e).pipe(ji$2(a=>{let o=this._getExpansionKey(a);this._parents.has(o)||this._parents.set(o,null),this._levels.set(o,t);let l=oe$4(i(a));return dr$3(ki$3([a]),l.pipe(bn$3(1),Uf$1(f=>{this._ariaSets.set(o,[...f??[]]);for(let R of f??[]){let G=this._getExpansionKey(R);this._parents.set(G,a),this._levels.set(G,t+1);}}),Bi$1(f=>f?this._flattenNestedNodesWithExpansion(f,t+1).pipe(ve$4(R=>this.isExpanded(a)?R:[])):ki$3([]))))}),Kr$1((a,o)=>(a.push(...o),a),[])):ki$3([...e])}_computeRenderingData(e,t){if(this.childrenAccessor&&t==="flat")return this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(ve$4(i=>({renderNodes:i,flattenedNodes:i})));if(this.levelAccessor&&t==="nested"){let i=this.levelAccessor;return ki$3(e.filter(a=>i(a)===0)).pipe(ve$4(a=>({renderNodes:a,flattenedNodes:e})),Uf$1(({flattenedNodes:a})=>{this._calculateParents(a);}))}else return t==="flat"?ki$3({renderNodes:e,flattenedNodes:e}).pipe(Uf$1(({flattenedNodes:i})=>{this._calculateParents(i);})):(this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(ve$4(i=>({renderNodes:e,flattenedNodes:i}))))}_updateCachedData(e){this._flattenedNodes.next(e);}_updateKeyManagerItems(e){this._keyManagerNodes.next(e);}_calculateParents(e){let t=this._getLevelAccessor();if(t){this._clearPreviousCache();for(let i=0;i<e.length;i++){let a=e[i],o=this._getExpansionKey(a);this._levels.set(o,t(a));let l=this._findParentForNode(a,i,e);this._parents.set(o,l);let f=l?this._getExpansionKey(l):null,R=this._ariaSets.get(f)??[];R.splice(i,0,a),this._ariaSets.set(f,R);}}}_forEachExpansionKey(e){let t=[],i=[];this._nodes.value.forEach(a=>{t.push(this._getExpansionKey(a.data)),i.push(this._getDescendants(a.data));}),i.length>0?iE(i).pipe(bn$3(1),Hf$1(this._onDestroy)).subscribe(a=>{a.forEach(o=>
8460o.forEach(l=>t.push(this._getExpansionKey(l)))),e(t);}):e(t);}_clearPreviousCache(){this._parents.clear(),this._levels.clear(),this._ariaSets.clear();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["cdk-tree"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,ka$1,5),t&2){let o;m_$1(o=y_$1())&&(i._nodeDefs=o);}},viewQuery:function(t,i){if(t&1&&by(wa$1,7),t&2){let a;m_$1(a=y_$1())&&(i._nodeOutlet=a.first);}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(t,i){t&1&&Ey("keydown",function(o){return i._sendKeydownToKeyManager(o)});},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,i){t&1&&gy(0,0);},dependencies:[wa$1],encapsulation:2,changeDetection:1})}return n})(),_i=(()=>{class n{_elementRef=g$4(Vt$3);_tree=g$4(Li$1);_tabindex=-1;_type="flat";get role(){return "treeitem"}set role(e){}get isExpandable(){return this._isExpandable()}set isExpandable(e){this._inputIsExpandable=e,!(this.data&&!this._isExpandable||!this._inputIsExpandable)&&(this._inputIsExpanded?this.expand():this._inputIsExpanded===false&&this.collapse());}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(e){this._inputIsExpanded=e,e?this.expand():this.collapse();}isDisabled=false;typeaheadLabel=null;getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}activation=new kt$3;expandedChange=new kt$3;static mostRecentTreeNode=null;_destroyed=new ye$5;_dataChanges=new ye$5;_inputIsExpandable=false;_inputIsExpanded=void 0;_shouldFocus=true;_parentNodeAriaLevel;get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._dataChanges.next());}_data;get isLeafNode(){return this._tree.treeControl?.isExpandable!==void 0&&!this._tree.treeControl.isExpandable(this._data)?true:this._tree.treeControl?.isExpandable===void 0&&this._tree.treeControl?.getDescendants(this._data).length===0}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}_changeDetectorRef=g$4(Od$2);constructor(){n.mostRecentTreeNode=this;}ngOnInit(){this._parentNodeAriaLevel=$_(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe(ve$4(()=>this.isExpanded),Vf$1(),Hf$1(this._destroyed)).pipe(Hf$1(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._tree._setNodeTypeIfUnset(this._type),this._tree._registerNode(this);}ngOnDestroy(){n.mostRecentTreeNode===this&&(n.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete();}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck();}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck();}activate(){this.isDisabled||this.activation.next(this._data);}collapse(){this.isExpandable&&this._tree.collapse(this._data);}expand(){this.isExpandable&&this._tree.expand(this._data);}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck();}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this);}_setActiveItem(){this.isDisabled||(this._shouldFocus=false,this._tree._keyManager.focusItem(this),this._shouldFocus=true);}_emitExpansionState(e){this.expandedChange.emit(e);}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(t,i){t&1&&Ey("click",function(){return i._setActiveItem()})("focus",function(){return i._focusItem()}),t&2&&(vy("tabIndex",i._tabindex),ly("aria-expanded",i._getAriaExpanded())("aria-level",i.level+1)("aria-posinset",i._getPositionInSet())("aria-setsize",i._getSetSize()));},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",tM$1],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",tM$1],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"]})}return n})();function $_(n){let r=n.parentElement;for(;r&&!X_(r);)r=r.parentElement;return r?r.classList.contains("cdk-nested-tree-node")?nM(r.getAttribute("aria-level")):0:-1}function X_(n){let r=n.classList;return !!(r?.contains("cdk-nested-tree-node")||r?.contains("cdk-tree"))}var Z_=/([A-Za-z%]+)$/,lo=(()=>{class n{_treeNode=g$4(_i);_tree=g$4(Li$1);_element=g$4(Vt$3);_dir=g$4(qe$4,{optional:true});_currentPadding=null;_destroyed=new ye$5;indentUnits="px";get level(){return this._level}set level(e){this._setLevelInput(e);}_level;get indent(){return this._indent}set indent(e){this._setIndentInput(e);}_indent=40;constructor(){this._setPadding(),this._dir?.change.pipe(Hf$1(this._destroyed)).subscribe(()=>this._setPadding(true)),this._treeNode._dataChanges.subscribe(()=>this._setPadding());}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete();}_paddingIndent(){let e=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,t=this._level==null?e:this._level;return typeof t=="number"?`${t*this._indent}${this.indentUnits}`:null}_setPadding(e=false){let t=this._paddingIndent();if(t!==this._currentPadding||e){let i=this._element.nativeElement,a=this._dir&&this._dir.value==="rtl"?"paddingRight":"paddingLeft",o=a==="paddingLeft"?"paddingRight":"paddingLeft";i.style[a]=t||"",i.style[o]="",this._currentPadding=t;}}_setLevelInput(e){this._level=isNaN(e)?null:e,this._setPadding();}_setIndentInput(e){let t=e,i="px";if(typeof e=="string"){let a=e.split(Z_);t=a[0],i=a[1]||i;}this.indentUnits=i,this._indent=nM(t),this._setPadding();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",nM],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return n})(),co$1=(()=>{class n{_tree=g$4(Li$1);_treeNode=g$4(_i);recursive=false;_toggle(e){e.stopPropagation(),this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode);}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(t,i){t&1&&Ey("click",function(o){return i._toggle(o)})("keydown.Enter",function(o){return i._toggle(o),o.preventDefault()})("keydown.Space",function(o){return i._toggle(o),o.preventDefault()});},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",tM$1]}})}return n})();var Id$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({})}return n})();function J_(n){return !!n._isNoopTreeKeyManager}var fS=(()=>{class n extends _i{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(e){this._tabIndexInputBinding=e;}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return J_(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(e){this.isDisabled=e;}constructor(){super();let e=g$4(new nv("tabindex"),{optional:true});this.tabIndexInputBinding=Number(e)||this.defaultTabIndex;}ngOnInit(){super.ngOnInit();}ngOnDestroy(){super.ngOnDestroy();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:5,hostBindings:function(t,i){t&1&&Ey("click",function(){return i._focusItem()}),t&2&&(vy("tabIndex",i._getTabindexAttribute()),ly("aria-expanded",i._getAriaExpanded())("aria-level",i.level+1)("aria-posinset",i._getPositionInSet())("aria-setsize",i._getSetSize()));},inputs:{tabIndexInputBinding:[2,"tabIndex","tabIndexInputBinding",e=>e==null?0:nM(e)],disabled:[2,"disabled","disabled",tM$1]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[tS([{provide:_i,useExisting:n}]),Xm$2]})}return n}
8460)(),gS=(()=>{class n extends ka$1{data;static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[tS([{provide:ka$1,useExisting:n}]),Xm$2]})}return n})();var bS=(()=>{class n extends lo{get level(){return this._level}set level(e){this._setLevelInput(e);}get indent(){return this._indent}set indent(e){this._setIndentInput(e);}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matTreeNodePadding",""]],inputs:{level:[2,"matTreeNodePadding","level",nM],indent:[0,"matTreeNodePaddingIndent","indent"]},features:[tS([{provide:lo,useExisting:n}]),Xm$2]})}return n})(),Ed$1=(()=>{class n{viewContainer=g$4(Ct$6);_node=g$4(so,{optional:true});static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matTreeNodeOutlet",""]],features:[tS([{provide:wa$1,useExisting:n}])]})}return n})(),vS=(()=>{class n extends Li$1{_nodeOutlet=void 0;static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-tree"]],viewQuery:function(t,i){if(t&1&&by(Ed$1,7),t&2){let a;m_$1(a=y_$1())&&(i._nodeOutlet=a.first);}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[tS([{provide:Li$1,useExisting:n}]),Xm$2],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,i){t&1&&gy(0,0);},dependencies:[Ed$1],styles:[`.mat-tree { 8461 display: block; 8462 background-color: var(--mat-tree-container-background-color, var(--mat-sys-surface)); 8463} 8464 8465.mat-tree-node, 8466.mat-nested-tree-node { 8467 color: var(--mat-tree-node-text-color, var(--mat-sys-on-surface)); 8468 font-family: var(--mat-tree-node-text-font, var(--mat-sys-body-large-font)); 8469 font-size: var(--mat-tree-node-text-size, var(--mat-sys-body-large-size)); 8470 font-weight: var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight)); 8471} 8472 8473.mat-tree-node { 8474 display: flex; 8475 align-items: center; 8476 flex: 1; 8477 word-wrap: break-word; 8478 min-height: var(--mat-tree-node-min-height, 48px); 8479} 8480 8481.mat-nested-tree-node { 8482 border-bottom-width: 0; 8483} 8484`],encapsulation:2,changeDetection:1})}return n})(),yS=(()=>{class n extends co$1{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[tS([{provide:co$1,useExisting:n}]),Xm$2]})}return n})();var xS=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Id$1,it$2]})}return n})(),Td$1=class Td{transformFunction;getLevel;isExpandable;getChildren;constructor(r,e,t,i){this.transformFunction=r,this.getLevel=e,this.isExpandable=t,this.getChildren=i;}_flattenNode(r,e,t,i){let a=this.transformFunction(r,e);if(t.push(a),this.isExpandable(a)){let o=this.getChildren(r);o&&(Array.isArray(o)?this._flattenChildren(o,e,t,i):o.pipe(bn$3(1)).subscribe(l=>{this._flattenChildren(l,e,t,i);}));}return t}_flattenChildren(r,e,t,i){r.forEach((a,o)=>{let l=i.slice();l.push(o!=r.length-1),this._flattenNode(a,e+1,t,l);});}flattenNodes(r){let e=[];return r.forEach(t=>this._flattenNode(t,0,e,[])),e}expandFlattenedNodes(r,e){let t=[],i=[];return i[0]=true,r.forEach(a=>{let o=true;for(let l=0;l<=this.getLevel(a);l++)o=o&&i[l];o&&t.push(a),this.isExpandable(a)&&(i[this.getLevel(a)+1]=e.isExpanded(a));}),t}},Ad$1=class Ad extends Re$2{_treeControl;_treeFlattener;_flattenedData=new Jr$1([]);_expandedData=new Jr$1([]);get data(){return this._data.value}set data(r){this._data.next(r),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value;}_data=new Jr$1([]);constructor(r,e,t){super(),this._treeControl=r,this._treeFlattener=e,t&&(this.data=t);}connect(r){return WD(r.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(ve$4(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}};var ef=["button"],tf=["*"];function nf(n,r){if(n&1&&(Js$2(0,"div",2),fy(1,"mat-pseudo-checkbox",6),gd$2()),n&2){let e=d_$1();
8484SC(),dy("disabled",e.disabled);}}var Rd$1=new I$4("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:false,hideMultipleSelectionIndicator:false,disabledInteractive:false})}),Fd$1=new I$4("MatButtonToggleGroup"),af={provide:Fe$1,useExisting:ns(()=>rf),multi:true},Ca$1=class Ca{source;value;constructor(r,e){this.source=r,this.value=e;}},rf=(()=>{class n{_changeDetector=g$4(Od$2);_dir=g$4(qe$4,{optional:true});_multiple=false;_disabled=false;_disabledInteractive=false;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck();}_name=g$4(re$4).getId("mat-button-toggle-group-");vertical=false;get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(t=>t.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value);}valueChange=new kt$3;get selected(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck();}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck();}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markButtonsForCheck();}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new kt$3;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._markButtonsForCheck();}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(e){this._hideMultipleSelectionIndicator=e,this._markButtonsForCheck();}_hideMultipleSelectionIndicator;constructor(){let e=g$4(Rd$1,{optional:true});this.appearance=e&&e.appearance?e.appearance:"standard",this._hideSingleSelectionIndicator=e?.hideSingleSelectionIndicator??false,this._hideMultipleSelectionIndicator=e?.hideMultipleSelectionIndicator??false;}ngOnInit(){this._selectionModel=new yt(this.multiple,void 0,false);}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked)),this.multiple||this._initializeTabIndex();}writeValue(e){this.value=e,this._changeDetector.markForCheck();}registerOnChange(e){this._controlValueAccessorChangeFn=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e;}_keydown(e){if(this.multiple||this.disabled||Ye$4(e))return;let i=e.target.id,a=this._buttonToggles.toArray().findIndex(l=>l.buttonId===i),o=null;switch(e.keyCode){case 32:case 13:o=this._buttonToggles.get(a)||null;break;case 38:o=this._getNextButton(a,-1);break;case 37:o=this._getNextButton(a,this.dir==="ltr"?-1:1);break;case 40:o=this._getNextButton(a,1);break;case 39:o=this._getNextButton(a,this.dir==="ltr"?1:-1);break;default:return}o&&(e.preventDefault(),o._onButtonClick(),o.focus());}_emitChangeEvent(e){let t=new Ca$1(e,this.value);this._rawValue=t.value,this._controlValueAccessorChangeFn(t.value),this.change.emit(t);}_syncButtonToggle(e,t,i=false,a=false){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=false),this._selectionModel?t?this._selectionModel.select(e):this._selectionModel.deselect(e):a=true,a?Promise.resolve().then(()=>this._updateModelValue(e,i)):this._updateModelValue(e,i);}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?false:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(t=>e.value!=null&&t===e.value):e.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1;}),this.selected)this.selected.tabIndex=0;else for(let e=0;e<this._buttonToggles.length;e++){let t=this._buttonToggles.get(e);if(!t.disabled){t.tabIndex=0;break}}}_getNextButton(e,t){let i=this._buttonToggles;for(let a=1;a<=i.length;a++){let o=(e+t*a+i.length)%i.length,l=i.get(o);if(l&&!l.disabled)return l}return null}_setSelectionByValue(e){if(this._rawValue=e,!this._buttonToggles)return;let t=this._buttonToggles.toArray();if(this.multiple&&e?(this._clearSelection(),e.forEach(i=>
8484this._selectValue(i,t))):(this._clearSelection(),this._selectValue(e,t)),!this.multiple&&t.every(i=>i.tabIndex===-1)){for(let i of t)if(!i.disabled){i.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=false,this.multiple||(e.tabIndex=-1);});}_selectValue(e,t){for(let i of t)if(i.value===e){i.checked=true,this._selectionModel.select(i),this.multiple||(i.tabIndex=0);break}}_updateModelValue(e,t){t&&this._emitChangeEvent(e),this.valueChange.emit(this.value);}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck());}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,Od$1,5),t&2){let o;m_$1(o=y_$1())&&(i._buttonToggles=o);}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(t,i){t&1&&Ey("keydown",function(o){return i._keydown(o)}),t&2&&(ly("role",i.multiple?"group":"radiogroup")("aria-disabled",i.disabled),xy("mat-button-toggle-vertical",i.vertical)("mat-button-toggle-group-appearance-standard",i.appearance==="standard"));},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",tM$1],value:"value",multiple:[2,"multiple","multiple",tM$1],disabled:[2,"disabled","disabled",tM$1],disabledInteractive:[2,"disabledInteractive","disabledInteractive",tM$1],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",tM$1],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",tM$1]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[tS([af,{provide:Fd$1,useExisting:n}])]})}return n})(),Od$1=(()=>{class n{_changeDetectorRef=g$4(Od$2);_elementRef=g$4(Vt$3);_focusMonitor=g$4(Ot);_idGenerator=g$4(re$4);_animationDisabled=ct$1();_checked=false;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return `${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e);}_tabIndex;disableRipple=false;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e;}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck());}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e;}_disabled=false;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e;}_disabledInteractive;change=new kt$3;constructor(){g$4(P$3).load(Bn$1);let e=g$4(Fd$1,{optional:true}),t=g$4(new nv("tabindex"),{optional:true})||"",i=g$4(Rd$1,{optional:true});this._tabIndex=Es$1(parseInt(t)||0),this.buttonToggleGroup=e,this._appearance=i&&i.appearance?i.appearance:"standard",this._disabledInteractive=i?.disabledInteractive??false;}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=true:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked));}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,true);}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,false,false,true);}focus(e){this._buttonElement.nativeElement.focus(e);}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?true:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,true),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let t=this.buttonToggleGroup._buttonToggles.find(i=>i.tabIndex===0);t&&(t.tabIndex=-1),this.tabIndex=0;}this.change.emit(new Ca$1(this,this.value));}_markForCheck(){this._changeDetectorRef.markForCheck();}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(t,i){if(t&1&&by(ef,5),t&2){let a;m_$1(a=y_$1())&&(i._buttonElement=a.first);}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(t,i){t&1&&Ey("focus",function(){return i.focus()}),t&2&&(ly("aria-label",null)("aria-labelledby",null)("id",i.id)("name",null),xy("mat-button-toggle-standalone",!i.buttonToggleGroup)("mat-button-toggle-checked",i.checked)("mat-button-toggle-disabled",i.disabled)("mat-button-toggle-disabled-interactive",i.disabledInteractive)("mat-button-toggle-appearance-standard",i.appearance==="standard"));},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",tM$1],appearance:"appearance",checked:[2,"checked","checked",tM$1],disabled:[2,"disabled","disabled",tM$1],disabledInteractive:[2,"disabledInteractive","disabledInteractive",tM$1]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:tf,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(t,i){if(t&1&&(p_$1(),Js$2(0,"button",1,0),Ey("click",function(){return i._onButtonClick()}),ZT(2,nf,2,1,"div",2),Js$2(3,"span",3),h_$1(4),gd$2()(),fy(5,"span",4)(6,"span",5)),t&2){let a=D_$1(1);dy("id",i.buttonId)("disabled",i.disabled&&!i.disabledInteractive||null),ly("role",i.isSingleSelector()?"radio":"button")("tabindex",i.disabled&&!i.disabledInteractive?-1:i.tabIndex)("aria-pressed",i.isSingleSelector()?null:i.checked)("aria-checked",i.isSingleSelector()?i.checked:null)("name",i._getButtonName())("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),SC(2),YT(i.buttonToggleGroup&&(!i.buttonToggleGroup.multiple&&!i.buttonToggleGroup.hideSingleSelectionIndicator||i.buttonToggleGroup.multiple&&!i.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),SC(4),dy("matRippleTrigger",a)("matRippleDisabled",i.disableRipple||i.disabled);}},dependencies:[jr$1,Zn],styles:[`.mat-button-toggle-standalone, 8485.mat-button-toggle-group { 8486 position: relative; 8487 display: inline-flex; 8488 flex-direction: row; 8489 white-space: nowrap; 8490 overflow: hidden; 8491 -webkit-tap-highlight-color: transparent; 8492 border-radius: var(--mat-button-toggle-legacy-shape); 8493 transform: translateZ(0); 8494} 8495.mat-button-toggle-standalone:not([class*=mat-elevation-z]), 8496.mat-button-toggle-group:not([class*=mat-elevation-z]) { 8497 box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); 8498} 8499@media (forced-colors: active) { 8500 .mat-button-toggle-standalone, 8501 .mat-button-toggle-group { 8502 outline: solid 1px; 8503 } 8504} 8505 8506.mat-button-toggle-standalone.mat-button-toggle-appearance-standard, 8507.mat-button-toggle-group-appearance-standard { 8508 border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); 8509 border: solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline)); 8510} 8511.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox, 8512.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox { 8513 --mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container)); 8514} 8515.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]), 8516.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]) { 8517 box-shadow: none; 8518} 8519@media (forced-colors: active) { 8520 .mat-button-toggle-standalone.mat-button-toggle-appearance-standard, 8521 .mat-button-toggle-group-appearance-standard { 8522 outline: 0; 8523 } 8524} 8525 8526.mat-button-toggle-vertical { 8527 flex-direction: column; 8528} 8529.mat-button-toggle-vertical .mat-button-toggle-label-content { 8530 display: block; 8531} 8532 8533.mat-button-toggle { 8534 white-space: nowrap; 8535 position: relative; 8536 color: var(--mat-button-toggle-legacy-text-color); 8537 font-family: var(--mat-button-toggle-legacy-label-text-font); 8538 font-size: var(--mat-button-toggle-legacy-label-text-size); 8539 line-height: var(--mat-button-toggle-legacy-label-text-line-height); 8540 font-weight: var(--mat-button-toggle-legacy-label-text-weight); 8541 letter-spacing: var(--mat-button-toggle-legacy-label-text-tracking); 8542 --mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color); 8543} 8544.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay { 8545 opacity: var(--mat-button-toggle-legacy-focus-state-layer-opacity); 8546} 8547.mat-button-toggle .mat-icon svg { 8548 vertical-align: top; 8549} 8550 8551.mat-button-toggle-checkbox-wrapper { 8552 display: inline-block; 8553 justify-content: flex-start; 8554 align-items: center; 8555 width: 0; 8556 height: 18px; 8557 line-height: 18px; 8558 overflow: hidden; 8559 box-sizing: border-box; 8560 position: absolute; 8561 top: 50%; 8562 left: 16px; 8563 transform: translate3d(0, -50%, 0); 8564} 8565[dir=rtl] .mat-button-toggle-checkbox-wrapper { 8566 left: auto; 8567 right: 16px; 8568} 8569.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper { 8570 left: 12px; 8571} 8572[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper { 8573 left: auto; 8574 right: 12px; 8575} 8576.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper { 8577 width: 18px; 8578} 8579.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper { 8580 transition: width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1); 8581} 8582.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper { 8583 transition: none; 8584} 8585 8586.mat-button-toggle-checked { 8587 color: var(--mat-button-toggle-legacy-selected-state-text-color); 8588 background-color: var(--mat-button-toggle-legacy-selected-state-background-color); 8589} 8590 8591.mat-button-toggle-disabled { 8592 pointer-events: none; 8593 color: var(--mat-button-toggle-legacy-disabled-state-text-color); 8594 background-color: var(--mat-button-toggle-legacy-disabled-state-background-color); 8595 --mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color); 8596} 8597.mat-button-toggle-disabled.mat-button-toggle-checked { 8598 background-color: var(--mat-button-toggle-legacy-disabled-selected-state-background-color); 8599} 8600 8601.mat-button-toggle-disabled-interactive { 8602 pointer-events: auto; 8603} 8604 8605.mat-button-toggle-appearance-standard { 8606 color: var(--mat-button-toggle-text-color, var(--mat-sys-on-surface)); 8607 background-color: var(--mat-button-toggle-background-color, transparent); 8608 font-family: var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font)); 8609 font-size: var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size)); 8610 line-height: var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height)); 8611 font-weight: var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight)); 8612 letter-spacing: var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking)); 8613} 8614.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard + .mat-button-toggle-appearance-standard { 8615 border-left: solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline)); 8616} 8617[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard + .mat-button-toggle-appearance-standard { 8618 border-left: none; 8619 border-right: solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline)); 8620} 8621.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard + .mat-button-toggle-appearance-standard { 8622 border-left: none;
8623 border-right: none; 8624 border-top: solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline)); 8625} 8626.mat-button-toggle-appearance-standard.mat-button-toggle-checked { 8627 color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container)); 8628 background-color: var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container)); 8629} 8630.mat-button-toggle-appearance-standard.mat-button-toggle-disabled { 8631 color: var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 8632 background-color: var(--mat-button-toggle-disabled-state-background-color, transparent); 8633} 8634.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox { 8635 --mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 8636} 8637.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked { 8638 color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 8639 background-color: var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 8640} 8641.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay { 8642 background-color: var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface)); 8643} 8644.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay { 8645 opacity: var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 8646} 8647.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay { 8648 opacity: var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 8649} 8650@media (hover: none) { 8651 .mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay { 8652 display: none; 8653 } 8654} 8655 8656.mat-button-toggle-label-content { 8657 -webkit-user-select: none; 8658 user-select: none; 8659 display: inline-block; 8660 padding: 0 16px; 8661 line-height: var(--mat-button-toggle-legacy-height); 8662 position: relative; 8663} 8664.mat-button-toggle-appearance-standard .mat-button-toggle-label-content { 8665 padding: 0 12px; 8666 line-height: var(--mat-button-toggle-height, 40px); 8667} 8668 8669.mat-button-toggle-label-content > * { 8670 vertical-align: middle; 8671} 8672 8673.mat-button-toggle-focus-overlay { 8674 top: 0; 8675 left: 0; 8676 right: 0; 8677 bottom: 0; 8678 position: absolute; 8679 border-radius: inherit; 8680 pointer-events: none; 8681 opacity: 0; 8682 background-color: var(--mat-button-toggle-legacy-state-layer-color); 8683} 8684 8685@media (forced-colors: active) { 8686 .mat-button-toggle-checked .mat-button-toggle-focus-overlay { 8687 border-bottom: solid 500px; 8688 opacity: 0.5; 8689 height: 0; 8690 } 8691 .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay { 8692 opacity: 0.6; 8693 } 8694 .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay { 8695 border-bottom: solid 500px; 8696 } 8697} 8698.mat-button-toggle .mat-button-toggle-ripple { 8699 top: 0; 8700 left: 0; 8701 right: 0; 8702 bottom: 0; 8703 position: absolute; 8704 pointer-events: none; 8705} 8706 8707.mat-button-toggle-button { 8708 border: 0; 8709 background: none; 8710 color: inherit; 8711 padding: 0; 8712 margin: 0; 8713 font: inherit; 8714 outline: none; 8715 width: 100%; 8716 cursor: pointer; 8717} 8718.mat-button-toggle-animations-enabled .mat-button-toggle-button { 8719 transition: padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1); 8720} 8721.mat-button-toggle-vertical .mat-button-toggle-button { 8722 transition: none; 8723} 8724.mat-button-toggle-disabled .mat-button-toggle-button { 8725 cursor: default; 8726} 8727.mat-button-toggle-button::-moz-focus-inner { 8728 border: 0; 8729} 8730.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper) { 8731 padding-left: 30px; 8732} 8733[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper) { 8734 padding-left: 0; 8735 padding-right: 30px; 8736} 8737 8738.mat-button-toggle-standalone.mat-button-toggle-appearance-standard { 8739 --mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); 8740} 8741 8742.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before { 8743 border-top-right-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); 8744 border-bottom-right-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); 8745} 8746.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before { 8747 border-top-left-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); 8748 border-bottom-left-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); 8749} 8750 8751.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before { 8752 border-bottom-right-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); 8753 border-bottom-left-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); 8754} 8755.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before { 8756 border-top-right-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); 8757 border-top-left-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); 8758} 8759`],encapsulation:2})}return n})(),GS=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Dn$1,Od$1,it$2]})}return n})();var of=new I$4("MAT_BADGE_CONFIG"),Pd$1="mat-badge-content",sf=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(t,i){},styles:[`.mat-badge { 8760 position: relative; 8761} 8762.mat-badge.mat-badge { 8763 overflow: visible; 8764} 8765 8766.mat-badge-content { 8767 position: absolute; 8768 text-align: center; 8769 display: inline-block; 8770 transition: transform 200ms ease-in-out; 8771 transform: scale(0.6); 8772 overflow: hidden; 8773 white-space: nowrap; 8774 text-overflow: ellipsis; 8775 box-sizing: border-box; 8776 pointer-events: none; 8777 background-color: var(--mat-badge-background-color, var(--mat-sys-error)); 8778 color: var(--mat-badge-text-color, var(--mat-sys-on-error)); 8779 font-family: var(--mat-badge-text-font, var(--mat-sys-label-small-font)); 8780 font-weight: var(--mat-badge-text-weight, var(--mat-sys-label-small-weight)); 8781 border-radius: var(--mat-badge-container-shape, var(--mat-sys-corner-full)); 8782} 8783.mat-badge-above .mat-badge-content { 8784 bottom: 100%; 8785} 8786.mat-badge-below .mat-badge-content { 8787 top: 100%; 8788} 8789.mat-badge-before .mat-badge-content { 8790 right: 100%; 8791} 8792[dir=rtl] .mat-badge-before .mat-badge-content { 8793 right: auto; 8794 left: 100%; 8795} 8796.mat-badge-after .mat-badge-content { 8797 left: 100%; 8798} 8799[dir=rtl] .mat-badge-after .mat-badge-content { 8800 left: auto; 8801 right: 100%; 8802} 8803@media (forced-colors: active) { 8804 .mat-badge-content { 8805 outline: solid 1px; 8806 border-radius: 0; 8807 } 8808} 8809 8810.mat-badge-disabled .mat-badge-content { 8811 background-color: var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent)); 8812 color: var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error)); 8813} 8814 8815.mat-badge-hidden .mat-badge-content { 8816 display: none; 8817} 8818 8819.ng-animate-disabled .mat-badge-content, 8820.mat-badge-content._mat-animation-noopable { 8821 transition: none; 8822} 8823 8824.mat-badge-content.mat-badge-active { 8825 transform: none; 8826} 8827 8828.mat-badge-small .mat-badge-content { 8829 width: var(--mat-badge-legacy-small-size-container-size, unset); 8830 height: var(--mat-badge-legacy-small-size-container-size, unset); 8831 min-width: var(--mat-badge-small-size-container-size, 6px); 8832 min-height: var(--mat-badge-small-size-container-size, 6px); 8833 line-height: var(--mat-badge-small-size-line-height, 6px); 8834 padding: var(--mat-badge-small-size-container-padding, 0); 8835 font-size: var(--mat-badge-small-size-text-size, 0); 8836 margin: var(--mat-badge-small-size-container-offset, -6px 0); 8837} 8838.mat-badge-small.mat-badge-overlap .mat-badge-content { 8839 margin: var(--mat-badge-small-size-container-overlap-offset, -6px); 8840} 8841 8842.mat-badge-medium .mat-badge-content { 8843 width: var(--mat-badge-legacy-container-size, unset); 8844 height: var(--mat-badge-legacy-container-size, unset); 8845 min-width: var(--mat-badge-container-size, 16px); 8846 min-height: var(--mat-badge-container-size, 16px); 8847 line-height: var(--mat-badge-line-height, 16px); 8848 padding: var(--mat-badge-container-padding, 0 4px); 8849 font-size: var(--mat-badge-text-size, var(--mat-sys-label-small-size)); 8850 margin: var(--mat-badge-container-offset, -12px 0); 8851} 8852.mat-badge-medium.mat-badge-overlap .mat-badge-content { 8853 margin: var(--mat-badge-container-overlap-offset, -12px); 8854} 8855 8856.mat-badge-large .mat-badge-content { 8857 width: var(--mat-badge-legacy-large-size-container-size, unset); 8858 height: var(--mat-badge-legacy-large-size-container-size, unset); 8859 min-width: var(--mat-badge-large-size-container-size, 16px); 8860 min-height: var(--mat-badge-large-size-container-size, 16px); 8861 line-height: var(--mat-badge-large-size-line-height, 16px); 8862 padding: var(--mat-badge-large-size-container-padding, 0 4px); 8863 font-size: var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size)); 8864 margin: var(--mat-badge-large-size-container-offset, -12px 0); 8865} 8866.mat-badge-large.mat-badge-overlap .mat-badge-content { 8867 margin: var(--mat-badge-large-size-container-overlap-offset, -12px); 8868} 8869`],encapsulation:2})}return n})(),tI=(()=>{class n{_ngZone=g$4(q$3);_elementRef=g$4(Vt$3);_ariaDescriber=g$4(pr$2);_renderer=g$4(qo$1);_animationsDisabled=ct$1();_idGenerator=g$4(re$4);get color(){return this._color}set color(e){this._setColor(e),this._color=e;}_color;overlap;disabled=false;position;get content(){return this._content}set content(e){this._updateRenderedContent(e);}_content;get description(){return this._description}set description(e){this._updateDescription(e);}_description;size;hidden=false;_badgeElement;_inlineBadgeDescription;_isInitialized=false;_interactivityChecker=g$4(bn$1);_document=g$4(Y$3);constructor(){let e=g$4(of,{optional:true}),t=g$4(P$3);t.load(sf),t.load(Bt$1),this._color=e?.color||"primary",this.overlap=e?.overlap??true,this.position=e?.position||"above after",this.size=e?.size||"medium";}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=true;}ngAfterViewInit(){}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description);}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:true})}_createBadgeElement(){let e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(Pd$1),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t);});}):e.classList.add(t),e}_updateRenderedContent(e){let t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t;}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription();}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription);}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0;}_setColor(e){let t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`);}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${Pd$1}`);for(let t of Array.from(e))t!==this._badgeElement&&t.remove();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,i){t&2&&xy("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small",i.size==="small")("mat-badge-medium",i.size==="medium")("mat-badge-large",i.size==="large")("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled);},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",tM$1],disabled:[2,"matBadgeDisabled","disabled",tM$1],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",tM$1]}})}return n})(),iI=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[di$1,it$2]})}return n})();var Nd$1=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],zd=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function df(n,r){n&1&&(Js$2(0,"span",3),h_$1(1,1),gd$2());}function cf(n,r){n&1&&(Js$2(0,"span",6),h_$1(1,2),gd$2());}function mf(n,r){n&1&&(Js$2(0,"span",3),h_$1(1,1),Js$2(2,"span",7),Xp$2(),Js$2(3,"svg",8),fy(4,"path",9),gd$2()()());}function hf(n,r){n&1&&(Js$2(0,"span",6),h_$1(1,2),gd$2());}var Hd$1=`.mdc-evolution-chip, 8870.mdc-evolution-chip__cell, 8871.mdc-evolution-chip__action { 8872 display: inline-flex; 8873 align-items: center; 8874} 8875 8876.mdc-evolution-chip { 8877 position: relative; 8878 max-width: 100%; 8879} 8880 8881.mdc-evolution-chip__cell, 8882.mdc-evolution-chip__action { 8883 height: 100%; 8884} 8885 8886.mdc-evolution-chip__cell--primary { 8887 flex-basis: 100%; 8888 overflow-x: hidden; 8889} 8890 8891.mdc-evolution-chip__cell--trailing { 8892 flex: 1 0 auto; 8893} 8894 8895.mdc-evolution-chip__action { 8896 align-items: center; 8897 background: none; 8898 border: none; 8899 box-sizing: content-box; 8900 cursor: pointer; 8901 display: inline-flex; 8902 justify-content: center; 8903 outline: none; 8904 padding: 0; 8905 text-decoration: none; 8906 color: inherit; 8907} 8908 8909.mdc-evolution-chip__action--presentational { 8910 cursor: auto; 8911} 8912 8913.mdc-evolution-chip--disabled, 8914.mdc-evolution-chip__action:disabled { 8915 pointer-events: none; 8916} 8917@media (forced-colors: active) { 8918 .mdc-evolution-chip--disabled, 8919 .mdc-evolution-chip__action:disabled { 8920 forced-color-adjust: none; 8921 } 8922} 8923 8924.mdc-evolution-chip__action--primary { 8925 font: inherit; 8926 letter-spacing: inherit; 8927 white-space: inherit; 8928 overflow-x: hidden; 8929} 8930.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before { 8931 border-width: var(--mat-chip-outline-width, 1px); 8932 border-radius: var(--mat-chip-container-shape-radius, 8px); 8933 box-sizing: border-box; 8934 content: ""; 8935 height: 100%; 8936 left: 0; 8937 position: absolute; 8938 pointer-events: none; 8939 top: 0; 8940 width: 100%; 8941 z-index: 1; 8942 border-style: solid; 8943} 8944.mat-mdc-standard-chip .mdc-evolution-chip__action--primary { 8945 padding-left: 12px; 8946 padding-right: 12px; 8947} 8948.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary { 8949 padding-left: 0; 8950 padding-right: 12px; 8951} 8952[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary { 8953 pa
8953dding-left: 12px; 8954 padding-right: 0; 8955} 8956.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before { 8957 border-color: var(--mat-chip-outline-color, var(--mat-sys-outline)); 8958} 8959.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before { 8960 border-color: var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant)); 8961} 8962.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before { 8963 border-color: var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 8964} 8965.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before { 8966 border-width: var(--mat-chip-flat-selected-outline-width, 0); 8967} 8968.mat-mdc-basic-chip .mdc-evolution-chip__action--primary { 8969 font: inherit; 8970} 8971.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary { 8972 padding-left: 0; 8973 padding-right: 12px; 8974} 8975[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary { 8976 padding-left: 12px; 8977 padding-right: 0; 8978} 8979.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 8980 padding-left: 12px; 8981 padding-right: 0; 8982} 8983[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 8984 padding-left: 0; 8985 padding-right: 12px; 8986} 8987.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 8988 padding-left: 0; 8989 padding-right: 0; 8990} 8991.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 8992 padding-left: 0; 8993 padding-right: 0; 8994} 8995[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 8996 padding-left: 0; 8997 padding-right: 0; 8998} 8999.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary { 9000 padding-left: 0; 9001 padding-right: 12px; 9002} 9003[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary { 9004 padding-left: 12px; 9005 padding-right: 0; 9006} 9007.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 9008 padding-left: 0; 9009 padding-right: 0; 9010} 9011[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 9012 padding-left: 0; 9013 padding-right: 0; 9014} 9015 9016.mdc-evolution-chip__action--secondary { 9017 position: relative; 9018 overflow: visible; 9019} 9020.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary { 9021 color: var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant)); 9022} 9023.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary { 9024 color: var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface)); 9025} 9026.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary { 9027 padding-left: 8px; 9028 padding-right: 8px; 9029} 9030.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary { 9031 padding-left: 8px; 9032 padding-right: 8px; 9033} 9034.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary { 9035 padding-left: 8px; 9036 padding-right: 8px; 9037} 9038[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary { 9039 padding-left: 8px; 9040 padding-right: 8px; 9041} 9042 9043.mdc-evolution-chip__text-label { 9044 -webkit-user-select: none; 9045 user-select: none; 9046 white-space: nowrap; 9047 text-overflow: ellipsis; 9048 overflow: hidden; 9049} 9050.mat-mdc-standard-chip .mdc-evolution-chip__text-label { 9051 font-family: var(--mat-chip-label-text-font, var(--mat-sys-label-large-font)); 9052 line-height: var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height)); 9053 font-size: var(--mat-chip-label-text-size, var(--mat-sys-label-large-size)); 9054 font-weight: var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight)); 9055 letter-spacing: var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking)); 9056} 9057.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label { 9058 color: var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant)); 9059} 9060.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label { 9061 color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container)); 9062} 9063.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label, .mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label { 9064 color: var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 9065} 9066 9067.mdc-evolution-chip__graphic { 9068 align-items: center; 9069 display: inline-flex; 9070 justify-content: center; 9071 overflow: hidden; 9072 pointer-events: none; 9073 position: relative; 9074 flex: 1 0 auto; 9075} 9076.mat-mdc-standard-chip .mdc-evolution-chip__graphic { 9077 width: var(--mat-chip-with-avatar-avatar-size, 24px); 9078 height: var(--mat-chip-with-avatar-avatar-size, 24px); 9079 font-size: var(--mat-chip-with-avatar-avatar-size, 24px); 9080} 9081.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic { 9082 transition: width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1); 9083} 9084.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic { 9085 width: 0; 9086} 9087.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic { 9088 padding-left: 6px; 9089 padding-right: 6px; 9090} 9091.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic { 9092 padding-left: 4px; 9093 padding-right: 8px; 9094} 9095[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic { 9096 padding-left: 8px; 9097 padding-right: 4px; 9098} 9099.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic { 9100 padding-left: 6px; 9101 padding-right: 6px; 9102} 9103.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic { 9104 padding-left: 4px; 9105 padding-right: 8px; 9106} 9107[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic { 9108 padding-left: 8px; 9109 padding-right: 4px; 9110} 9111.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic { 9112 padding-left: 0; 9113} 9114 9115.mdc-evolution-chip__checkmark { 9116 position: absolute; 9117 opacity: 0; 9118 top: 50%; 9119 left: 50%; 9120 height: 20px;
9121 width: 20px; 9122} 9123.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark { 9124 color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container)); 9125} 9126.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark { 9127 color: var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface)); 9128} 9129.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark { 9130 transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1); 9131 transform: translate(-75%, -50%); 9132} 9133.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark { 9134 transform: translate(-50%, -50%); 9135 opacity: 1; 9136} 9137 9138.mdc-evolution-chip__checkmark-svg { 9139 display: block; 9140} 9141 9142.mdc-evolution-chip__checkmark-path { 9143 stroke-width: 2px; 9144 stroke-dasharray: 29.7833385; 9145 stroke-dashoffset: 29.7833385; 9146 stroke: currentColor; 9147} 9148.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path { 9149 transition: stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1); 9150} 9151.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path { 9152 stroke-dashoffset: 0; 9153} 9154@media (forced-colors: active) { 9155 .mdc-evolution-chip__checkmark-path { 9156 stroke: CanvasText !important; 9157 } 9158} 9159 9160.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing { 9161 height: 18px; 9162 width: 18px; 9163 font-size: 18px; 9164} 9165.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove { 9166 opacity: calc(var(--mat-chip-trailing-action-opacity, 1) * var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)); 9167} 9168.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus { 9169 opacity: calc(var(--mat-chip-trailing-action-focus-opacity, 1) * var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)); 9170} 9171 9172.mat-mdc-standard-chip { 9173 border-radius: var(--mat-chip-container-shape-radius, 8px); 9174 height: var(--mat-chip-container-height, 32px); 9175} 9176.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) { 9177 background-color: var(--mat-chip-elevated-container-color, transparent); 9178} 9179.mat-mdc-standard-chip.mdc-evolution-chip--disabled { 9180 background-color: var(--mat-chip-elevated-disabled-container-color); 9181} 9182.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) { 9183 background-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container)); 9184} 9185.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled { 9186 background-color: var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 9187} 9188@media (forced-colors: active) { 9189 .mat-mdc-standard-chip { 9190 outline: solid 1px; 9191 } 9192} 9193 9194.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary { 9195 border-radius: var(--mat-chip-with-avatar-avatar-shape-radius, 24px); 9196 width: var(--mat-chip-with-icon-icon-size, 18px); 9197 height: var(--mat-chip-with-icon-icon-size, 18px); 9198 font-size: var(--mat-chip-with-icon-icon-size, 18px); 9199} 9200.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary { 9201 opacity: 0; 9202} 9203.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary { 9204 color: var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant)); 9205} 9206.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary { 9207 color: var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface)); 9208} 9209 9210.mat-mdc-chip-highlighted { 9211 --mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container)); 9212 --mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container)); 9213 --mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container)); 9214 --mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0); 9215} 9216 9217.mat-mdc-chip-focus-overlay { 9218 background: var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant)); 9219} 9220.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay { 9221 background: var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container)); 9222} 9223.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay { 9224 background: var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant)); 9225 opacity: var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 9226} 9227.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover, .mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay { 9228 background: var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container)); 9229 opacity: var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 9230} 9231.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay { 9232 background: var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant)); 9233 opacity: var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 9234} 9235.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted.c
9235dk-focused .mat-mdc-chip-focus-overlay { 9236 background: var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container)); 9237 opacity: var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 9238} 9239 9240.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar { 9241 opacity: var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38); 9242} 9243 9244.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing { 9245 opacity: var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38); 9246} 9247 9248.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark { 9249 opacity: var(--mat-chip-with-icon-disabled-icon-opacity, 0.38); 9250} 9251 9252.mat-mdc-standard-chip.mdc-evolution-chip--disabled { 9253 opacity: var(--mat-chip-disabled-container-opacity, 1); 9254} 9255.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing { 9256 color: var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container)); 9257} 9258.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing { 9259 color: var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface)); 9260} 9261 9262.mat-mdc-chip-edit, .mat-mdc-chip-remove { 9263 opacity: var(--mat-chip-trailing-action-opacity, 1); 9264} 9265.mat-mdc-chip-edit:focus, .mat-mdc-chip-remove:focus { 9266 opacity: var(--mat-chip-trailing-action-focus-opacity, 1); 9267} 9268.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after { 9269 background-color: var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant)); 9270} 9271.mat-mdc-chip-edit:hover::after, .mat-mdc-chip-remove:hover::after { 9272 opacity: calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))); 9273} 9274.mat-mdc-chip-edit:focus::after, .mat-mdc-chip-remove:focus::after { 9275 opacity: calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))); 9276} 9277 9278.mat-mdc-chip-selected .mat-mdc-chip-remove::after, 9279.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after { 9280 background-color: var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container)); 9281} 9282 9283.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after { 9284 opacity: calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))); 9285} 9286.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after { 9287 opacity: calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))); 9288} 9289 9290.mat-mdc-standard-chip { 9291 -webkit-tap-highlight-color: transparent; 9292} 9293.mat-mdc-standard-chip .mat-mdc-chip-graphic, 9294.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon { 9295 box-sizing: content-box; 9296} 9297.mat-mdc-standard-chip._mat-animation-noopable, 9298.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic, 9299.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark, 9300.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path { 9301 transition-duration: 1ms; 9302 animation-duration: 1ms; 9303} 9304 9305.mat-mdc-chip-focus-overlay { 9306 top: 0; 9307 left: 0; 9308 right: 0; 9309 bottom: 0; 9310 position: absolute; 9311 pointer-events: none; 9312 opacity: 0; 9313 border-radius: inherit; 9314 transition: opacity 150ms linear; 9315} 9316._mat-animation-noopable .mat-mdc-chip-focus-overlay { 9317 transition: none; 9318} 9319.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay { 9320 display: none; 9321} 9322 9323.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple { 9324 top: 0; 9325 left: 0; 9326 right: 0; 9327 bottom: 0; 9328 position: absolute; 9329 pointer-events: none; 9330 border-radius: inherit; 9331} 9332 9333.mat-mdc-chip-avatar { 9334 text-align: center; 9335 line-height: 1; 9336 color: var(--mat-chip-with-icon-icon-color, currentColor); 9337} 9338 9339.mat-mdc-chip { 9340 position: relative; 9341 z-index: 0; 9342} 9343 9344.mat-mdc-chip-action-label { 9345 text-align: left; 9346 z-index: 1; 9347} 9348[dir=rtl] .mat-mdc-chip-action-label { 9349 text-align: right; 9350} 9351.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label { 9352 position: relative; 9353} 9354.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator { 9355 position: absolute; 9356 top: 0; 9357 right: 0; 9358 bottom: 0; 9359 left: 0; 9360 pointer-events: none; 9361} 9362.mat-mdc-chip-action-label .mat-focus-indicator::before { 9363 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1); 9364} 9365 9366.mat-mdc-chip-edit::before, .mat-mdc-chip-remove::before { 9367 margin: calc(var(--mat-focus-indicator-border-width, 3px) * -1); 9368 left: 8px; 9369 right: 8px; 9370} 9371.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
9372 content: ""; 9373 display: block; 9374 opacity: 0; 9375 position: absolute; 9376 top: -3px; 9377 bottom: -3px; 9378 left: 5px; 9379 right: 5px; 9380 border-radius: 50%; 9381 box-sizing: border-box; 9382 padding: 12px; 9383 margin: -12px; 9384 background-clip: content-box; 9385} 9386.mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon { 9387 width: 18px; 9388 height: 18px; 9389 font-size: 18px; 9390 box-sizing: content-box; 9391} 9392 9393.mat-chip-edit-input { 9394 cursor: text; 9395 display: inline-block; 9396 color: inherit; 9397 outline: 0; 9398} 9399 9400@media (forced-colors: active) { 9401 .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple) { 9402 outline-width: 3px; 9403 } 9404} 9405 9406.mat-mdc-chip-action:focus-visible .mat-focus-indicator::before { 9407 content: ""; 9408} 9409 9410.mdc-evolution-chip__icon, .mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon { 9411 min-height: fit-content; 9412} 9413 9414img.mdc-evolution-chip__icon { 9415 min-height: 0; 9416} 9417`,pf=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],uf=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function _f(n,r){n&1&&fy(0,"span",0);}function ff(n,r){n&1&&(Js$2(0,"span",1),h_$1(1),gd$2());}function gf(n,r){n&1&&(Js$2(0,"span",3),h_$1(1,1),gd$2());}function bf(n,r){n&1&&h_$1(0,2);}function vf(n,r){n&1&&fy(0,"span",7);}function yf(n,r){if(n&1&&ZT(0,bf,1,0)(1,vf,1,0,"span",7),n&2){let e=d_$1();YT(e.contentEditInput?0:1);}}function xf(n,r){n&1&&h_$1(0,3);}function wf(n,r){n&1&&(Js$2(0,"span",6),h_$1(1,4),gd$2());}var _o$1=["*"],jd$1=`.mat-mdc-chip-set { 9418 display: flex; 9419} 9420.mat-mdc-chip-set:focus { 9421 outline: none; 9422} 9423.mat-mdc-chip-set .mdc-evolution-chip-set__chips { 9424 min-width: 100%; 9425 margin-left: -8px; 9426 margin-right: 0; 9427} 9428.mat-mdc-chip-set .mdc-evolution-chip { 9429 margin: 4px 0 4px 8px; 9430} 9431[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips { 9432 margin-left: 0; 9433 margin-right: -8px; 9434} 9435[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip { 9436 margin-left: 0; 9437 margin-right: 8px; 9438} 9439 9440.mdc-evolution-chip-set__chips { 9441 display: flex; 9442 flex-flow: wrap; 9443 min-width: 0; 9444} 9445 9446.mat-mdc-chip-set-stacked { 9447 flex-direction: column; 9448 align-items: flex-start; 9449} 9450.mat-mdc-chip-set-stacked .mat-mdc-chip { 9451 width: 100%; 9452} 9453.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic { 9454 flex-grow: 0; 9455} 9456.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary { 9457 flex-basis: 100%; 9458 justify-content: start; 9459} 9460 9461input.mat-mdc-chip-input { 9462 flex: 1 0 150px; 9463 margin-left: 8px; 9464} 9465[dir=rtl] input.mat-mdc-chip-input { 9466 margin-left: 0; 9467 margin-right: 8px; 9468} 9469.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder { 9470 opacity: 1; 9471} 9472.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder { 9473 opacity: 1; 9474} 9475.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder { 9476 opacity: 1; 9477} 9478.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder { 9479 opacity: 1; 9480} 9481.mat-mdc-chip-set + input.mat-mdc-chip-input { 9482 margin-left: 0; 9483 margin-right: 0; 9484} 9485`,Da=new I$4("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),Vd$1=new I$4("MatChipAvatar"),Ld$1=new I$4("MatChipTrailingIcon"),Bd$1=new I$4("MatChipEdit"),ho$1=new I$4("MatChipRemove"),Ma$1=new I$4("MatChip"),Gd$1=(()=>{class n{_elementRef=g$4(Vt$3);_parentChip=g$4(Ma$1);_isPrimary=true;_isLeading=false;get disabled(){return this._disabled||this._parentChip?.disabled||false}set disabled(e){this._disabled=e;}_disabled=false;tabIndex=-1;_allowFocusWhenDisabled=false;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){g$4(P$3).load(Bn$1),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button");}focus(){this._elementRef.nativeElement.focus();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(t,i){t&2&&(ly("disabled",i._getDisabledAttribute())("aria-disabled",i.disabled),xy("mdc-evolution-chip__action--primary",i._isPrimary)("mdc-evolution-chip__action--secondary",!i._isPrimary)("mdc-evolution-chip__action--trailing",!i._isPrimary&&!i._isLeading));},inputs:{disabled:[2,"disabled","disabled",tM$1],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:nM(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return n})(),Sa=(()=>{class n extends Gd$1{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction());}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction());}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(t,i){t&1&&Ey("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)}),t&2&&(ly("tabindex",i._getTabindex()),xy("mdc-evolution-chip__action--presentational",false));},features:[Xm$2]})}return n})();var EI=(()=>{class n extends Sa{_isPrimary=false;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove());}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove());}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(t,i){t&2&&ly("aria-hidden",null);},features:[tS([{provide:ho$1,useExisting:n}]),Xm$2]})}return n})(),mn=(()=>{class n{_changeDetectorRef=g$4(Od$2);_elementRef=g$4(Vt$3);_tagName=g$4(dU);_ngZone=g$4(q$3);_focusMonitor=g$4(Ot);_globalRippleOptions=g$4(me$4,{optional:true});_document=g$4(Y$3);_onFocus=new ye$5;_onBlur=new ye$5;_isBasicChip=false;role=null;_hasFocusInternal=false;_pendingFocus=false;_actionChanges;_animationsDisabled=ct$1();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=g$4(re$4).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=false;_hadFocusOnRemove=false;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e;}_value;color;removable=true;highlighted=false;disableRipple=false;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e;}_disabled=false;removed=new kt$3;destroyed=new kt$3;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=g$4(Pn$1);_injector=g$4(Ee$4);constructor(){let e=g$4(P$3);e.load(Bn$1),e.load(Bt$1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()});}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName;}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pe
9485ndingFocus=false,this.focus());}ngAfterContentInit(){this._actionChanges=WD(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck());}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled());}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete();}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}));}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return !!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove());}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=true);}_getSourceAction(e){return this._getActions().find(t=>{let i=t._elementRef.nativeElement;return i===e||i.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,true).subscribe(e=>{let t=e!==null;t!==this._hasFocusInternal&&(this._hasFocusInternal=t,t?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))));});}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,i,a){if(t&1&&Cy(a,Vd$1,5)(a,Bd$1,5)(a,Ld$1,5)(a,ho$1,5)(a,Vd$1,5)(a,Ld$1,5)(a,Bd$1,5)(a,ho$1,5),t&2){let o;m_$1(o=y_$1())&&(i.leadingIcon=o.first),m_$1(o=y_$1())&&(i.editIcon=o.first),m_$1(o=y_$1())&&(i.trailingIcon=o.first),m_$1(o=y_$1())&&(i.removeIcon=o.first),m_$1(o=y_$1())&&(i._allLeadingIcons=o),m_$1(o=y_$1())&&(i._allTrailingIcons=o),m_$1(o=y_$1())&&(i._allEditIcons=o),m_$1(o=y_$1())&&(i._allRemoveIcons=o);}},viewQuery:function(t,i){if(t&1&&by(Sa,5),t&2){let a;m_$1(a=y_$1())&&(i.primaryAction=a.first);}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(t,i){t&1&&Ey("keydown",function(o){return i._handleKeydown(o)}),t&2&&(vy("id",i.id),ly("role",i.role)("aria-label",i.ariaLabel),x_$1("mat-"+(i.color||"primary")),xy("mdc-evolution-chip",!i._isBasicChip)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-basic-chip",i._isBasicChip)("mat-mdc-standard-chip",!i._isBasicChip)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon())("_mat-animation-noopable",i._animationsDisabled));},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",tM$1],highlighted:[2,"highlighted","highlighted",tM$1],disableRipple:[2,"disableRipple","disableRipple",tM$1],disabled:[2,"disabled","disabled",tM$1]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[tS([{provide:Ma$1,useExisting:n}])],ngContentSelectors:zd,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(t,i){t&1&&(p_$1(Nd$1),fy(0,"span",0),Js$2(1,"span",1)(2,"span",2),ZT(3,df,2,0,"span",3),Js$2(4,"span",4),h_$1(5),fy(6,"span",5),gd$2()()(),ZT(7,cf,2,0,"span",6)
9485),t&2&&(SC(3),YT(i.leadingIcon?3:-1),SC(4),YT(i._hasTrailingIcon()?7:-1));},dependencies:[Gd$1],styles:[`.mdc-evolution-chip, 9486.mdc-evolution-chip__cell, 9487.mdc-evolution-chip__action { 9488 display: inline-flex; 9489 align-items: center; 9490} 9491 9492.mdc-evolution-chip { 9493 position: relative; 9494 max-width: 100%; 9495} 9496 9497.mdc-evolution-chip__cell, 9498.mdc-evolution-chip__action { 9499 height: 100%; 9500} 9501 9502.mdc-evolution-chip__cell--primary { 9503 flex-basis: 100%; 9504 overflow-x: hidden; 9505} 9506 9507.mdc-evolution-chip__cell--trailing { 9508 flex: 1 0 auto; 9509} 9510 9511.mdc-evolution-chip__action { 9512 align-items: center; 9513 background: none; 9514 border: none; 9515 box-sizing: content-box; 9516 cursor: pointer; 9517 display: inline-flex; 9518 justify-content: center; 9519 outline: none; 9520 padding: 0; 9521 text-decoration: none; 9522 color: inherit; 9523} 9524 9525.mdc-evolution-chip__action--presentational { 9526 cursor: auto; 9527} 9528 9529.mdc-evolution-chip--disabled, 9530.mdc-evolution-chip__action:disabled { 9531 pointer-events: none; 9532} 9533@media (forced-colors: active) { 9534 .mdc-evolution-chip--disabled, 9535 .mdc-evolution-chip__action:disabled { 9536 forced-color-adjust: none; 9537 } 9538} 9539 9540.mdc-evolution-chip__action--primary { 9541 font: inherit; 9542 letter-spacing: inherit; 9543 white-space: inherit; 9544 overflow-x: hidden; 9545} 9546.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before { 9547 border-width: var(--mat-chip-outline-width, 1px); 9548 border-radius: var(--mat-chip-container-shape-radius, 8px); 9549 box-sizing: border-box; 9550 content: ""; 9551 height: 100%; 9552 left: 0; 9553 position: absolute; 9554 pointer-events: none; 9555 top: 0; 9556 width: 100%; 9557 z-index: 1; 9558 border-style: solid; 9559} 9560.mat-mdc-standard-chip .mdc-evolution-chip__action--primary { 9561 padding-left: 12px; 9562 padding-right: 12px; 9563} 9564.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary { 9565 padding-left: 0; 9566 padding-right: 12px; 9567} 9568[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary { 9569 padding-left: 12px; 9570 padding-right: 0; 9571} 9572.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before { 9573 border-color: var(--mat-chip-outline-color, var(--mat-sys-outline)); 9574} 9575.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before { 9576 border-color: var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant)); 9577} 9578.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before { 9579 border-color: var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 9580} 9581.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before { 9582 border-width: var(--mat-chip-flat-selected-outline-width, 0); 9583} 9584.mat-mdc-basic-chip .mdc-evolution-chip__action--primary { 9585 font: inherit; 9586} 9587.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary { 9588 padding-left: 0; 9589 padding-right: 12px; 9590} 9591[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary { 9592 padding-left: 12px; 9593 padding-right: 0; 9594} 9595.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 9596 padding-left: 12px; 9597 padding-right: 0; 9598} 9599[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 9600 padding-left: 0; 9601 padding-right: 12px; 9602} 9603.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 9604 padding-left: 0; 9605 padding-right: 0; 9606} 9607.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 9608 padding-left: 0; 9609 padding-right: 0; 9610} 9611[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 9612 padding-left: 0; 9613 padding-right: 0; 9614} 9615.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary { 9616 padding-left: 0; 9617 padding-right: 12px; 9618} 9619[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary { 9620 padding-left: 12px; 9621 padding-right: 0; 9622} 9623.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 9624 padding-left: 0; 9625 padding-right: 0; 9626} 9627[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary { 9628 padding-left: 0; 9629 padding-right: 0; 9630} 9631 9632.mdc-evolution-chip__action--secondary { 9633 position: relative; 9634 overflow: visible; 9635} 9636.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary { 9637 color: var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant)); 9638} 9639.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary { 9640 color: var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface)); 9641} 9642.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary { 9643 padding-left: 8px; 9644 padding-right: 8px; 9645} 9646.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary { 9647 padding-left: 8px; 9648 padding-right: 8px; 9649} 9650.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary { 9651 padding-left: 8px; 9652 padding-right: 8px; 9653} 9654[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary { 9655 padding-left: 8px; 9656 padding-right: 8px; 9657} 9658 9659.mdc-evolution-chip__text-label { 9660 -webkit-user-select: none; 9661 user-select: none; 9662 white-space: nowrap; 9663 text-overflow: ellipsis; 9664 overflow: hidden; 9665} 9666.mat-mdc-standard-chip .mdc-evolution-chip__text-label { 9667 font-family: var(--mat-chip-label-text-font, var(--mat-sys-label-large-font)); 9668 line-height: var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height)); 9669 font-size: var(--mat-chip-label-text-size, var(--mat-sys-label-large-size)); 9670 font-weight: var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight)); 9671 letter-spacing: var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking)); 9672} 9673.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label { 9674 color: var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant)); 9675} 9676.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label { 9677 color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container)); 9678} 9679.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label, .mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label { 9680 color: var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 9681} 9682 9683.mdc-evolution-chip__graphic { 9684 align-items: center; 9685 display: inline-flex; 9686 justify-content: center; 9687 overflow: hidden; 9688 pointer-events: none; 9689 position: relative; 9690 flex: 1 0 auto; 9691} 9692.mat-mdc-standard-chip .mdc-evolution-chip__graphic { 9693 width: var(--mat-chip-with-avatar-avatar-size, 24px); 9694 height: var(--mat-chip-with-avatar-avatar-size, 24px); 9695 font-size: var(--mat-chip-with-avatar-avatar-size, 24px); 9696} 9697.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic { 9698 transition: width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1); 9699} 9700.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic { 9701 width: 0; 9702} 9703.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic { 9704 padding-left: 6px; 9705 padding-right: 6px; 9706} 9707.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic { 9708 padding-left: 4px; 9709 padding-right: 8px; 9710} 9711[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic { 9712 padding-left: 8px; 9713 padding-right: 4px; 9714} 9715.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic { 9716 padding-left: 6px; 9717 padding-right: 6px; 9718} 9719.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic { 9720 padding-left: 4px; 9721 padding-right: 8px; 9722} 9723[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic { 9724 padding-left: 8px; 9725 padding-right: 4px; 9726} 9727.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic { 9728 padding-left: 0; 9729} 9730 9731.mdc-evolution-chip__checkmark { 9732 position: absolute; 9733 opacity: 0; 9734 top: 50%; 9735 left: 50%; 9736 height: 20px;
9737 width: 20px; 9738} 9739.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark { 9740 color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container)); 9741} 9742.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark { 9743 color: var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface)); 9744} 9745.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark { 9746 transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1); 9747 transform: translate(-75%, -50%); 9748} 9749.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark { 9750 transform: translate(-50%, -50%); 9751 opacity: 1; 9752} 9753 9754.mdc-evolution-chip__checkmark-svg { 9755 display: block; 9756} 9757 9758.mdc-evolution-chip__checkmark-path { 9759 stroke-width: 2px; 9760 stroke-dasharray: 29.7833385; 9761 stroke-dashoffset: 29.7833385; 9762 stroke: currentColor; 9763} 9764.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path { 9765 transition: stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1); 9766} 9767.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path { 9768 stroke-dashoffset: 0; 9769} 9770@media (forced-colors: active) { 9771 .mdc-evolution-chip__checkmark-path { 9772 stroke: CanvasText !important; 9773 } 9774} 9775 9776.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing { 9777 height: 18px; 9778 width: 18px; 9779 font-size: 18px; 9780} 9781.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove { 9782 opacity: calc(var(--mat-chip-trailing-action-opacity, 1) * var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)); 9783} 9784.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus { 9785 opacity: calc(var(--mat-chip-trailing-action-focus-opacity, 1) * var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)); 9786} 9787 9788.mat-mdc-standard-chip { 9789 border-radius: var(--mat-chip-container-shape-radius, 8px); 9790 height: var(--mat-chip-container-height, 32px); 9791} 9792.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) { 9793 background-color: var(--mat-chip-elevated-container-color, transparent); 9794} 9795.mat-mdc-standard-chip.mdc-evolution-chip--disabled { 9796 background-color: var(--mat-chip-elevated-disabled-container-color); 9797} 9798.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) { 9799 background-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container)); 9800} 9801.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled { 9802 background-color: var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 9803} 9804@media (forced-colors: active) { 9805 .mat-mdc-standard-chip { 9806 outline: solid 1px; 9807 } 9808} 9809 9810.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary { 9811 border-radius: var(--mat-chip-with-avatar-avatar-shape-radius, 24px); 9812 width: var(--mat-chip-with-icon-icon-size, 18px); 9813 height: var(--mat-chip-with-icon-icon-size, 18px); 9814 font-size: var(--mat-chip-with-icon-icon-size, 18px); 9815} 9816.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary { 9817 opacity: 0; 9818} 9819.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary { 9820 color: var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant)); 9821} 9822.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary { 9823 color: var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface)); 9824} 9825 9826.mat-mdc-chip-highlighted { 9827 --mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container)); 9828 --mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container)); 9829 --mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container)); 9830 --mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0); 9831} 9832 9833.mat-mdc-chip-focus-overlay { 9834 background: var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant)); 9835} 9836.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay { 9837 background: var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container)); 9838} 9839.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay { 9840 background: var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant)); 9841 opacity: var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 9842} 9843.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover, .mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay { 9844 background: var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container)); 9845 opacity: var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 9846} 9847.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay { 9848 background: var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant)); 9849 opacity: var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 9850} 9851.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted.c
9851dk-focused .mat-mdc-chip-focus-overlay { 9852 background: var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container)); 9853 opacity: var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 9854} 9855 9856.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar { 9857 opacity: var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38); 9858} 9859 9860.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing { 9861 opacity: var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38); 9862} 9863 9864.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark { 9865 opacity: var(--mat-chip-with-icon-disabled-icon-opacity, 0.38); 9866} 9867 9868.mat-mdc-standard-chip.mdc-evolution-chip--disabled { 9869 opacity: var(--mat-chip-disabled-container-opacity, 1); 9870} 9871.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing { 9872 color: var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container)); 9873} 9874.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing { 9875 color: var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface)); 9876} 9877 9878.mat-mdc-chip-edit, .mat-mdc-chip-remove { 9879 opacity: var(--mat-chip-trailing-action-opacity, 1); 9880} 9881.mat-mdc-chip-edit:focus, .mat-mdc-chip-remove:focus { 9882 opacity: var(--mat-chip-trailing-action-focus-opacity, 1); 9883} 9884.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after { 9885 background-color: var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant)); 9886} 9887.mat-mdc-chip-edit:hover::after, .mat-mdc-chip-remove:hover::after { 9888 opacity: calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))); 9889} 9890.mat-mdc-chip-edit:focus::after, .mat-mdc-chip-remove:focus::after { 9891 opacity: calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))); 9892} 9893 9894.mat-mdc-chip-selected .mat-mdc-chip-remove::after, 9895.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after { 9896 background-color: var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container)); 9897} 9898 9899.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after { 9900 opacity: calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))); 9901} 9902.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after { 9903 opacity: calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))); 9904} 9905 9906.mat-mdc-standard-chip { 9907 -webkit-tap-highlight-color: transparent; 9908} 9909.mat-mdc-standard-chip .mat-mdc-chip-graphic, 9910.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon { 9911 box-sizing: content-box; 9912} 9913.mat-mdc-standard-chip._mat-animation-noopable, 9914.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic, 9915.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark, 9916.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path { 9917 transition-duration: 1ms; 9918 animation-duration: 1ms; 9919} 9920 9921.mat-mdc-chip-focus-overlay { 9922 top: 0; 9923 left: 0; 9924 right: 0; 9925 bottom: 0; 9926 position: absolute; 9927 pointer-events: none; 9928 opacity: 0; 9929 border-radius: inherit; 9930 transition: opacity 150ms linear; 9931} 9932._mat-animation-noopable .mat-mdc-chip-focus-overlay { 9933 transition: none; 9934} 9935.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay { 9936 display: none; 9937} 9938 9939.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple { 9940 top: 0; 9941 left: 0; 9942 right: 0; 9943 bottom: 0; 9944 position: absolute; 9945 pointer-events: none; 9946 border-radius: inherit; 9947} 9948 9949.mat-mdc-chip-avatar { 9950 text-align: center; 9951 line-height: 1; 9952 color: var(--mat-chip-with-icon-icon-color, currentColor); 9953} 9954 9955.mat-mdc-chip { 9956 position: relative; 9957 z-index: 0; 9958} 9959 9960.mat-mdc-chip-action-label { 9961 text-align: left; 9962 z-index: 1; 9963} 9964[dir=rtl] .mat-mdc-chip-action-label { 9965 text-align: right; 9966} 9967.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label { 9968 position: relative; 9969} 9970.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator { 9971 position: absolute; 9972 top: 0; 9973 right: 0; 9974 bottom: 0; 9975 left: 0; 9976 pointer-events: none; 9977} 9978.mat-mdc-chip-action-label .mat-focus-indicator::before { 9979 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1); 9980} 9981 9982.mat-mdc-chip-edit::before, .mat-mdc-chip-remove::before { 9983 margin: calc(var(--mat-focus-indicator-border-width, 3px) * -1); 9984 left: 8px; 9985 right: 8px; 9986} 9987.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
9988 content: ""; 9989 display: block; 9990 opacity: 0; 9991 position: absolute; 9992 top: -3px; 9993 bottom: -3px; 9994 left: 5px; 9995 right: 5px; 9996 border-radius: 50%; 9997 box-sizing: border-box; 9998 padding: 12px; 9999 margin: -12px; 10000 background-clip: content-box; 10001} 10002.mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon { 10003 width: 18px; 10004 height: 18px; 10005 font-size: 18px; 10006 box-sizing: content-box; 10007} 10008 10009.mat-chip-edit-input { 10010 cursor: text; 10011 display: inline-block; 10012 color: inherit; 10013 outline: 0; 10014} 10015 10016@media (forced-colors: active) { 10017 .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple) { 10018 outline-width: 3px; 10019 } 10020} 10021 10022.mat-mdc-chip-action:focus-visible .mat-focus-indicator::before { 10023 content: ""; 10024} 10025 10026.mdc-evolution-chip__icon, .mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon { 10027 min-height: fit-content; 10028} 10029 10030img.mdc-evolution-chip__icon { 10031 min-height: 0; 10032} 10033`],encapsulation:2})}return n})();var kf=(()=>{class n extends mn{_defaultOptions=g$4(Da,{optional:true});chipListSelectable=true;_chipListMultiple=false;_chipListHideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??false;get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=e,this._changeDetectorRef.markForCheck();}_selectable=true;get selected(){return this._selected}set selected(e){this._setSelectedState(e,false,true);}_selected=false;get ariaSelected(){return this.selectable?this.selected.toString():null}basicChipAttrName="mat-basic-chip-option";selectionChange=new kt$3;ngOnInit(){super.ngOnInit(),this.role="presentation";}select(){this._setSelectedState(true,false,true);}deselect(){this._setSelectedState(false,false,true);}selectViaInteraction(){this._setSelectedState(true,true,true);}toggleSelected(e=false){return this._setSelectedState(!this.selected,e,true),this.selected}_handlePrimaryActionInteraction(){this.disabled||(this.focus(),this.selectable&&this.toggleSelected(true));}_hasLeadingGraphic(){return this.leadingIcon?true:!this._chipListHideSingleSelectionIndicator||this._chipListMultiple}_setSelectedState(e,t,i){e!==this.selected&&(this._selected=e,i&&this.selectionChange.emit({source:this,isUserInput:t,selected:this.selected}),this._changeDetectorRef.markForCheck());}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(t,i){t&2&&(vy("id",i.id),ly("tabindex",null)("aria-label",null)("aria-description",null)("role",i.role),xy("mdc-evolution-chip",!i._isBasicChip)("mdc-evolution-chip--filter",!i._isBasicChip)("mdc-evolution-chip--selectable",!i._isBasicChip)("mat-mdc-chip-selected",i.selected)("mat-mdc-chip-multiple",i._chipListMultiple)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-chip-with-avatar",i.leadingIcon)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--selected",i.selected)("mdc-evolution-chip--selecting",!i._animationsDisabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-primary-graphic",i._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon()));},inputs:{selectable:[2,"selectable","selectable",tM$1],selected:[2,"selected","selected",tM$1]},outputs:{selectionChange:"selectionChange"},features:[tS([{provide:mn,useExisting:n},{provide:Ma$1,useExisting:n}]),Xm$2],ngContentSelectors:zd,decls:8,vars:6,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"_allowFocusWhenDisabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"]],template:function(t,i){t&1&&(p_$1(Nd$1),fy(0,"span",0),Js$2(1,"span",1)(2,"button",2),ZT(3,mf,5,0,"span",3),Js$2(4,"span",4),h_$1(5),fy(6,"span",5),gd$2()()(),ZT(7,hf,2,0,"span",6)
10033),t&2&&(SC(2),dy("_allowFocusWhenDisabled",true),ly("aria-description",i.ariaDescription)("aria-label",i.ariaLabel)("aria-selected",i.ariaSelected),SC(),YT(i._hasLeadingGraphic()?3:-1),SC(4),YT(i._hasTrailingIcon()?7:-1));},dependencies:[Sa],styles:[Hd$1],encapsulation:2})}return n})(),mo$1=(()=>{class n{_elementRef=g$4(Vt$3);_document=g$4(Y$3);initialize(e){this.getNativeElement().focus(),this.setValue(e);}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput();}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(false);let t=window.getSelection();t.removeAllRanges(),t.addRange(e);}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return n})(),Cf=(()=>{class n extends mn{basicChipAttrName="mat-basic-chip-row";_renderer=g$4(qo$1);_cleanupMousedown;_editStartPending=false;editable=false;edited=new kt$3;defaultEditInput;contentEditInput;_alreadyFocused=false;_isEditing=false;constructor(){super(),this.role="row",this._onBlur.pipe(Hf$1(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=false;});}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus();}));}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.();}_hasLeadingActionIcon(){return !this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return !this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus();}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e);}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e));}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e);}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing();}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let t=this.value;this._isEditing=this._editStartPending=true,Jg(()=>{this._getEditInput().initialize(t),setTimeout(()=>this._ngZone.run(()=>this._editStartPending=false));},{injector:this._injector});}_onEditFinish(){this._isEditing=this._editStartPending=false,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus();}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(t,i,a){if(t&1&&Cy(a,mo$1,5),t&2){let o;m_$1(o=y_$1())&&(i.contentEditInput=o.first);}},viewQuery:function(t,i){if(t&1&&by(mo$1,5),t&2){let a;m_$1(a=y_$1())&&(i.defaultEditInput=a.first);}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(t,i){t&1&&Ey("focus",function(){return i._handleFocus()})("click",function(o){return i._hasInteractiveActions()?i._handleClick(o):null})("dblclick",function(o){return i._handleDoubleclick(o)}),t&2&&(vy("id",i.id),ly("tabindex",i.disabled?null:-1)("aria-label",null)("aria-description",null)("role",i.role),xy("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-chip-editing",i._isEditing)("mat-mdc-chip-editable",i.editable)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-leading-action",i._hasLeadingActionIcon())("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon()));},inputs:{editable:"editable"},outputs:{edited:"edited"},features:[tS([{provide:mn,useExisting:n},{provide:Ma$1,useExisting:n}]),Xm$2],ngContentSelectors:uf,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(t,i){t&1&&(p_$1(pf),ZT(0,_f,1,0,"span",0),ZT(1,ff,2,0,"span",1),Js$2(2,"span",2),ZT(3,gf,2,0,"span",3),Js$2(4,"span",4),ZT(5,yf,2,1)(6,xf,1,0
10033),fy(7,"span",5),gd$2()(),ZT(8,wf,2,0,"span",6)),t&2&&(YT(i._isEditing?-1:0),SC(),YT(i._hasLeadingActionIcon()?1:-1),SC(),dy("disabled",i.disabled),ly("aria-description",i.ariaDescription)("aria-label",i.ariaLabel),SC(),YT(i.leadingIcon?3:-1),SC(2),YT(i._isEditing?5:6),SC(3),YT(i._hasTrailingIcon()?8:-1));},dependencies:[Sa,mo$1],styles:[Hd$1],encapsulation:2})}return n})(),Ud$1=(()=>{class n{_elementRef=g$4(Vt$3);_changeDetectorRef=g$4(Od$2);_dir=g$4(qe$4,{optional:true});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new ye$5;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState();}_disabled=false;get empty(){return !this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e;}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new Vs$2;ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip();}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete();}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck();});}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e);}_isValidIndex(e){return e>=0&&e<this._chips.length}_allowFocusEscape(){let e=this._elementRef.nativeElement.tabIndex;e!==-1&&(this._elementRef.nativeElement.tabIndex=-1,setTimeout(()=>this._elementRef.nativeElement.tabIndex=e));}_getChipStream(e){return this._chips.changes.pipe(Jf(null),Bi$1(()=>WD(...this._chips.map(e))))}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-mdc-chip"))return true;t=t.parentElement;}return false}_setUpFocusManagement(){this._chips.changes.pipe(Jf(this._chips)).subscribe(e=>{let t=[];e.forEach(i=>i._getActions().forEach(a=>t.push(a))),this._chipActions.reset(t),this._chipActions.notifyOnChanges();}),this._keyManager=new ie$3(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Hf$1(this._destroyed)).subscribe(({chip:e})=>{let t=e._getSourceAction(document.activeElement);t&&this._keyManager.updateActiveItem(t);}),this._dir?.change.pipe(Hf$1(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e));}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Jf(null),Hf$1(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus();});}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Hf$1(this._destroyed)).subscribe(e=>{let i=this._chips.toArray().indexOf(e.chip),a=e.chip._hasFocus(),o=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),l=a||o;this._isValidIndex(i)&&l&&(this._lastDestroyedFocusedChipIndex=i);});}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),t=this._chips.toArray()[e];t.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():t.focus();}else this.focus();this._lastDestroyedFocusedChipIndex=null;}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-chip-set"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,mn,5),t&2){let o;m_$1(o=y_$1())&&(i._chips=o);}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(t,i){t&1&&Ey("keydown",function(o){return i._handleKeydown(o)}),t&2&&ly("role",i.role);},inputs:{disabled:[2,"disabled","disabled",tM$1],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:nM(e)]},ngContentSelectors:_o$1,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(t,i){t&1&&(p_$1(),md$2(0,"div",0),h_$1(1),yd$2());},styles:[`.mat-mdc-chip-set { 10034 display: flex; 10035} 10036.mat-mdc-chip-set:focus { 10037 outline: none; 10038} 10039.mat-mdc-chip-set .mdc-evolution-chip-set__chips { 10040 min-width: 100%; 10041 margin-left: -8px; 10042 margin-right: 0; 10043} 10044.mat-mdc-chip-set .mdc-evolution-chip { 10045 margin: 4px 0 4px 8px; 10046} 10047[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips { 10048 margin-left: 0; 10049 margin-right: -8px; 10050} 10051[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip { 10052 margin-left: 0; 10053 margin-right: 8px; 10054} 10055 10056.mdc-evolution-chip-set__chips { 10057 display: flex; 10058 flex-flow: wrap; 10059 min-width: 0; 10060} 10061 10062.mat-mdc-chip-set-stacked { 10063 flex-direction: column; 10064 align-items: flex-start; 10065} 10066.mat-mdc-chip-set-stacked .mat-mdc-chip { 10067 width: 100%; 10068} 10069.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic { 10070 flex-grow: 0; 10071} 10072.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary { 10073 flex-basis: 100%; 10074 justify-content: start; 10075} 10076 10077input.mat-mdc-chip-input { 10078 flex: 1 0 150px; 10079 margin-left: 8px; 10080} 10081[dir=rtl] input.mat-mdc-chip-input { 10082 margin-left: 0; 10083 margin-right: 8px; 10084} 10085.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder { 10086 opacity: 1; 10087} 10088.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder { 10089 opacity: 1; 10090} 10091.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder { 10092 opacity: 1; 10093} 10094.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder { 10095 opacity: 1; 10096} 10097.mat-mdc-chip-set + input.mat-mdc-chip-input { 10098 margin-left: 0; 10099 margin-right: 0; 10100} 10101`],encapsulation:2})}return n})(),po$1=class po{source;value;constructor(r,e){this.source=r,this.value=e;}},Df={provide:Fe$1,useExisting:ns(()=>Mf),multi:true},Mf=(()=>{class n extends Ud$1{_onTouched=()=>{};_onChange=()=>{};_defaultRole="listbox";_defaultOptions=g$4(Da,{optional:true});get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._syncListboxProperties();}_multiple=false;get selected(){let e=this._chips.toArray().filter(t=>t.selected);return this.multiple?e:e[0]}ariaOrientation="horizontal";get selectable(){return this._selectable}set selectable(e){this._selectable=e,this._syncListboxProperties();}_selectable=true;compareWith=(e,t)=>e===t;required=false;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncListboxProperties();}
10101_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??false;get chipSelectionChanges(){return this._getChipStream(e=>e.selectionChange)}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}get value(){return this._value}set value(e){this._chips&&this._chips.length&&this._setSelectionByValue(e,false),this._value=e;}_value;change=new kt$3;_chips=void 0;ngAfterContentInit(){this._chips.changes.pipe(Jf(null),Hf$1(this._destroyed)).subscribe(()=>{this.value!==void 0&&Promise.resolve().then(()=>{this._setSelectionByValue(this.value,false);}),this._syncListboxProperties();}),this.chipBlurChanges.pipe(Hf$1(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(Hf$1(this._destroyed)).subscribe(e=>{this.multiple||this._chips.forEach(t=>{t!==e.source&&t._setSelectedState(false,false,false);}),e.isUserInput&&this._propagateChanges();});}focus(){if(this.disabled)return;let e=this._getFirstSelectedChip();e&&!e.disabled?e.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus();}writeValue(e){e!=null?this.value=e:this.value=void 0;}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e;}_setSelectionByValue(e,t=true){this._clearSelection(),Array.isArray(e)?e.forEach(i=>this._selectValue(i,t)):this._selectValue(e,t);}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched();});}_keydown(e){e.keyCode===9&&super._allowFocusEscape();}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck();}_propagateChanges(){let e=null;Array.isArray(this.selected)?e=this.selected.map(t=>t.value):e=this.selected?this.selected.value:void 0,this._value=e,this.change.emit(new po$1(this,e)),this._onChange(e),this._changeDetectorRef.markForCheck();}_clearSelection(e){this._chips.forEach(t=>{t!==e&&t.deselect();});}_selectValue(e,t){let i=this._chips.find(a=>a.value!=null&&this.compareWith(a.value,e));return i&&(t?i.selectViaInteraction():i.select()),i}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(e=>{e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable,e._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,e._changeDetectorRef.markForCheck();});});}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(e){return false}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-chip-listbox"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,kf,5),t&2){let o;m_$1(o=y_$1())&&(i._chips=o);}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:10,hostBindings:function(t,i){t&1&&Ey("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(o){return i._keydown(o)}),t&2&&(vy("tabIndex",i.disabled||i.empty?-1:i.tabIndex),ly("role",i.role)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-multiselectable",i.multiple)("aria-orientation",i.ariaOrientation),xy("mat-mdc-chip-list-disabled",i.disabled)("mat-mdc-chip-list-required",i.required));},inputs:{multiple:[2,"multiple","multiple",tM$1],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",tM$1],compareWith:"compareWith",required:[2,"required","required",tM$1],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",tM$1],value:"value"},outputs:{change:"change"},features:[tS([Df]),Xm$2],ngContentSelectors:_o$1,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(t,i){t&1&&(p_$1(),md$2(0,"div",0),h_$1(1),yd$2());},styles:[jd$1],encapsulation:2})}return n})(),uo$1=class uo{source;value;constructor(r,e){this.source=r,this.value=e;}},TI=(()=>{class n extends Ud$1{ngControl=g$4(Ye$2,{optional:true,self:true});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=g$4(re$4).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next();}get id(){return this._chipInput?this._chipInput.id:this._uid}get empty(){return (!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next();}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(ht$1.required)??false}set required(e){this._required=e,this.stateChanges.next();}_required;get shouldLabelFloat(){return !this.empty||this.focused}get value(){return this._value}set value(e){this._value=e;}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new kt$3;valueChange=new kt$3;_chips=void 0;stateChanges=new ye$5;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e;}constructor(){super();let e=g$4(jt$1,{optional:true}),t=g$4(Gt$1,{optional:true}),i=g$4(Ct$1);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Lt$1(i,this.ngControl,t,e,this.stateChanges);}ngAfterContentInit(){this.chipBlurChanges.pipe(Hf$1(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next();}),WD(this.chipFocusChanges,this._chips.changes).pipe(Hf$1(this._destroyed)).subscribe(()=>this.stateChanges.next());}ngDoCheck(){this.ngControl&&this.updateErrorState();}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete();}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby");}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus();}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus());}else {let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive();}this.stateChanges.next();}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby");}writeValue(e){this._value=e;}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e,this.stateChanges.next();}updateErrorState(){this._errorStateTracker.updateErrorState();}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched());});}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape();}_handleKeydown(e){let t=e.keyCode,i=this._keyManager.activeItem;if(t===9)this._chipInput?.focused&&Ye$4(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),i?this._keyManager.setActiveItem(i):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((t===38||t===40)&&i){let a=this._chipActions.filter(f=>f._isPrimary===i._isPrimary&&!this._skipPredicate(f)),o=a.indexOf(i),l=e.keyCode===38?-1:1;e.preventDefault(),o>-1&&this._isValidIndex(o+l)&&this._keyManager.setActiveItem(a[o+l]);}else super._handleKeydown(e);this.stateChanges.next();}_focusLastChip(){this._chips.length&&this._chips.last.focus();}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(t=>t.value):[];this._value=e,this.change.emit(new uo$1(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck();}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-chip-grid"]],contentQueries:function(t,i,a){if(t&1&&Cy(a,Cf,5),t&2){let o;m_$1(o=y_$1())&&(i._chips=o);}}
10101,hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(t,i){t&1&&Ey("focus",function(){return i.focus()})("blur",function(){return i._blur()}),t&2&&(ly("role",i.role)("tabindex",i.disabled||i._chips&&i._chips.length===0?-1:i.tabIndex)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState),xy("mat-mdc-chip-list-disabled",i.disabled)("mat-mdc-chip-list-invalid",i.errorState)("mat-mdc-chip-list-required",i.required));},inputs:{disabled:[2,"disabled","disabled",tM$1],placeholder:"placeholder",required:[2,"required","required",tM$1],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[tS([{provide:Vt,useExisting:n}]),Xm$2],ngContentSelectors:_o$1,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(t,i){t&1&&(p_$1(),md$2(0,"div",0),h_$1(1),yd$2());},styles:[jd$1],encapsulation:2})}return n})(),AI=(()=>{class n{_elementRef=g$4(Vt$3);focused=false;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this));}_chipGrid;addOnBlur=false;separatorKeyCodes;chipEnd=new kt$3;placeholder="";id=g$4(re$4).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e;}_disabled=false;readonly=false;disabledInteractive;get empty(){return !this.inputElement.value}inputElement;constructor(){let e=g$4(Da),t=g$4(kt$1,{optional:true});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??false,t&&this.inputElement.classList.add("mat-mdc-form-field-input-control");}ngOnChanges(){this._chipGrid.stateChanges.next();}ngOnDestroy(){this.chipEnd.complete();}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e);}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=false,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next();}_focus(){this.focused=true,this._chipGrid.stateChanges.next();}_emitChipEnd(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault());}_onInput(){this._chipGrid.stateChanges.next();}focus(){this.inputElement.focus();}clear(){this.inputElement.value="";}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby");}_isSeparatorKey(e){if(!this.separatorKeyCodes)return false;for(let t of this.separatorKeyCodes){let i,a;typeof t=="number"?(i=t,a=null):(i=t.keyCode,a=t.modifiers);let o=a?.length?Ye$4(e,...a):!Ye$4(e);if(i===e.keyCode&&o)return true}return false}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(t,i){t&1&&Ey("keydown",function(o){return i._keydown(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),t&2&&(vy("id",i.id),ly("disabled",i.disabled&&!i.disabledInteractive?"":null)("placeholder",i.placeholder||null)("aria-invalid",i._chipGrid&&i._chipGrid.ngControl?i._chipGrid.ngControl.invalid:null)("aria-required",i._chipGrid&&i._chipGrid.required||null)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null)("readonly",i._getReadonlyAttribute())("required",i._chipGrid&&i._chipGrid.required||null));},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",tM$1],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",tM$1],readonly:[2,"readonly","readonly",tM$1],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",tM$1]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[El$2]})}return n})();var RI=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({providers:[Ct$1,{provide:Da,useValue:{separatorKeyCodes:[13]}}],imports:[Dn$1,it$2]})}return n})();var Sf=["determinateSpinner"];function If(n,r){if(n&1&&(Xp$2(),Js$2(0,"svg",11),fy(1,"circle",12),gd$2()),n&2){let e=d_$1();
10101ly("viewBox",e._viewBox()),SC(),Ny("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ly("r",e._circleRadius());}}var Ef=new I$4("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:Wd$1})}),Wd$1=100,Tf=10,GI=(()=>{class n{_elementRef=g$4(Vt$3);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e;}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=g$4(Ef),t=bi$1(),i=this._elementRef.nativeElement;this._noopAnimations=t==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=i.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&t==="reduced-motion"&&i.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth));}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0));}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0;}_diameter=Wd$1;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0;}_strokeWidth;_circleRadius(){return (this.diameter-Tf)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return `0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,i){if(t&1&&by(Sf,5),t&2){let a;m_$1(a=y_$1())&&(i._determinateCircle=a.first);}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,i){t&2&&(ly("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",i.mode==="determinate"?i.value:null)("mode",i.mode),x_$1("mat-"+i.color),Ny("width",i.diameter,"px")("height",i.diameter,"px")("--mat-progress-spinner-size",i.diameter+"px")("--mat-progress-spinner-active-indicator-width",i.diameter+"px"),xy("_mat-animation-noopable",i._noopAnimations)("mdc-circular-progress--indeterminate",i.mode==="indeterminate"));},inputs:{color:"color",mode:"mode",value:[2,"value","value",nM],diameter:[2,"diameter","diameter",nM],strokeWidth:[2,"strokeWidth","strokeWidth",nM]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(t,i){if(t&1&&(ey$1(0,If,2,8,"ng-template",null,0,DS),Js$2(2,"div",2,1),Xp$2(),Js$2(4,"svg",3),fy(5,"circle",4),gd$2()(),Jp$2(),Js$2(6,"div",5)(7,"div",6)(8,"div",7),gy(9,8),gd$2(),Js$2(10,"div",9),gy(11,8),gd$2(),Js$2(12,"div",10),gy(13,8),gd$2()()()),t&2){let a=D_$1(1);SC(4),ly("viewBox",i._viewBox()),SC(),Ny("stroke-dasharray",i._strokeCircumference(),"px")("stroke-dashoffset",i._strokeDashOffset(),"px")("stroke-width",i._circleStrokeWidth(),"%"),ly("r",i._circleRadius()),SC(4),dy("ngTemplateOutlet",a),SC(2),dy("ngTemplateOutlet",a),SC(2),dy("ngTemplateOutlet",a);}},dependencies:[LM],styles:[`.mat-mdc-progress-spinner { 10102 --mat-progress-spinner-animation-multiplier: 1; 10103 display: block; 10104 overflow: hidden; 10105 line-height: 0; 10106 position: relative; 10107 direction: ltr; 10108 transition: opacity 250ms cubic-bezier(0.4, 0, 0.6, 1); 10109} 10110.mat-mdc-progress-spinner circle { 10111 stroke-width: var(--mat-progress-spinner-active-indicator-width, 4px); 10112} 10113.mat-mdc-progress-spinner._mat-animation-noopable, .mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle { 10114 transition: none !important; 10115} 10116.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic, 10117.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer, 10118.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container { 10119 animation: none !important; 10120} 10121.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle { 10122 stroke-dasharray: 0 !important; 10123} 10124@media (forced-colors: active) { 10125 .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic, 10126 .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle { 10127 stroke: currentColor; 10128 stroke: CanvasText; 10129 } 10130} 10131 10132.mat-progress-spinner-reduced-motion { 10133 --mat-progress-spinner-animation-multiplier: 1.25; 10134} 10135 10136.mdc-circular-progress__determinate-container, 10137.mdc-circular-progress__indeterminate-circle-graphic, 10138.mdc-circular-progress__indeterminate-container, 10139.mdc-circular-progress__spinner-layer { 10140 position: absolute; 10141 width: 100%; 10142 height: 100%; 10143} 10144 10145.mdc-circular-progress__determinate-container { 10146 transform: rotate(-90deg); 10147} 10148.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container { 10149 opacity: 0; 10150} 10151 10152.mdc-circular-progress__indeterminate-container { 10153 font-size: 0; 10154 letter-spacing: 0; 10155 white-space: nowrap; 10156 opacity: 0; 10157} 10158.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container { 10159 opacity: 1; 10160 animation: mdc-circular-progress-container-rotate calc(1568.2352941176ms * var(--mat-progress-spinner-animation-multiplier)) linear infinite; 10161} 10162 10163.mdc-circular-progress__determinate-circle-graphic, 10164.mdc-circular-progress__indeterminate-circle-graphic { 10165 fill: transparent; 10166} 10167 10168.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle, 10169.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic { 10170 stroke: var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary)); 10171} 10172@media (forced-colors: active) { 10173 .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle, 10174 .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic { 10175 stroke: CanvasText; 10176 } 10177} 10178 10179.mdc-circular-progress__determinate-circle { 10180 transition: stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1); 10181} 10182 10183.mdc-circular-progress__gap-patch { 10184 position: absolute; 10185 top: 0; 10186 left: 47.5%; 10187 box-sizing: border-box; 10188 width: 5%; 10189 height: 100%; 10190 overflow: hidden; 10191} 10192 10193.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic { 10194 left: -900%; 10195 width: 2000%; 10196 transform: rotate(180deg); 10197} 10198.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic { 10199 width: 200%; 10200} 10201.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic { 10202 left: -100%; 10203} 10204.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic { 10205 animation: mdc-circular-progress-left-spin calc(1333ms * var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both; 10206} 10207.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic { 10208 animation: mdc-circular-progress-right-spin calc(1333ms * var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both; 10209} 10210 10211.mdc-circular-progress__circle-clipper { 10212 display: inline-flex; 10213 position: relative; 10214 width: 50%; 10215 height: 100%; 10216 overflow: hidden; 10217} 10218 10219.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer { 10220 animation: mdc-circular-progress-spinner-layer-rotate calc(5332ms * var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both; 10221} 10222 10223@keyframes mdc-circular-progress-container-rotate { 10224 to { 10225 transform: rotate(360deg); 10226 } 10227} 10228@keyframes mdc-circular-progress-spinner-layer-rotate { 10229 12.5% { 10230 transform: rotate(135deg); 10231 } 10232 25% { 10233 transform: rotate(270deg); 10234 } 10235 37.5% { 10236 transform: rotate(405deg); 10237 } 10238 50% { 10239 transform: rotate(540deg); 10240 } 10241 62.5% { 10242 transform: rotate(675deg); 10243 } 10244 75% { 10245 transform: rotate(810deg); 10246 } 10247 87.5% { 10248 transform: rotate(945deg); 10249 } 10250 100% { 10251 transform: rotate(1080deg); 10252 } 10253} 10254@keyframes mdc-circular-progress-left-spin { 10255 from { 10256 transform: rotate(265deg); 10257 } 10258 50% { 10259 transform: rotate(130deg); 10260 } 10261 to { 10262 transform: rotate(265deg); 10263 } 10264} 10265@keyframes mdc-circular-progress-right-spin { 10266 from { 10267 transform: rotate(-265deg); 10268 } 10269 50% { 10270 transform: rotate(-130deg); 10271 } 10272 to { 10273 transform: rotate(-265deg); 10274 } 10275} 10276`],encapsulation:2})}return n})();var UI=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();function Af(n,r){n&1&&py(0,"div",2);}var Rf=new I$4("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var eE=(()=>{class n{_elementRef=g$4(Vt$3);_ngZone=g$4(q$3);_changeDetectorRef=g$4(Od$2);_renderer=g$4(qo$1);_cleanupTransitionEnd;constructor(){let e=bi$1(),t=g$4(Rf,{optional:true});this._isNoopAnimation=e==="di-disabled",e==="reduced-motion"&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion"),t&&(t.color&&(this.color=this._defaultColor=t.color),this.mode=t.mode||this.mode);}_isNoopAnimation;get color(){return this._color||this._defaultColor}set color(e){this._color=e;}_color;_defaultColor="primary";get value(){return this._value}set value(e){this._value=qd$1(e||0),this._changeDetectorRef.markForCheck();}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=qd$1(e||0),this._changeDetectorRef.markForCheck();}_bufferValue=0;animationEnd=new kt$3;get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck();}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler);});}
10276ngOnDestroy(){this._cleanupTransitionEnd?.();}_getPrimaryBarTransform(){return `scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return `${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}_transitionendHandler=e=>{this.animationEnd.observers.length===0||!e.target||!e.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}));};static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(t,i){t&2&&(ly("aria-valuenow",i._isIndeterminate()?null:i.value)("mode",i.mode),x_$1("mat-"+i.color),xy("_mat-animation-noopable",i._isNoopAnimation)("mdc-linear-progress--animation-ready",!i._isNoopAnimation)("mdc-linear-progress--indeterminate",i._isIndeterminate()));},inputs:{color:"color",value:[2,"value","value",nM],bufferValue:[2,"bufferValue","bufferValue",nM],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(t,i){t&1&&(md$2(0,"div",0),py(1,"div",1),ZT(2,Af,1,0,"div",2),yd$2(),md$2(3,"div",3),py(4,"span",4),yd$2(),md$2(5,"div",5),py(6,"span",4),yd$2()),t&2&&(SC(),Ny("flex-basis",i._getBufferBarFlexBasis()),SC(),YT(i.mode==="buffer"?2:-1),SC(),Ny("transform",i._getPrimaryBarTransform()));},styles:[`.mat-mdc-progress-bar { 10277 --mat-progress-bar-animation-multiplier: 1; 10278 display: block; 10279 text-align: start; 10280} 10281.mat-mdc-progress-bar[mode=query] { 10282 transform: scaleX(-1); 10283} 10284.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots, 10285.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar, 10286.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar, 10287.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner { 10288 animation: none; 10289} 10290.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar, 10291.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar { 10292 transition: transform 1ms; 10293} 10294 10295.mat-progress-bar-reduced-motion { 10296 --mat-progress-bar-animation-multiplier: 2; 10297} 10298 10299.mdc-linear-progress { 10300 position: relative; 10301 width: 100%; 10302 transform: translateZ(0); 10303 outline: 1px solid transparent; 10304 overflow-x: hidden; 10305 transition: opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1); 10306 height: max(var(--mat-progress-bar-track-height, 4px), var(--mat-progress-bar-active-indicator-height, 4px)); 10307} 10308@media (forced-colors: active) { 10309 .mdc-linear-progress { 10310 outline-color: CanvasText; 10311 } 10312} 10313 10314.mdc-linear-progress__bar {
10315 position: absolute; 10316 top: 0; 10317 bottom: 0; 10318 margin: auto 0; 10319 width: 100%; 10320 animation: none; 10321 transform-origin: top left; 10322 transition: transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1); 10323 height: var(--mat-progress-bar-active-indicator-height, 4px); 10324} 10325.mdc-linear-progress--indeterminate .mdc-linear-progress__bar { 10326 transition: none; 10327} 10328[dir=rtl] .mdc-linear-progress__bar { 10329 right: 0; 10330 transform-origin: center right; 10331} 10332 10333.mdc-linear-progress__bar-inner { 10334 display: inline-block; 10335 position: absolute; 10336 width: 100%; 10337 animation: none; 10338 border-top-style: solid; 10339 border-color: var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary)); 10340 border-top-width: var(--mat-progress-bar-active-indicator-height, 4px); 10341} 10342 10343.mdc-linear-progress__buffer { 10344 display: flex; 10345 position: absolute; 10346 top: 0; 10347 bottom: 0; 10348 margin: auto 0; 10349 width: 100%; 10350 overflow: hidden; 10351 height: var(--mat-progress-bar-track-height, 4px); 10352 border-radius: var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none)); 10353} 10354 10355.mdc-linear-progress__buffer-dots { 10356 background-image: radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0); 10357 background-repeat: repeat-x; 10358 background-size: calc(calc(var(--mat-progress-bar-track-height, 4px) / 2) * 5); 10359 background-position: left; 10360 flex: auto; 10361 transform: rotate(180deg); 10362 animation: mdc-linear-progress-buffering calc(250ms * var(--mat-progress-bar-animation-multiplier)) infinite linear; 10363} 10364@media (forced-colors: active) { 10365 .mdc-linear-progress__buffer-dots { 10366 background-color: ButtonBorder; 10367 } 10368} 10369[dir=rtl] .mdc-linear-progress__buffer-dots { 10370 animation: mdc-linear-progress-buffering-reverse calc(250ms * var(--mat-progress-bar-animation-multiplier)) infinite linear; 10371 transform: rotate(0); 10372} 10373 10374.mdc-linear-progress__buffer-bar { 10375 flex: 0 1 100%; 10376 transition: flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1); 10377 background-color: var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)); 10378} 10379 10380.mdc-linear-progress__primary-bar { 10381 transform: scaleX(0); 10382} 10383.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar { 10384 left: -145.166611%; 10385} 10386.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar { 10387 animation: mdc-linear-progress-primary-indeterminate-translate calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear; 10388} 10389.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar > .mdc-linear-progress__bar-inner { 10390 animation: mdc-linear-progress-primary-indeterminate-scale calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear; 10391} 10392[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar { 10393 animation-name: mdc-linear-progress-primary-indeterminate-translate-reverse; 10394} 10395[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar { 10396 right: -145.166611%; 10397 left: auto; 10398} 10399 10400.mdc-linear-progress__secondary-bar { 10401 display: none; 10402} 10403.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar { 10404 left: -54.888891%; 10405 display: block; 10406} 10407.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar { 10408 animation: mdc-linear-progress-secondary-indeterminate-translate calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear; 10409} 10410.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar > .mdc-linear-progress__bar-inner { 10411 animation: mdc-linear-progress-secondary-indeterminate-scale calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear; 10412} 10413[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar { 10414 animation-name: mdc-linear-progress-secondary-indeterminate-translate-reverse; 10415} 10416[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar { 10417 right: -54.888891%; 10418 left: auto; 10419} 10420 10421@keyframes mdc-linear-progress-buffering { 10422 from { 10423 transform: rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5)); 10424 } 10425} 10426@keyframes mdc-linear-progress-primary-indeterminate-translate { 10427 0% { 10428 transform: translateX(0); 10429 } 10430 20% { 10431 animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819); 10432 transform: translateX(0); 10433 } 10434 59.15% { 10435 animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352); 10436 transform: translateX(83.67142%); 10437 } 10438 100% { 10439 transform: translateX(200.611057%); 10440 } 10441} 10442@keyframes mdc-linear-progress-primary-indeterminate-scale { 10443 0% { 10444 transform: scaleX(0.08); 10445 } 10446 36.65% { 10447 animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1); 10448 transform: scaleX(0.08); 10449 } 10450 69.15% { 10451 animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1); 10452 transform: scaleX(0.661479); 10453 } 10454 100% { 10455 transform: scaleX(0.08); 10456 } 10457} 10458@keyframes mdc-linear-progress-secondary-indeterminate-translate { 10459 0% { 10460 animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685); 10461 transform: translateX(0); 10462 } 10463 25% { 10464 animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712); 10465 transform: translateX(37.651913%); 10466 } 10467 48.35% { 10468 animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026); 10469 transform: translateX(84.386165%); 10470 } 10471 100% { 10472 transform: translateX(160.277782%); 10473 } 10474} 10475@keyframes mdc-linear-progress-secondary-indeterminate-scale { 10476 0% { 10477 animation-timing-function: cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971); 10478 transform: scaleX(0.08); 10479 } 10480 19.15% { 10481 animation-timing-function: cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315); 10482 transform: scaleX(0.457104); 10483 } 10484 44.15% { 10485 animation-timing-function: cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179); 10486 transform: scaleX(0.72796); 10487 } 10488 100% { 10489 transform: scaleX(0.08); 10490 } 10491} 10492@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse { 10493 0% { 10494 transform: translateX(0); 10495 } 10496 20% { 10497 animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819); 10498 transform: translateX(0); 10499 } 10500 59.15% { 10501 animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352); 10502 transform: translateX(-83.67142%); 10503 } 10504 100% { 10505 transform: translateX(-200.611057%); 10506 } 10507} 10508@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse { 10509 0% { 10510 animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685); 10511 transform: translateX(0); 10512 } 10513 25% { 10514 animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712); 10515 transform: translateX(-37.651913%); 10516 } 10517 48.35% { 10518 animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026); 10519 transform: translateX(-84.386165%); 10520 } 10521 100% { 10522 transform: translateX(-160.277782%); 10523 } 10524} 10525@keyframes mdc-linear-progress-buffering-reverse { 10526 from { 10527 transform: translateX(-10px); 10528 } 10529} 10530`],encapsulation:2})}return n})();function qd$1(n,r=0,e=100){return Math.max(r,Math.min(e,n))}var tE=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();var Ff=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,Of=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function fo$1(n,r){let e=Array(n);for(let t=0;t<n;t++)e[t]=r(t);return e}var Pf=(()=>{class n extends Ue$2{_matDateLocale=g$4(Er$1,{optional:true});constructor(){super();let e=g$4(Er$1,{optional:true});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale);}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return fo$1(12,i=>this._format(t,new Date(2017,i,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fo$1(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){let t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return fo$1(7,i=>this._format(t,new Date(2017,0,i+1)))}getYearName(e){let t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),t=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return t===7?0:t}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,i){let a=this._createDateWithOverflow(e,t,i);return a.getMonth()!=t,a}today(){return new Date}parse(e,t){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let i=new Intl.DateTimeFormat(this.locale,E$7(D$6({},t),{timeZone:"utc"}));return this._format(i,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,t*12)}addCalendarMonths(e,t){let i=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(i)!=((this.getMonth(e)+t)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return [e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(Ff.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return !isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,t,i,a){let o=this.clone(e);return o.setHours(t,i,a,0),o}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,t){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let i=e.trim();if(i.length===0)return null;let a=this._parseTimeString(i);if(a===null){let o=i.replace(/[^0-9:(AM|PM)]/gi,"").trim();o.length>0&&(a=this._parseTimeString(o));}return a||this.invalid()}addSeconds(e,t){return new Date(e.getTime()+t*1e3)}_createDateWithOverflow(e,t,i){let a=new Date;return a.setFullYear(e,t,i),a.setHours(0,0,0,0),a}_2digit(e){return ("00"+e).slice(-2)}_format(e,t){let i=new Date;return i.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),i.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(i)}_parseTimeString(e){let t=e.toUpperCase().match(Of);
10530if(t){let i=parseInt(t[1]),a=parseInt(t[2]),o=t[3]==null?void 0:parseInt(t[3]),l=t[4];if(i===12?i=l==="AM"?0:i:l==="PM"&&(i+=12),go$1(i,0,23)&&go$1(a,0,59)&&(o==null||go$1(o,0,59)))return this.setTime(this.today(),i,a,o||0)}return null}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac,autoProvided:false})}return n})();function go$1(n,r,e){return !isNaN(n)&&n>=r&&n<=e}var Vf={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var sE=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({providers:[Lf()]})}return n})();function Lf(n=Vf){return [{provide:Ue$2,useClass:Pf},{provide:ti,useValue:n}]}function Bf(n,r){}var Qd$1="_mat-bottom-sheet-enter",Yd$1="_mat-bottom-sheet-exit",Nf=(()=>{class n extends tn$1{_breakpointSubscription;_animationsDisabled=ct$1();_animationState="void";_animationStateChanged=new kt$3;_destroyed=false;constructor(){super();let e=g$4(Zt$3);this._breakpointSubscription=e.observe([qi$2.Medium,qi$2.Large,qi$2.XLarge]).subscribe(()=>{let t=this._elementRef.nativeElement.classList;t.toggle("mat-bottom-sheet-container-medium",e.isMatched(qi$2.Medium)),t.toggle("mat-bottom-sheet-container-large",e.isMatched(qi$2.Large)),t.toggle("mat-bottom-sheet-container-xlarge",e.isMatched(qi$2.XLarge));});}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._animationsDisabled&&this._simulateAnimation(Qd$1));}exit(){this._destroyed||(this._elementRef.nativeElement.setAttribute("mat-exit",""),this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._animationsDisabled&&this._simulateAnimation(Yd$1));}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=true;}_simulateAnimation(e){this._ngZone.run(()=>{this._handleAnimationEvent(true,e),setTimeout(()=>this._handleAnimationEvent(false,e));});}_trapFocus(){super._trapFocus({preventScroll:true});}_handleAnimationEvent(e,t){let i=t===Qd$1;(i||t===Yd$1)&&this._animationStateChanged.emit({toState:i?"visible":"hidden",phase:e?"start":"done"});}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:9,hostBindings:function(t,i){t&1&&Ey("animationstart",function(o){return i._handleAnimationEvent(true,o.animationName)})("animationend",function(o){return i._handleAnimationEvent(false,o.animationName)})("animationcancel",function(o){return i._handleAnimationEvent(false,o.animationName)}),t&2&&(ly("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-label",i._config.ariaLabel),xy("mat-bottom-sheet-container-animations-enabled",!i._animationsDisabled)("mat-bottom-sheet-container-enter",i._animationState==="visible")("mat-bottom-sheet-container-exit",i._animationState==="hidden"));},features:[Xm$2],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){t&1&&ey$1(0,Bf,0,0,"ng-template",0);},dependencies:[Yt$2],styles:[`@keyframes _mat-bottom-sheet-enter { 10531 from { 10532 transform: translateY(100%); 10533 } 10534 to { 10535 transform: none; 10536 } 10537} 10538@keyframes _mat-bottom-sheet-exit { 10539 from { 10540 transform: none; 10541 } 10542 to { 10543 transform: translateY(100%); 10544 } 10545} 10546.mat-bottom-sheet-container { 10547 box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12); 10548 padding: 8px 16px; 10549 min-width: 100vw; 10550 box-sizing: border-box; 10551 display: block; 10552 outline: 0; 10553 max-height: 80vh; 10554 overflow: auto; 10555 position: relative; 10556 background: var(--mat-bottom-sheet-container-background-color, var(--mat-sys-surface-container-low)); 10557 color: var(--mat-bottom-sheet-container-text-color, var(--mat-sys-on-surface)); 10558 font-family: var(--mat-bottom-sheet-container-text-font, var(--mat-sys-body-large-font)); 10559 font-size: var(--mat-bottom-sheet-container-text-size, var(--mat-sys-body-large-size)); 10560 line-height: var(--mat-bottom-sheet-container-text-line-height, var(--mat-sys-body-large-line-height)); 10561 font-weight: var(--mat-bottom-sheet-container-text-weight, var(--mat-sys-body-large-weight)); 10562 letter-spacing: var(--mat-bottom-sheet-container-text-tracking, var(--mat-sys-body-large-tracking)); 10563} 10564@media (forced-colors: active) { 10565 .mat-bottom-sheet-container { 10566 outline: 1px solid; 10567 } 10568} 10569 10570.mat-bottom-sheet-container-animations-enabled { 10571 transform: translateY(100%); 10572} 10573.mat-bottom-sheet-container-animations-enabled.mat-bottom-sheet-container-enter { 10574 animation: _mat-bottom-sheet-enter 195ms cubic-bezier(0, 0, 0.2, 1) forwards; 10575} 10576.mat-bottom-sheet-container-animations-enabled.mat-bottom-sheet-container-exit { 10577 animation: _mat-bottom-sheet-exit 375ms cubic-bezier(0.4, 0, 1, 1) backwards; 10578} 10579 10580.mat-bottom-sheet-container-xlarge, .mat-bottom-sheet-container-large, .mat-bottom-sheet-container-medium { 10581 border-top-left-radius: var(--mat-bottom-sheet-container-shape, 28px); 10582 border-top-right-radius: var(--mat-bottom-sheet-container-shape, 28px); 10583} 10584 10585.mat-bottom-sheet-container-medium { 10586 min-width: 384px; 10587 max-width: calc(100vw - 128px); 10588} 10589 10590.mat-bottom-sheet-container-large { 10591 min-width: 512px; 10592 max-width: calc(100vw - 256px); 10593} 10594 10595.mat-bottom-sheet-container-xlarge { 10596 min-width: 576px; 10597 max-width: calc(100vw - 384px); 10598} 10599`],encapsulation:2,changeDetection:1})}return n})(),zf=new I$4("MatBottomSheetData"),bo$1=class bo{viewContainerRef;injector;panelClass;direction;data=null;hasBackdrop=true;backdropClass;disableClose=false;ariaLabel=null;ariaModal=false;closeOnNavigation=true;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;height="";minHeight;maxHeight;bindings},Ia=class{_ref;get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}containerInstance;disableClose;_afterOpened=new ye$5;_result;_closeFallbackTimeout;constructor(r,e,t){this._ref=r,this.containerInstance=t,this.disableClose=e.disableClose,t._animationStateChanged.pipe(Yt$5(i=>i.phase==="done"&&i.toState==="visible"),bn$3(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Yt$5(i=>i.phase==="done"&&i.toState==="hidden"),bn$3(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result);}),r.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result);}),WD(this.backdropClick(),this.keydownEvents().pipe(Yt$5(i=>i.keyCode===27))).subscribe(i=>{!this.disableClose&&(i.type!=="keydown"||!Ye$4(i))&&(i.preventDefault(),this.dismiss());});}dismiss(r){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(Yt$5(e=>e.phase==="start"),bn$3(1)).subscribe(()=>{this._closeFallbackTimeout=setTimeout(()=>this._ref.close(this._result),500),this._ref.overlayRef.detachBackdrop();}),this._result=r,this.containerInstance.exit(),this.containerInstance=null);}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}},Hf=new I$4("mat-bottom-sheet-default-options"),jf=(()=>{class n{_injector=g$4(Ee$4);_parentBottomSheet=g$4(n,{optional:true,skipSelf:true});_animationsDisabled=ct$1();_defaultOptions=g$4(Hf,{optional:true});_bottomSheetRefAtThisLevel=null;_dialog=g$4(nn);get _openedBottomSheetRef(){let e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e;}open(e,t){let i=D$6(D$6({},this._defaultOptions||new bo$1),t),a;return this._dialog.open(e,E$7(D$6({},i),{disableClose:true,closeOnOverlayDetachments:false,maxWidth:"100%",container:Nf,scrollStrategy:i.scrollStrategy||Te$4(this._injector),positionStrategy:St$2(this._injector).centerHorizontally().bottom("0"),disableAnimations:this._animationsDisabled,templateContext:()=>({bottomSheetRef:a}),providers:(o,l,f)=>(a=new Ia(o,i,f),[{provide:Ia,useValue:a},{provide:zf,useValue:i.data}])})),a.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===a&&(this._openedBottomSheetRef=null);}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>a.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):a.containerInstance.enter(),this._openedBottomSheetRef=a,a}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e);}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss();}static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),ME=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({providers:[jf],imports:[ia$1,_t$2,it$2]})}return n})();var Kd=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[di$1,Jt$3,it$2,Ht$3]})}return n})();function Gf(n,r){if(n&1&&(Js$2(0,"mat-option",17),H_$1(1),gd$2()),n&2){let e=r.$implicit;dy("value",e),SC(),Ed$2(" ",e," ");}}function Uf(n,r){if(n&1){let e=i_$1();Js$2(0,"mat-form-field",14)(1,"mat-select",16,0),Ey("selectionChange",function(i){Vp$2(e);let a=d_$1(2);return Hp$2(a._changePageSize(i.value))}),XT(3,Gf,2,2,"mat-option",17,KT),gd$2(),Js$2(5,"div",18),Ey("click",function(){Vp$2(e);let i=D_$1(2);return Hp$2(i.open())}),gd$2()();}if(n&2){let e=d_$1(2);dy("appearance",e._formFieldAppearance)("color",e.color),SC(),dy("value",e.pageSize)("disabled",e.disabled),uy("aria-labelledby",e._pageSizeLabelId),dy("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),SC(2),JT(e._displayedPageSizeOptions);}}function Wf(n,r){if(n&1&&(Js$2(0,"div",15),H_$1(1),gd$2()),n&2){let e=d_$1(2);SC(),jy(e.pageSize);}}function qf(n,r){if(n&1&&(Js$2(0,"div",3)(1,"div",13),H_$1(2),gd$2(),ZT(3,Uf,6,7,"mat-form-field",14),ZT(4,Wf,2,1,"div",15),gd$2()),n&2){let e=d_$1();
10599SC(),ly("id",e._pageSizeLabelId),SC(),Ed$2(" ",e._intl.itemsPerPageLabel," "),SC(),YT(e._displayedPageSizeOptions.length>1?3:-1),SC(),YT(e._displayedPageSizeOptions.length<=1?4:-1);}}function Qf(n,r){if(n&1){let e=i_$1();Js$2(0,"button",19),Ey("click",function(){Vp$2(e);let i=d_$1();return Hp$2(i._buttonClicked(0,i._previousButtonsDisabled()))}),Xp$2(),Js$2(1,"svg",8),fy(2,"path",20),gd$2()();}if(n&2){let e=d_$1();dy("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),ly("aria-label",e._intl.firstPageLabel);}}function Yf(n,r){if(n&1){let e=i_$1();Js$2(0,"button",21),Ey("click",function(){Vp$2(e);let i=d_$1();return Hp$2(i._buttonClicked(i.getNumberOfPages()-1,i._nextButtonsDisabled()))}),Xp$2(),Js$2(1,"svg",8),fy(2,"path",22),gd$2()();}if(n&2){let e=d_$1();dy("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),ly("aria-label",e._intl.lastPageLabel);}}var Kf=(()=>{class n{changes=new ye$5;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,t,i)=>{if(i==0||t==0)return `0 of ${i}`;i=Math.max(i,0);let a=e*t,o=a<i?Math.min(a+t,i):a+t;return `${a+1} \u2013 ${o} of ${i}`};static \u0275fac=function(t){return new(t||n)};static \u0275prov=we$6({token:n,factory:n.\u0275fac})}return n})(),$f=50;var Xf=new I$4("MAT_PAGINATOR_DEFAULT_OPTIONS"),Zf=(()=>{class n{_intl=g$4(Kf);_changeDetectorRef=g$4(Od$2);_formFieldAppearance;_pageSizeLabelId=g$4(re$4).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=false;_initializedStream=new eo$2(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck();}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck();}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions();}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>nM(t,0)),this._updateDisplayedPageSizeOptions();}_pageSizeOptions=[];hidePageSize=false;showFirstLastButtons=false;selectConfig={};disabled=false;page=new kt$3;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,t=g$4(Xf,{optional:true});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),t){let{pageSize:i,pageSizeOptions:a,hidePageSize:o,showFirstLastButtons:l}=t;i!=null&&(this._pageSize=i),a!=null&&(this._pageSizeOptions=a),o!=null&&(this.hidePageSize=o),l!=null&&(this.show
10599FirstLastButtons=l);}this._formFieldAppearance=t?.formFieldAppearance||"outline";}ngOnInit(){this._isInitialized=true,this._updateDisplayedPageSizeOptions(),this._initializedStream.next();}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe();}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1);}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1);}firstPage(){this.hasPreviousPage()&&this._navigate(0);}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1);}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndex<e&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){let t=this.pageIndex*this.pageSize,i=this.pageIndex;this.pageIndex=Math.floor(t/e)||0,this.pageSize=e,this._emitPageEvent(i);}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:$f),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,t)=>e-t),this._changeDetectorRef.markForCheck());}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length});}_navigate(e){let t=this.pageIndex;e!==t&&(this.pageIndex=e,this._emitPageEvent(t));}_buttonClicked(e,t){t||this._navigate(e);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",nM],length:[2,"length","length",nM],pageSize:[2,"pageSize","pageSize",nM],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",tM$1],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",tM$1],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",tM$1]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,i){t&1&&(Js$2(0,"div",1)(1,"div",2),ZT(2,qf,5,4,"div",3),Js$2(3,"div",4)(4,"div",5),H_$1(5),gd$2(),ZT(6,Qf,3,5,"button",6),Js$2(7,"button",7),Ey("click",function(){return i._buttonClicked(i.pageIndex-1,i._previousButtonsDisabled())}),Xp$2(),Js$2(8,"svg",8),fy(9,"path",9),gd$2()(),Jp$2(),Js$2(10,"button",10),Ey("click",function(){return i._buttonClicked(i.pageIndex+1,i._nextButtonsDisabled())}),Xp$2(),Js$2(11,"svg",8),fy(12,"path",11),gd$2()(),ZT(13,Yf,3,5,"button",12),gd$2()()()),t&2&&(SC(2),YT(i.hidePageSize?-1:2),SC(3),Ed$2(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),SC(),YT(i.showFirstLastButtons?6:-1),SC(),dy("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("disabled",i._previousButtonsDisabled())("tabindex",i._previousButtonsDisabled()?-1:null),ly("aria-label",i._intl.previousPageLabel),SC(3),dy("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("disabled",i._nextButtonsDisabled())("tabindex",i._nextButtonsDisabled()?-1:null),ly("aria-label",i._intl.nextPageLabel),SC(3),YT(i.showFirstLastButtons?13:-1));},dependencies:[da$1,id$1,ei,Fi$2,on],styles:[`.mat-mdc-paginator { 10600 display: block; 10601 -moz-osx-font-smoothing: grayscale; 10602 -webkit-font-smoothing: antialiased; 10603 color: var(--mat-paginator-container-text-color, var(--mat-sys-on-surface)); 10604 background-color: var(--mat-paginator-container-background-color, var(--mat-sys-surface)); 10605 font-family: var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font)); 10606 line-height: var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height)); 10607 font-size: var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size)); 10608 font-weight: var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight)); 10609 letter-spacing: var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking)); 10610 --mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px); 10611 --mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px); 10612} 10613.mat-mdc-paginator .mat-mdc-select-value { 10614 font-size: var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size)); 10615} 10616.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper { 10617 display: none; 10618} 10619.mat-mdc-paginator .mat-mdc-select { 10620 line-height: 1.5; 10621} 10622 10623.mat-mdc-paginator-outer-container { 10624 display: flex; 10625} 10626 10627.mat-mdc-paginator-container { 10628 display: flex; 10629 align-items: center; 10630 justify-content: flex-end; 10631 padding: 0 8px; 10632 flex-wrap: wrap; 10633 width: 100%; 10634 min-height: var(--mat-paginator-container-size, 56px); 10635} 10636 10637.mat-mdc-paginator-page-size { 10638 display: flex; 10639 align-items: baseline; 10640 margin-right: 8px; 10641} 10642[dir=rtl] .mat-mdc-paginator-page-size { 10643 margin-right: 0; 10644 margin-left: 8px; 10645} 10646 10647.mat-mdc-paginator-page-size-label { 10648 margin: 0 4px; 10649} 10650 10651.mat-mdc-paginator-page-size-select { 10652 margin: 0 4px; 10653 width: var(--mat-paginator-page-size-select-width, 84px); 10654} 10655 10656.mat-mdc-paginator-range-label { 10657 margin: 0 32px 0 24px; 10658} 10659 10660.mat-mdc-paginator-range-actions { 10661 display: flex; 10662 align-items: center; 10663} 10664 10665.mat-mdc-paginator-icon { 10666 display: inline-block; 10667 width: 28px; 10668 fill: var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant)); 10669} 10670.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon { 10671 fill: var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 10672} 10673[dir=rtl] .mat-mdc-paginator-icon { 10674 transform: rotate(180deg); 10675} 10676 10677@media (forced-colors: active) { 10678 .mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon, 10679 .mat-mdc-paginator-icon { 10680 fill: currentColor; 10681 } 10682 .mat-mdc-paginator-range-actions .mat-mdc-icon-button { 10683 outline: solid 1px; 10684 } 10685 .mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled] { 10686 color: GrayText; 10687 } 10688} 10689.mat-mdc-paginator-touch-target { 10690 display: var(--mat-paginator-touch-target-display, block); 10691 position: absolute; 10692 top: 50%; 10693 left: 50%; 10694 width: var(--mat-paginator-page-size-select-width, 84px); 10695 height: var(--mat-paginator-page-size-select-touch-target-height, 48px); 10696 background-color: transparent; 10697 transform: translate(-50%, -50%); 10698 cursor: pointer; 10699} 10700`],encapsulation:2})}return n})(),XE=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Vs$1,nd$1,Kd,Zf]})}return n})();var tg=[[["caption"]],[["colgroup"],["col"]],"*"],ig=["caption","colgroup, col","*"];function ng(n,r){n&1&&h_$1(0,2);}function ag(n,r){n&1&&(Js$2(0,"thead",0),gy(1,1),gd$2(),Js$2(2,"tbody",0),gy(3,2)(4,3),gd$2(),Js$2(5,"tfoot",0),gy(6,4),gd$2());}function rg(n,r){n&1&&gy(0,1)(1,2)(2,3)(3,4);}var Rt$1=new I$4("CDK_TABLE");var Aa=(()=>{class n{template=g$4(Et$3);static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkCellDef",""]]})}return n})(),Ra=(()=>{class n{template=g$4(Et$3);static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkHeaderCellDef",""]]})}return n})(),Zd$1=(()=>{class n{template=g$4(Et$3);static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkFooterCellDef",""]]})}return n})(),ni=(()=>{class n{_table=g$4(Rt$1,{optional:true});_hasStickyChanged=false;get name(){return this._name}set name(e){this._setNameInput(e);}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=true);}_stickyEnd=false;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`];}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName());}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,i,a){if(t&1&&Cy(a,Aa,5)(a,Ra,5)(a,Zd$1,5),t&2){let o;m_$1(o=y_$1())&&(i.cell=o.first),m_$1(o=y_$1())&&(i.headerCell=o.first),m_$1(o=y_$1())&&(i.footerCell=o.first);}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",tM$1],stickyEnd:[2,"stickyEnd","stickyEnd",tM$1]}})}return n})(),Ta$1=class Ta{constructor(r,e){e.nativeElement.classList.add(...r._
10700columnCssClassName);}},Jd$1=(()=>{class n extends Ta$1{constructor(){super(g$4(ni),g$4(Vt$3));}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Xm$2]})}return n})();var ec$1=(()=>{class n extends Ta$1{constructor(){let e=g$4(ni),t=g$4(Vt$3);super(e,t);let i=e._table?._getCellRole();i&&t.nativeElement.setAttribute("role",i);}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Xm$2]})}return n})();var yo$1=(()=>{class n{template=g$4(Et$3);_differs=g$4(Rd$2);columns;_columnsDiffer;ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t);}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof pn?e.headerCell.template:this instanceof xo$1?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,features:[El$2]})}return n})(),pn=(()=>{class n extends yo$1{_table=g$4(Rt$1,{optional:true});_hasStickyChanged=false;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",tM$1]},features:[Xm$2,El$2]})}return n})(),xo$1=(()=>{class n extends yo$1{_table=g$4(Rt$1,{optional:true});_hasStickyChanged=false;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",tM$1]},features:[Xm$2,El$2]})}return n})(),Fa=(()=>{class n extends yo$1{_table=g$4(Rt$1,{optional:true});when;static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Xm$2]})}return n})(),fi=(()=>{class n{_viewContainer=g$4(Ct$6);cells;context;static mostRecentCellOutlet=null;constructor(){n.mostRecentCellOutlet=this;}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null);}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","cdkCellOutlet",""]]})}return n})(),wo$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&gy(0,0);},dependencies:[fi],encapsulation:2,changeDetection:1})}return n})();var ko$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&gy(0,0);},dependencies:[fi],encapsulation:2,changeDetection:1})}return n})(),tc$1=(()=>{class n{templateRef=g$4(Et$3);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["ng-template","cdkNoDataRow",""]]})}return n})(),$d$1=["top","bottom","left","right"],vo$1=class vo{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(r=>this._updateCachedSizes(r)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=false;constructor(r,e,t=true,i=true,a,o,l){this._isNativeHtmlTable=r,this._stickCellCss=e,this._isBrowser=t,this._needsPositionStickyOnElement=i,this.direction=a,this._positionListener=o,this._tableInjector=l,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`};}clearStickyPositioning(r,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(r);let t=[];for(let i of r)i.nodeType===i.ELEMENT_NODE&&t.push(i,...Array.from(i.children));Jg({write:()=>{for(let i of t)this._removeStickyStyle(i,e);}},{injector:this._tableInjector});}updateStickyColumns(r,e,t,i=true,a=true){if(!r.length||!this._isBrowser||!(e.some(It=>It)||t.some(It=>It))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let o=r[0],l=o.children.length,f=this.direction==="rtl",R=f?"right":"left",G=f?"left":"right",re=e.lastIndexOf(true),Re=t.indexOf(true),ze,un,_n;
10700a&&this._updateStickyColumnReplayQueue({rows:[...r],stickyStartStates:[...e],stickyEndStates:[...t]}),Jg({earlyRead:()=>{ze=this._getCellWidths(o,i),un=this._getStickyStartColumnPositions(ze,e),_n=this._getStickyEndColumnPositions(ze,t);},write:()=>{for(let It of r)for(let pt=0;pt<l;pt++){let Eo=It.children[pt];e[pt]&&this._addStickyStyle(Eo,R,un[pt],pt===re),t[pt]&&this._addStickyStyle(Eo,G,_n[pt],pt===Re);}this._positionListener&&ze.some(It=>!!It)&&(this._positionListener.stickyColumnsUpdated({sizes:re===-1?[]:ze.slice(0,re+1).map((It,pt)=>e[pt]?It:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:Re===-1?[]:ze.slice(Re).map((It,pt)=>t[pt+Re]?It:null).reverse()}));}},{injector:this._tableInjector});}stickRows(r,e,t){if(!this._isBrowser)return;let i=t==="bottom"?r.slice().reverse():r,a=t==="bottom"?e.slice().reverse():e,o=[],l=[],f=[];Jg({earlyRead:()=>{for(let R=0,G=0;R<i.length;R++){if(!a[R])continue;o[R]=G;let re=i[R];f[R]=this._isNativeHtmlTable?Array.from(re.children):[re];let Re=this._retrieveElementSize(re).height;G+=Re,l[R]=Re;}},write:()=>{let R=a.lastIndexOf(true);for(let G=0;G<i.length;G++){if(!a[G])continue;let re=o[G],Re=G===R;for(let ze of f[G])this._addStickyStyle(ze,t,re,Re);}t==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:l,offsets:o,elements:f}):this._positionListener?.stickyFooterRowsUpdated({sizes:l,offsets:o,elements:f});}},{injector:this._tableInjector});}updateStickyFooterContainer(r,e){this._isNativeHtmlTable&&Jg({write:()=>{let t=r.querySelector("tfoot");t&&(e.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,false));}},{injector:this._tableInjector});}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=true;}_removeStickyStyle(r,e){if(!r.classList.contains(this._stickCellCss))return;for(let i of e)r.style[i]="",r.classList.remove(this._borderCellCss[i]);$d$1.some(i=>e.indexOf(i)===-1&&r.style[i])?r.style.zIndex=this._getCalculatedZIndex(r):(r.style.zIndex="",this._needsPositionStickyOnElement&&(r.style.position=""),r.classList.remove(this._stickCellCss));}_addStickyStyle(r,e,t,i){r.classList.add(this._stickCellCss),i&&r.classList.add(this._borderCellCss[e]),r.style[e]=`${t}px`,r.style.zIndex=this._getCalculatedZIndex(r),this._needsPositionStickyOnElement&&(r.style.cssText+="position: -webkit-sticky; position: sticky; ");}_getCalculatedZIndex(r){let e={top:100,bottom:10,left:1,right:1},t=0;for(let i of $d$1)r.style[i]&&(t+=e[i]);return t?`${t}`:""}_getCellWidths(r,e=true){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=r.children;for(let a=0;a<i.length;a++){let o=i[a];t.push(this._retrieveElementSize(o).width);}return this._cachedCellWidths=t,t}_getStickyStartColumnPositions(r,e){let t=[],i=0;for(let a=0;a<r.length;a++)e[a]&&(t[a]=i,i+=r[a]);return t}_getStickyEndColumnPositions(r,e){let t=[],i=0;for(let a=r.length;a>0;a--)e[a]&&(t[a]=i,i+=r[a]);return t}_retrieveElementSize(r){let e=this._elemSizeCache.get(r);if(e)return e;let t=r.getBoundingClientRect(),i={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(r,i),this._resizeObserver.observe(r,{box:"border-box"})),i}_updateStickyColumnReplayQueue(r){this._removeFromStickyColumnReplayQueue(r.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(r);}_removeFromStickyColumnReplayQueue(r){let e=new Set(r);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(i=>!e.has(i));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length);}_updateCachedSizes(r){let e=false;for(let t of r){let i=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};i.width!==this._elemSizeCache.get(t.target)?.width&&og(t.target)&&(e=true),this._elemSizeCache.set(t.target,i);}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStart
10700States,t.stickyEndStates,true,false);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null;}},0));}};function og(n){return ["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(r=>n.classList.contains(r))}var hn=new I$4("STICKY_POSITIONING_LISTENER");var Co$1=(()=>{class n{viewContainer=g$4(Ct$6);elementRef=g$4(Vt$3);constructor(){let e=g$4(Rt$1);e._rowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","rowOutlet",""]]})}return n})(),Do$1=(()=>{class n{viewContainer=g$4(Ct$6);elementRef=g$4(Vt$3);constructor(){let e=g$4(Rt$1);e._headerRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","headerRowOutlet",""]]})}return n})(),Mo$1=(()=>{class n{viewContainer=g$4(Ct$6);elementRef=g$4(Vt$3);constructor(){let e=g$4(Rt$1);e._footerRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","footerRowOutlet",""]]})}return n})(),So$1=(()=>{class n{viewContainer=g$4(Ct$6);elementRef=g$4(Vt$3);constructor(){let e=g$4(Rt$1);e._noDataRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||n)};static \u0275dir=bt$6({type:n,selectors:[["","noDataRowOutlet",""]]})}return n})(),Io=(()=>{class n{_differs=g$4(Rd$2);_changeDetectorRef=g$4(Od$2);_elementRef=g$4(Vt$3);_dir=g$4(qe$4,{optional:true});_platform=g$4(_$7);_viewRepeater;_viewportRuler=g$4(G$3);_injector=g$4(Ee$4);_virtualScrollViewport=g$4(an$1,{optional:true,host:true});_positionListener=g$4(hn,{optional:true})||g$4(hn,{optional:true,skipSelf:true});_document=g$4(Y$3);_data;_renderedRange;_onDestroy=new ye$5;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=true;_footerRowDefChanged=true;_stickyColumnStylesNeedReset=true;_forceRecalculateCellWidths=true;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=true;_isServer;_isShowingNoDataRow=false;_hasAllOutlets=false;_hasInitialized=false;_headerRowStickyUpdates=new ye$5;_footerRowStickyUpdates=new ye$5;_disableVirtualScrolling=false;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e;}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck());}_dataSource;_dataSourceChanges=new ye$5;_dataStream=new ye$5;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles());}_multiTemplateDataRows=false;get fixedLayout(){return this._virtualScrollEnabled()?true:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=true,this._stickyColumnStylesNeedReset=true;}_fixedLayout=false;recycleRows=false;contentChanged=new kt$3;viewChange=new Jr$1({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;get renderedRows(){return this._renderRows}constructor(){g$4(new nv("role"),{optional:true})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i);}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Hf$1(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=true;});}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new xe$2:new Xn,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=true;}ngAfterContentChecked(){this._canRender()&&this._render();}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e
10700=>{e?.clear();}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),yi(this.dataSource)&&this.dataSource.disconnect(this);}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(i,a,o)=>this._getEmbeddedViewArgs(i.item,o),i=>i.item.data,i=>{i.operation===J$3.INSERTED&&i.context&&this._renderCellTemplateForItem(i.record.item.rowDef,i.context);}),this._updateRowIndexContext(),e.forEachIdentityChange(i=>{let a=t.get(i.currentIndex);a.context.$implicit=i.item.data;}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles();}addColumnDef(e){this._customColumnDefs.add(e);}removeColumnDef(e){this._customColumnDefs.delete(e);}addRowDef(e){this._customRowDefs.add(e);}removeRowDef(e){this._customRowDefs.delete(e);}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=true;}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=true;}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=true;}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=true;}setNoDataRow(e){this._customNoDataRow=e;}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let i=Xd$1(this._headerRowOutlet,"thead");i&&(i.style.display=e.length?"":"none");}let t=this._headerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(i=>i.resetStickyChanged());}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let i=Xd$1(this._footerRowOutlet,"tfoot");i&&(i.style.display=e.length?"":"none");}let t=this._footerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(i=>i.resetStickyChanged());}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...i],["left","right"]),this._stickyColumnStylesNeedReset=false),e.forEach((a,o)=>{this._addStickyColumnStyles([a],this._headerRowDefs[o]);}),this._rowDefs.forEach(a=>{let o=[];for(let l=0;l<t.length;l++)this._renderRows[l].rowDef===a&&o.push(t[l]);this._addStickyColumnStyles(o,a);}),i.forEach((a,o)=>{this._addStickyColumnStyles([a],this._footerRowDefs[o]);}),Array.from(this._columnDefsByName.values()).forEach(a=>a.resetStickyChanged());}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e);}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e);}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e);}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e);}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=true,this._canRender()&&this._render());}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=false),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=false),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates();}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return [];let e=[],t=Math.min(this._data.length,this._renderedRange.end),i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let a=this._renderedRange.start;a<t;a++){let o=this._data[a],l=this._getRenderRowsForData(o,a,i.get(o));this._cachedRenderRowsMap.has(o)||this._cachedRenderRowsMap.set(o,new WeakMap);for(let f=0;f<l.length;f++){let R=l[f],G=this._cachedRenderRowsMap.get(R.data);G.has(R.rowDef)?G.get(R.rowDef).push(R):G.set(R.rowDef,[R]),e.push(R);}}return e}_getRenderRowsForData(e,t,i){return this._getRowDefs(e,t).map(o=>{let l=i&&i.has(o)?i.get(o):[];if(l.length){let f=l.shift();return f.dataIndex=t,f}else return {data:e,rowDef:o,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ea(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEac
10700h(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t);});}_cacheRowDefs(){this._headerRowDefs=Ea(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ea(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ea(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0];}_renderUpdatedColumns(){let e=(o,l)=>{let f=!!l.getColumnsDiff();return o||f},t=this._rowDefs.reduce(e,false);t&&this._forceRenderDataRows();let i=this._headerRowDefs.reduce(e,false);i&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(e,false);return a&&this._forceRenderFooterRows(),t||i||a}_switchDataSource(e){this._data=[],yi(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e;}_observeRenderChanges(){if(!this.dataSource)return;let e;yi(this.dataSource)?e=this.dataSource.connect(this):nE(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=ki$3(this.dataSource)),this._renderChangeSubscription=iE([e,this.viewChange]).pipe(Hf$1(this._onDestroy)).subscribe(([t,i])=>{this._data=t||[],this._renderedRange=i,this._dataStream.next(t),this.renderRows();});}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles();}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles();}_addStickyColumnStyles(e,t){let i=Array.from(t?.columns||[]).map(l=>{let f=this._columnDefsByName.get(l);return f}),a=i.map(l=>l.sticky),o=i.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(e,a,o,!this.fixedLayout||this._forceRecalculateCellWidths);}_getRenderedRows(e){let t=[];for(let i=0;i<e.viewContainer.length;i++){let a=e.viewContainer.get(i);t.push(a.rootNodes[0]);}return t}_getRowDefs(e,t){if(this._rowDefs.length===1)return [this._rowDefs[0]];let i=[];if(this.multiTemplateDataRows)i=this._rowDefs.filter(a=>!a.when||a.when(t,e));else {let a=this._rowDefs.find(o=>o.when&&o.when(t,e))||this._defaultRowDef;a&&i.push(a);}return i.length,i}_getEmbeddedViewArgs(e,t){let i=e.rowDef,a={$implicit:e.data};return {templateRef:i.template,context:a,index:t}}_renderRow(e,t,i,a={}){let o=e.viewContainer.createEmbeddedView(t.template,a,i);return this._renderCellTemplateForItem(t,a),o}_renderCellTemplateForItem(e,t){for(let i of this._getCellTemplates(e))fi.mostRecentCellOutlet&&fi.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,t);this._changeDetectorRef.markForCheck();}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,i=e.length;t<i;t++){let o=e.get(t).context;o.count=i,o.first=t===0,o.last=t===i-1,o.even=t%2===0,o.odd=!o.even,this.multiTemplateDataRows?(o.dataIndex=this._renderRows[t].dataIndex,o.renderIndex=t):o.index=this._renderRows[t].dataIndex;}}_getCellTemplates(e){return !e||!e.columns?[]:Array.from(e.columns,t=>{let i=this._columnDefsByName.get(t);return e.extractCellTemplate(i)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows();}_checkStickyStates(){let e=(t,i)=>t||i.hasStickyChanged();this._headerRowDefs.reduce(e,false)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,false)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,false)&&(this._stickyColumnStylesNeedReset=true,this.updateStickyColumnStyles());}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",t=this._injector;this._stickyStyler=new vo$1(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,t),(this._dir?this._dir.change:ki$3()).pipe(Hf$1(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles();});}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?tE$1:eE$1;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(qD(0,t),Hf$1(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(i,a)=>this._measureRangeSize(i,a)}),iE([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Hf$1(this._onDestroy)).subscribe(([i,a])=>
10700{if(!(!a.sizes||!a.offsets||!a.elements))for(let o=0;o<a.elements.length;o++){let l=a.elements[o];if(l){let f=a.offsets[o],R=i!==0?Math.max(i-f,f):-f;for(let G of l)G.style.top=`${-R}px`;}}}),iE([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(Hf$1(this._onDestroy)).subscribe(([i,a])=>{if(!(!a.sizes||!a.offsets||!a.elements))for(let o=0;o<a.elements.length;o++){let l=a.elements[o];if(l)for(let f of l)f.style.bottom=`${i+a.offsets[o]}px`;}});}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let i=this._noDataRowOutlet.viewContainer;if(t){let a=i.createEmbeddedView(e.templateRef),o=a.rootNodes[0];if(a.rootNodes.length===1&&o?.nodeType===this._document.ELEMENT_NODE){o.setAttribute("role","row"),o.classList.add(...e._contentClassNames);let l=o.querySelectorAll(e._cellSelector);for(let f=0;f<l.length;f++)l[f].classList.add(...e._cellClassNames);}}else i.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck();}_measureRangeSize(e,t){if(e.start>=e.end||t!=="vertical")return 0;let i=this.viewChange.value,a=this._rowOutlet.viewContainer;e.start<i.start||e.end>i.end;let o=e.start-i.start,l=e.end-e.start,f,R;for(let Re=0;Re<l;Re++){let ze=a.get(Re+o);if(ze&&ze.rootNodes.length){f=R=ze.rootNodes[0];break}}for(let Re=l-1;Re>-1;Re--){let ze=a.get(Re+o);if(ze&&ze.rootNodes.length){R=ze.rootNodes[ze.rootNodes.length-1];break}}let G=f?.getBoundingClientRect?.(),re=R?.getBoundingClientRect?.();return G&&re?re.bottom-G.top:0}_virtualScrollEnabled(){return !this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,i,a){if(t&1&&Cy(a,tc$1,5)(a,ni,5)(a,Fa,5)(a,pn,5)(a,xo$1,5),t&2){let o;m_$1(o=y_$1())&&(i._noDataRow=o.first),m_$1(o=y_$1())&&(i._contentColumnDefs=o),m_$1(o=y_$1())&&(i._contentRowDefs=o),m_$1(o=y_$1())&&(i._contentHeaderRowDefs=o),m_$1(o=y_$1())&&(i._contentFooterRowDefs=o);}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,i){t&2&&xy("cdk-table-fixed-layout",i.fixedLayout);},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",tM$1],fixedLayout:[2,"fixedLayout","fixedLayout",tM$1],recycleRows:[2,"recycleRows","recycleRows",tM$1]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[tS([{provide:Rt$1,useExisting:n},{provide:hn,useValue:null}])],ngContentSelectors:ig,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){t&1&&(p_$1(tg),h_$1(0),h_$1(1,1),ZT(2,ng,1,0),ZT(3,ag,7,0)(4,rg,4,0)),t&2&&(SC(2),YT(i._isServer?2:-1),SC(),YT(i._isNativeHtmlTable?3:4));},dependencies:[Do$1,Co$1,So$1,Mo$1],styles:[`.cdk-table-fixed-layout { 10701 table-layout: fixed; 10702} 10703`],encapsulation:2,changeDetection:1})}return n})();function Ea(n,r){return n.concat(Array.from(r))}function Xd$1(n,r){let e=r.toUpperCase(),t=n.viewContainer.element.nativeElement;for(;t;){let i=t.nodeType===1?t.nodeName:null;if(i===e)return t;if(i==="TABLE")break;t=t.parentNode;}return null}var ic$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[Xt$3]})}return n})();var sg=["*",[["","matSortHeaderIcon",""]]],lg=["*","[matSortHeaderIcon]"];function dg(n,r){n&1&&(Xp$2(),md$2(0,"svg",3),py(1,"path",4),yd$2());}function cg(n,r){n&1&&(md$2(0,"div",2),h_$1(1,1,null,dg,2,0),yd$2());}var nc$1=new I$4("MAT_SORT_DEFAULT_OPTIONS"),mg=(()=>{class n{_defaultOptions;_initializedStream=new eo$2(1);sortables=new Map;_stateChanges=new ye$5;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e;}_direction="";disableClear;disabled=false;sortChange=new kt$3;initialized=this._initializedStream;constructor(e){this._defaultOptions=e;}register(e){this.sortables.set(e.id,e);}deregister(e){this.sortables.delete(e.id);}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction});}getNextSortDirection(e){if(!e)return "";let t=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,i=hg(e.start||this.start,t),a=i.indexOf(this.direction)+1;return a>=i.length&&(a=0),i[a]}ngOnInit(){this._initializedStream.next();}ngOnChanges(){this._stateChanges.next();}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete();}static \u0275fac=function(t){return new(t||n)(V$3(nc$1,8))};static \u0275dir=bt$6({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",tM$1],disabled:[2,"matSortDisabled","disabled",tM$1]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[El$2]})}return n})();function hg(n,r){let e=["asc","desc"];return n=="desc"&&e.reverse(),r||e.push(""),e}var VT=(()=>{class n{_sort=g$4(mg,{optional:true});_columnDef=g$4(ni,{optional:true});_changeDetectorRef=g$4(Od$2);_focusMonitor=g$4(Ot);_elementRef=g$4(Vt$3);_ariaDescriber=g$4(pr$2,{optional:true});_renderChanges;_animationsDisabled=ct$1();_recentlyCleared=Es$1(null);_sortButton;id;arrowPosition="after";start;disabled=false;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e);}_sortActionDescription="Sort";disableClear;constructor(){g$4(P$3).load(Bn$1);let e=g$4(nc$1,{optional:true});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition);}
10703ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=WD(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription);}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null));});}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription);}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),t=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?t:null);}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction());}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return !this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e;}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Xb({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,i){t&1&&Ey("click",function(){return i._toggleOnInteraction()})("keydown",function(o){return i._handleKeydown(o)})("mouseleave",function(){return i._recentlyCleared.set(null)}),t&2&&(ly("aria-sort",i._getAriaSortAttribute()),xy("mat-sort-header-disabled",i._isDisabled()));},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",tM$1],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",tM$1]},exportAs:["matSortHeader"],ngContentSelectors:lg,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(t,i){t&1&&(p_$1(sg),md$2(0,"div",0)(1,"div",1),h_$1(2),yd$2(),ZT(3,cg,3,0,"div",2),yd$2()),t&2&&(xy("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before",i.arrowPosition==="before")("mat-sort-header-descending",i._sort.direction==="desc")("mat-sort-header-ascending",i._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",i._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",i._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",i._animationsDisabled),ly("tabindex",i._isDisabled()?null:0)("role",i._isDisabled()?null:"button"),SC(3),YT(i._renderArrow()?3:-1));},styles:[`.mat-sort-header { 10704 cursor: pointer; 10705} 10706 10707.mat-sort-header-disabled { 10708 cursor: default; 10709} 10710 10711.mat-sort-header-container { 10712 display: flex; 10713 align-items: center; 10714 letter-spacing: normal; 10715 outline: 0; 10716} 10717[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container, [mat-sort-header].cdk-program-focused .mat-sort-header-container { 10718 border-bottom: solid 1px currentColor; 10719} 10720.mat-sort-header-container::before { 10721 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1); 10722} 10723 10724.mat-sort-header-content { 10725 display: flex; 10726 align-items: center; 10727} 10728 10729.mat-sort-header-position-before { 10730 flex-direction: row-reverse; 10731} 10732 10733@keyframes _mat-sort-header-recently-cleared-ascending { 10734 from { 10735 transform: translateY(0); 10736 opacity: 1; 10737 } 10738 to { 10739 transform: translateY(-25%); 10740 opacity: 0; 10741 } 10742} 10743@keyframes _mat-sort-header-recently-cleared-descending { 10744 from { 10745 transform: translateY(0) rotate(180deg); 10746 opacity: 1; 10747 } 10748 to { 10749 transform: translateY(25%) rotate(180deg); 10750 opacity: 0; 10751 } 10752} 10753.mat-sort-header-arrow { 10754 height: 12px; 10755 width: 12px; 10756 position: relative; 10757 transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1), opacity 225ms cubic-bezier(0.4, 0, 0.2, 1); 10758 opacity: 0; 10759 overflow: visible; 10760 color: var(--mat-sort-arrow-color, var(--mat-sys-on-surface)); 10761} 10762.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow, .mat-sort-header.cdk-program-focused .mat-sort-header-arrow, .mat-sort-header:hover .mat-sort-header-arrow { 10763 opacity: 0.54; 10764} 10765.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow { 10766 opacity: 1; 10767} 10768.mat-sort-header-descending .mat-sort-header-arrow { 10769 transform: rotate(180deg); 10770} 10771.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow { 10772 transform: translateY(-25%); 10773} 10774.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow { 10775 transition: none; 10776 animation: _mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards; 10777} 10778.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow { 10779 transition: none; 10780 animation: _mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards; 10781} 10782.mat-sort-header-animations-disabled .mat-sort-header-arrow { 10783 transition-duration: 0ms; 10784 animation-duration: 0ms; 10785} 10786.mat-sort-header-arrow > svg, .mat-sort-header-arrow [matSortHeaderIcon] { 10787 width: 24px; 10788 height: 24px; 10789 fill: currentColor; 10790 position: absolute; 10791 top: 50%; 10792 left: 50%; 10793 margin: -12px 0 0 -12px; 10794 transform: translateZ(0); 10795} 10796.mat-sort-header-arrow, [dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow { 10797 margin: 0 0 0 6px; 10798} 10799.mat-sort-header-position-before .mat-sort-header-arrow, [dir=rtl] .mat-sort-header-arrow { 10800 margin: 0 6px 0 0; 10801} 10802`],encapsulation:2})}return n})(),LT=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[it$2]})}return n})();var pg=[[["caption"]],[["colgroup"],["col"]],"*"],ug=["caption","colgroup, col","*"];function _g(n,r){n&1&&h_$1(0,2);}function fg(n,r){n&1&&(Js$2(0,"thead",0),gy(1,1),gd$2(),Js$2(2,"tbody",2),gy(3,3)(4,4),gd$2(),Js$2(5,"tfoot",0),gy(6,5),gd$2());}function gg(n,r){n&1&&gy(0,1)(1,3)(2,4)(3,5);}var tA=(()=>{class n extends Io{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=false;static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(t,i){t&2&&xy("mat-table-fixed-layout",i.fixedLayout);},exportAs:["matTable"],features:[tS([{provide:Io,useExisting:n},{provide:Rt$1,useExisting:n},{provide:hn,useValue:null}]),Xm$2],ngContentSelectors:ug,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){t&1&&(p_$1(pg),h_$1(0),h_$1(1,1),ZT(2,_g,1,0),ZT(3,fg,7,0)(4,gg,4,0)),t&2&&(SC(2),YT(i._isServer?2:-1),SC(),YT(i._isNativeHtmlTable?3:4));},dependencies:[Do$1,Co$1,So$1,Mo$1],styles:[`.mat-mdc-table-sticky { 10803 position: sticky !important; 10804} 10805 10806mat-table { 10807 display: block; 10808} 10809 10810mat-header-row { 10811 min-height: var(--mat-table-header-container-height, 56px); 10812} 10813 10814mat-row { 10815 min-height: var(--mat-table-row-item-container-height, 52px); 10816} 10817 10818mat-footer-row { 10819 min-height: var(--mat-table-footer-container-height, 52px); 10820} 10821 10822mat-row, mat-header-row, mat-footer-row { 10823 display: flex; 10824 border-width: 0; 10825 border-bottom-width: 1px; 10826 border-style: solid; 10827 align-items: center; 10828 box-sizing: border-box; 10829} 10830 10831mat-cell:first-of-type, mat-header-cell:first-of-type, mat-footer-cell:first-of-type { 10832 padding-left: 24px; 10833} 10834[dir=rtl] mat-cell:first-of-type:not(:only-of-type), [dir=rtl] mat-header-cell:first-of-type:not(:only-of-type), [dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type) { 10835 padding-left: 0; 10836 padding-right: 24px; 10837} 10838mat-cell:last-of-type, mat-header-cell:last-of-type, mat-footer-cell:last-of-type { 10839 padding-right: 24px; 10840} 10841[dir=rtl] mat-cell:last-of-type:not(:only-of-type), [dir=rtl] mat-header-cell:last-of-type:not(:only-of-type), [dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type) { 10842 padding-right: 0; 10843 padding-left: 24px; 10844} 10845 10846mat-cell, mat-header-cell, mat-footer-cell { 10847 flex: 1; 10848 display: flex; 10849 align-items: center; 10850 overflow: hidden; 10851 word-wrap: break-word; 10852 min-height: inherit; 10853} 10854 10855.mat-mdc-table { 10856 min-width: 100%; 10857 border: 0; 10858 border-spacing: 0; 10859 table-layout: auto; 10860 white-space: normal; 10861 background-color: var(--mat-table-background-color, var(--mat-sys-surface)); 10862} 10863 10864.mat-table-fixed-layout { 10865 table-layout: fixed; 10866} 10867 10868.mdc-data-table__cell { 10869 box-sizing: border-box; 10870 overflow: hidden; 10871 text-align: start; 10872 text-overflow: ellipsis; 10873} 10874 10875.mdc-data-table__cell, 10876.mdc-data-table__header-cell { 10877 padding: 0 16px; 10878} 10879 10880.mat-mdc-header-row { 10881 -moz-osx-font-smoothing: grayscale; 10882 -webkit-font-smoothing: antialiased; 10883 height: var(--mat-table-header-container-height, 56px); 10884 color: var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87))); 10885 font-family: var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif)); 10886 line-height: var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height)); 10887 font-size: var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px)); 10888 font-weight: var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500)); 10889} 10890 10891.mat-mdc-row { 10892 height: var(--mat-table-row-item-container-height, 52px); 10893 color: var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87))); 10894} 10895 10896.mat-mdc-row, 10897.mdc-data-table__content { 10898 -moz-osx-font-smoothing: grayscale; 10899 -webkit-font-smoothing: antialiased; 10900 font-family: var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif)); 10901 line-height: var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height)); 10902 font-size: var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px)); 10903 font-weight: var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight)); 10904} 10905 10906.mat-mdc-footer-row { 10907 -moz-osx-font-smoothing: grayscale; 10908 -webkit-font-smoothing: antialiased; 10909 height: var(--mat-table-footer-container-height, 52px); 10910 color: var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87))); 10911 font-family: var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif)); 10912 line-height: var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height)); 10913 font-size: var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px)); 10914 font-weight: var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight)); 10915 letter-spacing: var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking)); 10916} 10917 10918.mat-mdc-header-cell { 10919 border-bottom-color: var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12))); 10920 border-bottom-width: var(--mat-table-row-item-outline-width, 1px); 10921 border-bottom-style: solid; 10922 letter-spacing: var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking)); 10923 font-weight: inherit; 10924 line-height: inherit; 10925 box-sizing: border-box; 10926 text-overflow: ellipsis; 10927 overflow: hidden; 10928 outline: none; 10929 text-align: start; 10930} 10931.mdc-data-table__row:last-child > .mat-mdc-header-cell { 10932 border-bottom: none; 10933} 10934 10935.mat-mdc-cell { 10936 border-bottom-color: var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12))); 10937 border-bottom-width: var(--mat-table-row-item-outline-width, 1px); 10938 border-bottom-style: solid; 10939 letter-spacing: var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking)); 10940 line-height: inherit; 10941} 10942.mdc-data-table__row:last-child > .mat-mdc-cell { 10943 border-bottom: none; 10944} 10945 10946.mat-mdc-footer-cell { 10947 letter-spacing: var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking)); 10948} 10949 10950mat-row.mat-mdc-row, 10951mat-header-row.mat-mdc-header-row, 10952mat-footer-row.mat-mdc-footer-row { 10953 border-bottom: none; 10954} 10955 10956.mat-mdc-table tbody, 10957.mat-mdc-table tfoot, 10958.mat-mdc-table thead, 10959.mat-mdc-cell, 10960.mat-mdc-footer-cell, 10961.mat-mdc-header-row, 10962.mat-mdc-row, 10963.mat-mdc-footer-row, 10964.mat-mdc-table .mat-mdc-header-cell { 10965 background: inherit; 10966} 10967 10968.mat-mdc-table mat-header-row.mat-mdc-header-row, 10969.mat-mdc-table mat-row.mat-mdc-row, 10970.mat-mdc-table mat-footer-row.mat-mdc-footer-cell { 10971 height: unset; 10972} 10973 10974mat-header-cell.mat-mdc-header-cell, 10975mat-cell.mat-mdc-cell, 10976mat-footer-cell.mat-mdc-footer-cell { 10977 align-self: stretch; 10978} 10979`],encapsulation:2,changeDetection:1})}return n})(),iA=(()=>{class n extends Aa{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matCellDef",""]],features:[tS([{provide:Aa,useExisting:n}]),Xm$2]})}return n})(),nA=(()=>{class n extends Ra{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matHeaderCellDef",""]],features:[tS([{provide:Ra,useExisting:n}]),Xm$2]})}return n})();var aA=(()=>{class n extends ni{get name(){return this._name}set name(e){this._setNameInput(e);}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);}static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[tS([{provide:ni,useExisting:n}]),Xm$2]})}return n})(),rA=(()=>{class n extends Jd$1{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Xm$2]})}return n})();var oA=(()=>{class n extends ec$1{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Xm$2]})}return n})();var sA=(()=>{class n extends pn{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",tM$1]},features:[tS([{provide:pn,useExisting:n}]),Xm$2]})}return n})();var lA=(()=>{class n extends Fa{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275dir=bt$6({type:n,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[tS([{provide:Fa,useExisting:n}]),Xm$2]})}return n})(),dA=(()=>{class n extends wo$1{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[tS([{provide:wo$1,useExisting:n}]),Xm$2],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&gy(0,0);},dependencies:[fi],encapsulation:2,changeDetection:1})}return n})();var cA=(()=>{class n extends ko$1{static \u0275fac=(()=>{let e;return function(i){return (e||(e=yg(n)))(i||n)}})();static \u0275cmp=Xb({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[tS([{provide:ko$1,useExisting:n}]),Xm$2],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&gy(0,0);},dependencies:[fi],encapsulation:2,changeDetection:1})}return n})();var mA=(()=>{class n{static \u0275fac=function(t){return new(t||
10979n)};static \u0275mod=Qo$2({type:n});static \u0275inj=Ir$3({imports:[ic$1,it$2]})}return n})(),bg=9007199254740991,ac=class extends Re$2{_data;_renderData=new Jr$1([]);_filter=new Jr$1("");_internalPageChanges=new ye$5;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(r){r=Array.isArray(r)?r:[],this._data.next(r),this._renderChangesSubscription||this._filterData(r);}get filter(){return this._filter.value}set filter(r){this._filter.next(r),this._renderChangesSubscription||this._filterData(this.data);}get sort(){return this._sort}set sort(r){this._sort=r,this._updateChangeSubscription();}_sort;get paginator(){return this._paginator}set paginator(r){this._paginator=r,this._updateChangeSubscription();}_paginator;sortingDataAccessor=(r,e)=>{let t=r[e];if(tn$2(t)){let i=Number(t);return i<bg?i:t}return t};sortData=(r,e)=>{let t=e.active,i=e.direction;return !t||i==""?r:r.sort((a,o)=>{let l=this.sortingDataAccessor(a,t),f=this.sortingDataAccessor(o,t),R=typeof l,G=typeof f;R!==G&&(R==="number"&&(l+=""),G==="number"&&(f+=""));let re=0;return l!=null&&f!=null?l>f?re=1:l<f&&(re=-1):l!=null?re=1:f!=null&&(re=-1),re*(i=="asc"?1:-1)})};filterPredicate=(r,e)=>{let t=e.trim().toLowerCase();return Object.values(r).some(i=>`${i}`.toLowerCase().includes(t))};constructor(r=[]){super(),this._data=new Jr$1(r),this._updateChangeSubscription();}_updateChangeSubscription(){let r=this._sort?WD(this._sort.sortChange,this._sort.initialized):ki$3(null),e=this._paginator?WD(this._paginator.page,this._internalPageChanges,this._paginator.initialized):ki$3(null),t=this._data,i=iE([t,this._filter]).pipe(ve$4(([l])=>this._filterData(l))),a=iE([i,r]).pipe(ve$4(([l])=>this._orderData(l))),o=iE([a,e]).pipe(ve$4(([l])=>this._pageData(l)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=o.subscribe(l=>this._renderData.next(l));}_filterData(r){return this.filteredData=this.filter==null||this.filter===""?r:r.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(r){return this.sort?this.sortData(r.slice(),this.sort):r}_pageData(r){if(!this.paginator)return r;let e=this.paginator.pageIndex*this.paginator.pageSize;return r.slice(e,e+this.paginator.pageSize)}_updatePaginator(r){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=r,e.pageIndex>0)){let t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next());}});}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null;}};var P$2=(()=>{class o{constructor(){this.loadingSubject=new Jr$1(false),this.loading$=this.loadingSubject.asObservable(),this.activeCount=0,this.showTimer=null,this.SHOW_DELAY_MS=250,this.suppressCount=0;}beginSuppress(){this.suppressCount++,this.loadingSubject.value&&this.loadingSubject.next(false),this.showTimer!==null&&(clearTimeout(this.showTimer),this.showTimer=null);}endSuppress(){this.suppressCount=Math.max(0,this.suppressCount-1);}loadingOn(){this.suppressCount>0||(this.activeCount++,this.activeCount===1&&this.showTimer===null&&(this.showTimer=setTimeout(()=>{this.showTimer=null,this.activeCount>0&&!this.loadingSubject.value&&this.loadingSubject.next(true);},this.SHOW_DELAY_MS)));}loadingOff(){this.activeCount=Math.max(0,this.activeCount-1),this.activeCount===0&&(this.showTimer!==null&&(clearTimeout(this.showTimer),this.showTimer=null),this.loadingSubject.value&&this.loadingSubject.next(false));}reset(){this.activeCount=0,this.showTimer!==null&&(clearTimeout(this.showTimer),this.showTimer=null),this.loadingSubject.value&&this.loadingSubject.next(false);}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();function qt$1(o,k){if(o&1&&(Js$2(0,"p",1)(1,"b"),H_$1(2),pS(3,"translate"),pS(4,"translate"),gd$2()()),o&2){let t=d_$1();SC(2),By("",gS$1(3,2,"Status Code:")," ",gS$1(4,4,t.data.status.toString()));}}function Kt$2(o,k){if(o&1){let t=i_$1();Js$2(0,"button",9),Ey("click",function(){Vp$2(t);let i=d_$1();return Hp$2(i.openFreeStorage())}),Js$2(1,"mat-icon",5),H_$1(2,"cleaning_services"),gd$2(),H_$1(3),pS(4,"translate"),gd$2();}o&2&&(SC(3),Ed$2(" ",gS$1(4,1,"Free up space")," "));}function Yt$1(o,k){if(o&1){let t=i_$1();Js$2(0,"button",10),Ey("click",function(){Vp$2(t);let i=d_$1();return Hp$2(i.loginAgain())}),Js$2(1,"mat-icon",5),H_$1(2,"check"),gd$2(),H_$1(3),pS(4,"translate"),gd$2();}o&2&&(SC(3),Ed$2(" ",gS$1(4,1,"Login Again")," "));}function Xt$2(o,k){if(o&1){let t=i_$1();Js$2(0,"button",11),Ey("click",function(){Vp$2(t);let i=d_$1();return Hp$2(i.signOut())}),Js$2(1,"mat-icon",5),H_$1(2,"logout"),gd$2(),H_$1(3),pS(4,"translate"),gd$2();}
10979o&2&&(SC(3),Ed$2(" ",gS$1(4,1,"Sign out")," "));}var zt=(()=>{class o{constructor(t,e,i,r,s,n,p){this.loadingService=t,this.translate=e,this.authService=i,this.router=r,this.dialog=s,this.dialogConfigService=n,this.data=p,this.dialogRef=g$4(an),this.isRtl=false,this.isRtl=this.translate.currentLang==="ar";}close(){this.loadingService.loadingOff(),this.dialogRef.close();}loginAgain(){this.loadingService.loadingOff(),this.dialogRef.close(),this.authService.logout(),this.router.navigate(["/authentication/login"]);}get canSignOut(){return this.data.status!==401&&this.authService.isAuthenticatedUser}signOut(){this.loginAgain();}openFreeStorage(){return L$7(this,null,function*(){this.dialogRef.close();let{FileCleanupDialogComponent:t}=yield import('./chunk-2sGGx_oU.js'),e=this.dialogConfigService.getDefaultDialogConfig();this.dialog.open(t,E$7(D$6({},e),{width:"560px",data:void 0}));})}static{this.\u0275fac=function(e){return new(e||o)(V$3(P$2),V$3(O$5),V$3(Us$1),V$3(G$5),V$3(vr$1),V$3(f$5),V$3(Wm$1))};}static{this.\u0275cmp=Xb({type:o,selectors:[["app-error-dialog"]],decls:14,vars:12,consts:[[1,"error-dialog-content",3,"dir"],[1,"error-status"],[1,"error-message"],[1,"error-actions",3,"dir"],["type","button","mat-stroked-button","","color","warn",3,"click"],[1,"icon-18"],["type","button","mat-flat-button","","color","accent"],["type","button","mat-stroked-button","","color","success"],["type","button","mat-button","",1,"error-signout"],["type","button","mat-flat-button","","color","accent",3,"click"],["type","button","mat-stroked-button","","color","success",3,"click"],["type","button","mat-button","",1,"error-signout",3,"click"]],template:function(e,i){e&1&&(Js$2(0,"mat-dialog-content",0),ZT(1,qt$1,5,6,"p",1),Js$2(2,"p",2),H_$1(3),pS(4,"translate"),gd$2()(),Js$2(5,"mat-dialog-actions",3)(6,"button",4),Ey("click",function(){return i.close()}),Js$2(7,"mat-icon",5),H_$1(8,"close"),gd$2(),H_$1(9),pS(10,"translate"),gd$2(),ZT(11,Kt$2,5,3,"button",6),ZT(12,Yt$1,5,3,"button",7),ZT(13,Xt$2,5,3,"button",8),gd$2()),e&2&&(dy("dir",i.isRtl?"rtl":"ltr"),SC(),YT(i.data.status?1:-1),SC(2),Ed$2(" ",gS$1(4,8,i.data.message),` 10980`),SC(2),dy("dir",i.isRtl?"rtl":"ltr"),SC(4),Ed$2(" ",gS$1(10,10,"Close")," "),SC(2),YT(i.data.isStorageLimit?11:-1),SC(),YT(i.data.status===401?12:-1),SC(),YT(i.canSignOut?13:-1));},dependencies:[Tt$2,Xv,Ng,zg,w0$1,co$2,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,iy,ty,go$2,Kd,XE,LT,mA,mt$4],styles:[".error-dialog-content[_ngcontent-%COMP%]{background-color:var(--color-light-error);color:var(--color-error-text);padding:1rem 1.5rem;border-radius:var(--radius-card)}.error-dialog-content[_ngcontent-%COMP%] .error-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.error-dialog-content[_ngcontent-%COMP%] .error-header[_ngcontent-%COMP%] .error-title[_ngcontent-%COMP%]{font-weight:700;font-size:var(--font-size-2xl);margin:0}.error-dialog-content[_ngcontent-%COMP%] .error-status[_ngcontent-%COMP%]{font-size:var(--font-size-base);margin-bottom:.5rem}.error-dialog-content[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{font-size:var(--font-size-base);line-height:1.4;margin-top:.5rem;font-weight:600}.error-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:1rem}.error-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-weight:700}.error-actions[_ngcontent-%COMP%] .error-signout[_ngcontent-%COMP%]{font-weight:400;opacity:.75}"],changeDetection:1});}}return o})();var Gt=(()=>{class o{static{this.STORAGE_LIMIT_TAG="STORAGE_LIMIT_EXCEEDED";}constructor(t,e,i,r,s){this.toastr=t,this.dialog=e,this.translate=i,this.loadingService=r,this.dialogConfig=s,this.opened=false;}openDialog(t,e,i,r=false){this.opened||(this.opened=true,this.dialog.open(zt,E$7(D$6({},this.dialogConfig.getDefaultDialogConfig()),{data:{message:t,title:e,status:i,isStorageLimit:r},maxHeight:"100%",maxWidth:"100%",disableClose:true,hasBackdrop:true})).afterClosed().pipe(bn$3(1)).subscribe(()=>{this.opened=false;}));}setError(t,e){let i="";this.loadingService.loadingOff();let r=this.detectAndStripStorageTag(t);this.translate.get(e).pipe(bn$3(1)).subscribe(s=>{let n=s,p=null;if(t&&(t.Errors?p=t.Errors:t.errors?p=t.errors:t.error&&t.error.Errors?p=t.error.Errors:t.error&&t.error.errors?p=t.error.errors:t.Message&&(n=t.Message)),p){
10980if(typeof p=="string")n=p;else if(Array.isArray(p)){n=this.extractErrorMessages(p),s!=n&&(i=s),this.openDialog(n,i,t?.status,r);return}}!n||n.trim()===""?this.translate.get("An un-expected error occurred.").pipe(bn$3(1)).subscribe(Nt=>{n=Nt,s!=n&&(i=s),this.openDialog(n,i,t?.status,r);}):(s!=n&&(i=s),this.openDialog(n,i,t?.status,r));});}detectAndStripStorageTag(t){let e=o.STORAGE_LIMIT_TAG;return t?.errors&&Array.isArray(t.errors)&&t.errors.includes(e)?(t.errors=t.errors.filter(i=>i!==e),true):t?.error?.errors&&Array.isArray(t.error.errors)&&t.error.errors.includes(e)?(t.error.errors=t.error.errors.filter(i=>i!==e),true):false}static{this.SEND_FAILURE_MARKERS=["DELIVERED_NOT_SAVED","CONVERSATION_SCOPED"];}extractErrorMessages(t){let e=[...new Set(t.filter(i=>i.trim()!==""&&!o.SEND_FAILURE_MARKERS.includes(i.trim())))];return e.forEach(i=>{this.toastr.error(i);}),e.join(` 10981`)}static{this.\u0275fac=function(e){return new(e||o)(M$6(ut$2),M$6(vr$1),M$6(O$5),M$6(P$2),M$6(f$5))};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var se$2=(()=>{class o{constructor(t,e,i,r){this.http=t,this.httpOptionsService=e,this.router=i,this.baseUrl=ee$1.serverBaseUrl,this.errorService=g$4(Gt),this.serviceUrl=r;}post(t,e){let i=this.baseUrl+this.serviceUrl+t;return this.http.post(i,e,this.httpOptionsService.getHttpOptions()).pipe(uc$1(r=>this.handleError(r)))}get(t,e){let i=this.baseUrl+this.serviceUrl+t;return this.http.get(i,E$7(D$6({},this.httpOptionsService.getHttpOptions()),{params:this.buildQueryParams(e)})).pipe(uc$1(r=>this.handleError(r)))}buildQueryParams(t){let e=new $t$4;return t&&Object.keys(t).forEach(i=>{t[i]!==void 0&&t[i]!==null&&(e=e.append(i,t[i]));}),e}put(t,e){let i=this.baseUrl+this.serviceUrl+t;return this.http.put(i,e,this.httpOptionsService.getHttpOptions()).pipe(uc$1(r=>this.handleError(r)))}delete(t,e){let i=this.baseUrl+this.serviceUrl+t;return this.http.delete(i,E$7(D$6({},this.httpOptionsService.getHttpOptions()),{params:this.buildQueryParams(e)})).pipe(uc$1(r=>this.handleError(r)))}handleError(t){return t.error instanceof ErrorEvent?`Client-side error: ${t.error.message}`:(`Server-side error: ${t.status} - ${t.message}`,t.status===401?this.router.url.startsWith("/authentication")||(this.errorService.openDialog("Unauthorized access",void 0,401),this.router.navigate(["/authentication/login"])):t.status===403?this.errorService.openDialog("Forbidden access",void 0,403):t.status===429?this.errorService.setError(t,"Too Many Requests. Please wait a moment before trying again."):t.status===404?"Not found":t.status===500&&("Internal server error")),PD(()=>t)}static{this.\u0275fac=function(e){Db();};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var v$3=(function(e){return e[e.Pending=0]="Pending",e[e.Released=1]="Released",e[e.Accepted=2]="Accepted",e[e.Rejected=3]="Rejected",e[e.AutoConverted=4]="AutoConverted",e[e.Expired=5]="Expired",e[e.Withdrawn=6]="Withdrawn",e})(v$3||{}),y$4=(function(e){return e[e.WantsMorePoints=0]="WantsMorePoints",e[e.Other=1]="Other",e})(y$4||{}),C$3=(function(e){return e[e.Accept=0]="Accept",e[e.Reject=1]="Reject",e[e.RemindTomorrow=2]="RemindTomorrow",e[e.DoNotRemind=3]="DoNotRemind",e})(C$3||{});var t$3={SEARCH:"SearchMigrationOffers",RECOMPUTE:"RecomputeMigrationOffers",RELEASE:"ReleaseMigrationOffer",WITHDRAW:"WithdrawMigrationOffer",GET_MINE:"GetMyMigrationOffer",RESPOND:"RespondToMigrationOffer"},j$1=(()=>{class e extends se$2{constructor(r,o,T){super(r,o,T,"migrationcampaign/");}search(r){return this.post(t$3.SEARCH,r)}recompute(){return this.post(t$3.RECOMPUTE,{})}release(r){return this.post(t$3.RELEASE,r)}withdraw(r){return this.post(t$3.WITHDRAW,r)}getMyOffer(){return this.myOffer$??=this.post(t$3.GET_MINE,{}).pipe(ve$4(r=>r?.succeeded&&r.data?.hasOffer?r.data:null),uc$1(()=>ki$3(null)),Xf$1(1)),this.myOffer$}clearMyOfferCache(){this.myOffer$=void 0;}respond(r){return this.post(t$3.RESPOND,r)}static{this.\u0275fac=function(o){return new(o||e)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var t$2="630BC857-52A5-4C90-A1F9-67D5D2A711AE";function A$5(o){return !!o&&o.toUpperCase()===t$2}var d$4=(()=>
10981{class r{constructor(t,e){this.authService=t,this.router=e;}canActivate(t,e){return this.checkAuth(t,e)}canActivateChild(t,e){return this.checkAuth(t,e)}checkAuth(t,e){if(!this.authService.isAuthenticatedUser)return this.router.navigate(["/authentication/login"]),false;let u=this.authService.getUser();if(t.data.socialLabOnly&&!A$5(u?.clientId))return this.router.navigate(["/authentication/error"]),false;let i=t.data.requiredPermission;return !i||i==""||this.authService.hasPermission(i)?true:(this.router.navigate(["/authentication/error"]),false)}static{this.\u0275fac=function(e){return new(e||r)(M$6(Us$1),M$6(G$5))};}static{this.\u0275prov=x$3({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();var i$5="sl_onboarding_tour_done",c$4=(()=>{class e{constructor(){this._active$=new Jr$1(false),this.active$=this._active$.asObservable(),this._currentIndex$=new Jr$1(0),this.currentIndex$=this._currentIndex$.asObservable(),this._stops=[],this.defaultStops=[{id:"sidebar",title:"Sidebar Navigation",description:"Access all features from the sidebar \u2014 Messages, Contacts, Promotions, and more.",targetSelector:".sidebarNav",position:"right",icon:"menu"},{id:"health-status",title:"Health Status",description:"Monitor your account health score and see what needs attention.",targetSelector:".guide-list-button-wrapper",position:"right",icon:"vital_signs"},{id:"breadcrumb",title:"Page Info",description:"Click the info icon on any page to learn how that feature works.",targetSelector:".breadcrumb-hero",position:"bottom",icon:"info"},{id:"dashboard",title:"Your Dashboard",description:"See your message stats, balance, and key metrics at a glance. Drag widgets to customize.",targetSelector:".dashboard-widgets-container",position:"top",icon:"dashboard"},{id:"header",title:"Quick Actions",description:"Access notifications, search, and settings from the top bar.",targetSelector:"app-header",position:"bottom",icon:"bolt"},{id:"settings",title:"Customize",description:"Open settings to change your theme, language, and layout preferences.",targetSelector:".profile-bar",position:"top",icon:"settings"},{id:"checklist",title:"Setup Checklist",description:"Follow the setup checklist to get the most out of SocialLab. Click the progress ring in the sidebar!",targetSelector:".onboarding-sidebar-progress",position:"right",icon:"rocket_launch"}];}get stops(){return this._stops}get currentStop(){let t=this._currentIndex$.getValue();return this._stops[t]||null}get totalStops(){return this._stops.length}isTourDone(){return localStorage.getItem(i$5)==="true"}startTour(t){this._stops=t||this.defaultStops,this._currentIndex$.next(0),this._active$.next(true);}next(){let t=this._currentIndex$.getValue();t<this._stops.length-1?this._currentIndex$.next(t+1):this.finish();}prev(){let t=this._currentIndex$.getValue();t>0&&this._currentIndex$.next(t-1);}finish(){this._active$.next(false),localStorage.setItem(i$5,"true");}skip(){this._active$.next(false),localStorage.setItem(i$5,"true");}restart(){localStorage.removeItem(i$5),this.startTour();}static{this.\u0275fac=function(r){return new(r||e)};}static{this.\u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var r$4=(function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s})(r$4||{}),_$5="*";function a$2(s,t){return {type:r$4.Trigger,name:s,definitions:t,options:{}}}function c$3(s,t=null){return {type:r$4.Animate,styles:t,timings:s}}function y$3(s,t=null){return {type:r$4.Sequence,steps:s,options:t}}function F$3(s){return {type:r$4.Style,styles:s,offset:null}}function S$5(s,t,e=null){return {type:r$4.Transition,expr:s,animation:t,options:e}}var l$3=class l{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(t=0,e=0){this.totalTime=t+e;}_onFinish(){this._finished||(this._finished=true,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=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,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;}},u$2=class u{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let e=0,n=0,o=0,h=this.players.length;h==0?queueMicrotask(()=>
10981this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++e==h&&this._onFinish();}),i.onDestroy(()=>{++n==h&&this._onDestroy();}),i.onStart(()=>{++o==h&&this._onStart();});}),this.totalTime=this.players.reduce((i,f)=>Math.max(i,f.totalTime),0);}_onFinish(){this._finished||(this._finished=true,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=true,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=true,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[]);}reset(){this.players.forEach(t=>t.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(t){let e=t*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o);});}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;}},g$3="!";var r$3=(()=>{class t{constructor(){this._icon=new Jr$1(null),this._description=new Jr$1(null),this.icon$=this._icon.asObservable(),this.description$=this._description.asObservable();}setIcon(i){this._icon.next(i);}setDescription(i){this._description.next(i);}set(i){i.icon!==void 0&&this._icon.next(i.icon),i.description!==void 0&&this._description.next(i.description);}clear(){this._icon.next(null),this._description.next(null);}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var e$4={GET_AI_ASSISTANTS:"GetAiAssistants",GET_AI_ASSISTANT_BY_ID:"GetAiAssistantById",DELETE_AI_ASSISTANT:"DeleteAiAssistant",ADD_AI_ASSISTANT:"AddAiAssistant",UPDATE_AI_ASSISTANT:"UpdateAiAssistant",ACTIVATE_AI_ASSISTANT:"ActivateAiAssistant",DEACTIVATE_AI_ASSISTANT:"DeactivateAiAssistant",PROVISION_ASSISTANT:"ProvisionAssistant",GENERATE_ASSISTANT_PREVIEW:"GenerateAssistantPreview",CREATE_ASSISTANT_FROM_WIZARD:"CreateAssistantFromWizard",QUICK_CREATE_ASSISTANT:"QuickCreateAssistant",GET_WIZARD_DATA:"GetWizardData",GET_KNOWLEDGE_LIBRARY:"GetKnowledgeLibrary",DELETE_KNOWLEDGE_LIBRARY_FILE:"DeleteKnowledgeLibraryFile",GET_ASSISTANT_FUNCTION_CATALOG:"GetAssistantFunctionCatalog",REGENERATE_ASSISTANT_CONTENT:"RegenerateAssistantContent",TEST_PROMPT:"TestPrompt",REFINE_PROMPT:"RefinePrompt",REPHRASE_KB_CONTENT:"RephraseKbContent",IMPROVE_KB_FROM_TEST:"ImproveKbFromTest",ENHANCE_PROMPT_FROM_KB:"EnhancePromptFromKb",EXTRACT_KB_FROM_UPLOADED_FILES:"ExtractKBFromUploadedFiles",
10981EXTRACT_KB_FROM_WEBSITE_URLS:"ExtractKBFromWebsiteUrls",GET_CONVERSATION_KB_ELIGIBILITY:"GetConversationKbEligibility",BUILD_KB_FROM_CONVERSATIONS:"BuildKbFromConversations",CREATE_ASSISTANT_FROM_CONVERSATIONS:"CreateAssistantFromConversations",GET_AI_USAGE_BILLING_OPTIONS:"GetAIUsageBillingOptions",ESTIMATE_OPERATION_COST:"EstimateOperationCost",ACKNOWLEDGE_OPERATION:"AcknowledgeAIOperation",GET_AI_ASSISTANT_FEATURE_OPTIONS:"GetAIAssistantFeatureOptions",GET_AVAILABLE_MODELS:"GetAvailableModels",GET_ASSISTANT_RESOLUTION_STATS:"GetAssistantResolutionStats",GET_ASSISTANT_RESOLUTION_DETAILS:"GetAssistantResolutionDetails",GET_ASSISTANT_CONVERSATION_TRANSCRIPT:"GetAssistantConversationTranscript",GET_KB_SUGGESTIONS:"GetKBSuggestions",GET_ASSISTANT_IMPROVEMENTS:"GetAssistantImprovements",GET_ASSISTANT_SETUP_QUALITY:"GetAssistantSetupQuality",GET_APPLIED_IMPROVEMENTS:"GetAppliedImprovements",ACCEPT_KB_SUGGESTION:"AcceptKBSuggestion",REJECT_KB_SUGGESTION:"RejectKBSuggestion",ACCEPT_PROMPT_SUGGESTION:"AcceptPromptSuggestion",REJECT_PROMPT_SUGGESTION:"RejectPromptSuggestion",EDIT_KB_SUGGESTION:"EditKBSuggestion",REDRAFT_KB_SUGGESTION:"RedraftKBSuggestion",SET_KB_SELF_IMPROVEMENT:"SetKBSelfImprovement",SET_IMPROVEMENT_REMINDERS:"SetImprovementReminders",SET_MESSAGE_FEEDBACK_ENABLED:"SetMessageFeedbackEnabled",SET_CONVERSATION_GRADING_ENABLED:"SetConversationGradingEnabled",SET_SALLA_PRESENTATION:"SetSallaPresentation",TRIGGER_KB_GAP_ANALYSIS:"TriggerKbGapAnalysis",GET_UNANSWERED_QUESTIONS:"GetUnansweredQuestions",ANSWER_UNANSWERED_QUESTIONS:"AnswerUnansweredQuestions",DISMISS_UNANSWERED_QUESTION:"DismissUnansweredQuestion",GET_RESOLUTION_PRICING_OPTIONS:"GetResolutionPricingOptions",RECOMPUTE_RESOLUTION:"RecomputeAssistantResolution",GET_LAST_RESOLUTION_ADVICE:"GetLastResolutionAdvice",GET_AI_ASSISTANT_ACTIVE_HOURS:"GetAiAssistantActiveHours",UPDATE_AI_ASSISTANT_ACTIVE_HOURS:"UpdateAiAssistantActiveHours",GET_ACCOUNT_IMPROVEMENT_ROI:"GetAccountImprovementRoi",GET_ACCOUNT_IMPROVEMENTS:"GetAccountImprovements",GET_ACCOUNT_RESOLUTION_SERIES:"GetAccountResolutionSeries",SUBMIT_MESSAGE_FEEDBACK:"SubmitMessageFeedback",GET_CORRECTION_CARD:"GetCorrectionCard",PREVIEW_CORRECTION:"PreviewCorrection",ACCEPT_CORRECTION:"AcceptCorrection",REDRAFT_CORRECTION:"RedraftCorrection",UNDO_CORRECTION:"UndoCorrection",GET_ASSISTANT_VOICE_SETTINGS:"GetAssistantVoiceSettings",SAVE_ASSISTANT_VOICE_SETTINGS:"SaveAssistantVoiceSettings",GET_VOICE_CHANNEL_AVAILABILITY:"GetVoiceChannelAvailability",GET_VOICE_CHANNEL_OFFER:"GetVoiceChannelOffer",GET_ASSISTANT_VOICE_KEYTERMS:"GetAssistantVoiceKeyTerms",SAVE_ASSISTANT_VOICE_KEYTERMS:"SaveAssistantVoiceKeyTerms",GET_ASSISTANT_VOICE_FILLERS:"GetAssistantVoiceFillers",SAVE_ASSISTANT_VOICE_FILLERS:"SaveAssistantVoiceFillers",GET_ASSISTANT_VOICE_PRONUNCIATIONS:"GetAssistantVoicePronunciations",SAVE_ASSISTANT_VOICE_PRONUNCIATIONS:"SaveAssistantVoicePronunciations",GENERATE_ASSISTANT_VOICE_VOCABULARY:"GenerateAssistantVoiceVocabulary",PREVIEW_VOICE_KNOWLEDGE_BASE:"PreviewVoiceKnowledgeBase",SPEAK_VOICE_REPLY:"SpeakVoiceReply",SUGGEST_VOICE_PRONUNCIATION:"SuggestVoicePronunciation",ADD_ASSISTANT_VOICE_PRONUNCIATION:"AddAssistantVoicePronunciation"},L$3=(()=>{class i extends se$2{constructor(t,s,A,E){super(t,s,A,"AIAssistant/"),this.coreService=E;}getAiAssistantById(t){return this.post(e$4.GET_AI_ASSISTANT_BY_ID,{id:t})}getAiAssistants(){return this.post(e$4.GET_AI_ASSISTANTS,{})}addAiAssistant(t){return this.post(e$4.ADD_AI_ASSISTANT,t)}updateAiAssistant(t){return this.post(e$4.UPDATE_AI_ASSISTANT,t)}activateAiAssistant(t){return this.post(e$4.ACTIVATE_AI_ASSISTANT,{id:t})}deactivateAiAssistant(t){return this.post(e$4.DEACTIVATE_AI_ASSISTANT,{id:t})}getAiAssistantActiveHours(t){return this.post(e$4.GET_AI_ASSISTANT_ACTIVE_HOURS,{id:t})}updateAiAssistantActiveHours(t){return this.post(e$4.UPDATE_AI_ASSISTANT_ACTIVE_HOURS,t)}deleteAiAssistant(t){return this.post(e$4.DELETE_AI_ASSISTANT,{id:t})}provisionAssistant(t){return this.post(e$4.PROVISION_ASSISTANT,{id:t})}generateAssistantPreview(t){return this.post(e$4.GENERATE_ASSISTANT_PREVIEW,t)}createAssistantFromWizard(t){return this.post(e$4.CREATE_ASSISTANT_FROM_WIZARD,t)}quickCreateAssistant(t){return this.post(e$4.QUICK_CREATE_ASSISTANT,t)}getWizardData(t){return this.post(e$4.GET_WIZARD_DATA,{id:t})}getKnowledgeLibrary(){return this.post(e$4.GET_KNOWLEDGE_LIBRARY,{})}deleteKnowledgeLibraryFile(t){return this.post(e$4.DELETE_KNOWLEDGE_LIBRARY_FILE,{id:t})}getAssistantFunctionCatalog(t,s,A){let E={assistantType:t,assistantTemplateKey:s,type:A};return this.post(e$4.GET_ASSISTANT_FUNCTION_CATALOG,E)}getAssistantVoiceSettings(t){return this.post(e$4.GET_ASSISTANT_VOICE_SETTINGS,{id:t})}saveAssistantVoiceSettings(t){return this.post(e$4.SAVE_ASSISTANT_VOICE_SETTINGS,t)}getVoiceChannelAvailability(){return this.post(e$4.GET_VOICE_CHANNEL_AVAILABILITY,{})}getVoiceChannelOffer(){return this.post(e$4.GET_VOICE_CHANNEL_OFFER,{})}getAssistantVoiceKeyterms(t){return this.post(e$4.GET_ASSISTANT_VOICE_KEYTERMS,{id:t})}saveAssistantVoiceKeyterms(t){return this.post(e$4.SAVE_ASSISTANT_VOICE_KEYTERMS,t)}getAssistantVoiceFillers(t){return this.post(e$4.GET_ASSISTANT_VOICE_FILLERS,{id:t})}saveAssistantVoiceFillers(t){return this.post(e$4.SAVE_ASSISTANT_VOICE_FILLERS,t)}getAssistantVoicePronunciations(t){return this.post(e$4.GET_ASSISTANT_VOICE_PRONUNCIATIONS,{id:t})}saveAssistantVoicePronunciations(t){return this.post(e$4.SAVE_ASSISTANT_VOICE_PRONUNCIATIONS,t)}generateAssistantVoiceVocabulary(t){return this.post(e$4.GENERATE_ASSISTANT_VOICE_VOCABULARY,{id:t})}previewVoiceKnowledgeBase(t,s="",A=[],E={}){return this.post(e$4.PREVIEW_VOICE_KNOWLEDGE_BASE,D$6({id:t,fileName:s,pronunciations:A},E))}speakVoiceReply(t,s,A=[]){return this.post(e$4.SPEAK_VOICE_REPLY,{id:t,text:s,pronunciations:A})}suggestVoicePronunciation(t,s){return this.post(e$4.SUGGEST_VOICE_PRONUNCIATION,{id:t,word:s})}addAssistantVoicePronunciation(t,s,A){return this.post(e$4.ADD_ASSISTANT_VOICE_PRONUNCIATION,{id:t,word:s,sayAs:A})}getAIUsageBillingOptions(){return this.get(e$4.GET_AI_USAGE_BILLING_OPTIONS)}estimateOperationCost(t,s){let A={operationType:t};return s!=null&&(A.assistantId=s),this.get(e$4.ESTIMATE_OPERATION_COST,A)}acknowledgeOperation(t){return this.post(e$4.ACKNOWLEDGE_OPERATION,{operationType:t})}getAIAssistantFeatureOptions(){return this.get(e$4.GET_AI_ASSISTANT_FEATURE_OPTIONS)}getAvailableModels(){return this.get(e$4.GET_AVAILABLE_MODELS)}getAssistantResolutionStats(t,s){return this.post(e$4.GET_ASSISTANT_RESOLUTION_STATS,{assistantId:t,windowDays:s})}
10981getAssistantResolutionDetails(t,s=30,A,E){return this.post(e$4.GET_ASSISTANT_RESOLUTION_DETAILS,{assistantId:t,windowDays:s,fromDate:A,toDate:E})}recomputeAssistantResolution(t,s,A,E=30){return this.post(e$4.RECOMPUTE_RESOLUTION,{assistantId:t,windowDays:E,fromDate:s,toDate:A})}getAssistantConversationTranscript(t,s,A=30,E){return this.post(e$4.GET_ASSISTANT_CONVERSATION_TRANSCRIPT,{assistantId:t,customerId:s,windowDays:A,statsDate:E})}getLastResolutionAdvice(t){return this.post(e$4.GET_LAST_RESOLUTION_ADVICE,{id:t})}getKBSuggestions(t,s){return this.post(e$4.GET_KB_SUGGESTIONS,{assistantId:t,status:s})}getAssistantImprovements(t){return this.post(e$4.GET_ASSISTANT_IMPROVEMENTS,{assistantId:t})}getAssistantSetupQuality(t){return this.post(e$4.GET_ASSISTANT_SETUP_QUALITY,{assistantId:t})}getAppliedImprovements(t){return this.post(e$4.GET_APPLIED_IMPROVEMENTS,{assistantId:t})}getAccountImprovementRoi(){return this.post(e$4.GET_ACCOUNT_IMPROVEMENT_ROI,{})}getAccountImprovements(){return this.post(e$4.GET_ACCOUNT_IMPROVEMENTS,{})}getAccountResolutionSeries(t=56){return this.post(e$4.GET_ACCOUNT_RESOLUTION_SERIES,{windowDays:t})}acceptKBSuggestion(t){return this.post(e$4.ACCEPT_KB_SUGGESTION,{id:t})}rejectKBSuggestion(t){return this.post(e$4.REJECT_KB_SUGGESTION,{id:t})}redraftKBSuggestion(t){return this.post(e$4.REDRAFT_KB_SUGGESTION,{id:t})}acceptPromptSuggestion(t,s,A){return this.post(e$4.ACCEPT_PROMPT_SUGGESTION,{id:t,editedQuestion:s,editedAnswer:A})}rejectPromptSuggestion(t){return this.post(e$4.REJECT_PROMPT_SUGGESTION,{id:t})}editKBSuggestion(t,s,A,E){return this.post(e$4.EDIT_KB_SUGGESTION,{id:t,draftContent:s,draftFileName:A,sections:E})}setKBSelfImprovement(t,s){return this.post(e$4.SET_KB_SELF_IMPROVEMENT,{assistantId:t,enabled:s})}setImprovementReminders(t,s){return this.post(e$4.SET_IMPROVEMENT_REMINDERS,{assistantId:t,enabled:s})}setMessageFeedbackEnabled(t,s){return this.post(e$4.SET_MESSAGE_FEEDBACK_ENABLED,{assistantId:t,enabled:s})}setConversationGrading(t,s){return this.post(e$4.SET_CONVERSATION_GRADING_ENABLED,{assistantId:t,enabled:s})}setSallaPresentation(t,s){return this.post(e$4.SET_SALLA_PRESENTATION,{assistantId:t,json:s})}triggerKbGapAnalysis(t){return this.post(e$4.TRIGGER_KB_GAP_ANALYSIS,{id:t})}getUnansweredQuestions(t){return this.post(e$4.GET_UNANSWERED_QUESTIONS,{id:t})}answerUnansweredQuestions(t){return this.post(e$4.ANSWER_UNANSWERED_QUESTIONS,{answers:t})}dismissUnansweredQuestion(t){return this.post(e$4.DISMISS_UNANSWERED_QUESTION,{id:t})}getResolutionPricingOptions(){return this.get(e$4.GET_RESOLUTION_PRICING_OPTIONS)}regenerateAssistantContent(t,s){return this.post(e$4.REGENERATE_ASSISTANT_CONTENT,{assistantId:t,wizardData:s})}testPrompt(t){return this.post(e$4.TEST_PROMPT,t)}refinePrompt(t){return this.post(e$4.REFINE_PROMPT,t)}rephraseKbContent(t){return this.post(e$4.REPHRASE_KB_CONTENT,t)}improveKbFromTest(t){return this.post(e$4.IMPROVE_KB_FROM_TEST,t)}enhancePromptFromKb(t){return this.post(e$4.ENHANCE_PROMPT_FROM_KB,t)}extractKBFromUploadedFiles(t,s,A,E){let S=new FormData;for(let _ of t)S.append("files",_,_.name);S.append("language",s),A&&S.append("assistantId",A.toString()),E&&S.append("usageSessionId",E);let C=this.coreService.getLanguage()==="en"?"en":"ar",p={headers:new St$5({Authorization:"Bearer "+(localStorage.getItem("token")??""),Language:C})};return this.http.post(this.baseUrl+this.serviceUrl+e$4.EXTRACT_KB_FROM_UPLOADED_FILES,S,p)}extractKBFromWebsiteUrls(t){return this.post(e$4.EXTRACT_KB_FROM_WEBSITE_URLS,t)}getConversationKbEligibility(){return this.get(e$4.GET_CONVERSATION_KB_ELIGIBILITY)}buildKbFromConversations(t){return this.post(e$4.BUILD_KB_FROM_CONVERSATIONS,t)}createAssistantFromConversations(t){return this.post(e$4.CREATE_ASSISTANT_FROM_CONVERSATIONS,t)}submitMessageFeedback(t,s){return this.post(e$4.SUBMIT_MESSAGE_FEEDBACK,{messageId:t,note:s})}getCorrectionCard(t){return this.get(e$4.GET_CORRECTION_CARD,t)}previewCorrection(t){return this.post(e$4.PREVIEW_CORRECTION,{suggestionId:t})}acceptCorrection(t){return this.post(e$4.ACCEPT_CORRECTION,{suggestionId:t})}redraftCorrection(t){return this.post(e$4.REDRAFT_CORRECTION,{feedbackId:t})}undoCorrection(t){return this.post(e$4.UNDO_CORRECTION,{suggestionId:t})}static{this.\u0275fac=function(s){return new(s||i)(M$6(ED),M$6(vt$3),M$6(G$5),M$6(d$6))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var S$4=(()=>{class e{constructor(t){this.aiAssistantService=t,this.itemsSubject=ne
10981w Jr$1([]),this.loadingSubject=new Jr$1(false),this.failedSubject=new Jr$1(false),this.items$=this.itemsSubject.asObservable(),this.count$=this.itemsSubject.pipe(ve$4(i=>i.length)),this.loading$=this.loadingSubject.asObservable(),this.failed$=this.failedSubject.asObservable(),this.loaded=false;}loadOnce(){this.loaded||this.refresh().subscribe();}refresh(){return aE(()=>(this.loaded=true,this.loadingSubject.next(true),this.aiAssistantService.getAccountImprovements())).pipe(ve$4(t=>t?.succeeded&&Array.isArray(t.data)?t.data:[]),Uf$1(t=>{this.itemsSubject.next(t),this.failedSubject.next(false);}),uc$1(()=>(this.failedSubject.next(true),ki$3(this.itemsSubject.getValue()))),Xr$1(()=>this.loadingSubject.next(false)))}countForAssistant(t){return this.itemsSubject.getValue().filter(i=>i.assistantId===t).length}static{this.\u0275fac=function(i){return new(i||e)(M$6(L$3))};}static{this.\u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var _$4=(function(A){return A.USER_COUNT="USER_COUNT",A.MESSAGE_LIMIT="MESSAGE_LIMIT",A.STORAGE_LIMIT="STORAGE_LIMIT",A.AUTO_REPLY="AUTO_REPLY",A.PHONE_LINKS="PHONE_LINKS",A.CONTACT_IMPORT="CONTACT_IMPORT",A.WHATSAPP_QR="WHATSAPP_QR",A.WHATSAPP_API="WHATSAPP_API",A.INSTAGRAM_LINK="INSTAGRAM_LINK",A.TIKTOK_LINK="TIKTOK_LINK",A.ACCOUNT_MANAGER="ACCOUNT_MANAGER",A.MESSAGING_PLATFORM="MESSAGING_PLATFORM",A.BULK_CAMPAIGNS="BULK_CAMPAIGNS",A.RICH_TEMPLATES="RICH_TEMPLATES",A.MONTHLY_REPORTS="MONTHLY_REPORTS",A.AI_AGENT="AI_AGENT",A.WHATSAPP_CATALOG="WHATSAPP_CATALOG",A.MOYASAR_PAYMENT="MOYASAR_PAYMENT",A.mAireply="mAireply",A.minreply="minreply",A.mttreply="mttreply",A.yaireply="yaireply",A.yinreply="yinreply",A.yttreply="yttreply",A.odoo_create_contact="odoo_create_contact",A.odoo_create_ticket="odoo_create_ticket",A.SEND_TEMPLATE="SEND_TEMPLATE",A.CHAT_WIDGET="CHAT_WIDGET",A.SALLA_ORDER_INQUIRY="SALLA_ORDER_INQUIRY",A.ZID_ORDER_INQUIRY="ZID_ORDER_INQUIRY",A.SMS_FROM_SOCIALLAB="SMS_FROM_SOCIALLAB",A.X_DM_LINK="X_DM_LINK",A.PARTNER_API="PARTNER_API",A.MESSENGER_LINK="MESSENGER_LINK",A.CALL_CENTER="CALL_CENTER",A.AI_CALL_AGENT="AI_CALL_AGENT",A.TICKETING="TICKETING",A.ADVANCED_ANALYTICS="ADVANCED_ANALYTICS",A.CSAT="CSAT",A.IG_COMMENTS_AI="IG_COMMENTS_AI",A.PAYMOB_PAYMENT="PAYMOB_PAYMENT",A.N8N="N8N",A.AI_REPLY_ASSISTANT="AI_REPLY_ASSISTANT",A.AUTO_ASSIGNMENT="AUTO_ASSIGNMENT",A.CALENDAR_BOOKINGS="CALENDAR_BOOKINGS",A.COMM_QUALITY="COMM_QUALITY",A.CONTACT_MANAGEMENT="CONTACT_MANAGEMENT",A.DEPARTMENTS="DEPARTMENTS",A.EMPLOYEE_PERFORMANCE="EMPLOYEE_PERFORMANCE",A.EXTERNAL_BOOKING_LINKS="EXTERNAL_BOOKING_LINKS",A.FORMS="FORMS",A.INTERACTIVE_MESSAGES="INTERACTIVE_MESSAGES",A.INTERNAL_NOTES="INTERNAL_NOTES",A.KEYWORD_REPLY="KEYWORD_REPLY",A.MANUAL_ASSIGNMENT="MANUAL_ASSIGNMENT",A.NOTIFICATION_AUTOMATION="NOTIFICATION_AUTOMATION",A.SOCIAL_COMMERCE_ORDERS="SOCIAL_COMMERCE_ORDERS",A.TAGS="TAGS",A.TASKBOARD="TASKBOARD",A.TEMPLATE_VARIABLES="TEMPLATE_VARIABLES",A.UNSUBSCRIBE_MGMT="UNSUBSCRIBE_MGMT",A.LEAD_QUALIFICATION="LEAD_QUALIFICATION",A.EMAIL_LINK="EMAIL_LINK",A.EMAIL_MESSAGE="EMAIL_MESSAGE",A.EMAIL_CAMPAIGN_RECIPIENT="EMAIL_CAMPAIGN_RECIPIENT",A.EMAIL_CAMPAIGNS="EMAIL_CAMPAIGNS",A.SOCIAL_PUBLISHING="SOCIAL_PUBLISHING",A.SOCIAL_POST_PUBLISH="SOCIAL_POST_PUBLISH",A.TELEGRAM_LINK="TELEGRAM_LINK",A})(_$4||{});var N=["/dashboard","/apps/statistics","/apps/messages","/apps/promotions","/apps/contacts","/apps/whatsapp","/apps/settings","/help"];function h$2(a,s){return s!=="easy"?a:a.filter(e=>!!e.route&&N.includes(e.route))}function f$4(a){return [...new Set(a.map(s=>s.featureCode).filter(s=>!!s))]}function _$3(a,s){return a.filter(e=>!e.featureCode||s.has(e.featureCode))}var k=[{navCap:"Overview",permissions:[]},{displayName:"Dashboard",iconName:"analytics",route:"/dashboard",permissions:[]},{displayName:"We prepared your account",iconName:"auto_awesome",route:"/apps/setup-journey",permissions:[]},{displayName:"Statistics",iconName:"monitoring",route:"/apps/statistics",permissions:[]},{iconName:"settings",displayName:"Settings",route:"/apps/settings",permissions:["Send_Messages"]},{iconName:"support_agent",displayName:"Support Center",route:"/apps/support-tickets",permissions:[],isNew:true},{iconName:"lightbulb",displayName:"Suggestions Board",route:"/apps/suggestions-board",permissions:[],isNew:true},{displayName:"Social Lab Management",iconName:"dashboard",route:"/admin/social-lab-management",permissions:["Read_Clients"]},{navCap:"Conversations",permissions:[]}
10981,{iconName:"chat_bubble",displayName:"Messages",route:"/apps/messages",permissions:["Read_Messages"]},{displayName:"Promotions",iconName:"schedule",route:"/apps/promotions",permissions:["Read_Promotions"]},{iconName:"publish",displayName:"Publishing",route:"/apps/publishing",permissions:["Manage_SocialPosts"],featureCode:_$4.SOCIAL_PUBLISHING,isNew:true},{iconName:"phone",displayName:"Contacts",route:"/apps/contacts",permissions:["Read_Contacts"]},{displayName:"Tickets",iconName:"confirmation_number",route:"/apps/ticket-management",permissions:[]},{displayName:"Follow-up Reminders",iconName:"alarm",route:"/apps/follow-up-reminders",permissions:[]},{displayName:"AI",iconName:"auto_awesome",route:"/apps/ai",permissions:[],isNew:true},{navCap:"Channels",permissions:[]},{iconName:"whatsapp",displayName:"WhatsApp",permissions:["Read_Templates"],route:"/apps/whatsapp"},{iconName:"instagram",displayName:"Instagram",route:"/apps/instagram",permissions:["Read_Templates"]},{iconName:"messenger",displayName:"Messenger",route:"/apps/messenger",permissions:["Read_Templates"]},{iconName:"tiktok",displayName:"TikTok",route:"/apps/tiktok",permissions:["Read_Templates"]},{iconName:"x",displayName:"X (Twitter)",route:"/apps/x",permissions:["Read_Templates"]},{iconName:"telegram",displayName:"Telegram",route:"/apps/telegram",permissions:["Read_Messages","Manage_TelegramSettings"],featureCode:_$4.TELEGRAM_LINK,isNew:true},{iconName:"mail",displayName:"Email channel",route:"/apps/email",permissions:["Read_Templates","Read_Promotions","Manage_EmailSettings"],featureCode:_$4.EMAIL_LINK,isNew:true},{navCap:"E-commerce",permissions:[]},{iconName:"salla",displayName:"Salla",permissions:["Read_Products"],route:"/apps/salla"},{iconName:"zid",displayName:"Zid",permissions:["Read_Products"],route:"/apps/zid"},{iconName:"request_quote",displayName:"Orders Management",route:"/apps/orders-management",permissions:["Read_Products"]},{navCap:"Tools & Settings",permissions:[]},{displayName:"Calendar",iconName:"calendar_month",route:"/apps/calendar",permissions:["Read_Calendar"]},{displayName:"Taskboard",iconName:"checklist",route:"/apps/taskboard",permissions:[]},{displayName:"Files",iconName:"folder",route:"/apps/files-manager",permissions:["Read_Files"]},{displayName:"Plans",iconName:"workspace_premium",route:"/apps/pricing",permissions:[],isNew:true},{displayName:"Lead Qualification",iconName:"rule",route:"/apps/lead-qualification",permissions:["Manage_Templates"],featureCode:_$4.LEAD_QUALIFICATION,isNew:true},{navCap:"Help & More",permissions:[]},{displayName:"Social Lab Updates",iconName:"auto_awesome",route:"apps/whats-new",permissions:[]},{iconName:"menu_book",displayName:"Knowledge Base",route:"/help",external:true,permissions:[]},{displayName:"Blog",iconName:"donut_large",external:true,route:"https://blog.sociallab.sa/",permissions:[]},{displayName:"More Services",iconName:"add_shopping_cart",route:"apps/moreServices",permissions:[]},{displayName:"Contact Us",iconName:"phone",route:"contact-us",permissions:[]},{displayName:"FAQ",iconName:"help",route:"/faq"},{displayName:"Call Center",iconName:"call",route:"/apps/call-center",permissions:["CallCenter"]}];var S$3=["/dashboard","/apps/statistics","/apps/settings"],w$2=["/admin/social-lab-management"];var C$2=[{key:"default",name:"Default",icon:"flash_on",description:"Essential items for general use",routes:["/dashboard","/apps/messages","/apps/promotions","/apps/contacts","/apps/whatsapp","/apps/ticket-management","/apps/calendar","/apps/taskboard","/apps/settings","/help"]},{key:"ecommerce",name:"E-Commerce Focus",icon:"store",description:"Optimized for online store owners",routes:["/dashboard","/apps/messages","/apps/salla","/apps/zid","/apps/orders-management","/apps/contacts","/apps/promotions","/apps/settings"]},{key:"marketing",name:"Marketing Pro",icon:"campaign",description:"For marketing teams and campaigns",routes:["/dashboard","/apps/promotions","/apps/messages","/apps/whatsapp","/apps/instagram","/apps/tiktok","/apps/contacts","/apps/files-manager","/apps/settings"]},{key:"social-media",name:"Social Media Manager",icon:"share",description:"For social media team
10981s",routes:["/dashboard","/apps/messages","/apps/whatsapp","/apps/instagram","/apps/tiktok","/apps/contacts","/apps/ticket-management","/apps/calendar","/apps/taskboard","/apps/settings"]},{key:"minimal",name:"Minimal",icon:"remove_circle",description:"Only the essentials",routes:["/dashboard","/apps/messages","/apps/contacts","/apps/settings"]},{key:"everything",name:"Everything",icon:"select_all",description:"Show all available items",routes:[]}],E$2=[{key:"messaging",name:"Messaging",icon:"chat_bubble",routes:["/apps/messages","/apps/whatsapp","/apps/ticket-management","/apps/calendar","/apps/taskboard"]},{key:"ecommerce",name:"E-Commerce",icon:"store",routes:["/apps/salla","/apps/zid","/apps/orders-management"]},{key:"social-media",name:"Social Media",icon:"share",routes:["/apps/instagram","/apps/messenger","/apps/tiktok","/apps/x","/apps/telegram","/apps/whatsapp"]},{key:"marketing",name:"Marketing",icon:"campaign",routes:["/apps/promotions","/apps/email","/apps/contacts","/apps/files-manager"]},{key:"analytics",name:"Analytics & Info",icon:"analytics",routes:["/dashboard","/apps/statistics","apps/whats-new","https://blog.sociallab.sa/"]},{key:"configuration",name:"Configuration",icon:"settings",routes:["/apps/settings","/faq","contact-us"]}],M$4="default";var i$4="menuPreferences",A$4=(()=>{class a extends se$2{constructor(e,p,r){super(e,p,r,"MenuPreferences/");}getCached(){try{let e=localStorage.getItem(i$4);return e?JSON.parse(e):null}catch(e){return null}}
10981getFromApi(){return this.get("").pipe(Uf$1(e=>{e.succeeded&&e.data&&localStorage.setItem(i$4,JSON.stringify(e.data));}))}save(e,p){let r={presetName:e,menuItems:p};return this.put("",r).pipe(Uf$1(m=>{m.succeeded&&m.data&&localStorage.setItem(i$4,JSON.stringify(m.data));}))}reset(){return this.delete("").pipe(Uf$1(e=>{e.succeeded&&localStorage.removeItem(i$4);}))}clearCache(){localStorage.removeItem(i$4);}static{this.\u0275fac=function(p){return new(p||a)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})(); 10982var v$2="__slNavDepth",I$2=(()=>{class i{constructor(){this.router=g$4(G$5),this.location=g$4(bv),this.isBrowser=_$(g$4(So$3)),this.depth=Es$1(0),this.pending=null,this.isBrowser&&(this.router.events.pipe(Yt$5(t=>t instanceof te$6)).subscribe(t=>{this.pending={id:t.id,lengthBefore:window.history.length,restoredDepth:t.navigationTrigger==="popstate"?this.readStampedDepth():null};}),this.router.events.pipe(Yt$5(t=>t instanceof j$2||t instanceof le$2)).subscribe(()=>this.pending=null),this.router.events.pipe(Yt$5(t=>t instanceof k$3)).subscribe(t=>{let e=this.pending?.id===t.id?this.pending:null;this.pending=null,e===null||(e.restoredDepth!==null?this.depth.set(e.restoredDepth):window.history.length>e.lengthBefore&&this.depth.update(w=>w+1)),this.stampCurrentEntry();}));}canGoBack(){return this.depth()>0}back(t){if(this.canGoBack()){this.location.back();return}Array.isArray(t)?this.router.navigate(t):t&&this.router.navigateByUrl(t);}readStampedDepth(){let t=window.history.state?.[v$2];return typeof t=="number"?t:0}stampCurrentEntry(){let t=E$7(D$6({},window.history.state??{}),{[v$2]:this.depth()});window.history.replaceState(t,"");}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var p$6=(function(i){return i[i.NewestFirst=0]="NewestFirst",i[i.OldestFirst=1]="OldestFirst",i})(p$6||{});var _$2=(function(i){return i[i.None=0]="None",i[i.All=1]="All",i[i.WithConversationsOnly=2]="WithConversationsOnly",i})(_$2||{});var A$3=(function(i){return i[i.Sms=1]="Sms",i[i.Voice=2]="Voice",i})(A$3||{});var e$3={SIGN_UP:"Signup",SEND_SIGNUP_VERIFICATION:"SendSignupVerification",VERIFY_SIGNUP_CODE:"VerifySignupCode",COMPLETE_SIGNUP_FB:"CompleteSignupFB",UPDATE:"UpdateClient",DELETE:"DeleteCleint",GET_BY_ID:"GetClientById",GET_DETAILS:"GetClientDetails",SEARCH:"GetClients",STOP_TEMPLATES:"StopSendingTemplates",START_TEMPLATES:"StartSendingTemplates",DEACTIVATE_CLIENT:"DeactivateClient",DEACTIVATE_CLIENT_BY_ID:"DeactivateClientById",ACTIVATE_CLIENT_BY_ID:"ActivateClientById",DEREGISTER_WA:"DeregisterWhatsApp",REQUEST_WA_SMS_CODE:"RequestWhatsAppSMSCode",VERIFY_WA_SMS_CODE:"VerifyWhatsAppSMSCode",CONVERSATION_ANALYTICS:"ConversationAnalytics",GET_CLIENT_STATUS:"GetClientStatus",DELETE_WHATSAPP_API:"DeleteWhatsAppAPI",REGISTER_WHATSAPP_PHONE_NUMBER:"RegisterWhatsAppPhoneNumber",DEREGISTER_WHATSAPP_PHONE_NUMBER:"DeregisterWhatsAppPhoneNumber",RETRY_WHATSAPP_CONNECT:"RetryWhatsAppConnect",SYNC_WHATSAPP_CONNECTION_STATE:"SyncWhatsAppConnectionState",RECORD_WHATSAPP_SIGNUP_EVENT:"RecordWhatsAppSignupEvent",ADMIN_REQUEST_PHONE_VERIFICATION_CODE:"AdminRequestPhoneVerificationCode",ADMIN_VERIFY_PHONE_CODE:"AdminVerifyPhoneCode",GET_PHONE_SUBSCRIBED_APPS:"GetPhoneSubscribedApps",SET_PHONE_SUBSCRIBED_APPS:"SetPhoneSubscribedApps",UPDATE_TEMPLATES_DAILY_LIMIT:"UpdateTemplatesDailyLimit",UPDATE_WHATSAPP_IDS:"UpdateWhatsAppIds",UPDATE_CLIENT_CATALOG:"UpdateClientCatalog",UPDATE_CLIENT_CONTACT:"UpdateClientContact",CAN_USE_FEATURE:"CanUseFeature",UPDATE_BILLING_MODE:"UpdateBillingMode",ADD_CUSTOMER_TO_CLIENT_MAPPING:"AddCustomerToClientMapping",REMOVE_CUSTOMER_FROM_CLIENT_MAPPING:"RemoveCustomerFromClientMapping",GET_MAPPED_CUSTOMER_COMMENTS:"GetMappedCustomerComments",GET_MAPPED_CUSTOMERS:"GetMappedCustomers",GET_CLIENT_NOTES:"GetClientNotes",ADD_CLIENT_NOTE:"AddClientNote",UPDATE_CLIENT_NOTE:"UpdateClientNote",DELET
10982E_CLIENT_NOTE:"DeleteClientNote",GET_ASSIGNABLE_ACCOUNT_MANAGERS:"GetAssignableAccountManagers",ASSIGN_ACCOUNT_MANAGER:"AssignAccountManager",ASSIGN_FOLLOWER:"AssignFollower",GET_META_MESSAGING_LIMIT:"GetMetaMessagingLimit",GET_META_PHONE_NUMBERS:"GetMetaPhoneNumbers",GET_ACTIVE_WHATSAPP_CLIENTS:"GetActiveWhatsAppClients",INITIATE_COEXISTENCE_SYNC:"InitiateCoexistenceSync",GET_COEXISTENCE_SYNC_STATUS:"GetCoexistenceSyncStatus",APPLY_COEXISTENCE_CONTACT_NAMES:"ApplyCoexistenceContactNames"},b$1=(()=>{class i extends se$2{constructor(t,s,r){super(t,s,r,"Client/");}signup(t){return this.post(e$3.SIGN_UP,{businessName:t.businessName,email:t.email,countryCode:t.countryCode,phoneNumber:t.phoneNumber,category:t.category,password:t.password,planId:t.planId,couponCode:t.couponCode,useSameContactForUser:t.useSameContactForUser,userName:t.userName,userEmail:t.userEmail,userCountryCode:t.userCountryCode,userPhoneNumber:t.userPhoneNumber,referralSource:t.referralSource,referralSourceOther:t.referralSourceOther,websiteUrl:t.websiteUrl,instagramHandle:t.instagramHandle,whatWeSell:t.whatWeSell,topQuestions:t.topQuestions,preferredDialect:t.preferredDialect,captchaToken:t.captchaToken,verificationToken:t.verificationToken})}sendSignupVerification(t){return this.post(e$3.SEND_SIGNUP_VERIFICATION,t)}verifySignupCode(t,s){return this.post(e$3.VERIFY_SIGNUP_CODE,{email:t,code:s})}completeSignupFB(t,s,r,E){return this.post(e$3.COMPLETE_SIGNUP_FB,{code:t,clientId:s,phoneId:r,wabaId:E})}update(t){return this.post(e$3.UPDATE,{id:t.id,businessName:t.businessName,email:t.email,website:t.website,countryCode:t.countryCode,phoneNumber:t.phoneNumber,displayName:t.displayName,category:t.category,description:t.description,createdOn:t.createdOn,isActive:t.isActive,pinCode:t.pinCode,whatsAppBusinessPhoneNumberId:t.whatsAppBusinessPhoneNumberId,whatsAppBusinessAccountId:t.whatsAppBusinessAccountId,whatsAppBusinessId:t.whatsAppBusinessId,appName:t.appName})}deleteClient(t){return this.post(e$3.DELETE,{id:t})}getClientById(t){return this.post(e$3.GET_BY_ID,{id:t})}getClientDetails(){return this.post(e$3.GET_DETAILS,{})}searchClients(t,s,r,E,T,I=null,P=null,h=null,d=null,l=null,O=p$6.NewestFirst,c=null,D=null){return this.post(e$3.SEARCH,{partner:t,isActive:s,searchInput:r,pageNumber:E,pageSize:T,category:I,addedSource:P,billingMode:h,createdFrom:d,createdTo:l,sortOrder:O,accountManagerUserId:c,followerUserId:D})}stopSendingTemplates(){return this.post(e$3.STOP_TEMPLATES,{})}startSendingTemplates(){return this.post(e$3.START_TEMPLATES,{})}deactivateClient(){return this.post(e$3.DEACTIVATE_CLIENT,{})}deactivateClientById(t){return this.post(e$3.DEACTIVATE_CLIENT_BY_ID,{id:t})}activateClientById(t){return this.post(e$3.ACTIVATE_CLIENT_BY_ID,{id:t})}deregisterWhatsApp(){return this.post(e$3.DEREGISTER_WA,{})}requestWASMSCode(t=A$3.Sms){return this.post(e$3.REQUEST_WA_SMS_CODE,{method:t})}verifyWASMSCode(t){return this.post(e$3.VERIFY_WA_SMS_CODE,{code:t})}recordWhatsAppSignupEvent(t){return this.post(e$3.RECORD_WHATSAPP_SIGNUP_EVENT,t)}syncWhatsAppConnectionState(t){return this.post(e$3.SYNC_WHATSAPP_CONNECTION_STATE,{id:t})}adminRequestPhoneVerificationCode(t,s){return this.post(e$3.ADMIN_REQUEST_PHONE_VERIFICATION_CODE,{clientId:t,method:s})}adminVerifyPhoneCode(t,s){return this.post(e$3.ADMIN_VERIFY_PHONE_CODE,{clientId:t,code:s})}conversationAnalytics(){return this.post(e$3.CONVERSATION_ANALYTICS,{})}getClientStatus(t,s,r){return this.post(e$3.GET_CLIENT_STATUS,{clientId:t,pageSize:s,pageNumber:r})}deleteWhatsAppAPI(t){return this.post(e$3.DELETE_WHATSAPP_API,{id:t})}registerWhatsAppPhoneNumber(t){return this.post(e$3.REGISTER_WHATSAPP_PHONE_NUMBER,{id:t})}deregisterWhatsAppPhoneNumber(t){return this.post(e$3.DEREGISTER_WHATSAPP_PHONE_NUMBER,{id:t})}retryWhatsAppConnect(t){return this.post(e$3.RETRY_WHATSAPP_CONNECT,{id:t})}getPhoneSubscribedApps(t){return this.post(e$3.GET_PHONE_SUBSCRIBED_APPS,{id:t})}setPhoneSubscribedApps(t){return this.post(e$3.SET_PHONE_SUBSCRIBED_APPS,{id:t})}updateTemplatesDailyLimit(t,s){return this.post(e$3.UPDATE_TEMPLATES_DAILY_LIMIT,{clientId:t,dailyLimit:s})}updateWhatsAppIds(t,s,r){return this.post(e$3.UPDATE_WHATSAPP_IDS,{clientId:t,whatsAppBusinessPhoneNumberId:s,whatsAppBusinessAccountId:r})}updateClientCatalog(t,s,r,E){return this.post(e$3.UPDATE_CLIENT_CATALOG,{clientId:t,catalogId:s,catalogUrl:r,catalogSpreadsheetId:E})}updateClientContact(t,s,r,E,T){return this.post(e$3.UPDATE_CLIENT_CONTACT,{clientId:t,email:s.toLowerCase().trim(),phoneNumber:r,website:E,catalogId:T})}canUseFeature(t){return this.post(e$3.CAN_USE_FEATURE,{id:t}).pipe(ve$4(s=>s.succeeded&&s.data===true))}canUseFeatureWithReason(t){return this.post(e$3.CAN_USE_FEATURE,{id:t}).pipe(ve$4(s=>{let r=s.succeeded&&s.data===true,E=r?null:s.errors?.[0]??null;return {canUse:r,reason:E}}))}updateBillingMode(t,s,r){return this.post(e$3.UPDATE_BILLING_MODE,{clientId:t,billingMode:s,targetPlanId:r})}getBillingConsistencyReport(){return this.get("GetBillingConsistencyReport")}getBillingModeSwitchTargets(t,s){return this.post("GetBillingModeSwitchTargets",{clientId:t,billingMode:s})}getPointsMigrationPreview(t=null){return this.post("GetPointsMigrationPreview",{chosenPlanId:t})}migrateToPointsSystem(t=null){return this.post("MigrateToPointsSystem",{chosenPlanId:t})}addCustomerToClientMapping(t,s){return this.post(e$3.ADD_CUSTOMER_TO_CLIENT_MAPPING,{customerId:t,clientId:s})}removeCustomerFromClientMapping(t,s){return this.post(e$3.REMOVE_CUSTOMER_FROM_CLIENT_MAPPING,{customerId:t,clientId:s})}getMappedCustomerComments(t,s,r){return this.post(e$3.GET_MAPPED_CUSTOMER_COMMENTS,{clientId:t,pageNumber:s,pageSize:r})}getMappedCustomers(t){return this.post(e$3.GET_MAPPED_CUSTOMERS,{id:t})}getClientNotes(t){return this.post(e$3.GET_CLIENT_NOTES,{clientId:t})}addClientNote(t,s){return this.post(e$3.ADD_CLIENT_NOTE,{clientId:t,text:s})}updateClientNote(t,s){return this.post(e$3.UPDATE_CLIENT_NOTE,{id:t,text:s})}deleteClientNote(t){return this.post(e$3.DELETE_CLIENT_NOTE,{id:t})}getAssignableAccountManagers(){return this.post(e$3.GET_ASSIGNABLE_ACCOUNT_MANAGERS,{})}assignAccountManager(t,s){return this.post(e$3.ASSIGN_ACCOUNT_MANAGER,{clientId:t,accountManagerUserId:s})}assignFollower(t,s){return this.post(e$3.ASSIGN_FOLLOWER,{clientId:t,followerUserId:s})}getMetaMessagingLimit(t){return this.post(e$3.GET_META_MESSAGING_LIMIT,{id:t})}getMetaPhoneNumbers(t){return this.post(e$3.GET_META_PHONE_NUMBERS,{id:t})}getActiveWhatsAppClients(){return this.post(e$3.GET_ACTIVE_WHATSAPP_CLIENTS,{})}initiateCoexistenceSync(t,s=_$2.None){return this.post(e$3.INITIATE_COEXISTENCE_SYNC,{id:t,contactSyncMode:s,syncContacts:s===_$2.All})}applyCoexistenceContactNames(t){return this.post(e$3.APPLY_COEXISTENCE_CONTACT_NAMES,{id:t})}getCoexistenceSyncStatus(t){return this.post(e$3.GET_COEXISTENCE_SYNC_STATUS,{id:t})}static{this.\u0275fac=function(s){return new(s||i)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var S$2=new Set([_$4.EMAIL_LINK]),j=(()=>{class e{constructor(t,i){this.clientsService=t,this.authService=i,this.answered=new Map,this.inFlight=new Map,i.loginEvent$.subscribe(()=>this.reset());}canUse(t){if(S$2.has(t)&&A$5(this.authService.getUser()?.clientId))return ki$3(true);let i=this.answered.get(t);if(i!==void 0)return ki$3(i);let s=this.inFlight.get(t);if(s)return s;let c=this.clientsService.canUseFeature(t).pipe(Uf$1(w=>this.answered.set(t,w)),uc$1(()=>ki$3(false)),Xr$1(()=>this.inFlight.delete(t)),Xf$1({bufferSize:1,refCount:false}));return this.inFlight.set(t,c),c}reset(){this.answered.clear(),this.inFlight.clear();}static{this.\u0275fac=function(i){return new(i||e)(M$6(b$1),M$6(Us$1))};}static{this.\u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();
10982var e$2={LOGIN:"LoginToTikTokBusiness",LOGOUT:"LogoutFromTikTokBusiness",CREATE_AUTO_MESSAGE:"CreateTikTokBusinessAutoMessage",GET_ALL_AUTO_MESSAGES:"GetAllTikTokBusinessAutoMessages",DELETE_AUTO_MESSAGE:"DeleteTikTokBusinessAutoMessage",UPDATE_AUTO_MESSAGE_STATUS:"UpdateTikTokBusinessAutoMessageStatus",UPDATE_AUTO_MESSAGE:"UpdateTikTokBusinessAutoMessage",GET_ACCOUNT:"GetTikTokBusinessAccount",GET_ALL_TIKTOK_ACCOUNTS:"AdminGetAllTikTokBusinessAccounts",GET_USER:"TikTokBusinessGetUserInfo",ADMIN_GET_USER:"AdminTikTokBusinessGetUserInfo",LOGOUT_FROM_TIKTOK_ACCOUNT_ADMIN:"AdminLogoutFromTikTokBusiness",DELETE_TIKTOK_ACCOUNT_ADMIN:"AdminDeleteTikTokBusiness",GET_VIDEOS:"GetTikTokVideos",GET_VIDEO_COMMENTS:"GetTikTokVideoComments",REPLY_TO_COMMENT:"ReplyToTikTokComment",GET_COMMENT_SETTINGS:"GetTikTokCommentSettings",UPDATE_COMMENT_SETTINGS:"UpdateTikTokCommentSettings",GET_COMMENTS_BY_STATUS:"GetTikTokCommentsByStatus",GET_COMMENTS_AWAITING_REPLY_COUNT:"GetTikTokCommentsAwaitingReplyCount",REFRESH_COMMENTS:"RefreshTikTokComments",SET_COMMENT_NO_REPLY_NEEDED:"SetTikTokCommentNoReplyNeeded"},C$1=(()=>{class s extends se$2{constructor(T,t,o){super(T,t,o,"TikTokBusiness/"),this.controller="TikTokBusiness/";}loginToTikTokBusiness(T){return this.post(e$2.LOGIN,{code:T})}logoutFromTikTokBusiness(){return this.delete(e$2.LOGOUT,{})}createTikTokBusinessAutoMessage(T){return this.post(e$2.CREATE_AUTO_MESSAGE,T)}getAllTikTokBusinessAutoMessages(){return this.get(e$2.GET_ALL_AUTO_MESSAGES)}updateTikTokBusinessAutoMessageStatus(T){return this.post(e$2.UPDATE_AUTO_MESSAGE_STATUS,T)}updateTikTokBusinessAutoMessage(T){return this.post(e$2.UPDATE_AUTO_MESSAGE,T)}deleteTikTokBusinessAutoMessage(T){return this.delete(e$2.DELETE_AUTO_MESSAGE,T)}getTikTokBusinessAccount(){return this.get(e$2.GET_ACCOUNT)}getAllTikTokAccounts(){return this.get(e$2.GET_ALL_TIKTOK_ACCOUNTS,{})}getTikTokBusinessUser(){return this.post(e$2.GET_USER,{})}adminGetTikTokBusinessUser(T){return this.post(e$2.ADMIN_GET_USER,{id:T})}logoutFromTikTokAccountAdmin(T){return this.delete(e$2.LOGOUT_FROM_TIKTOK_ACCOUNT_ADMIN,{id:T})}deleteTikTokAccountAdmin(T){return this.delete(e$2.DELETE_TIKTOK_ACCOUNT_ADMIN,{id:T})}getTikTokVideos(T,t){return this.get(e$2.GET_VIDEOS,{pageNumber:T,pageSize:t})}getTikTokVideoComments(T){return this.get(e$2.GET_VIDEO_COMMENTS,{videoId:T})}replyToTikTokComment(T){return this.post(e$2.REPLY_TO_COMMENT,T)}getTikTokCommentSettings(){return this.get(e$2.GET_COMMENT_SETTINGS)}updateTikTokCommentSettings(T){return this.post(e$2.UPDATE_COMMENT_SETTINGS,T)}getTikTokCommentsByStatus(T,t,o){return this.get(e$2.GET_COMMENTS_BY_STATUS,{status:T,pageNumber:t,pageSize:o})}getTikTokCommentsAwaitingReplyCount(){return this.get(e$2.GET_COMMENTS_AWAITING_REPLY_COUNT)}refreshTikTokComments(){return this.post(e$2.REFRESH_COMMENTS,{})}setTikTokCommentNoReplyNeeded(T){return this.post(e$2.SET_COMMENT_NO_REPLY_NEEDED,T)}static{this.\u0275fac=function(t){return new(t||s)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:s,factory:s.\u0275fac,providedIn:"root"});}}return s})();var s$1=(function(t){return t[t.SubscriptionLimits=1]="SubscriptionLimits",t[t.PointsBased=2]="PointsBased",t})(s$1||{});var f$3={GET_APP_INIT:"GetAppInit"},d$3=(()=>{class i extends se$2{constructor(t,a,u){super(t,a,u,"AppInit/"),this._appInitData$=new Jr$1(null),this.appInitData$=this._appInitData$.asObservable();}loadAppInit(){return this.get(f$3.GET_APP_INIT).pipe(Uf$1(t=>{t.succeeded&&t.data&&this._appInitData$.next(t.data);}))}getAppInitData(){return this._appInitData$.getValue()}patchAppInitData(t){let a=this._appInitData$.getValue();a&&this._appInitData$.next(D$6(D$6({},a),t));}isPaymobActive(){return (this._appInitData$.getValue()?.activePaymentGateway??"Moyasar").toLowerCase()==="paymob"}static{this.\u0275fac=function(a){return new(a||i)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var y$2=(()=>{class i{constructor(t,s,v){this.tikTokService=t,this.appInitService=s,this.countSubject=new Jr$1(0),this.count$=this.countSubject.asObservable(),this.loaded=false,this.isPointsBased=false,v.tikTokCommentReceived$.pipe(Bf$1(3e3)).subscribe(()=>this.refresh().subscribe());}loadOnce(){this.loaded||(this.loaded=true,this.appInitService.appInitData$.pipe(Yt$5(t=>!!t?.clientStatus),bn$3(1)).subscribe(t=>{this.isPointsBased=t.clientStatus.billingMode===s$1.PointsBased,this.isPointsBased&&this.refresh().subscribe();}));}refresh(){return aE(()=>this.isPointsBased?this.tikTokService.getTikTokCommentsAwaitingReplyCount().pipe(ve$4(t=>t?.succeeded&&typeof t.data=="number"?t.data:this.countSubject.value),Uf$1(t=>this.countSubject.next(t)),uc$1(()=>ki$3(this.countSubject.value))):ki$3(this.countSubject.value))}static{this.\u0275fac=function(s){return new(s||i)(M$6(C$1),M$6(d$3),M$6(Ct$2))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Qt$1={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1}},Jt$1=new I$4("SMOOTH_SCROLL_OPTIONS",{providedIn:"root",factory:()=>Qt$1});var jt=(()=>{class e{document=g$4(Y$3);_defaultOptions=g$4(Jt$1);onGoingAnimations=new Map;abortControllers=new Map;getElement(t,r){return typeof t=="string"?(r||this.document).querySelector(t):N$3(t)}cancelOngoingAnimation(t){let r=this.onGoingAnimations.get(t);r&&r.cancel(),this.cleanup(t);}cleanup(t){let r=this.abortControllers.get(t);r&&(r.abort(),this.abortControllers.delete(t)),this.onGoingAnimations.delete(t);}applyScrollToOptions(t,r){return this.cancelOngoingAnimation(t),r.duration?new Promise(o=>{let i=t.scrollLeft,n=t.scrollTop,d=r.left??i,c=r.top??n,s=`cubic-bezier(${r.easing.x1}, ${r.easing.y1}, ${r.easing.x2}, ${r.easing.y2})`,a=t.animate([],{duration:r.duration,easing:s});this.onGoingAnimations.set(t,a);let m=new AbortController;this.abortControllers.set(t,m);let P=()=>m.abort();t.addEventListener("wheel",P,{passive:true,capture:true,signal:m.signal}),t.addEventListener("touchmove",P,{passive:true,capture:true,signal:m.signal});let J=()=>{if(a.playState!=="running"||m.signal.aborted)return;let K=a.effect?.getComputedTiming().progress??1;t.scrollLeft=i+(d-i)*K,t.scrollTop=n+(c-n)*K,requestAnimationFrame(J);};requestAnimationFrame(J),a.onfinish=()=>{m.signal.aborted||(t.scrollLeft=d,t.scrollTop=c),this.cleanup(t),requestAnimationFrame(()=>{requestAnimationFrame(()=>o());});},a.oncancel=()=>{this.cleanup(t),o();},m.signal.addEventListener("abort",()=>a.cancel(),{once:true});}):(t.scrollLeft=r.left??t.scrollLeft,t.scrollTop=r.top??t.scrollTop,new Promise(o=>requestAnimationFrame(()=>o())))}scrollTo(t,r){let o=this.getElement(t),i=getComputedStyle(o).direction==="rtl",n=E$7(D$6(D$6({},this._defaultOptions),r),{left:r.left==null?i?r.end:r.start:r.left,right:r.right==null?i?r.start:r.end:r.right});return n.bottom!=null&&(n.top=o.scrollHeight-o.clientHeight-n.bottom),i?(n.left!=null&&(n.right=o.scrollWidth-o.clientWidth-n.left),n.left=n.right?-n.right:n.right):n.right!=null&&(n.left
10982=o.scrollWidth-o.clientWidth-n.right),this.applyScrollToOptions(o,n)}scrollToElement(t,r,o={}){let i=this.getElement(t),n=this.getElement(r,i),d=getComputedStyle(i).direction==="rtl";if(!n||!i)return Promise.resolve();let c=i.getBoundingClientRect(),s=n.getBoundingClientRect(),a=E$7(D$6(D$6({},this._defaultOptions),o),{top:s.top+i.scrollTop-c.top+(o.top||0),left:o.left==null?d?o.end:o.start:o.left,right:o.right==null?d?o.start:o.end:o.right});if(o.center){let P=c.left+c.width/2,J=c.top+c.height/2,K=s.left+s.width/2,qt=s.top+s.height/2;return a.left=K-P+i.scrollLeft,a.top=qt-J+i.scrollTop,this.applyScrollToOptions(i,a)}if(a.bottom!=null){let P=c.height-s.height;a.top=s.top+i.scrollTop-c.top-P+(o.bottom||0);}a.left=s.left-c.left+i.scrollLeft+(a.left||0),a.right!=null&&(a.left=s.right-c.left+i.scrollLeft-c.width+(a.right||0));let m={top:a.top,left:a.left,easing:a.easing,duration:a.duration};return this.applyScrollToOptions(i,m)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ot$1=["*"],Kt$1="[_nghost-%COMP%]{position:relative;width:100%;height:100%;cursor:default;z-index:1;order:2}",Zt="[_nghost-%COMP%]{--_thumb-size-percent: var(--_fixed-thumb-size-percent, max(var(--_thumb-size-percent-raw), var(--_min-thumb-size-percent)));--_effective-thumb-ratio: calc(var(--_thumb-size-percent) / 100);--_scrollbar-thumb-transform-to-value: calc((100 / var(--_effective-thumb-ratio) - 100) * 1%);box-sizing:border-box;position:absolute;background:var(--_scrollbar-thumb-color);transition:var(--scrollbar-thumb-transition, none);border-radius:var(--scrollbar-thumb-shape, inherit);will-change:transform;animation-name:_ngcontent-%COMP%_scrollbarThumbAnimation;animation-duration:1ms;animation-timing-function:linear;-webkit-user-select:none;user-select:none}[_nghost-%COMP%]:hover{background:var(--_scrollbar-thumb-hover-color)}[_nghost-%COMP%]:active{background:var(--_scrollbar-thumb-active-color)}@keyframes _ngcontent-%COMP%_scrollbarThumbAnimation{0%{translate:var(--_scrollbar-thumb-transform-from)}to{translate:var(--_scrollbar-thumb-transform-to)}}";function te$1(e,l){if(e&1&&fy(0,"button",2)(1,"button",3),e&2){let t=d_$1();x_$1(Q_$1("ng-scrollbar-button ",t.cmp.buttonClass())),dy("disabled",!t.cmp.isVerticallyScrollable()),SC(),x_$1(Q_$1("ng-scrollbar-button ",t.cmp.buttonClass())),dy("disabled",!t.cmp.isVerticallyScrollable());}}function ee(e,l){if(e&1&&fy(0,"button",2)(1,"button",3),e&2){let t=d_$1();x_$1(Q_$1("ng-scrollbar-button ",t.cmp.buttonClass())),dy("disabled",!t.cmp.isHorizontallyScrollable()),SC(),x_$1(Q_$1("ng-scrollbar-button ",t.cmp.buttonClass())),dy("disabled",!t.cmp.isHorizontallyScrollable());}}var re$2="[_nghost-%COMP%]{display:block;height:var(--_scrollbar-wrapper-height);width:var(--_scrollbar-wrapper-width);position:sticky;z-index:100;opacity:var(--_scrollbar-hover-opacity);transition:var(--_scrollbar-opacity-transition);background:var(--scrollbar-container-color, transparent);border-radius:var(--scrollbar-container-shape, 0px)}.ng-scrollbar-track-wrapper[_ngcontent-%COMP%]{touch-action:none;-webkit-user-select:none;user-select:none;gap:var(--scrollbar-button-gap, 0px);inset-block-start:var(--_scrollbar-track-inset-block-start);inset-block-end:var(--_scrollbar-track-inset-block-end);inset-inline-start:var(--_scrollbar-track-inset-inline-start);inset-inline-end:var(--_scrollbar-track-inset-inline-end);transition:var(--scrollbar-track-wrapper-transition, width 60ms linear, height 60ms linear);position:absolute;overflow:hidden;display:flex;place-items:center}.track-inner[_ngcontent-%COMP%]{position:absolute;border-radius:var(--scrollbar-track-shape, 0);background:var(--scrollbar-track-color, rgba(128, 128, 128, .5))}";function oe$2(e,l){e&1&&fy(0,"scrollbar-y");}function ne$2(e,l){e&1&&fy(0,"scrollbar-x");}var ie$1='[_nghost-%COMP%]{--_scrollbar-track-thickness-px: var(--scrollbar-track-thickness, 7px);--_scrollbar-container-offset-px: var(--scrollbar-container-offset, 0px);--_scrollbar-total-thickness-px: calc(var(--_scrollbar-track-thickness-px) + var(--_scrollbar-container-offset-px) * 2);--_scrollbar-thumb-min-size: var(--scrollbar-thumb-min-size, 20);position:relative!important;box-sizing:border-box!important;padding:0!important;-webkit-overflow-scrolling:touch;will-change:scroll-position;scrollbar-width:none!important}[_nghost-%COMP%] >.ng-scroll-spacer{position:absolute;inset-block-start:0;inset-inline-start:0;width:calc(var(--_spacer-width) * 1px);height:calc(var(--_spacer-height) * 1px);min-width:100%;min-height:100%}[_nghost-%COMP%]{--_viewport-overflow: auto;--_scrollbar-content-width: fit-content;overflow:var(--_viewport-overflow)}[orientation=vertical][_nghost-%COMP%]{--_viewport-overflow: hidden auto;--_scrollbar-content-width: unset}[orientation=horizontal][_nghost-%COMP%]{--_viewport-overflow: auto hidden}[_nghost-%COMP%]{--_vertical-inset-block-start: var(--_scrollbar-container-offset-px);--_vertical-inset-block-end: var(--_scrollbar-container-offset-px);--_horizontal-inline-start: var(--_scrollbar-container-offset-px);--_horizontal-inline-end: var(--_scrollbar-container-offset-px);--_scrollbar-grid-template: ". scrollbar-y" 1fr "scrollbar-x ." auto / 1fr auto;--_scrollbar-wrapper-y-start: initial;--_scrollbar-wrapper-y-end: 0;--_scrollbar-wrapper-x-top: initial;--_scrollbar-wrapper-x-bottom: 0}[position=invertY][_nghost-%COMP%]{--_scrollbar-grid-template: "scrollbar-y ." 1fr ". scrollbar-x" auto / auto 1fr}[position=invertX][_nghost-%COMP%]{--_scrollbar-grid-template: "scrollbar-x ." auto ". scrollbar-y" 1fr / 1fr auto}[position=invertAll][_nghost-%COMP%]{--_scrollbar-grid-template: ". scrollbar-x" auto "scrollbar-y ." 1fr / auto 1fr }[_nghost-%COMP%]{--_horizontal-block-start: initial;--_horizontal-block-end: var(--_scrollbar-container-offset-px)}[_nghost-%COMP%]:is([position=invertX],[position=invertAll]){--_horizontal-block-start: var(--_scrollbar-container-offset-px);--_horizontal-block-end: initial;--_scrollbar-wrapper-x-top: 0;--_scrollbar-wrapper-x-bottom: initial}[_nghost-%COMP%]{--_vertical-inset-inline-end: var(--_scrollbar-container-offset-px);--_vertical-inset-inline-start: initial}[_nghost-%COMP%]:is([position=invertY],[position=invertAll]){--_vertical-inset-inline-start: var(--_scrollbar-container-offset-px);--_vertical-inset-inline-end: initial;--_scrollbar-wrapper-y-start: 0;--_scrollbar-wrapper-y-end: initial}[verticalUsed=true][horizontalUsed=true][_nghost-%COMP%]{--_scrollbar-thickness-margin-px: calc(var(--_scrollbar-track-thickness-px) + var(--_scrollbar-container-offset-px) * 3)}[horizontalUsed=true][_nghost-%COMP%]{--_vertical-inset-block-start: var(--_scrollbar-container-offset-px);--_vertical-inset-block-end: var(--_scrollbar-thickness-margin-px)}[horizontalUsed=true][_nghost-%COMP%]:is([position=invertX],[position=invertAll]){--_vertical-inset-block-start: var(--_scrollbar-thickness-margin-px);--_vertical-inset-block-end: var(--_scrollbar-container-offset-px)}[verticalUsed=true][_nghost-%COMP%]{--_horizontal-inline-start: var(--_scrollbar-container-offset-px);--_horizontal-inline-end: var(--_scrollbar-thickness-margin-px)}[verticalUsed=true][_nghost-%COMP%]:is([position=invertY],[position=invertAll]){--_horizontal-inline-start: var(--_scrollbar-thickness-margin-px);--_horizontal-inline-end: var(--_scrollbar-container-offset-px)}[_nghost-%COMP%]{--_viewport-padding-block-start: 0;--_viewport-padding-block-end: 0;--_viewport-padding-inline-start: 0;--_viewport-padding-inline-end: 0}[appearance=native][verticalUsed=true][_nghost-%COMP%]{--_viewport-padding-inline-start: 0;--_viewport-padding-inline-end: var(--_scrollbar-total-thickness-px)}[appearance=native][verticalUsed=true][_nghost-%COMP%]:is([position=invertY],[position=invertAll]){--_viewport-padding-inline-start: var(--_scrollbar-total-thickness-px);--_viewport-padding-inline-end: 0}[appearance=native][horizontalUsed=true][_nghost-%COMP%]{--_viewport-padding-block-start: 0;--_viewport-padding-block-end: var(--_scrollbar-total-thickness-px)}[appearance=native][horizontalUsed=true][_nghost-%COMP%]:is([position=invertX],[position=invertAll]){--_viewport-padding-block-start: var(--_scrollbar-total-thickness-px);--_viewport-padding-block-end: 0}[_nghost-%COMP%]{--_horizontal-thumb-display: block;--_vertical-thumb-display: block}[isVerticallyScrollable=false][_nghost-%COMP%]{--_vertical-thumb-display: none}[isHorizontallyScrollable=false][_nghost-%COMP%]{--_horizontal-thumb-display: none}
10982[visibility=hover][_nghost-%COMP%]{--_scrollbar-hover-opacity: 0;--_scrollbar-opacity-transition: opacity var(--scrollbar-hover-opacity-transition-leave-duration, .4s) var(--scrollbar-hover-opacity-transition-leave-delay, 1s)}[visibility=hover][scrolling=true][_nghost-%COMP%], [visibility=hover][_nghost-%COMP%]:hover, [visibility=hover][_nghost-%COMP%]:active, [visibility=hover][_nghost-%COMP%]:focus{--_scrollbar-hover-opacity: 1;--_scrollbar-opacity-transition: opacity var(--scrollbar-hover-opacity-transition-enter-duration, 0)}[_nghost-%COMP%]{--_viewport_scroll-timeline: unset;--_animation-timeline-y: unset;--_scrollbar-thumb-transform-from: unset;--_scrollbar-thumb-transform-to: unset}[verticalUsed=true][_nghost-%COMP%]{--_timeline-scope: --scrollerY;--_animation-timeline-y: --scrollerY;--_viewport_scroll-timeline: --scrollerY y}[horizontalUsed=true][_nghost-%COMP%]{--_timeline-scope: --scrollerX;--_animation-timeline-x: --scrollerX;--_viewport_scroll-timeline: --scrollerX x}[verticalUsed=true][horizontalUsed=true][_nghost-%COMP%]{--_timeline-scope: --scrollerX, --scrollerY;--_viewport_scroll-timeline: --scrollerX x, --scrollerY y}[_nghost-%COMP%]{scroll-timeline:var(--_viewport_scroll-timeline);--_scrollbar-hover-thickness-px: var(--scrollbar-track-hover-thickness, var(--_scrollbar-track-thickness-px));--_scrollbar-active-thickness-px: var(--scrollbar-track-active-thickness, var(--_scrollbar-hover-thickness-px));--_track-y-thickness-px: var(--_scrollbar-track-thickness-px);--_track-x-thickness-px: var(--_scrollbar-track-thickness-px);-webkit-user-select:var(--_viewport-user-select);user-select:var(--_viewport-user-select)}[dragging=x][_nghost-%COMP%], [dragging=y][_nghost-%COMP%]{--_viewport-user-select: none}[dragging=x][_nghost-%COMP%]{--_track-x-thickness-px: var(--_scrollbar-active-thickness-px)}[dragging=y][_nghost-%COMP%]{--_track-y-thickness-px: var(--_scrollbar-active-thickness-px)}[_nghost-%COMP%]{overscroll-behavior:var(--scrollbar-overscroll-behavior, initial)}[mobile=true][_nghost-%COMP%]{overscroll-behavior:var(--scrollbar-mobile-overscroll-behavior, none)}[_nghost-%COMP%]{--_viewport-pointer-events: auto;--_scrollbar-y-pointer-events: auto;--_scrollbar-x-pointer-events: auto;pointer-events:var(--_viewport-pointer-events)}[disableInteraction=true][_nghost-%COMP%]{--_viewport-pointer-events: none;--_scrollbar-y-pointer-events: none;--_scrollbar-x-pointer-events: none}[isVerticallyScrollable=false][_nghost-%COMP%]{--_scrollbar-y-pointer-events: none}[isHorizontallyScrollable=false][_nghost-%COMP%]{--_scrollbar-x-pointer-events: none}[_nghost-%COMP%]{--_scrollbar-thumb-color: var(--scrollbar-thumb-color, #1e90ff);--_scrollbar-thumb-hover-color: var(--scrollbar-thumb-hover-color, var(--_scrollbar-thumb-color));--_scrollbar-thumb-active-color: var(--scrollbar-thumb-active-color, var(--_scrollbar-thumb-hover-color));--_scrollbar-button-color: var(--scrollbar-button-color, transparent);--_scrollbar-button-hover-color: var(--scrollbar-button-hover-color, var(--_scrollbar-button-color));--_scrollbar-button-active-color: var(--scrollbar-button-active-color, var(--_scrollbar-button-hover-color));--_scrollbar-button-inactive-color: var(--scrollbar-button-inactive-color, color-mix(in srgb, var(--_scrollbar-button-color), #000 35%));--_scrollbar-button-fill: var(--scrollbar-button-fill, var(--_scrollbar-thumb-color));--_scrollbar-button-hover-fill: var(--scrollbar-button-hover-fill, var(--_scrollbar-thumb-hover-color));--_scrollbar-button-active-fill: var(--scrollbar-button-active-fill, var(--_scrollbar-thumb-active-color));--_scrollbar-button-inactive-fill: var(--scrollbar-button-inactive-fill, color-mix(in srgb, var(--_scrollbar-button-fill), #000 35%))}@layer default{[_nghost-%COMP%]{display:block;max-height:100%;max-width:100%}}',X=[];function le(e){let l=e.getSelection();if(X=[],!!l?.rangeCount)for(let t=0;t<l.rangeCount;t++)X.push(l.getRangeAt(t).cloneRange());}function ae$1(e){if(!X?.length)return;let l=e.getSelection();l.removeAllRanges(),X.forEach(t=>l.addRange(t)),X=[];}function vt$1(e){return Uf$1(()=>{le(e),e.getSelection()?.removeAllRanges(),e.onselectstart=()=>false;})}function ut$1(e){return Uf$1(()=>{ae$1(e),e.onselectstart=null;})}function $$2(){return Uf$1(e=>e.stopPropagation())}function se$1(e,l){return l?e.pipe(np$2(l,null,{leading:false,trailing:true})):e}var Lt=(function(e){return e.Viewport="ng-scroll-viewport",e.Content="ng-scroll-content",e.Spacer="ng-scroll-spacer",e})(Lt||{}),ce={trackClass:"",thumbClass:"",buttonClass:"",orientation:"auto",appearance:"native",visibility:"native",position:"native",trackScrollDuration:50,sensorThrottleTime:0,disableSensor:false,disableInteraction:false,withButtons:false,hoverOffset:false,scrollHideDelay:400,scrollThrottleTime:200},pe$2="https://cdn.jsdelivr.net/gh/MurhafSousli/[email protected]/projects/ngx-scrollbar/src/assets/scroll-timeline-polyfill.js",bt$1=(function(e){return e.AfterInit="AfterInit",e.Resized="ResizeObserver",e})(bt$1||{}),he$1=new I$4("NG_SCROLLBAR_OPTIONS",{providedIn:"root",factory:()=>ce}),de$2=new I$4("NG_SCROLLBAR_POLYFILL",{providedIn:"root",factory:()=>pe$2}),be$2=(()=>{class e{options=g$4(he$1);orientation=hU(this.options.orientation);visibility=hU(this.options.visibility);withButtons=hU(this.options.withButtons,{transform:tM$1});disableInteraction=hU(this.options.disableInteraction,{transform:tM$1});disableSensor=hU(this.options.disableSensor,{transform:tM$1});sensorThrottleTime=hU(this.options.sensorThrottleTime,{transform:nM});hoverOffset=hU(this.options.hoverOffset,{transform:tM$1});trackScrollDuration=hU(this.options.trackScrollDuration,{transform:nM});appearance=hU(this.options.appearance);position=hU(this.options.position);trackClass=hU(this.options.trackClass);thumbClass=hU(this.options.thumbClass);buttonClass=hU(this.options.thumbClass);afterInit=pU();afterUpdate=pU();static \u0275fac=function(r){return new(r||e)};static \u0275dir=bt$6({type:e,inputs:{orientation:[1,"orientation"],visibility:[1,"visibility"],withButtons:[1,"withButtons"],disableInteraction:[1,"disableInteraction"],disableSensor:[1,"disableSensor"],sensorThrottleTime:[1,"sensorThrottleTime"],hoverOffset:[1,"hoverOffset"],trackScrollDuration:[1,"trackScrollDuration"],appearance:[1,"appearance"],position:[1,"position"],trackClass:[1,"trackClass"],thumbClass:[1,"thumbClass"],buttonClass:[1,"buttonClass"]},outputs:{afterInit:"afterInit",afterUpdate:"afterUpdate"}})}return e})(),Ut={width:0,height:0},Q=(()=>{class e extends be$2{smoothScroll=g$4(jt);dir=g$4(qe$4);dragging=Es$1(null);state=wS(()=>{let t=false,r=false,o=false,i=false,n=this.orientation(),d=this.visibility(),c=this.viewportDimension(),s=this.contentDimension();return (n==="auto"||n==="vertical")&&(o=s.height>c.height,t=d==="visible"||o),(n==="auto"||n==="horizontal")&&(i=s.width>c.width,r=d==="visible"||i),{verticalUsed:t,horizontalUsed:r,isVerticallyScrollable:o,isHorizontallyScrollable:i}});isVerticallyScrollable=wS(()=>this.state().isVerticallyScrollable);
10982isHorizontallyScrollable=wS(()=>this.state().isHorizontallyScrollable);verticalUsed=wS(()=>this.state().verticalUsed);horizontalUsed=wS(()=>this.state().horizontalUsed);viewportDimension=Es$1(Ut);contentDimension=Es$1(Ut);viewportElement;contentWrapperElement;initialized=Es$1(false);get clientHeight(){return this.viewportElement.clientHeight}get clientWidth(){return this.viewportElement.clientWidth}get scrollTop(){return this.viewportElement.scrollTop}get scrollLeft(){return this.viewportElement.scrollLeft}get contentHeight(){return this.contentWrapperElement.clientHeight}get contentWidth(){return this.contentWrapperElement.clientWidth}get scrollMaxX(){return this.contentWidth-this.clientWidth}get scrollMaxY(){return this.contentHeight-this.clientHeight}init(t,r,o){this.viewportElement=t,o?(o.classList.add(Lt.Spacer),this.contentWrapperElement=o):this.contentWrapperElement=r,this.initialized.set(true);}reset(){this.viewportElement=null,this.contentWrapperElement=null,this.initialized.set(false);}scrollYTo(t){this.viewportElement.scrollTop=t;}scrollXTo(t){this.viewportElement.scrollLeft=t;}scrollTo(t){return this.smoothScroll.scrollTo(this.viewportElement,t)}scrollToElement(t,r){return this.smoothScroll.scrollToElement(this.viewportElement,t,r)}static \u0275fac=(()=>{let t;return function(o){return (t||(t=yg(e)))(o||e)}})();static \u0275dir=bt$6({type:e,features:[Xm$2]})}return e})(),dt$1=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Xb({type:e,selectors:[["ng-scroll-content"]],hostVars:2,hostBindings:function(r,o){r&2&&xy("ng-scroll-content",true);},ngContentSelectors:ot$1,decls:1,vars:0,template:function(r,o){r&1&&(p_$1(),h_$1(0));},styles:["[_nghost-%COMP%]{box-sizing:border-box;width:var(--_scrollbar-content-width);z-index:1;min-width:100%;min-height:100%;padding-block-start:var(--_viewport-padding-block-start, 0);padding-block-end:var(--_viewport-padding-block-end, 0);padding-inline-start:var(--_viewport-padding-inline-start, 0);padding-inline-end:var(--_viewport-padding-inline-end, 0)}@layer default{[_nghost-%COMP%]{position:relative}[_nghost-%COMP%]:not(table){display:flow-root}}"]})}return e})(),ft$1=new I$4("SCROLLBAR_CONTROL"),Ht$1=(()=>{class e{cmp=g$4(Q);static \u0275fac=function(r){return new(r||e)};static \u0275dir=bt$6({type:e,hostVars:4,hostBindings:function(r,o){r&2&&xy("ng-scrollbar-sticky",true)("ng-scrollbar-hover",o.cmp.hoverOffset());}})}return e})(),Yt=(()=>{class e{_polyfillUrl=g$4(de$2);document=g$4(Y$3);window=this.document.defaultView;scrollTimelinePolyfill=Es$1(null);constructor(){Jg({earlyRead:()=>{(!this.window.ScrollTimeline||!CSS.supports("animation-timeline","scroll()"))&&this.initPolyfill();}});}initPolyfill(){return L$7(this,null,function*(){try{let t=this.document.createElement("script");t.src=this._polyfillUrl,t.async=!0,yield new Promise((r,o)=>{t.onload=r,t.onerror=o,this.document.head.appendChild(t);}),this.window.ScrollTimeline?this.scrollTimelinePolyfill.set(this.window.ScrollTimeline):console.error("[NgScrollbar]: Polyfill script loaded but ScrollTimeline not found.");}catch(t){console.error("[NgScrollbar]: Error loading ScrollTimeline script:",t);}})}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),q$1=class q{adapter=g$4(Q);control=g$4(ft$1);document=g$4(Y$3);nativeElement=g$4(Vt$3).nativeElement;_pointerEventsSub;constructor(){ih$1(l=>{let t=this.adapter.disableInteraction();wa$2(()=>{t||(this._pointerEventsSub=this.pointerEvents.subscribe()),l(()=>this._pointerEventsSub?.unsubscribe());});});}},G$2=(()=>{class e extends q$1{pointerOut$=pc$2(this.nativeElement,"pointerout",{passive:true});currMousePosition;scrollDirection;scrollMax;get viewportSize(){return this.adapter[this.control.sizeProperty]}get clientRect(){return this.nativeElement.getBoundingClientRect()}get offset(){return this.clientRect[this.control.rectOffsetProperty]}get size(){return this.nativeElement[this.control.sizeProperty]}get pointerEvents(){let t=pc$2(this.nativeElement,"pointerdown").pipe($$2(),vt$1(this.document)),r=pc$2(this.document,"pointerup",{passive:true}).pipe(ut$1(this.document)),o=pc$2(this.nativeElement,"pointerover",{passive:true}).pipe(Uf$1(n=>
10982this.currMousePosition=this.getPointerPosition(n)),Jf({})),i=pc$2(this.nativeElement,"pointermove",{passive:true}).pipe(Uf$1(n=>this.currMousePosition=this.getPointerPosition(n)));return t.pipe(Bi$1(n=>(i.pipe(Hf$1(r)).subscribe(),this.onTrackFirstClick(n).pipe(Qf$1(200),Bi$1(()=>o.pipe(Yt$5(()=>this.scrollDirection===this.getScrollDirection(this.currMousePosition)),Bi$1(()=>this.onTrackOngoingMousedown()))),Hf$1(r)))))}constructor(){super();}getPointerPosition(t){return t[this.control.clientProperty]-this.offset}onTrackFirstClick(t){return this.currMousePosition=this.getPointerPosition(t),this.scrollDirection=this.getScrollDirection(this.currMousePosition),this.scrollMax=this.control.viewportScrollMax,this.scrollTo(this.nextStep())}nextStep(){if(this.scrollDirection==="forward"){let r=this.getScrollForwardStep();return r>=this.scrollMax?this.scrollMax:r}let t=this.getScrollBackwardStep();return t<=0?0:t}onTrackOngoingMousedown(){let t=this.nextStep();return this.scrollTo(t).pipe(Hf$1(this.pointerOut$),ep$2(()=>!this.isReachedByOffset()),Bi$1(()=>this.onTrackOngoingMousedown()))}isReachedByOffset(){return this.scrollDirection==="forward"?this.control.viewportScrollOffset>=this.scrollMax:this.control.viewportScrollOffset<=0}static \u0275fac=function(r){return new(r||e)};static \u0275dir=bt$6({type:e,features:[Xm$2]})}return e})(),ve$2=(()=>{class e extends G$2{get contentSize(){return this.adapter.contentHeight}getThumbStartPosition(){return this.control.viewportScrollOffset*this.size/this.contentSize}getThumbEndPosition(){return (this.control.viewportScrollOffset+this.viewportSize)*this.size/this.contentSize}getScrollDirection(t){return t>this.getThumbEndPosition()?"forward":t<this.getThumbStartPosition()?"backward":null}scrollTo(t){return lt$3(this.adapter.scrollTo({top:t,duration:this.adapter.trackScrollDuration()}))}getScrollForwardStep(){return this.control.viewportScrollOffset+this.viewportSize}getScrollBackwardStep(){return this.control.viewportScrollOffset-this.viewportSize}static \u0275fac=(()=>{let t;return function(o){return (t||(t=yg(e)))(o||e)}})();static \u0275cmp=Xb({type:e,selectors:[["scrollbar-track-y"]],features:[tS([{provide:G$2,useExisting:e}]),Xm$2],ngContentSelectors:ot$1,decls:1,vars:0,template:function(r,o){r&1&&(p_$1(),h_$1(0));},styles:["[_nghost-%COMP%]{position:relative;width:100%;height:100%;cursor:default;z-index:1;order:2}"]})}return e})(),ue$2=(()=>{class e extends G$2{get contentSize(){return this.adapter.contentWidth}getThumbStartPosition;getThumbEndPosition;getScrollDirection;constructor(){ih$1(()=>{this.adapter.dir.valueSignal()==="rtl"?(this.getThumbStartPosition=()=>(this.contentSize-this.viewportSize-this.control.viewportScrollOffset)*this.size/this.contentSize,this.getThumbEndPosition=()=>(this.contentSize-this.control.viewportScrollOffset)*this.size/this.contentSize,this.getScrollDirection=t=>t<this.getThumbStartPosition()?"forward":t>this.getThumbEndPosition()?"backward":null):(this.getThumbStartPosition=()=>this.control.viewportScrollOffset*this.size/this.contentSize,this.getThumbEndPosition=()=>(this.control.viewportScrollOffset+this.viewportSize)*this.size/this.contentSize,this.getScrollDirection=t=>t>this.getThumbEndPosition()?"forward":t<this.getThumbStartPosition()?"backward":null);}),super();}scrollTo(t){return lt$3(this.adapter.scrollTo({start:t,duration:this.adapter.trackScrollDuration()}))}getScrollForwardStep(){return this.control.viewportScrollOffset+this.viewportSize}getScrollBackwardStep(){return this.control.viewportScrollOffset-this.viewportSize}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Xb({type:e,selectors:[["scrollbar-track-x"]],features:[tS([{provide:G$2,useExisting:e}]),Xm$2],ngContentSelectors:ot$1,decls:1,vars:0,template:function(r,o){r&1&&(p_$1(),h_$1(0));},styles:[Kt$1]})}return e})(),rt$1=(()=>{class e extends q$1{manager=g$4(Yt);track=g$4(G$2);_animation;get size(){return this.nativeElement.getBoundingClientRect()[this.control.rectSizeProperty]}get trackMax(){return this.track.size-this.size}get pointerEvents(){return pc$2(this.nativeElement,"pointerdown").pipe($$2(),vt$1(this.document),Bi$1(t=>{let r,o,i=ki$3(t).pipe(Uf$1(()=>{r=this.trackMax,o=this.control.viewportScrollMax,this.adapter.dragging.set(this.control.axis);}
10982)),n=pc$2(this.document,"pointermove").pipe($$2()),d=pc$2(this.document,"pointerup",{capture:true}).pipe($$2(),ut$1(this.document),Uf$1(()=>this.adapter.dragging.set(null)));return i.pipe(ve$4(c=>c[this.control.offsetProperty]),Bi$1(c=>n.pipe(ve$4(s=>s[this.control.clientProperty]),ve$4(s=>s-this.track.offset),ve$4(s=>o*(s-c)/r),Uf$1(s=>this.control.instantScrollTo(s,o)),Hf$1(d))))}))}constructor(){IU({earlyRead:()=>{let t=this.manager.scrollTimelinePolyfill();wa$2(()=>{t&&!this._animation&&(this._animation=fe$2(t,this.nativeElement,this.adapter.viewportElement,this.control.axis));});}}),super();}static \u0275fac=function(r){return new(r||e)};static \u0275dir=bt$6({type:e,features:[Xm$2]})}return e})();function fe$2(e,l,t,r){return l.animate({translate:["var(--_scrollbar-thumb-transform-from)","var(--_scrollbar-thumb-transform-to)"]},{fill:"both",easing:"linear",timeline:new e({source:t,axis:r})})}var ge$2=(()=>{class e extends rt$1{static \u0275fac=(()=>{let t;return function(o){return (t||(t=yg(e)))(o||e)}})();static \u0275cmp=Xb({type:e,selectors:[["scrollbar-thumb-y"]],features:[tS([{provide:rt$1,useExisting:e}]),Xm$2],decls:0,vars:0,template:function(r,o){},styles:["[_nghost-%COMP%]{--_thumb-size-percent: var(--_fixed-thumb-size-percent, max(var(--_thumb-size-percent-raw), var(--_min-thumb-size-percent)));--_effective-thumb-ratio: calc(var(--_thumb-size-percent) / 100);--_scrollbar-thumb-transform-to-value: calc((100 / var(--_effective-thumb-ratio) - 100) * 1%);box-sizing:border-box;position:absolute;background:var(--_scrollbar-thumb-color);transition:var(--scrollbar-thumb-transition, none);border-radius:var(--scrollbar-thumb-shape, inherit);will-change:transform;animation-name:_ngcontent-%COMP%_scrollbarThumbAnimation;animation-duration:1ms;animation-timing-function:linear;-webkit-user-select:none;user-select:none}[_nghost-%COMP%]:hover{background:var(--_scrollbar-thumb-hover-color)}[_nghost-%COMP%]:active{background:var(--_scrollbar-thumb-active-color)}@keyframes _ngcontent-%COMP%_scrollbarThumbAnimation{0%{translate:var(--_scrollbar-thumb-transform-from)}to{translate:var(--_scrollbar-thumb-transform-to)}}","[_nghost-%COMP%]{animation-timeline:var(--_animation-timeline-y);display:var(--_vertical-thumb-display);height:calc(var(--_thumb-size-percent) * 1%);width:100%;--_thumb-size-percent-raw: calc(var(--viewport-height) / var(--content-height) * 100);--_min-thumb-size-percent: calc(var(--_scrollbar-thumb-min-size) / var(--viewport-height) * 100);--_fixed-thumb-size-percent: calc(var(--scrollbar-thumb-size) / var(--viewport-height) * 100);--_scrollbar-thumb-transform-from: 0 0;--_scrollbar-thumb-transform-to: 0 var(--_scrollbar-thumb-transform-to-value)}"]})}return e})(),me$2=(()=>{class e extends rt$1{static \u0275fac=(()=>{let t;return function(o){return (t||(t=yg(e)))(o||e)}})();static \u0275cmp=Xb({type:e,selectors:[["scrollbar-thumb-x"]],features:[tS([{provide:rt$1,useExisting:e}]),Xm$2],decls:0,vars:0,template:function(r,o){},styles:[Zt,"[_nghost-%COMP%]{animation-timeline:var(--_animation-timeline-x);display:var(--_horizontal-thumb-display);height:100%;width:calc(var(--_thumb-size-percent) * 1%);--_thumb-size-percent-raw: calc(var(--viewport-width) / var(--content-width) * 100);--_min-thumb-size-percent: calc(var(--_scrollbar-thumb-min-size) / var(--viewport-width) * 100);--_fixed-thumb-size-percent: calc(var(--scrollbar-thumb-size) / var(--viewport-width) * 100);--_scrollbar-thumb-transform-from: 0;--_scrollbar-thumb-transform-to: var(--_scrollbar-thumb-transform-to-value)}[dir=rtl][_nghost-%COMP%]{animation-name:_ngcontent-%COMP%_scrollbarThumbRTLAnimation;will-change:right;--_scrollbar-thumb-transform-to: calc(var(--_scrollbar-thumb-transform-to-value) * -1)}@keyframes _ngcontent-%COMP%_scrollbarThumbRTLAnimation{0%{right:var(--_scrollbar-thumb-transform-from)}to{right:calc((var(--_effective-thumb-ratio) - 100 + var(--_effective-thumb-ratio) * 100) * -1%)}}"]})}return e})(),_e$1={forward:(e,l)=>e<l,backward:e=>e>0},Xt$1={forward:(e,l)=>l+e,backward:(e,l)=>l-e},we$3={rtl:{forward:(e,l,t)=>t-l-e,backward:(e,l,t)=>t-l+e},ltr:Xt$1},$t$1=(()=>{class e extends q$1{scrollbarButton=hU.required();scrollDirection=hU.required();afterFirstClickDelay=120;firstClickDuration=100;scrollBy=50;onGoingScrollBy=12;nextStep;canScroll;get pointerEvents(){let t=pc$2(this.nativeElement,"pointerdown").pipe($$2(),vt$1(this.document)),r=pc$2(this.document,"pointerup",{passive:true}).pipe(ut$1(this.document)),o=pc$2(this.nativeElement,"pointerleave",{passive:true}),i=WD(r,o);return t.pipe(Bi$1(()=>this.firstScrollStep().pipe(Qf$1(this.afterFirstClickDelay),Bi$1(()=>this.onOngoingPointerdown()),Hf$1(i))))}constructor(){ih$1(()=>{let t=this.scrollDirection(),r=this.adapter.dir.valueSignal();wa$2(()=>{this.canScroll=_e$1[t],this.control.axis==="x"?this.nextStep=we$3[r][t]:this.nextStep=Xt$1[t];});}),super();}firstScrollStep(){let t=this.nextStep(this.scrollBy,this.control.viewportScrollOffset,this.control.viewportScrollMax);return this.control.scrollTo(t,this.firstClickDuration)}onGoingScrollStep(){let t=this.control.viewportScrollMax,r=this.nextStep(this.onGoingScrollBy,this.control.viewportScrollOffset,t);this.control.instantScrollTo(r,t);}onOngoingPointerdown(){return GD(0,tE$1).pipe(ep$2(()=>this.canScroll(this.control.viewportScrollOffset,this.control.viewportScrollMax)),Uf$1(()=>this.onGoingScrollStep()))}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Xb({type:e,selectors:[["button","scrollbarButton",""]],inputs:{scrollbarButton:[1,"scrollbarButton"],scrollDirection:[1,"scrollDirection"]},features:[Xm$2],decls:3,vars:0,consts:[[1,"ng-scrollbar-button-icon"],["viewBox","0 0 512 512","xmlns","http://www.w3.org/2000/svg"],["d","M413.1,327.3l-1.8-2.1l-136-156.5c-4.6-5.3-11.5-8.6-19.2-8.6c-7.7,0-14.6,3.4-19.2,8.6L101,324.9l-2.3,2.6 C97,330,9
109826,333,96,336.2c0,8.7,7.4,15.8,16.6,15.8v0h286.8v0c9.2,0,16.6-7.1,16.6-15.8C416,332.9,414.9,329.8,413.1,327.3z"]],template:function(r,o){r&1&&(md$2(0,"div",0),Xp$2(),md$2(1,"svg",1),py(2,"path",2),yd$2()());},styles:["[_nghost-%COMP%]{position:relative;border:none;margin:0;padding:0;border-radius:var(--scrollbar-button-shape);appearance:none;background:var(--_scrollbar-button-color);flex:0 0 var(--scrollbar-button-size, var(--_scrollbar-track-thickness-px));block-size:100%}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:100%;fill:var(--_scrollbar-button-fill)}[_nghost-%COMP%]:hover{background:var(--_scrollbar-button-hover-color)}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{fill:var(--_scrollbar-button-hover-fill)}[_nghost-%COMP%]:active{background:var(--_scrollbar-button-active-color)}[_nghost-%COMP%]:active svg[_ngcontent-%COMP%]{fill:var(--_scrollbar-button-active-fill)}[_nghost-%COMP%]:disabled{background:var(--_scrollbar-button-inactive-color)}[_nghost-%COMP%]:disabled svg[_ngcontent-%COMP%]{fill:var(--_scrollbar-button-inactive-fill)}[scrollbarButton=top][_nghost-%COMP%]{--_button-rotate: var(--_button-icon-rotate-top)}[scrollbarButton=bottom][_nghost-%COMP%]{--_button-rotate: var(--_button-icon-rotate-bottom)}[scrollbarButton=start][_nghost-%COMP%]{--_button-rotate: var(--_button-icon-rotate-start)}[scrollbarButton=end][_nghost-%COMP%]{--_button-rotate: var(--_button-icon-rotate-end)}[_nghost-%COMP%]:is([scrollbarButton=top],[scrollbarButton=start]){order:1}[_nghost-%COMP%]:is([scrollbarButton=bottom],[scrollbarButton=end]){order:3}.ng-scrollbar-button-icon[_ngcontent-%COMP%]{rotate:var(--_button-rotate);display:flex;place-content:center;place-items:center;width:100%;height:100%}"]})}return e})(),ye$2=(()=>{class e extends Ht$1{rectOffsetProperty="top";rectSizeProperty="height";sizeProperty="clientHeight";clientProperty="clientY";offsetProperty="offsetY";axis="y";get viewportScrollMax(){return this.cmp.scrollMaxY}get viewportScrollOffset(){return this.cmp.scrollTop}scrollTo(t,r){return lt$3(this.cmp.scrollTo({top:t,duration:r}))}instantScrollTo(t){this.cmp.scrollYTo(t);}static \u0275fac=(()=>{let t;return function(o){return (t||(t=yg(e)))(o||e)}})();static \u0275cmp=Xb({type:e,selectors:[["scrollbar-y"]],features:[tS([{provide:ft$1,useExisting:e}]),Xm$2],decls:5,vars:9,consts:[[1,"ng-scrollbar-track-wrapper"],[1,"track-inner"],["scrollbarButton","top","scrollDirection","backward",3,"disabled"],["scrollbarButton","bottom","scrollDirection","forward",3,"disabled"]],template:function(r,o){r&1&&(Js$2(0,"div",0)(1,"scrollbar-track-y")(2,"div",1),fy(3,"scrollbar-thumb-y"),gd$2()(),ZT(4,te$1,2,8),gd$2()),r&2&&(xy("ng-scrollbar-hover",!o.cmp.hoverOffset()),SC(),x_$1(Q_$1("ng-scrollbar-track ",o.cmp.trackClass())),SC(2),x_$1(Q_$1("ng-scrollbar-thumb ",o.cmp.thumbClass())),SC(),YT(o.cmp.withButtons()?4:-1));},dependencies:[ve$2,ge$2,$t$1],styles:["[_nghost-%COMP%]{display:block;height:var(--_scrollbar-wrapper-height);width:var(--_scrollbar-wrapper-width);position:sticky;z-index:100;opacity:var(--_scrollbar-hover-opacity);transition:var(--_scrollbar-opacity-transition);background:var(--scrollbar-container-color, transparent);border-radius:var(--scrollbar-container-shape, 0px)}.ng-scrollbar-track-wrapper[_ngcontent-%COMP%]{touch-action:none;-webkit-user-select:none;user-select:none;gap:var(--scrollbar-button-gap, 0px);inset-block-start:var(--_scrollbar-track-inset-block-start);inset-block-end:var(--_scrollbar-track-inset-block-end);inset-inline-start:var(--_scrollbar-track-inset-inline-start);inset-inline-end:var(--_scrollbar-track-inset-inline-end);transition:var(--scrollbar-track-wrapper-transition, width 60ms linear, height 60ms linear);position:absolute;overflow:hidden;display:flex;place-items:center}.track-inner[_ngcontent-%COMP%]{position:absolute;border-radius:var(--scrollbar-track-shape, 0);background:var(--scrollbar-track-color, rgba(128, 128, 128, .5))}","[_nghost-%COMP%]{--_scrollbar-wrapper-height: calc(var(--viewport-height) * 1px);--_scrollbar-wrapper-width: var(--_scrollbar-total-thickness-px);--_scrollbar-track-inset-block-start: var(--_vertical-inset-block-start);--_scrollbar-track-inset-block-end: var(--_vertical-inset-block-end);--_scrollbar-track-inset-inline-end: var(--_vertical-inset-inline-end);--_scrollbar-track-inset-inline-start: var(--_vertical-inset-inline-start);--_button-icon-rotate-top: 0deg;--_button-icon-rotate-bottom: 180deg;grid-area:scrollbar-y;pointer-events:var(--_scrollbar-y-pointer-events);inset-block-start:0;inset-block-end:0;inset-inline-start:var(--_scrollbar-wrapper-y-start);inset-inline-end:var(--_scrollbar-wrapper-y-end)}.ng-scrollbar-hover[_nghost-%COMP%]:hover, .ng-scrollbar-hover[_ngcontent-%COMP%]:hover{--_track-y-thickness-px: var(--_scrollbar-hover-thickness-px)}.ng-scrollbar-hover[_nghost-%COMP%]:active, .ng-scrollbar-hover[_ngcontent-%COMP%]:active{--_track-y-thickness-px: var(--_scrollbar-active-thickness-px)}.ng-scrollbar-track-wrapper[_ngcontent-%COMP%]{width:var(--_track-y-thickness-px);flex-direction:column}.track-inner[_ngcontent-%COMP%]{inset-inline-start:var(--scrollbar-track-offset, 0px);inset-inline-end:var(--scrollbar-track-offset, 0px);inset-block-start:0;inset-block-end:0}"]})}return e})(),ke$1=(()=>{class e extends Ht$1{manager=g$4(Yt);rectOffsetProperty="left";rectSizeProperty="width";sizeProperty="clientWidth";clientProperty="clientX";offsetProperty="offsetX";axis="x";handlePosition;get viewportScrollMax(){return this.cmp.scrollMaxX}get viewportScrollOffset(){return Math.abs(this.cmp.scrollLeft)}constructor(){ih$1(()=>{this.cmp.dir.valueSignal()==="rtl"?this.handlePosition=(t,r)=>-(r-t):this.handlePosition=t=>t;}),super();}scrollTo(t,r){return lt$3(this.cmp.scrollTo({left:t,duration:r}))}instantScrollTo(t,r){this.cmp.scrollXTo(this.handlePosition(t,r));}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Xb({type:e,selectors:[["scrollbar-x"]],hostVars:1,hostBindings:function(r,o){r&2&&ly("dir",o.cmp.dir.valueSignal());},features:[tS([{provide:ft$1,useExisting:e}]),Xm$2],decls:5,vars:10,consts:[[1,"ng-scrollbar-track-wrapper"],[1,"track-inner"],["scrollbarButton","start","scrollDirection","backward",3,"disabled"],["scrollbarButton","end","scrollDirection","forward",3,"disabled"]],template:function(r,o){r&1&&(Js$2(0,"div",0)(1,"scrollbar-track-x")(2,"div",1),fy(3,"scrollbar-thumb-x"),gd$2()(),ZT(4,ee,2,8),gd$2()),r&2&&(xy("ng-scrollbar-hover",!o.cmp.hoverOffset()),SC(),x_$1(Q_$1("ng-scrollbar-track ",o.cmp.trackClass())),SC(2),x_$1(Q_$1("ng-scrollbar-thumb ",o.cmp.thumbClass())),ly("dir",o.cmp.dir.valueSignal()),SC(),YT(o.cmp.withButtons()?4:-1));},dependencies:[ue$2,me$2,$t$1],styles:[re$2,"[_nghost-%COMP%]{--_scrollbar-wrapper-height: var(--_scrollbar-total-thickness-px);--_scrollbar-wrapper-width: calc(var(--viewport-width) * 1px);--_scrollbar-track-inset-block-start: var(--_horizontal-block-start);--_scrollbar-track-inset-block-end: var(--_horizontal-block-end);--_scrollbar-track-inset-inline-end: var(--_horizontal-inline-end);--_scrollbar-track-inset-inline-start: var(--_horizontal-inline-start);
10982--_button-icon-rotate-start: -90deg;--_button-icon-rotate-end: 90deg}[dir=rtl][_nghost-%COMP%]{--_button-icon-rotate-start: 90deg;--_button-icon-rotate-end: -90deg}[_nghost-%COMP%]{grid-area:scrollbar-x;pointer-events:var(--_scrollbar-x-pointer-events);inset-block-start:var(--_scrollbar-wrapper-x-top);inset-block-end:var(--_scrollbar-wrapper-x-bottom);inset-inline-start:0;inset-inline-end:0}.ng-scrollbar-hover[_nghost-%COMP%]:hover, .ng-scrollbar-hover[_ngcontent-%COMP%]:hover{--_track-x-thickness-px: var(--_scrollbar-hover-thickness-px)}.ng-scrollbar-hover[_nghost-%COMP%]:active, .ng-scrollbar-hover[_ngcontent-%COMP%]:active{--_track-x-thickness-px: var(--_scrollbar-active-thickness-px)}.ng-scrollbar-track-wrapper[_ngcontent-%COMP%]{height:var(--_track-x-thickness-px);flex-direction:row}.track-inner[_ngcontent-%COMP%]{inset-inline-start:0;inset-inline-end:0;inset-block-start:var(--scrollbar-track-offset, 0px);inset-block-end:var(--scrollbar-track-offset, 0px)}"]})}return e})(),Se$2=(()=>{class e{adapter=g$4(Q);static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Xb({type:e,selectors:[["scrollbars"]],decls:2,vars:2,template:function(r,o){r&1&&(ZT(0,oe$2,1,0,"scrollbar-y"),ZT(1,ne$2,1,0,"scrollbar-x")),r&2&&(YT(o.adapter.verticalUsed()?0:-1),SC(),YT(o.adapter.horizontalUsed()?1:-1));},dependencies:[ke$1,ye$2],styles:["[_nghost-%COMP%]{pointer-events:none;position:absolute;inset:0;display:grid;grid-template:var(--_scrollbar-grid-template)}"]})}return e})(),Me$1=(()=>{class e{platform=g$4(_$7);sharedResizeObserver=g$4(sa$1);adapter=g$4(Q);nativeElement=g$4(Vt$3).nativeElement;isMobile=this.platform.IOS||this.platform.ANDROID;constructor(){let t,r;IU({earlyRead:o=>{let i=this.adapter.disableSensor(),n=this.adapter.sensorThrottleTime(),d=this.adapter.initialized();wa$2(()=>{d&&(i?requestAnimationFrame(()=>this.update(bt$1.AfterInit)):t=se$1(iE([this.sharedResizeObserver.observe(this.adapter.viewportElement),this.sharedResizeObserver.observe(this.adapter.contentWrapperElement)]),n).subscribe(()=>{this.updateDimensions(),r?this.adapter.afterUpdate.emit():this.adapter.afterInit.emit(),r=true;})),o(()=>t?.unsubscribe());});}});}update(t){this.updateDimensions(),t===bt$1.AfterInit?this.adapter.afterInit.emit():this.adapter.afterUpdate.emit();}updateDimensions(){this.adapter.viewportDimension.set({width:this.adapter.clientWidth,height:this.adapter.clientHeight}),this.adapter.contentDimension.set({width:this.adapter.contentWidth,height:this.adapter.contentHeight});}static \u0275fac=function(r){return new(r||e)};static \u0275dir=bt$6({type:e,hostVars:22,hostBindings:function(r,o){r&2&&(ly("mobile",o.isMobile)("dir",o.adapter.dir.valueSignal())("dragging",o.adapter.dragging())("position",o.adapter.position())("appearance",o.adapter.appearance())("visibility",o.adapter.visibility())("orientation",o.adapter.orientation())("disableInteraction",o.adapter.disableInteraction())("verticalUsed",o.adapter.verticalUsed())("horizontalUsed",o.adapter.horizontalUsed())("isVerticallyScrollable",o.adapter.isVerticallyScrollable())("isHorizontallyScrollable",o.adapter.isHorizontallyScrollable()),Ny("--content-height",o.adapter.contentDimension().height)("--content-width",o.adapter.contentDimension().width)("--viewport-height",o.adapter.viewportDimension().height)("--viewport-width",o.adapter.viewportDimension().width),xy("ng-scroll-viewport",true));}})}return e})();var Je$2=(()=>{class e extends Me$1{contentWrapper=mU.required(dt$1,{read:Vt$3});contentWrapperElement=wS(()=>this.contentWrapper().nativeElement);constructor(){ih$1(()=>{let t=this.contentWrapperElement();wa$2(()=>{this.adapter.init(this.nativeElement,t);});}),super();}scrollTo(t){return this.adapter.scrollTo(t)}scrollToElement(t,r){return this.adapter.scrollToElement(t,r)}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Xb({type:e,selectors:[["ng-scrollbar",3,"externalViewport",""],["","ngScrollbar",""]],viewQuery:function(r,o){r&1&&_y(o.contentWrapper,dt$1,5,Vt$3),r&2&&v_$1();},hostVars:2,hostBindings:function(r,o){r&2&&xy("ng-scrollbar",true);},exportAs:["ngScrollbar"],features:[iT([{directive:Q,inputs:["position","position","withButtons","withButtons","appearance","appearance","thumbClass","thumbClass","trackClass","trackClass","buttonClass","buttonClass","visibility","visibility","hoverOffset","hoverOffset","orientation","orientation","disableSensor","disableSensor","sensorThrottleTime","sensorThrottleTime","disableInteraction","disableInteraction","trackScrollDuration","trackScrollDuration"],outputs:["afterInit","afterInit","afterUpdate","afterUpdate"]}]),Xm$2],ngContentSelectors:ot$1,decls:3,vars:0,template:function(r,o){r&1&&(p_$1(),Js$2(0,"ng-scroll-content"),h_$1(1),fy(2,"scrollbars"),gd$2());},dependencies:[Se$2,dt$1],styles:[ie$1]})}return e})();var Ke$3=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Qo$2({type:e});static \u0275inj=Ir$3({})}return e})();
10983var i$3={NewClientSignUp:{label:"New client signed up",description:"A new business created a SocialLab account."},NewClientSalla:{label:"New Client from Salla",description:"A Salla store installed the app."},NewClientZid:{label:"New Client from Zid",description:"A Zid store installed the app."},ActivatedAccount:{label:"Account activated",description:"An account finished activation and can start sending."},ActivatedAccountSalla:{label:"Account activated (Salla)",description:"A Salla store finished activation and can start sending."},ActivatedAccountZid:{label:"Account activated (Zid)",description:"A Zid store finished activation and can start sending."},SubscriptionAboutToExpire:{label:"Subscription about to expire",description:"The plan ends soon and no renewal has taken over yet."},SubscriptionAboutToExpireSalla:{label:"Subscription about to expire (Salla)",description:"A subscription bought through Salla ends soon."},SubscriptionAboutToExpireZid:{label:"Subscription about to expire (Zid)",description:"A subscription bought through Zid ends soon."},SubscriptionExpired:{label:"Subscription expired",description:"The term ended and no renewal took over."},SubscriptionExpiredSalla:{label:"Subscription expired (Salla)",description:"A subscription bought through Salla has ended."},SubscriptionExpiredZid:{label:"Subscription expired (Zid)",description:"A subscription bought through Zid has ended."},SubscriptionCancelled:{label:"Subscription cancelled",description:"A subscription was cancelled before its term ended."},SubscriptionCancelledSalla:{label:"Subscription cancelled (Salla)",description:"A subscription bought through Salla was cancelled."},SubscriptionCancelledZid:{label:"Subscription cancelled (Zid)",description:"A subscription bought through Zid was cancelled."},ApplicationUninstalledSalla:{label:"Salla app uninstalled",description:"A merchant uninstalled SocialLab from their Salla store."},ApplicationUninstalledZid:{label:"Zid app uninstalled",description:"A merchant uninstalled SocialLab from their Zid store."},PaymentFailed:{label:"Payment failed",description:"A card payment against a subscription invoice was refused."},SubscriptionRenewalFailed:{label:"Automatic renewal failed",description:"The card on file was refused, so the plan will lapse on its end date."},FeatureUsageThreshold80:{label:"Feature usage reached 80%",description:"A feature in the plan is close to its monthly limit."},FeatureUsageLimitReached:{label:"Feature limit reached",description:"A feature in the plan has run out for this cycle."},SeatLimitExceeded:{label:"More users than the plan allows",description:"Extra user accounts will be frozen at the next renewal."},SeatsSuspended:{label:"User accounts suspended",description:"User accounts over the plan limit have just lost access."},NewMessage:{label:"New message from a customer",description:"A customer wrote in on any connected channel."},ContactUsMessage:{label:"Contact-us message",description:"Someone wrote in through the public contact form."},CustomerAssigned:{label:"A conversation was assigned to you",description:"A customer conversation is now yours to answer."},ChannelHealthAlert:{label:"A channel stopped delivering",description:"A connected channel went quiet, lost its webhook or its token died."},WhatsAppOnboardingActionRequired:{label:"WhatsApp connection needs your attention",description:"The WhatsApp connection is blocked on something only you can clear."},SallaConnectionBroken:{label:"Salla connection broken",description:"A store connection stopped working and needs reconnecting."},MetaOutageAlert:{label:"Possible WhatsApp outage",description:"Campaigns are failing in a pattern that looks like a Meta outage."}
10983,CallCenterNumberDown:{label:"Call centre number is down",description:"The phone line is disconnected, or connected and receiving nothing."},QRNumberCreated:{label:"QR number created",description:"A number was connected through the retired QR flow."},QRNumberFailedCheck:{label:"QR number failed check",description:"A number connected through the retired QR flow failed its check."},QRNumberDisconnected:{label:"QR number disconnected",description:"A number connected through the retired QR flow dropped off."},AIAssistantChanged:{label:"AI assistant updated",description:"The AI assistant finished building, or its setup changed."},AIImprovementReminder:{label:"AI improvements waiting for review",description:"A daily reminder that suggested answers are waiting for approval."},OtpMessage:{label:"One-time login code",description:"The code you need to finish signing in."},VerificationCodeSMS:{label:"Verification code by SMS",description:"A code sent to your phone to confirm it is you."},VerificationCodeEmail:{label:"Verification code by email",description:"A code sent to your inbox to confirm it is you."},VerificationCodeWhatsApp:{label:"Verification code by WhatsApp",description:"A code sent on WhatsApp to confirm it is you."},EmailVerificationLink:{label:"Email verification link",description:"The link that confirms your address and sets your password."},ForgetPasswordRequest:{label:"Password reset requested",description:"Someone asked to reset the password on your account."},ForgetPasswordCompleted:{label:"Password changed",description:"Your password was changed successfully."},AccountLocked:{label:"Account locked",description:"Your account was locked after too many failed sign-ins."},SecurityNewLogin:{label:"Sign-in from a new device",description:"Your account was opened on a device it has not seen before."},OnboardingStepStalled:{label:"Unfinished setup step",description:"One reminder about a setup step that was started and left."},AdminNotification:{label:"Announcements from SocialLab",description:"Maintenance windows and other announcements from our team."},ChangeLogPublic:{label:"What's new in SocialLab",description:"A note whenever a new feature or an improvement ships."},ChangeLogInternal:{label:"Internal release notes",description:"Release notes meant for the SocialLab team."},NotificationDigest:{label:"Daily notifications summary",description:"One morning roll-up standing in for the repeat alerts of the day."},ContactExportFinished:{label:"Contacts export ready",description:"The download link for a contacts file you asked to be prepared."},AIHandoverAwaitingHuman:{label:"Conversation waiting for your team",description:"The AI assistant handed a conversation to your team and nobody has picked it up yet."},MerchantEmailDomainStatus:{label:"Your email domain",description:"Your email domain was verified, failed verification, or stopped or resumed sending."},EmailCampaignCompleted:{label:"Email campaign finished",description:"An email campaign finished sending to all its recipients."},EmailCampaignNeedsAttention:{label:"Email campaign needs attention",description:"An email campaign stopped: too many bounces or spam reports, your email account cannot send, or your points ran out."},GeneralNote:{label:"Operations notes",description:"Free-text notes from background jobs and platform checks."},ClientGeneralNote:{label:"General account notes",description:"Notes about your account that do not belong to another type."}};function n$1(e){return e?i$3[e]?.label??null:null}function t$1(e){return e?i$3[e]?.description??null:null}function a$1(e){return e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").trim():""}var i$2={GET_NOTIFICATIONS:"GetNotifications",READ_NOTIFICATION:"ReadNotification",DELETE_NOTIFICATION:"DeleteNotification",DELETE_ALL_NOTIFICATIONS:"DeleteAllNotifications",READ_ALL_NOTIFICATIONS:"ReadAllNotifications",GET_UNREAD_COUNT:"GetUnreadNotificationsCount",GET_LATEST:"GetLatestNotifications",SEND_ADMIN_NOTIFICATION:"SendAdminNotification",GET_TYPE_PREFERENCES:"GetNotificationTypePreferences",UPDATE_TYPE_PREFERENCE:"UpdateNotificationTypePreference"},p$5=(()=>{class n extends se$2{constructor(t,e,o){super(t,e,o,"SocialLabNotifications/");}getNotifications(t,e){let o={PageNumber:t,PageSize:e};return this.get(i$2.GET_NOTIFICATIONS,o)}getUnreadNotifications(t,e){let o={PageNumber:t,PageSize:e,isRead:false};return this.get(i$2.GET_NOTIFICATIONS,o)}readNotification(t){return this.post(i$2.READ_NOTIFICATION,{id:t})}deleteNotification(t){return this.post(i$2.DELETE_NOTIFICATION,{id:t})}readAllNotifications(){return this.post(i$2.READ_ALL_NOTIFICATIONS,{})}getUnreadCount(){return this.get(i$2.GET_UNREAD_COUNT)}deleteAllNotifications(){return this.post(i$2.DELETE_ALL_NOTIFICATIONS,{})}getLatestNotifications(t=3){return this.get(i$2.GET_LATEST,{count:t})}sendAdminNotification(t){return this.post(i$2.SEND_ADMIN_NOTIFICATION,t)}getNotificationTypePreferences(){return this.get(i$2.GET_TYPE_PREFERENCES)}updateNotificationTypePreference(t,e,o=null){let I={type:t,isMuted:e,mutedUntil:o};return this.post(i$2.UPDATE_TYPE_PREFERENCE,I)}static{this.\u0275fac=function(e){return new(e||n)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:n,factory:n.\u0275fac,providedIn:"root"});}}return n})();var Ei=(t,r)=>r.value;function Ii$1(t,r){if(t&1&&(Js$2(0,"span",12),H_$1(1),pS(2,"translate"),gd$2()),t&2){let i=d_$1().$implicit;SC(),jy(gS$1(2,1,i.hint));}}function Gi$1(t,r){if(t&1&&(Js$2(0,"mat-radio-button",10)(1,"span",11),H_$1(2),pS(3,"translate"),gd$2(),ZT(4,Ii$1,3,3,"span",12),gd$2()),t&2){let i=r.$implicit;dy("value",i.value),SC(2),jy(gS$1(3,3,i.label)),SC(2),YT(i.hint?4:-1);}}function Vi(t,r){if(t&1){let i=i_$1();Js$2(0,"div",0)(1,"mat-radio-group",9),zy("ngModelChange",function(e){Vp$2(i);let s=d_$1();return W_$1(s.selectedRadioValue,e)||(s.selectedRadioValue=e),Hp$2(e)}
10983),XT(2,Gi$1,5,5,"mat-radio-button",10,Ei),gd$2(),db(),gd$2();}if(t&2){let i=d_$1();SC(),$y("ngModel",i.selectedRadioValue),pb(),SC(),JT(i.data.radioOptions);}}function Ai$1(t,r){if(t&1&&(Js$2(0,"mat-icon"),H_$1(1),gd$2()),t&2){let i=d_$1();x_$1(i.isRtl?"m-l-12":"m-r-12"),SC(),jy(i.data.icon);}}function Li(t,r){t&1&&(Js$2(0,"div",0)(1,"h3"),H_$1(2),pS(3,"translate"),gd$2()()),t&2&&(SC(2),Ed$2(" ",gS$1(3,1,"Are you sure you want to continue?")," "));}function Fi(t,r){if(t&1&&(Js$2(0,"div",0)(1,"p",11),H_$1(2),pS(3,"translate"),gd$2()()),t&2){let i=d_$1();SC(2),jy(gS$1(3,1,i.data.message));}}function Wi(t,r){if(t&1&&(Js$2(0,"span",12),H_$1(1),pS(2,"translate"),gd$2()),t&2){let i=d_$1().$implicit;SC(),jy(gS$1(2,1,i.hint));}}function ji(t,r){if(t&1&&(Js$2(0,"mat-radio-button",10)(1,"span",11),H_$1(2),pS(3,"translate"),gd$2(),ZT(4,Wi,3,3,"span",12),gd$2()),t&2){let i=r.$implicit;dy("value",i.value),SC(2),jy(gS$1(3,3,i.label)),SC(2),YT(i.hint?4:-1);}}function qi(t,r){if(t&1){let i=i_$1();Js$2(0,"div",0)(1,"mat-radio-group",9),zy("ngModelChange",function(e){Vp$2(i);let s=d_$1();return W_$1(s.selectedRadioValue,e)||(s.selectedRadioValue=e),Hp$2(e)}),XT(2,ji,5,5,"mat-radio-button",10,Ei),gd$2(),db(),gd$2();}if(t&2){let i=d_$1();SC(),$y("ngModel",i.selectedRadioValue),pb(),SC(),JT(i.data.radioOptions);}}function Hi$1(t,r){if(t&1&&(Js$2(0,"p",14),H_$1(1),pS(2,"translate"),gd$2()),t&2){let i=d_$1(2);SC(),jy(gS$1(2,1,i.data.checkboxHint));}}function zi(t,r){if(t&1){let i=i_$1();Js$2(0,"div",0)(1,"mat-checkbox",13),zy("ngModelChange",function(e){Vp$2(i);let s=d_$1();return W_$1(s.checkboxChecked,e)||(s.checkboxChecked=e),Hp$2(e)}),H_$1(2),pS(3,"translate"),gd$2(),db(),ZT(4,Hi$1,3,3,"p",14),gd$2();}if(t&2){let i=d_$1();SC(),$y("ngModel",i.checkboxChecked),pb(),SC(),Ed$2(" ",gS$1(3,3,i.data.checkboxLabel)," "),SC(2),YT(i.data.checkboxHint?4:-1);}}var Ft=(()=>{class t{constructor(i,u){this.data=i,this.translate=u,this.dialogRef=g$4(an),this.isRtl=false,this.checkboxChecked=false,this.selectedRadioValue=null,this.data.title=i.title??"Confirmation is needed",this.data.message=i.message??"",this.data.confirmText=i.confirmText??"Confirm",this.data.cancelText=i.cancelText??"Cancel",this.data.confirmColor=i.confirmColor??"primary",this.data.cancelColor=i.cancelColor??"primary",this.data.showDefaultMessage=i.showDefaultMessage??false,this.data.icon=i.icon??null,this.data.requireCheckbox=i.requireCheckbox??false,this.data.optionalCheckbox=i.optionalCheckbox??false,this.data.checkboxLabel=i.checkboxLabel??"",this.data.checkboxHint=i.checkboxHint??"",this.selectedRadioValue=i.radioDefault??i.radioOptions?.[0]?.value??null,this.isRtl=this.translate.currentLang==="ar";}get toolbarColor(){return this.data.confirmColor||"primary"}get direction(){return this.isRtl?"rtl":"ltr"}get confirmDisabled(){return !!this.data.requireCheckbox&&!this.checkboxChecked}onConfirm(){let i=this.data.optionalCheckbox||!!this.data.radioOptions?.length;this.dialogRef.close(i?{confirmed:true,checked:this.checkboxChecked,selectedValue:this.selectedRadioValue}:true);}onCancel(){this.dialogRef.close(false);}static{this.\u0275fac=function(u){return new(u||t)(V$3(Wm$1),V$3(O$5))};}static{this.\u0275cmp=Xb({type:t,selectors:[["generic-confirmation-dialog"]],decls:19,vars:25,consts:[[1,"m-b-15"],[1,"mat-dialog-title",3,"color"],[1,"d-flex","align-items-center","w-100"],[3,"class"],[1,"mat-subtitle-1"],[1,"p-24"],[1,"p-16",3,"align"],["type","button","mat-stroked-button","",3,"click","color"],["type","button","mat-flat-button","","cdkFocusInitial","",3,"click","color","disabled"],["name","genericConfirmationRadio",1,"d-flex","flex-column",3,"ngModelChange","ngModel"],[1,"m-b-8",3,"value"],[1,"mat-body-1"],[1,"mat-caption","d-block"],["name","genericConfirmationCheckbox",3,"ngModelChange","ngModel"],[1,"mat-caption","m-t-8","m-b-0"]],template:function(u,e){u&1&&(ZT(0,Vi,4,1,"div",0),Js$2(1,"mat-toolbar",1)(2,"div",2),ZT(3,Ai$1,2,3,"mat-icon",3),Js$2(4,"span",4),H_$1(5),pS(6,"translate"),gd$2()()(),Js$2(7,"mat-dialog-content",5),ZT(8,Li,4,3,"div",0),ZT(9,Fi,4,3,"div",0),ZT(10,qi,4,1,"div",0),ZT(11,zi,5,5,"div",0),gd$2(),Js$2(12,"mat-dialog-actions",6)(13,"button",7),Ey("click",function(){return e.onCancel()}),H_$1(14),pS(15,"translate"),gd$2(),Js$2(16,"button",8),Ey("click",function(){return e.onConfirm()}),H_$1(17),pS(18,"translate"),gd$2()()),u&2&&(YT(e.data.radioOptions?.length?0:-1),SC(),dy("color",e.toolbarColor),ly("dir",e.direction),SC(2),YT(e.data.icon?3:-1),SC(2),jy(gS$1(6,19,e.data.title)),SC(2),ly("dir",e.direction),SC(),YT(e.data.showDefaultMessage?8:-1),SC(),YT(e.data.message?9:-1),SC(),YT(e.data.radioOptions?.length?10:-1),SC(),YT(e.data.requireCheckbox||e.data.optionalCheckbox?11:-1),SC(),dy("align",e.isRtl?"start":"end"),ly("dir",e.direction),SC(),x_$1(e.isRtl?"m-l-8":"m-r-8"),dy("color",e.data.cancelColor),SC(),Ed$2(" ",gS$1(15,21,e.data.cancelText)," "),SC(2),dy("color",e.data.confirmColor)("disabled",e.confirmDisabled),SC(),Ed$2(" ",gS$1(18,23,e.data.confirmText)," "));},dependencies:[Tt$2,Ng,Og,Gc$1,Xv,zg,w0$1,H0,jh,Zx,dn,zw,sk,Hp$1,ed$1,nd$1,rC,wC,mv,GC,tD,eD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,iy,t
10983y,go$2,Kd,XE,LT,mA,mt$4],styles:["mat-toolbar.mat-dialog-title[_ngcontent-%COMP%]{height:auto;min-height:56px;padding:12px 24px}mat-toolbar.mat-dialog-title[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%}mat-toolbar.mat-dialog-title[_ngcontent-%COMP%] .mat-subtitle-1[_ngcontent-%COMP%]{white-space:normal;line-height:1.3;overflow-wrap:anywhere}mat-toolbar.mat-dialog-title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex-shrink:0;font-size:var(--font-size-2xl);width:24px;height:24px}mat-dialog-content[_ngcontent-%COMP%]{min-height:60px}mat-dialog-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-weight:500}mat-dialog-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;line-height:1.5;overflow-wrap:break-word}mat-dialog-actions[_ngcontent-%COMP%]{margin:0;padding:16px 24px;border-top:1px solid rgba(0,0,0,.12)}mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:100px}mat-dialog-actions[dir=rtl][_ngcontent-%COMP%]{flex-direction:row-reverse}"],changeDetection:1});}}return t})();var O$3="/apps/users/account-settings",E$1={tab:"notifications"},L$2=(()=>{class a{constructor(){this.api=g$4(p$5),this.dialog=g$4(vr$1),this.dialogConfig=g$4(f$5),this.toast=g$4(ut$2),this.translate=g$4(O$5),this.router=g$4(G$5),this.state=new Jr$1(new Map),this.preferences$=this.state.asObservable(),this.inFlight=null,this.loadedOnce=false;}ensureLoaded(){return this.loadedOnce?ki$3([...this.state.value.values()]):this.inFlight?this.inFlight:(this.inFlight=this.api.getNotificationTypePreferences().pipe(ve$4(t=>t.succeeded?t.data??[]:[]),Uf$1(t=>{this.replaceAll(t),this.loadedOnce=true,this.inFlight=null;}),uc$1(()=>(this.inFlight=null,ki$3([]))),Xf$1({bufferSize:1,refCount:false})),this.inFlight)}invalidate(){this.loadedOnce=false,this.inFlight=null;}replaceAll(t){this.state.next(new Map(t.map(e=>[e.type,e]))),this.loadedOnce=true;}get(t){return this.state.value.get(t)}canOfferMute(t){let e=this.state.value.get(t);return !!e&&e.canMute&&!e.isMuted}isMuted(t){return this.state.value.get(t)?.isMuted===true}labelFor(t){let e=this.state.value.get(t),i=n$1(e?.typeName);return i?this.translate.instant(i):e?.title?e.title:a$1(e?.typeName)||this.translate.instant("This notification")}promptMute(t){if(!this.canOfferMute(t))return;let e=this.labelFor(t),i={title:this.translate.instant("Stop receiving these notifications?"),message:this.translate.instant("You will stop receiving \xAB{{name}}\xBB notifications. Everything else keeps arriving, and you can turn this back on at any time in Account settings \u2192 Notifications.",{name:e}),confirmText:this.translate.instant("Turn off"),cancelText:this.translate.instant("Cancel"),confirmColor:"warn",icon:"notifications_off"};this.dialog.open(Ft,E$7(D$6({},this.dialogConfig.getDefaultDialogConfig()),{width:"480px",data:i})).afterClosed().subscribe(s=>{s&&this.setMuted(t,true).subscribe({next:C=>{if(!C){this.toast.error("Failed to update your notification preferences");return}this.toast.withActions(this.translate.instant("\xAB{{name}}\xBB notifications are off.",{name:e}),[{label:"Undo",icon:"undo",emphasized:true,handler:()=>this.undoMute(t,e)},{label:"Notification settings",icon:"tune",handler:()=>this.openPreferences()}],"success");},error:()=>this.toast.error("Failed to update your notification preferences")});});}setMuted(t,e){return this.api.updateNotificationTypePreference(t,e,null).pipe(ve$4(i=>(i.succeeded&&this.patch(t,{isMuted:e,mutedUntil:null}),!!i.succeeded)))}undoMute(t,e){this.setMuted(t,false).subscribe({next:i=>i?this.toast.success(this.translate.instant("\xAB{{name}}\xBB notifications are back on.",{name:e})):this.toast.error("Failed to update your notification preferences"),error:()=>this.toast.error("Failed to update your notification preferences")});}openPreferences(){this.router.navigate([O$3],{queryParams:E$1});}patch(t,e){let i=new Map(this.state.value),s=i.get(t);s&&(i.set(t,D$6(D$6({},s),e)),this.state.next(i));}static{this.\u0275fac=function(e){return new(e||a)};}static{this.\u0275prov=x$3({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})();var x$1=new Set([408125543,374648427,174,524531317,160]),v$1=[10,20,40,60,10,20,40,60,10,20,40,60,10,20,10,20,2.5,5,10,20,2.5,5,10,20,2.5,5,10,20,2.5,5,10,20],p$4=3840;function d$2(i){return L$7(this,null,function*(){let a=F$2(new Uint8Array(yield i.arrayBuffer()));if(!a||a.packets.length===0)return null;
10983let t=a.codecPrivate??C(1,p$4),e=t.length>=12?t[10]|t[11]<<8:p$4,n=I$1(t,a.packets,e);return new File([new Uint8Array(n)],"voice-note.ogg",{type:"audio/ogg"})})}function F$2(i){let a=[],t=null,e=null,n=0;for(;n<i.length;){let r=y$1(i,n);if(!r)return null;n+=r.length;let s=m$2(i,n);if(!s)return null;if(n+=s.length,x$1.has(r.value))continue;if(s.value===null)return null;let o=n+s.value;if(o>i.length)return null;switch(r.value){case 134:e=new TextDecoder().decode(i.subarray(n,o)).replace(/\0+$/,"");break;case 25506:t=i.slice(n,o);break;case 163:case 161:{let c=_$1(i.subarray(n,o));if(!c)return null;a.push(c);break}}n=o;}return e&&e!=="A_OPUS"?null:{codecPrivate:t,packets:a}}function y$1(i,a){let t=i[a];if(t===void 0||t===0)return null;let e=1;for(let r=128;!(t&r);r>>=1)if(++e>4)return null;if(a+e>i.length)return null;let n=0;for(let r=0;r<e;r++)n=n*256+i[a+r];return {value:n,length:e}}function m$2(i,a){let t=i[a];if(t===void 0||t===0)return null;let e=1;for(let s=128;!(t&s);s>>=1)if(++e>8)return null;if(a+e>i.length)return null;let n=t&255>>e,r=n===255>>e;for(let s=1;s<e;s++){let o=i[a+s];r=r&&o===255,n=n*256+o;}return {value:r?null:n,length:e}}function _$1(i){let a=m$2(i,0);if(!a)return null;let t=a.length+2;return t>=i.length||i[t]>>1&3?null:i.subarray(t+1)}function I$1(i,a,t){let e=Math.floor(Math.random()*4294967295)>>>0,n=[],r=0;n.push(g$2([i],0,e,r++,2)),n.push(g$2([M$3()],0,e,r++,0));let s=t,o=[],c=0;for(let f=0;f<a.length;f++){let u=a[f],h=Math.floor(u.length/255)+1;c+h>255&&(n.push(g$2(o,s,e,r++,0)),o=[],c=0),o.push(u),c+=h,s+=T$2(u);}return n.push(g$2(o,s,e,r++,4)),A$2(n)}function g$2(i,a,t,e,n){let r=[],s=0;for(let u of i){let h=u.length;for(;h>=255;)r.push(255),h-=255;r.push(h),s+=u.length;}let o=new Uint8Array(27+r.length+s),c=new DataView(o.buffer);o.set([79,103,103,83],0),o[4]=0,o[5]=n,c.setUint32(6,a>>>0,true),c.setUint32(10,Math.floor(a/4294967296),true),c.setUint32(14,t,true),c.setUint32(18,e,true),c.setUint32(22,0,true),o[26]=r.length,o.set(r,27);let f=27+r.length;for(let u of i)o.set(u,f),f+=u.length;return c.setUint32(22,E(o),true),o}function C(i,a){let t=new Uint8Array(19),e=new DataView(t.buffer);return t.set([79,112,117,115,72,101,97,100],0),t[8]=1,t[9]=i,e.setUint16(10,a,true),e.setUint32(12,48e3,true),e.setUint16(16,0,true),t[18]=0,t}function M$3(){let i=new TextEncoder().encode("SocialLab"),a=new Uint8Array(12+i.length+4),t=new DataView(a.buffer);return a.set([79,112,117,115,84,97,103,115],0),t.setUint32(8,i.length,true),a.set(i,12),t.setUint32(12+i.length,0,true),a}function T$2(i){if(i.length===0)return 0;let a=i[0],t=v$1[a>>3],e=a&3,n=1;return e===1||e===2?n=2:e===3&&(n=i.length>1?i[1]&63:1),Math.round(t*48*n)}var O$2=(()=>{let i=new Uint32Array(256);for(let a=0;a<256;a++){let t=a<<24;for(let e=0;e<8;e++)t=t&2147483648?t<<1^79764919:t<<1;i[a]=t>>>0;}return i})();function E(i){let a=0;for(let t=0;t<i.length;t++)a=(a<<8^O$2[(a>>>24^i[t])&255])>>>0;return a>>>0}function A$2(i){let a=i.reduce((n,r)=>n+r.length,0),t=new Uint8Array(a),e=0;for(let n of i)t.set(n,e),e+=n.length;return t}var U$2="0.12.6",w$1=`https://unpkg.com/@ffmpeg/core@${U$2}/dist/umd`,D$2="https://unpkg.com/@ffmpeg/[email protected]/dist/esm/worker.js",S$1=(()=>{class i{static{this.ff=null;}static{this.fetchFileFn=null;}static{this.loadPromise=null;}static loadFFmpeg(){return this.loadPromise?this.loadPromise:(this.loadPromise=L$7(this,null,function*(){let{FFmpeg:t}=yield import('./chunk-B77OckCn.js'),{fetchFile:e,toBlobURL:n}=yield import('./chunk-DwR6LZZJ.js');this.fetchFileFn=e;let r=new t,[s,o]=yield Promise.all([n(`${w$1}/ffmpeg-core.js`,"text/javascript"),n(`${w$1}/ffmpeg-core.wasm`,"application/wasm")]);yield r.load({coreURL:s,wasmURL:o,classWorkerURL:D$2}),this.ff=r;}),this.loadPromise.catch(()=>{this.loadPromise=null;}),this.loadPromise)}static isImage(t){return t.type.startsWith("image/")}static isVideo(t){return t.type.startsWith("video/")}static isAudio(t){return t.type.startsWith("audio/")}static needsVideoConversion(t){return this.isVideo(t)&&t.type!=="video/mp4"}static{this.META_AUDIO_MIME_TYPES=["audio/aac","audio/amr","audio/mp4","audio/mpeg","audio/ogg"];}static needsAudioConversion(t){if(!this.isAudio(t))return false;let e=this.baseMimeTypeOf(t);return !this.META_AUDIO_MIME_TYPES.includes(e)}
10983static convertImageToJpeg(t){return new Promise((e,n)=>{let r=new Image,s=new FileReader;s.onload=o=>{r.onload=()=>{let c=document.createElement("canvas");c.width=r.width,c.height=r.height;let f=c.getContext("2d");if(!f){n("Canvas context not available");return}f.drawImage(r,0,0),c.toBlob(u=>{if(!u){n("Image conversion failed");return}e(new File([u],t.name.replace(/\.[^/.]+$/,"")+".jpg",{type:"image/jpeg"}));},"image/jpeg",.9);},r.onerror=()=>n("Image load error"),r.src=o.target.result;},s.onerror=()=>n("File read error"),s.readAsDataURL(t);})}static convertVideoToMp4(t){return L$7(this,null,function*(){yield this.loadFFmpeg();let e=this.ff,n=this.fetchFileFn,s=`input${this.extensionOf(t)||".vid"}`,o="output.mp4";yield e.writeFile(s,yield n(t));let c=yield this.runFfmpeg(e,["-y","-i",s,"-c","copy","-movflags","+faststart",o],o);if(c||(c=yield this.runFfmpeg(e,["-y","-i",s,"-c:v","libx264","-preset","veryfast","-crf","28","-c:a","aac","-movflags","+faststart",o],o)),yield this.cleanup(e,[s,o]),!c)throw new Error("FFmpeg could not convert the video to MP4");return new File([new Uint8Array(c)],t.name.replace(/\.[^/.]+$/,"")+".mp4",{type:"video/mp4"})})}static runFfmpeg(t,e,n){return L$7(this,null,function*(){try{let r=yield t.exec(e);if(typeof r=="number"&&r!==0)return null;let s=yield t.readFile(n);return s&&s.length>0?s.slice():null}catch(r){return null}})}static convertAudioToMp3(t){return L$7(this,null,function*(){yield this.loadFFmpeg();let e=this.ff,n=this.fetchFileFn,s=`input${this.extensionOf(t)||".aud"}`,o="output.mp3";yield e.writeFile(s,yield n(t)),yield e.exec(["-i",s,"-c:a","libmp3lame","-q:a","4",o]);let c=yield e.readFile(o);yield this.cleanup(e,[s,o]);let f=c.slice();return new File([f],t.name.replace(/\.[^/.]+$/,"")+".mp3",{type:"audio/mpeg"})})}static convertRecordingToVoiceNote(t){return L$7(this,null,function*(){let e=this.baseMimeTypeOf(t);if(e==="audio/ogg")return this.rewrap(t,".ogg","audio/ogg");if(e==="audio/webm"){try{let r=yield d$2(t);if(r)return r}catch(r){console.warn("[MediaConverter] In-browser WebM\u2192OGG remux failed:",r);}let n=yield this.remuxToOggOpus(t);if(n)return n}return e==="audio/mp4"||e==="audio/aac"?this.rewrap(t,".m4a",e):yield this.convertAudioToMp3(t)})}static remuxToOggOpus(t){return L$7(this,null,function*(){try{yield this.loadFFmpeg();}catch(o){return console.warn("[MediaConverter] FFmpeg unavailable for voice-note remux:",o),null}let e=this.ff,n=this.fetchFileFn,r=`input${this.extensionOf(t)||".webm"}`,s="output.ogg";try{yield e.writeFile(r,yield n(t));let o=yield this.runFfmpeg(e,["-y","-i",r,"-c:a","copy","-f","ogg",s],s);return o||(o=yield this.runFfmpeg(e,["-y","-i",r,"-c:a","libopus","-b:a","32k","-ar","48000","-ac","1","-f","ogg",s],s)),yield this.cleanup(e,[r,s]),o?new File([new Uint8Array(o)],"voice-note.ogg",{type:"audio/ogg"}):null}catch(o){return console.warn("[MediaConverter] Voice-note remux failed:",o),yield this.cleanup(e,[r,s]),null}})}static rewrap(t,e,n){return new File([t],`voice-note${e}`,{type:n})}static prepareMediaFiles(t){return L$7(this,null,function*(){let e=[];for(let n of t)if(this.needsVideoConversion(n))try{e.push(yield this.convertVideoToMp4(n));}catch(r){console.warn("[MediaConverter] Video conversion failed, using original:",r),e.push(n);}else if(this.needsAudioConversion(n))try{e.push(yield this.convertAudioToMp3(n));}catch(r){console.warn("[MediaConverter] Audio conversion failed, using original:",r),e.push(n);}else if(this.isImage(n))try{e.push(yield this.convertImageToJpeg(n));}catch(r){e.push(n);}else e.push(n);return e})}static prepareSingleFile(t){return L$7(this,null,function*(){if(this.needsVideoConversion(t))try{return yield this.convertVideoToMp4(t)}catch(e){return t}if(this.needsAudioConversion(t))try{return yield this.convertAudioToMp3(t)}catch(e){return t}return t})}static baseMimeTypeOf(t){return (t.type||"").split(";")[0].trim().toLowerCase()}static extensionOf(t){let e=t.name.lastIndexOf(".");return e>=0?t.name.substring(e):""}static cleanup(t,e){return L$7(this,null,function*(){for(let n of e)try{yield t.deleteFile(n);}catch(r){}})}}return i})();
10984var o$4={ADD_FILE:"AddFile",UPDATE_FILE:"UpdateFile",DELETE_FILE:"DeleteFile",ADD_FOLDER:"AddFolder",UPDATE_FOLDER:"UpdateFolder",DELETE_FOLDER:"DeleteFolder",GET_IMAGE:"GetImage",GET_FILE_BY_ID:"GetFileById",SEARCH:"Search",DELETE_FILES_BEFORE_DATE:"DeleteFilesBeforeDate"},w=(()=>{class a extends se$2{constructor(e,t,r){super(e,t,r,"FileFolder/");}addFile(e,t){let r=new FormData;r.append("FileContent",e,e.name);let n=new St$5({Authorization:"Bearer "+localStorage.getItem("token")}),s=`${ee$1.serverBaseUrl}FileFolder/AddFile?ParentId=${t??""}`,d=new zr("POST",s,r,{headers:n,reportProgress:true,responseType:"text"});return this.http.request(d)}addFileObject(e,t){let r=new FormData;r.append("fileContent",e,e.name),r.append("parentId",t?.toString()??"");let n={headers:new St$5({Authorization:"Bearer "+localStorage.getItem("token")})};return this.http.post(this.baseUrl+"FileFolder/"+o$4.ADD_FILE,r,n)}addFolder(e,t){return this.post(o$4.ADD_FOLDER,{name:e,parentId:t})}rename(e,t,r){let n=e?o$4.UPDATE_FOLDER:o$4.UPDATE_FILE;return this.post(n,{id:t,name:r})}deleteFileFolder(e,t){let r=e?o$4.DELETE_FOLDER:o$4.DELETE_FILE;return this.post(r,{id:t})}searchFoldersFiles(e,t,r,n,s){return this.post(o$4.SEARCH,{searchInput:n,folderId:r,pageNumber:e,pageSize:t,minSizeBytes:s??null})}getFileById(e){return this.post(o$4.GET_FILE_BY_ID,{id:e})}getImage(e){if(e==null)return new R$4;new St$5().set("authorization","Bearer "+localStorage.getItem("token"));return this.http.get(this.baseUrl+o$4.GET_IMAGE+"?id="+e,{responseType:"text"})}downloadFile(e,t){let r=new St$5({Authorization:"Bearer "+localStorage.getItem("token")}),n=`${ee$1.serverBaseUrl}FileFolder/GetFile?Id=${e}`;this.http.get(n,{headers:r,responseType:"blob"}).subscribe({next:s=>{let d=window.URL.createObjectURL(s),l=document.createElement("a");l.href=d,l.download=t,document.body.appendChild(l),l.click(),document.body.removeChild(l),window.URL.revokeObjectURL(d);}});}getFileBlob(e){let t=new St$5({Authorization:"Bearer "+localStorage.getItem("token")});return this.http.get(`${ee$1.serverBaseUrl}FileFolder/GetFile?Id=${e}`,{headers:t,responseType:"blob"})}deleteFilesBeforeDate(e){return this.post(o$4.DELETE_FILES_BEFORE_DATE,{beforeDateTime:e})}static{this.\u0275fac=function(t){return new(t||a)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})();var h$1=["*"],v={image:["image/jpeg","image/png","image/webp"],video:["video/mp4","video/3gpp"],audio:["audio/aac","audio/mp4","audio/mpeg","audio/amr","audio/ogg","audio/opus"],document:["application/pdf","text/plain","application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]},S={image:5*1024*1024,audio:16*1024*1024,video:16*1024*1024,document:100*1024*1024},M$2=(()=>{class n{constructor(e,i,t,r){this.uploadService=e,this.toastr=i,this.loadingService=t,this.errorService=r,this.uploaded=new kt$3,this.fileSelected=new kt$3;}open(){let e=document.createElement("input");e.type="file",e.multiple=!!this.config.multiple,e.accept=this.buildAcceptString(),e.onchange=i=>{let t=Array.from(i.target.files||[]);t.length&&t.forEach(r=>this.handleFile(r));},e.click();}handleFile(e){return L$7(this,null,function*(){if(!this.isAllowedType(e)){this.toastr.error("File type is not allowed");return}if(!this.isAllowedSize(e)){this.toastr.error("File size exceeds the maximum limit");return}this.fileSelected.emit(e);let i=e;if(this.config.convert!==false&&(S$1.needsVideoConversion(e)||S$1.needsAudioConversion(e))){this.loadingService.loadingOn();try{i=yield S$1.prepareSingleFile(e);}catch(r){}this.loadingService.loadingOff();}this.uploadFile(i);})}uploadFile(e){this.loadingService.loadingOn(),this.uploadService.addFileObject(e,this.targetId??null).subscribe({next:i=>{this.loadingService.loadingOff(),i?.succeeded?this.uploaded.emit(i.data??i):this.errorService.setError(i,"Upload failed");},error:i=>{this.loadingService.loadingOff(),this.errorService.setError(i,"Upload failed");}});}mimeTypesOf(e){return this.config.mimeTypes?.[e]??v[e]}isAllowedType(e){return this.config.categories.flatMap(t=>this.mimeTypesOf(t)).includes(e.type)}isAllowedSize(e){let i=this.config.categories.find(t=>this.mimeTypesOf(t).includes(e.type));return i?e.size<=(this.config.sizeLimits?.[i]??S[i]):false}buildAcceptString(){return this.config.categories.flatMap(e=>this.mimeTypesOf(e)).join(",")}static{this.\u0275fac=function(i){return new(i||n)(V$3(w),V$3(ut$2),V$3(P$2),V$3(Gt))};}static{this.\u0275cmp=Xb({type:n,selectors:[["app-local-file-upload"]],inputs:{config:"config",targetId:"targetId"},outputs:{uploaded:"uploaded",fileSelected:"fileSelected"},ngContentSelectors:h$1,decls:1,vars:0,template:function(i,t){i&1&&(p_$1(),h_$1(0));},encapsulation:2,changeDetection:1});}}return n})();var t={GET_CUSTOMER_PROFILE:"GetCustomerProfile",UPDATE_CUSTOMER:"UpdateCustomer",CHANGE_CUSTOMER_PROFILE_PIC:"ChangeCustomerProfilePic",ADD_CUSTOMER_COMMENT:"AddCustomerComment",GET_CUSTOMER_COMMENTS:"GetCustomerComments",ARCHIVE_CUSTOMER:"ArchiveCustomer",UNARCHIVE_CUSTOMER:"UnarchiveCustomer",BLOCK_CUSTOMER:"BlockCustomer",UNBLOCK_CUSTOMER:"UnblockCustomer",GET_ALL_CUSTOMERS:"GetAllCustomers",CREATE_CUSTOMER:"CreateCustomer",GET_CUSTOMER_BY_ID:"GetCustomerById",GET_OR_CREATE_CUSTOMER:"GetOrCreateCustomer",GET_OR_CREATE_CUSTOMER_FROM_CONTACT:"GetOrCreateCustomerFromContact",GET_OR_CREATE_EMAIL_CUSTOMER_FROM_CONTACT:"GetOrCreateEmailCustomerFromContact",GET_CUSTOMER_BY_PHONE:"GetCustomerByPhoneNumber",UPDATE_CUSTOMER_TAGS:"UpdateCustomerTags",ASSIGN_SESSION_TO_USER:"AssignSessionToUser",UNASSIGN_SESSION_FROM_USER:"UnassignSessionFromUser",CLOSE_SESSION:"CloseSession",MUTE_UNMUTE:"MuteCustomer",PIN_CONVERSATION:"PinConversation",UNPIN_CONVERSATION:"UnpinConversation",TOGGLE_AI_AUTO_REPLY:"ToggleAIAutoReply",REMOVE_CUSTOMER_FROM_PROMOTION:"RemoveCustomerFromPromotion",G
10984ET_ALL_CUSTOMER_SESSIONS:"GetAllCustomerSessions",GENERATE_SUMMARY:"GenerateConversationSummary",RATE_SUMMARY:"RateConversationSummary",SUMMARY_CONFIG:"GetConversationSummaryConfig",SUMMARY_STATUS:"GetConversationSummaryStatus",GET_CUSTOMER_STORE_ORDERS:"GetCustomerStoreOrders",GET_CUSTOMER_ACTIVITY_COUNTS:"GetCustomerActivityCounts",GET_MARKETING_CONSENT:"GetMarketingConsent",GET_MARKETING_CONSENT_HISTORY:"GetMarketingConsentHistory",BULK_UPDATE_MARKETING_CONSENT:"BulkUpdateMarketingConsent"},U$1=(()=>{class o extends se$2{constructor(e,s,r){super(e,s,r,"Customer/");}getProfile(e,s,r){return this.post(t.GET_CUSTOMER_PROFILE,{id:e,pageNumber:s,pageSize:r})}archiveCustomer(e){return this.post(t.ARCHIVE_CUSTOMER,{Id:e})}unarchiveCustomer(e){return this.post(t.UNARCHIVE_CUSTOMER,{Id:e})}blockCustomer(e){return this.post(t.BLOCK_CUSTOMER,{Id:e})}unblockCustomer(e){return this.post(t.UNBLOCK_CUSTOMER,{Id:e})}updateCustomer(e){return this.post(t.UPDATE_CUSTOMER,{Id:e.id,name:e.name,language:e.language,isReceivePromotions:e.isReceivePromotions,isReceiveAutoReply:e.isReceiveAutoReply,isReceiveAiAutoReply:e.isReceiveAIAutoReply})}updateCustomerTags(e,s){return this.post(t.UPDATE_CUSTOMER_TAGS,{id:e,tags:s})}changeProfilePic(e,s){return this.post(t.CHANGE_CUSTOMER_PROFILE_PIC,{id:e.id,fileId:s})}addComment(e,s){return this.post(t.ADD_CUSTOMER_COMMENT,{customerId:s,text:e.text,stars:e.stars})}getCustomerComments(e,s,r){return this.post(t.GET_CUSTOMER_COMMENTS,{id:e,pageNumber:s,pageSize:r})}getCustomerStoreOrders(e,s,r,_){return this.post(t.GET_CUSTOMER_STORE_ORDERS,{customerId:e,provider:s,pageNumber:r,pageSize:_})}getCustomers(e){return this.post(t.GET_ALL_CUSTOMERS,{pageNumber:e.pageNumber,pageSize:e.pageSize,searchInput:e.searchInput,isArchived:e.isArchive,isBlocked:e.isBlock,isUnread:e.isUnread,assignedTo:e.assignedTo,assignedToUserId:e.assignedToUserId,sessionStatus:e.sessionStatus,messagingPlatform:e.messagingPlatform,newFirst:e.newFirst,hasActiveFollowUp:e.hasActiveFollowUp,tags:e.tags,consentStatus:e.consentStatus??null})}getMarketingConsent(e){return this.post(t.GET_MARKETING_CONSENT,{searchInput:e.searchInput??null,status:e.status??null,messagingPlatform:e.messagingPlatform??null,source:e.source??null,pageNumber:e.pageNumber,pageSize:e.pageSize})}getMarketingConsentHistory(e){return this.post(t.GET_MARKETING_CONSENT_HISTORY,{id:e})}bulkUpdateMarketingConsent(e,s){return this.post(t.BULK_UPDATE_MARKETING_CONSENT,{customerIds:e,isReceivePromotions:s})}getCustomerByIdForMessages(e){return this.post(t.GET_ALL_CUSTOMERS,{customerId:e,pageNumber:0,pageSize:1})}addCustomer(e){return this.post(t.CREATE_CUSTOMER,{phoneNumber:e.phoneNumber.toString(),name:e.name,isReceivePromotions:!!e.isReceivePromotions,language:e.language})}getCustomer(e){return this.post(t.GET_CUSTOMER_BY_ID,{id:e})}getOrCreateCustomer(e,s){return this.post(t.GET_OR_CREATE_CUSTOMER,{phoneNumber:e,name:s})}getOrCreateCustomerFromContact(e){return this.post(t.GET_OR_CREATE_CUSTOMER_FROM_CONTACT,{id:e})}getOrCreateEmailCustomerFromContact(e){return this.post(t.GET_OR_CREATE_EMAIL_CUSTOMER_FROM_CONTACT,{id:e})}getCustomerByPhoneNumber(e){return this.post(t.GET_CUSTOMER_BY_PHONE,{phoneNumber:e})}assignSessionToUser(e,s,r){return this.post(t.ASSIGN_SESSION_TO_USER,{customerId:e,userId:s,departmentId:r})}unassignSession(e){return this.post(t.UNASSIGN_SESSION_FROM_USER,{customerId:e})}closeSession(e,s){return this.post(t.CLOSE_SESSION,{customerId:e,sessionId:s})}muteUnmute(e){return this.post(t.MUTE_UNMUTE,{id:e})}pinConversation(e){return this.post(t.PIN_CONVERSATION,{id:e})}unpinConversation(e){return this.post(t.UNPIN_CONVERSATION,{id:e})}toggleAIAutoReply(e){return this.post(t.TOGGLE_AI_AUTO_REPLY,{id:e})}removeCustomerFromPromotion(e){return this.post(t.REMOVE_CUSTOMER_FROM_PROMOTION,{id:e})}getAllCustomerSessions(e){return this.post(t.GET_ALL_CUSTOMER_SESSIONS,{id:e})}getCustomerActivityCounts(e){return this.post(t.GET_CUSTOMER_ACTIVITY_COUNTS,{id:Number(e)})}generateConversationSummary(e,s){return this.post(t.GENERATE_SUMMARY,{customerId:e,sessionId:s})}rateConversationSummary(e,s){return this.post(t.RATE_SUMMARY,{messageId:e,isUseful:s})}getConversationSummaryConfig(){return this.get(t.SUMMARY_CONFIG)}getConversationSummaryStatus(e,s){return this.get(t.SUMMARY_STATUS,{customerId:e,sessionId:s})}static{this.\u0275fac=function(s){return new(s||o)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o}
10984)();var $i=(()=>{class m{constructor(s){this.dialogRef=s;}onConfirm(){this.dialogRef.close(true);}onCancel(){this.dialogRef.close(false);}static{this.\u0275fac=function(n){return new(n||m)(V$3(an))};}static{this.\u0275cmp=Xb({type:m,selectors:[["app-availability-disabled-dialog"]],decls:17,vars:13,consts:[[1,"availability-warning-dialog"],["mat-dialog-title","",1,"d-flex","align-items-center"],[1,"m-r-12",2,"color","#ff9800"],[1,"f-s-16"],["align","end",1,"p-x-24","p-y-16"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","warn",3,"mat-dialog-close"]],template:function(n,mi){n&1&&(Js$2(0,"div",0)(1,"h2",1)(2,"mat-icon",2),H_$1(3,"warning"),gd$2(),H_$1(4),pS(5,"translate"),gd$2(),Js$2(6,"mat-dialog-content")(7,"p",3),H_$1(8),pS(9,"translate"),gd$2()(),Js$2(10,"mat-dialog-actions",4)(11,"button",5),Ey("click",function(){return mi.onCancel()}),H_$1(12),pS(13,"translate"),gd$2(),Js$2(14,"button",6),H_$1(15),pS(16,"translate"),gd$2()()()),n&2&&(SC(4),Ed$2(" ",gS$1(5,5,"Confirm Availability Change")," "),SC(4),Ed$2(" ",gS$1(9,7,"In case there is an assigned conversation, it will be handled according to the automatic assignment settings.")," "),SC(4),Ed$2(" ",gS$1(13,9,"Cancel")," "),SC(2),dy("mat-dialog-close",true),SC(),Ed$2(" ",gS$1(16,11,"Confirm")," "));},dependencies:[Tt$2,ny,Jv,ey,iy,ty,Vs$1,zs$1,Xv,Ng,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,go$2,Kd,XE,LT,mA,mt$4],encapsulation:2,changeDetection:1});}}return m})();function $$1(D){let u=D;return u===0?0:u===1?1:u===2?2:u%100===Math.floor(u%100)&&u%100>=3&&u%100<=10?3:u%100===Math.floor(u%100)&&u%100>=11&&u%100<=99?4:5}var M$1=["ar",[["\u0635","\u0645"]],[["\u0635","\u0645"],void 0,["\u0635\u0628\u0627\u062D\u064B\u0627","\u0645\u0633\u0627\u0621\u064B"]],[["\u062D","\u0646","\u062B","\u0631","\u062E","\u062C","\u0633"],["\u0627\u0644\u0623\u062D\u062F","\u0627\u0644\u0627\u062B\u0646\u064A\u0646","\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062E\u0645\u064A\u0633","\u0627\u0644\u062C\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062A"],void 0,["\u0623\u062D\u062F","\u0625\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"]],void 0,[["\u064A","\u0641","\u0645","\u0623","\u0648","\u0646","\u0644","\u063A","\u0633","\u0643","\u0628","\u062F"],["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"]],void 0,[["\u0642.\u0645","\u0645"],void 0,["\u0642\u0628\u0644 \u0627\u0644\u0645\u064A\u0644\u0627\u062F","\u0645\u064A\u0644\u0627\u062F\u064A"]],6,[5,6],["d\u200F/M\u200F/y","dd\u200F/MM\u200F/y","d MMMM y","EEEE\u060C d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}\u060C {0}",void 0,void 0,void 0],[".",",",";","\u200E%\u200E","\u200E+","\u200E-","E","\xD7","\u2030","\u221E","\u0644\u064A\u0633\xA0\u0631\u0642\u0645\u064B\u0627",":"],["#,##0.###","#,##0%","\u200F#,##0.00\xA0\xA4;\u200F-#,##0.00\xA0\xA4","#E0"],"EGP","\u062C.\u0645.\u200F","\u062C\u0646\u064A\u0647 \u0645\u0635\u0631\u064A",{AED:["\u062F.\u0625.\u200F"],ARS:[void 0,"AR$"],AUD:["AU$"],BBD:[void 0,"BB$"],BHD:["\u062F.\u0628.\u200F"],BMD:[void 0,"BM$"],BND:[void 0,"BN$"],BSD:[void 0,"BS$"],BYN:[void 0,"\u0440."],BZD:[void 0,"BZ$"],CAD:["CA$"],CLP:[void 0,"CL$"],CNY:["CN\xA5"],COP:[void 0,"CO$"],CUP:[void 0,"CU$"],DOP:[void 0,"DO$"],DZD:["\u062F.\u062C.\u200F"],EGP:["\u062C.\u0645.\u200F","E\xA3"],FJD:[void 0,"FJ$"],GBP:["UK\xA3"],GYD:[void 0,"GY$"],HKD:["HK$"],IQD:["\u062F.\u0639.\u200F"],IRR:["\u0631.\u0625."],JMD:[void 0,"JM$"],JOD:["\u062F.\u0623.\u200F"],JPY:["JP\xA5"],KWD:["\u062F.\u0643.\u200F"],KYD:[void 0,"KY$"],LBP:["\u0644.\u0644.\u200F","L\xA3"],LRD:[void 0,"$
10984LR"],LYD:["\u062F.\u0644.\u200F"],MAD:["\u062F.\u0645.\u200F"],MRU:["\u0623.\u0645."],MXN:["MX$"],NZD:["NZ$"],OMR:["\u0631.\u0639.\u200F"],PHP:[void 0,"\u20B1"],QAR:["\u0631.\u0642.\u200F"],SAR:["\u0631.\u0633.\u200F"],SBD:[void 0,"SB$"],SDD:["\u062F.\u0633.\u200F"],SDG:["\u062C.\u0633."],SRD:[void 0,"SR$"],SYP:["\u0644.\u0633.\u200F","\xA3"],THB:["\u0E3F"],TND:["\u062F.\u062A.\u200F"],TTD:[void 0,"TT$"],TWD:["NT$"],USD:["US$"],UYU:[void 0,"UY$"],YER:["\u0631.\u064A.\u200F"]},"rtl",$$1];var o$3=(()=>{class t{constructor(){this.balanceSubject=new Jr$1(0),this.balance$=this.balanceSubject.asObservable();}updateBalance(e){this.balanceSubject.next(e);}getBalance(){return this.balanceSubject.getValue()}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var e$1={GET_MY_WALLET:"GetMyWallet",GET_MY_BUCKETS:"GetMyBuckets",GET_MY_LEDGER:"GetMyLedger",GET_MY_USAGE_SUMMARY:"GetMyUsageSummary",GET_AVAILABLE_PACKAGES:"GetAvailablePackages",CREATE_PURCHASE_INVOICE:"CreatePurchaseInvoice",PAY_POINTS_INVOICE:"PayPointsInvoice",GET_MY_INVOICES:"GetMyInvoices",GET_MY_INVOICE_BY_ID:"GetMyInvoiceById",GET_CAMPAIGN_COST_ESTIMATE:"GetCampaignCostEstimate"},p$3=(()=>{class i extends se$2{constructor(t,r,a){super(t,r,a,"points/");}getMyWallet(){return this.post(e$1.GET_MY_WALLET,{})}getMyBuckets(){return this.post(e$1.GET_MY_BUCKETS,{})}getMyLedger(t){return this.post(e$1.GET_MY_LEDGER,t)}getMyUsageSummary(t,r){return this.post(e$1.GET_MY_USAGE_SUMMARY,{fromDate:t,toDate:r})}getCampaignCostEstimate(t){return this.post(e$1.GET_CAMPAIGN_COST_ESTIMATE,{recipientCount:t})}getAvailablePackages(){return this.post(e$1.GET_AVAILABLE_PACKAGES,{})}createPurchaseInvoice(t){return this.post(e$1.CREATE_PURCHASE_INVOICE,t)}payPointsInvoice(t){return this.post(e$1.PAY_POINTS_INVOICE,t)}getMyInvoices(){return this.post(e$1.GET_MY_INVOICES,{})}getMyInvoiceById(t){return this.post(e$1.GET_MY_INVOICE_BY_ID,{id:t})}static{this.\u0275fac=function(r){return new(r||i)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var n={GET_CART_ITEMS:"GetCartItems",REMOVE_FROM_CART:"RemoveFromCart",COMPLETE_ORDER:"CompleteOrder",COMPLETE_ORDER_WITH_POINTS:"CompleteOrderWithPoints"},f$2=(()=>{class t extends se$2{constructor(e,r,m){super(e,r,m,"SubscriptionFeatureCart/");}getCartItems(){return this.get(n.GET_CART_ITEMS,{})}removeFromCart(e){return this.delete(n.REMOVE_FROM_CART,{id:e})}completeOrder(){return this.post(n.COMPLETE_ORDER,{})}completeOrderWithPoints(){return this.post(n.COMPLETE_ORDER_WITH_POINTS,{})}static{this.\u0275fac=function(r){return new(r||t)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var l$2=(()=>{class t{constructor(){this.cartCountSubject=new Jr$1(0),this.cartCount$=this.cartCountSubject.asObservable(),this.cartCountSubject.next(0);}updateCartCount(e){this.cartCountSubject.next(e);}getCartCount(){return this.cartCountSubject.value}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var p$2=(()=>{class r{transform(t,o=2){if(t==null)return "";if(!+t)return "0 Bytes";let e=1024,a=o<0?0:o,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(t)/Math.log(e));return `${parseFloat((t/Math.pow(e,i)).toFixed(a))} ${s[i]}`}static{this.\u0275fac=function(o){return new(o||r)};}static{this.\u0275pipe=Fe$4({name:"formatBytes",type:r,pure:true});}}return r})();var o$2=(()=>{class e{transform(t){return t}static{this.\u0275fac=function(r){return new(r||e)};}static{this.\u0275pipe=Fe$4({name:"localTime",type:e,pure:true});}}return e})();var Ae$1=["dialogContent"];function Le$1(t,p){if(t&1){let e=i_$1();Js$2(0,"a",10),Ey("click",function(){Vp$2(e);let l=d_$1(2);return Hp$2(l.getFolder(l.folderContent.folder.parentId))}),H_$1(1),pS(2,"translate"),gd$2();}t&2&&(SC(),jy(gS$1(2,1,"Up")));}function Qe$1(t,p){if(t&1&&(Js$2(0,"a",8),H_$1(1),gd$2()),t&2){let e=d_$1(2);SC(),jy(e.folderContent.folder.path);}}function je(t,p){if(t&1){let e=i_$1();Js$2(0,"a",16),Ey("click",function(){Vp$2(e);let l=d_$1().$implicit,_=d_$1(3);return Hp$2(_.getFolder(l.id))}),Js$2(1,"mat-icon",17),H_$1(2,"folder_copy"),gd$2()();}}function qe$1(t,p){if(t&1){let e=i_$1();Js$2(0,"a",18),Ey("click",function(){Vp$2(e);let l=d_$1().$implicit,_=d_$1(3);return Hp$2(_.addSelected(l))}),Js$2(1,"mat-icon",17),H_$1(2,"check"),gd$2()();}}function Ge$2(t,p){if(t&1){let e=i_$1();Js$2(0,"a",19),Ey("click",function(){Vp$2(e);let l=d_$1().$implicit,_=d_$1(3);return Hp$2(_.getFolder(l.id))}),fy(1,"i",20),H_$1(2),gd$2();}if(t&2){let e=d_$1().$implicit;SC(2),Ed$2(" ",e?.name," ");}}function He$1(t,p){if(t&1){let e=i_$1();Js$2(0,"a",19),Ey("click",function(){Vp$2(e);let l=d_$1().$implicit,_=d_$1(3);return Hp$2(_.downloadFile(l))}),fy(1,"i",21),H_$1(2),gd$2();}if(t&2){let e=d_$1().$implicit;SC(2),Ed$2(" ",e?.name," ");}}function Ne$1(t,p){if(t&1&&(Js$2(0,"span"),H_$1(1),pS(2,"formatBytes"),gd$2()),t&2){let e=d_$1().$implicit;SC(),jy(gS$1(2,1,e.size));}}function Ue$1(t,p){if(t&1&&(Js$2(0,"tr")(1,"td"),ZT(2,je,3,0,"a",12),ZT(3,qe$1,3,0,"a",13),gd$2(),Js$2(4,"td",14),ZT(5,Ge$2,3,1,"a",15),ZT(6,He$1,3,1,"a",15),gd$2(),Js$2(7,"td"),H_$1(8),gd$2(),Js$2(9,"td"),ZT(10,Ne$1,3,3,"span"),gd$2(),Js$2(11,"td"),H_$1(12),pS(13,"localTime"),pS(14,"date"),gd$2()()),t&2){let e=p.$implicit;SC(2),YT(e?.isFolder?2:-1),SC(),YT(e?.isFolder?-1:3),SC(2),YT(e?.isFolder?5:-1),SC(),YT(e?.isFolder?-1:6),SC(2),jy(e?.type),SC(2),YT(e.isFolder?-1:10),SC(2),jy(mS(14,9,gS$1(13,7,e==null?null:e.createdOn),"dd/MM/yyyy hh:mm"));}}function Ye$1(t,p){if(t&1&&(Js$2(0,"div",9)(1,"table",11)(2,"thead")(3,"tr"),fy(4,"th"),Js$2(5,"th"),H_$1(6),pS(7,"translate"),gd$2(),Js$2(8,"th"),H_$1(9),pS(10,"translate"),gd$2(),Js$2(11,"th"),H_$1(12),pS(13,"translate"),gd$2(),Js$2(14,"th"),H_$1(15),pS(16,"translate"),gd$2()()(),Js$2(17,"tbody"),XT(18,Ue$1,15,12,"tr",null,WT().trackByItemId,true),gd$2()()()),t&2){let e=d_$1(2);SC(6),jy(gS$1(7,4,"Name")),SC(3),jy(gS$1(10,6,"Type")),SC(3),jy(gS$1(13,8,"Size")),SC(3),jy(gS$1(16,10,"Created")),SC(3),JT(e.folderContent.items);}}function Je$1(t,p){if(t&1&&(Js$2(0,"mat-dialog-content",2)(1,"div",5,0)(3,"div",6),ZT(4,Le$1,3,3,"a",7),ZT(5,Qe$1,2,1,"a",8),ZT(6,Ye$1,20,12,"div",9),gd$2()()()),t&2){let e=d_$1();
10984SC(4),YT(e.folderContent.folder?4:-1),SC(),YT(e.folderContent.folder?5:-1),SC(),YT(e.folderContent.items?6:-1);}}function Ke$2(t,p){if(t&1){let e=i_$1();Js$2(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),H_$1(3),pS(4,"translate"),gd$2()(),Js$2(5,"mat-card-content",22)(6,"mat-chip-grid",23)(7,"mat-chip-row",24),Ey("click",function(){Vp$2(e);let l=d_$1();return Hp$2(l.clear())}),H_$1(8),Js$2(9,"mat-icon",25),Ey("click",function(){Vp$2(e);let l=d_$1();return Hp$2(l.clear())}),H_$1(10,"delete"),gd$2()()()()();}if(t&2){let e=d_$1();SC(3),jy(gS$1(4,2,"Your selection")),SC(5),Ed$2(" ",e.data.name," ");}}var Kt=(()=>{class t{constructor(e,n){this.filesService=e,this.errorService=n,this.dialogRef=g$4(an),this.sub=new W$4,this.folderContent=null,this.getFolder(null);}downloadFile(e){this.filesService.downloadFile(e.id,e.name);}getFolder(e){this.sub.add(this.filesService.searchFoldersFiles(0,1e3,e).subscribe({next:n=>{n.succeeded?(this.folderContent=n.data,setTimeout(()=>{this.dialogContent&&(this.dialogContent.nativeElement.scrollTop=0);})):this.errorService.setError(n,"Error while getting the data");},error:n=>this.errorService.setError(n,"Error while getting the data")}));}addSelected(e){this.data=e;}close(){this.dialogRef.close();}clear(){this.data=null;}trackByItemId(e,n){return n.id}ngOnDestroy(){this.sub&&this.sub.unsubscribe();}static{this.\u0275fac=function(n){return new(n||t)(V$3(w),V$3(Gt))};}static{this.\u0275cmp=Xb({type:t,selectors:[["select-files-dialog"]],viewQuery:function(n,l){if(n&1&&by(Ae$1,5),n&2){let _;m_$1(_=y_$1())&&(l.dialogContent=_.first);}},decls:12,vars:12,consts:[["dialogContent",""],["mat-dialog-title","",1,"mat-subtitle-1"],[1,"dialog-content"],["type","button","mat-stroked-button","","color","warn",3,"click"],["mat-flat-button","","color","primary",3,"mat-dialog-close"],[1,"scroll-wrapper"],[1,"scroll-inner"],["mat-stroked-button","","color","primary"],[1,"tx-inverse","hover-primary"],[1,"table-responsive","m-t-30"],["mat-stroked-button","","color","primary",3,"click"],[1,"w-100"],["mat-icon-button","","color","azure","aria-label","folder copy"],["mat-icon-button","","color","primary","aria-label","check"],[1,"filename-cell"],[1,"file-name"],["mat-icon-button","","color","azure","aria-label","folder copy",3,"click"],[1,"icon-18"],["mat-icon-button","","color","primary","aria-label","check",3,"click"],[1,"file-name",3,"click"],[1,"icon","ion-ios-folder-outline","tx-24","tx-warning","lh-0","valign-middle"],[1,"far","fa-file","tx-22","lh-0","valign-middle"],[1,"b-t-1"],["aria-label","Color selection"],["color","primary",3,"click"],[1,"icon-18",3,"click"]],template:function(n,l){n&1&&(Js$2(0,"h5",1),H_$1(1),pS(2,"translate"),gd$2(),ZT(3,Je$1,7,3,"mat-dialog-content",2),ZT(4,Ke$2,11,4,"mat-card"),Js$2(5,"mat-dialog-actions")(6,"button",3),Ey("click",function(){return l.close()}),H_$1(7),pS(8,"translate"),gd$2(),Js$2(9,"button",4),H_$1(10),pS(11,"translate"),gd$2()()),n&2&&(SC(),jy(gS$1(2,6,"Select the required file(s)")),SC(2),YT(l.folderContent?3:-1),SC(),YT(l.data&&l.data.id?4:-1),SC(3),jy(gS$1(8,8,"Close")),SC(2),dy("mat-dialog-close",l.data),SC(),jy(gS$1(11,10,"Ok")));},dependencies:[Tt$2,XE,dn,zw,Ng,Xv,zg,w0$1,H0,Zx,sk,nd$1,rC,wC,mv,GC,tD,vD,cD,hD,_D,mD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,Fi$2,GS,iI,RI,TI,Cf,us,ms,UI,tE,Dn$1,ME,ny,Jv,ey,iy,ty,go$2,Kd,LT,mA,mt$4,p$2,o$2,WM],styles:[".dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.scroll-wrapper[_ngcontent-%COMP%]{flex:1;overflow-x:auto;overflow-y:auto}.scroll-inner[_ngcontent-%COMP%]{display:inline-block;min-width:100%}.filename-cell[_ngcontent-%COMP%]{max-width:200px}.file-name[_ngcontent-%COMP%]{display:inline-block;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-name[_ngcontent-%COMP%]:hover{white-space:normal;overflow:visible;position:relative;z-index:10}"],changeDetection:1});}}return t})();var g$1=(()=>{class i{transform(t){if(!t)return "";if(!/[<&]/.test(t))return t;let s=t.replace(a,` 10985`).replace(c$2,n=>l$1.test(n)?` 10986`:"").replace(p$1,"").replace(u$1,n=>f$1[n.toLowerCase()]);return m$1(s)}static{this.\u0275fac=function(s){return new(s||i)};}static{this.\u0275pipe=Fe$4({name:"plainText",type:i,pure:true});}}return i})(),a=/<br\b[^<>]*>|<\/?(?:div|p|li|h[1-6])\b[^<>]*>/gi,c$2=/<span\b[^<>]*>/gi,l$1=/\bdisplay\s*:\s*block\b/i,p$1=/<\/?(?:span|strong|b|i|em|u|small|ul|ol)\b[^<>]*>/gi,u$1=/&(?:nbsp|lt|gt|quot|#39|amp);/gi,f$1={" ":" ","<":"<",">":">",""":'"',"'":"'","&":"&"},T$1=/^\(×\d+\)$/;function m$1(i){let e=[],t=-1;for(let s of i.split(`
10987`)){let n=s.trim(),r=e.length-1;if(r>=0&&e[r]==="\u2022"){n&&(e[r]=`\u2022 ${n}`);continue}if(t>=0&&T$1.test(n)){e[t]=`${e[t]} ${n}`;continue}e.push(n),n&&(t=e.length-1);}return e.join(` 10988`).replace(/\n{3,}/g,` 10989 10990`).trim()}var r$2=(function(e){return e[e.NewClientSignUp=1]="NewClientSignUp",e[e.NewClientSalla=2]="NewClientSalla",e[e.NewClientZid=3]="NewClientZid",e[e.SubscriptionAboutToExpire=4]="SubscriptionAboutToExpire",e[e.SubscriptionAboutToExpireSalla=5]="SubscriptionAboutToExpireSalla",e[e.SubscriptionAboutToExpireZid=6]="SubscriptionAboutToExpireZid",e[e.SubscriptionExpired=7]="SubscriptionExpired",e[e.SubscriptionExpiredSalla=8]="SubscriptionExpiredSalla",e[e.SubscriptionExpiredZid=9]="SubscriptionExpiredZid",e[e.SubscriptionCancelled=10]="SubscriptionCancelled",e[e.SubscriptionCancelledSalla=11]="SubscriptionCancelledSalla",e[e.SubscriptionCancelledZid=12]="SubscriptionCancelledZid",e[e.ApplicationUninstalledSalla=13]="ApplicationUninstalledSalla",e[e.ApplicationUninstalledZid=14]="ApplicationUninstalledZid",e[e.PaymentFailed=15]="PaymentFailed",e[e.QRNumberCreated=16]="QRNumberCreated",e[e.QRNumberFailedCheck=17]="QRNumberFailedCheck",e[e.QRNumberDisconnected=18]="QRNumberDisconnected",e[e.NewMessage=20]="NewMessage",e[e.ContactUsMessage=21]="ContactUsMessage",e[e.ForgetPasswordRequest=30]="ForgetPasswordRequest",e[e.ForgetPasswordCompleted=31]="ForgetPasswordCompleted",e[e.AccountLocked=32]="AccountLocked",e[e.ActivatedAccount=40]="ActivatedAccount",e[e.ActivatedAccountSalla=41]="ActivatedAccountSalla",e[e.ActivatedAccountZid=42]="ActivatedAccountZid",e[e.OtpMessage=43]="OtpMessage",e[e.CustomerAssigned=50]="CustomerAssigned",e[e.VerificationCodeSMS=60]="VerificationCodeSMS",e[e.VerificationCodeEmail=61]="VerificationCodeEmail",e[e.VerificationCodeWhatsApp=62]="VerificationCodeWhatsApp",e[e.AIAssistantChanged=63]="AIAssistantChanged",e[e.GeneralNote=70]="GeneralNote",e[e.ClientGeneralNote=71]="ClientGeneralNote",e[e.ChangeLogPublic=80]="ChangeLogPublic",e[e.ChangeLogInternal=81]="ChangeLogInternal",e[e.AdminNotification=82]="AdminNotification",e[e.FeatureUsageThreshold80=90]="FeatureUsageThreshold80",e[e.FeatureUsageLimitReached=91]="FeatureUsageLimitReached",e[e.SecurityNewLogin=100]="SecurityNewLogin",e[e.EmailVerificationLink=101]="EmailVerificationLink",e[e.SallaConnectionBroken=102]="SallaConnectionBroken",e[e.MetaOutageAlert=103]="MetaOutageAlert",e[e.AIImprovementReminder=104]="AIImprovementReminder",e[e.ChannelHealthAlert=105]="ChannelHealthAlert",e[e.WhatsAppOnboardingActionRequired=106]="WhatsAppOnboardingActionRequired",e[e.OnboardingStepStalled=107]="OnboardingStepStalled",e[e.SeatLimitExceeded=108]="SeatLimitExceeded",e[e.SeatsSuspended=109]="SeatsSuspended",e[e.CallCenterNumberDown=110]="CallCenterNumberDown",e[e.SubscriptionRenewalFailed=111]="SubscriptionRenewalFailed",e[e.NotificationDigest=112]="NotificationDigest",e[e.ContactExportFinished=113]="ContactExportFinished",e[e.AIHandoverAwaitingHuman=114]="AIHandoverAwaitingHuman",e[e.MerchantEmailDomainStatus=115]="MerchantEmailDomainStatus",e[e.EmailCampaignCompleted=116]="EmailCampaignCompleted",e[e.EmailCampaignNeedsAttention=117]="EmailCampaignNeedsAttention",e})(r$2||{});function r$1(a,t){if(!a)return null;switch(a){case "business-digest":return t?{path:"/apps/ai/digest",queryParams:{initialDigestId:t}}:{path:"/apps/ai/digest"};case "campaign-analysis":return t?{path:`/apps/api-promotions/promotion-details/${t}`}:{path:"/apps/api-promotions"};case "assistant-from-conversations":return {path:"/apps/ai/agents"};case "ai-billing":return {path:"/apps/subscriptions"};case "ai-center":return {path:"/apps/ai"};case "email-settings":return {path:"/apps/settings/manage-email"};case "email-campaign":return s(t);case "custom-plan":return t?{path:`/admin/clients/client-profile/${t}`,queryParams:{section:"salla-custom-plan"}}:{path:"/admin/custom-plans"};case "contact-export":return t?{path:"/apps/contacts",queryParams:{contactExportId:t}}:{path:"/apps/contacts"};default:return null}}function s(a){let t=String(a??"").trim();return /^[1-9]\d*$/.test(t)?{path:`/apps/email/campaigns/${t}`}:{path:"/apps/email/campaigns"}}function p(a){switch(a){case r$2.NewClientSignUp:case r$2.NewClientSalla:case r$2.NewClientZid:return "person_add";case r$2.SubscriptionAboutToExpire:case r$2.SubscriptionAboutToExpireSalla:case r$2.SubscriptionAboutToExpireZid:return "alarm";case r$2.SubscriptionExpired:case r$2.SubscriptionExpiredSalla:case r$2.SubscriptionExpiredZid:return "timer_off";case r$2.SubscriptionCancelled:case r$2.SubscriptionCancelledSalla:case r$2.SubscriptionCancelledZid:return "block";case r$2.ApplicationUninstalledSalla:case r$2.ApplicationUninstalledZid:return "delete_sweep";
10990case r$2.PaymentFailed:return "credit_card_off";case r$2.QRNumberCreated:return "qr_code_2";case r$2.QRNumberFailedCheck:return "sync_problem";case r$2.QRNumberDisconnected:return "link_off";case r$2.NewMessage:return "chat_bubble";case r$2.CustomerAssigned:return "assignment_ind";case r$2.ContactUsMessage:return "mail";case r$2.ForgetPasswordRequest:return "key";case r$2.ForgetPasswordCompleted:return "lock_reset";case r$2.AccountLocked:return "lock";case r$2.ActivatedAccount:case r$2.ActivatedAccountSalla:case r$2.ActivatedAccountZid:return "check_circle";case r$2.VerificationCodeSMS:return "sms";case r$2.VerificationCodeEmail:return "mark_email_read";case r$2.VerificationCodeWhatsApp:case r$2.OtpMessage:return "password";case r$2.AIAssistantChanged:return "headset_mic";case r$2.AIImprovementReminder:return "auto_awesome";case r$2.FeatureUsageThreshold80:return "warning_amber";case r$2.FeatureUsageLimitReached:return "error";case r$2.SubscriptionRenewalFailed:return "credit_card_off";case r$2.ChangeLogPublic:case r$2.ChangeLogInternal:return "new_releases";case r$2.AdminNotification:return "campaign";case r$2.GeneralNote:case r$2.ClientGeneralNote:return "sticky_note_2";case r$2.SecurityNewLogin:return "devices";case r$2.EmailVerificationLink:return "mark_email_unread";case r$2.SallaConnectionBroken:return "link_off";case r$2.MetaOutageAlert:return "cloud_off";case r$2.ChannelHealthAlert:return "monitor_heart";case r$2.WhatsAppOnboardingActionRequired:return "chat_error";case r$2.OnboardingStepStalled:return "pending_actions";case r$2.SeatLimitExceeded:return "group";case r$2.SeatsSuspended:return "person_off";case r$2.CallCenterNumberDown:return "phone_disabled";case r$2.NotificationDigest:return "summarize";case r$2.ContactExportFinished:return "file_download";case r$2.AIHandoverAwaitingHuman:return "support_agent";case r$2.MerchantEmailDomainStatus:return "mail";case r$2.EmailCampaignCompleted:return "forward_to_inbox";case r$2.EmailCampaignNeedsAttention:return "report";default:return "notifications"}}var l=[{key:"all",label:"All",icon:"apps"},{key:"billing",label:"Subscription & billing",icon:"receipt_long"},{key:"messages",label:"Messages & customers",icon:"forum"},{key:"channels",label:"Channels",icon:"hub"},{key:"ai",label:"AI assistant",icon:"auto_awesome"},{key:"account",label:"Account & security",icon:"shield"},{key:"system",label:"System",icon:"campaign"}];function u(a){switch(a){case r$2.SubscriptionAboutToExpire:case r$2.SubscriptionAboutToExpireSalla:case r$2.SubscriptionAboutToExpireZid:case r$2.SubscriptionExpired:case r$2.SubscriptionExpiredSalla:case r$2.SubscriptionExpiredZid:case r$2.SubscriptionCancelled:case r$2.SubscriptionCancelledSalla:case r$2.SubscriptionCancelledZid:case r$2.ApplicationUninstalledSalla:case r$2.ApplicationUninstalledZid:case r$2.PaymentFailed:case r$2.FeatureUsageThreshold80:case r$2.SubscriptionRenewalFailed:case r$2.FeatureUsageLimitReached:case r$2.SeatLimitExceeded:case r$2.SeatsSuspended:return "billing";case r$2.NewMessage:case r$2.ContactUsMessage:case r$2.CustomerAssigned:case r$2.ContactExportFinished:case r$2.AIHandoverAwaitingHuman:return "messages";case r$2.QRNumberCreated:case r$2.QRNumberFailedCheck:case r$2.QRNumberDisconnected:case r$2.SallaConnectionBroken:case r$2.MetaOutageAlert:case r$2.ChannelHealthAlert:case r$2.WhatsAppOnboardingActionRequired:case r$2.CallCenterNumberDown:case r$2.MerchantEmailDomainStatus:case r$2.EmailCampaignCompleted:case r$2.EmailCampaignNeedsAttention:return "channels";case r$2.AIAssistantChanged:case r$2.AIImprovementReminder:return "ai";case r$2.NewClientSignUp:case r$2.NewClientSalla:case r$2.NewClientZid:case r$2.ActivatedAccount:case r$2.ActivatedAccountSalla:case r$2.ActivatedAccountZid:case r$2.ForgetPasswordRequest:case r$2.ForgetPasswordCompleted:case r$2.AccountLocked:case r$2.VerificationCodeSMS:case r$2.VerificationCodeEmail:case r$2.VerificationCodeWhatsApp:case r$2.OtpMessage:case r$2.SecurityNewLogin:case r$2.EmailVerificationLink:case r$2.OnboardingStepStalled:return "account";default:return "system"}}function i$1(a){let t=r$1(a.deepLinkKey,a.deepLinkValue);if(t)return t;switch(a.type){case r$2.SubscriptionAboutToExpireSalla:case r$2.SubscriptionExpiredSalla:case r$2.SubscriptionCancelledSalla:return {path:"https://apps.salla.sa/ar/app/412425472",external:true};case r$2.SubscriptionAboutToExpireZid:case r$2.SubscriptionExpiredZid:case r$2.SubscriptionCancelledZid:return {path:"https://apps.zid.sa/application/4750",external:true};case r$2.SubscriptionExpired:case r$2.SubscriptionCancelled:case r$2.SubscriptionAboutToExpire:case r$2.PaymentFailed:case r$2.FeatureUsageThreshold80:case r$2.SubscriptionRenewalFailed:case r$2.FeatureUsageLimitReached:return {path:"/apps/subscriptions"};case r$2.NewMessage:return {path:"/apps/messages"};case r$2.CustomerAssigned:return a.customerId?{path:`/apps/customers/customer-profile/${a.customerId}`}:{path:"/apps/messages"};case r$2.ChangeLogPublic:return {path:"/apps/whats-new"};case r$2.MerchantEmailDomainStatus:return {path:"/apps/settings/manage-email"};case r$2.EmailCampaignCompleted:case r$2.EmailCampaignNeedsAttention:return s(a.deepLinkValue);case r$2.AIImprovementReminder:return {path:"/apps/ai/agents"};default:return null}}function d(a){return a.customerId?{path:`/apps/customers/customer-profile/${a.customerId}`}:i$1(a)} 10991var c$1=(()=>
10991{class t{constructor(){this.availabilityChangedSubject=new ye$5,this.availabilityChanged$=this.availabilityChangedSubject.asObservable();}notifyAvailabilityChanged(){this.availabilityChangedSubject.next();}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275prov=x$3({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var o$1=(function(i){return i.Online="Online",i.Away="Away",i.InConversation="InConversation",i.Offline="Offline",i})(o$1||{});var L$1=(function(i){return i.Unimplemented="UNIMPLEMENTED",i.Unavailable="UNAVAILABLE",i})(L$1||{}),I=class extends Error{constructor(t,e,s){super(t),this.message=t,this.code=e,this.data=s;}},ue$1=i=>{var t,e;return i?.androidBridge?"android":!((e=(t=i?.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||e===void 0)&&e.bridge?"ios":"web"},de$1=i=>{let t=i.CapacitorCustomPlatform||null,e=i.Capacitor||{},s=e.Plugins=e.Plugins||{},r=()=>t!==null?t.name:ue$1(i),n=()=>r()!=="web",a=l=>{let d=p.get(l);return !!(d?.platforms.has(r())||h(l))},h=l=>{var d;return (d=e.PluginHeaders)===null||d===void 0?void 0:d.find(C=>C.name===l)},u=l=>i.console.error(l),p=new Map,E=(l,d={})=>{let C=p.get(l);if(C)return console.warn(`Capacitor plugin "${l}" already registered. Cannot register plugins twice.`),C.proxy;let S=r(),O=h(l),g,ce=()=>L$7(null,null,function*(){return !g&&S in d?g=typeof d[S]=="function"?g=yield d[S]():g=d[S]:t!==null&&!g&&"web"in d&&(g=typeof d.web=="function"?g=yield d.web():g=d.web),g}),le=(f,m)=>{var b,y;if(O){let w=O?.methods.find(v=>m===v.name);if(w)return w.rtype==="promise"?v=>e.nativePromise(l,m.toString(),v):(v,U)=>e.nativeCallback(l,m.toString(),v,U);if(f)return (b=f[m])===null||b===void 0?void 0:b.bind(f)}else {if(f)return (y=f[m])===null||y===void 0?void 0:y.bind(f);throw new I(`"${l}" plugin is not implemented on ${S}`,L$1.Unimplemented)}},M=f=>{let m,b=(...y)=>{let w=ce().then(v=>{let U=le(v,f);if(U){let k=U(...y);return m=k?.remove,k}else throw new I(`"${l}.${f}()" is not implemented on ${S}`,L$1.Unimplemented)});return f==="addListener"&&(w.remove=()=>L$7(null,null,function*(){return m()})),w};return b.toString=()=>`${f.toString()}() { [capacitor code] }`,Object.defineProperty(b,"name",{value:f,writable:false,configurable:false}),b},V=M("addListener"),Y=M("removeListener"),he=(f,m)=>{let b=V({eventName:f},m),y=()=>L$7(null,null,function*(){let v=yield b;Y({eventName:f,callbackId:v},m);}),w=new Promise(v=>b.then(()=>v({remove:y})));return w.remove=()=>L$7(null,null,function*(){console.warn("Using addListener() without 'await' is deprecated."),yield y();}),w},x=new Proxy({},{get(f,m){switch(m){case "$$typeof":return;case "toJSON":return ()=>({});case "addListener":return O?he:V;case "removeListener":return Y;default:return M(m)}}});return s[l]=x,p.set(l,{name:l,proxy:x,platforms:new Set([...Object.keys(d),...O?[S]:[]])}),x};return e.convertFileSrc||(e.convertFileSrc=l=>l),e.getPlatform=r,e.handleError=u,e.isNativePlatform=n,e.isPluginAvailable=a,e.registerPlugin=E,e.Exception=I,e.DEBUG=!!e.DEBUG,e.isLoggingEnabled=!!e.isLoggingEnabled,e},fe$1=i=>i.Capacitor=de$1(i),R$1=fe$1(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),W$1=R$1.registerPlugin,P$1=class P{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={};}addListener(t,e){let s=false;this.listeners[t]||(this.listeners[t]=[],s=true),this.listeners[t].push(e);let n=this.windowListeners[t];n&&!n.registered&&this.addWindowListener(n),s&&this.sendRetainedArgumentsForEvent(t);let a=()=>L$7(this,null,function*(){return this.removeListener(t,e)});return Promise.resolve({remove:a})}removeAllListeners(){return L$7(this,null,function*(){this.listeners={};for(let t in this.windowListeners)this.removeWindowListener(this.windowListeners[t]);this.windowListeners={};})}notifyListeners(t,e,s){let r=this.listeners[t];if(!r){if(s){let n=this.retainedEventArguments[t];n||(n=[]),n.push(e),this.retainedEventArguments[t]=n;}return}r.forEach(n=>n(e));}hasListeners(t){var e;return !!(!((e=this.listeners[t])===null||e===void 0)&&e.length)}registerWindowListener(t,e){this.windowListeners[e]={registered:false,windowEventName:t,pluginEventName:e,handler:s=>{this.notifyListeners(e,s);}};}unimplemented(t="not implemented"){return new R$1.Exception(t,L$1.Unimplemented)}unavailable(t="not available"){return new R$1.Exception(t,L$1.Unavailable)}removeListener(t,e){return L$7(this,null,function*(){let s=this.listeners[t];if(!s)return;let r=s.indexOf(e);this.listeners[t].splice(r,1),this.listeners[t].length||this.removeWindowListener(this.windowListeners[t]);})}addWindowListener(t){window.addEventListener(t.windowEventName,t.handler),t.registered=true;}removeWindowListener(t){t&&(window.removeEventListener(t.windowEventName,t.handler),t.registered=false);}sendRetainedArgumentsForEvent(t){let e=this.retainedEventArguments[t];e&&(delete this.retainedEventArguments[t],e.forEach(s=>{this.notifyListeners(t,s);}));}};var re$1=i=>
10991encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),ne$1=i=>i.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),D$1=class D extends P$1{getCookies(){return L$7(this,null,function*(){let t=document.cookie,e={};return t.split(";").forEach(s=>{if(s.length<=0)return;let[r,n]=s.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");r=ne$1(r).trim(),n=ne$1(n).trim(),e[r]=n;}),e})}setCookie(t){return L$7(this,null,function*(){try{let e=re$1(t.key),s=re$1(t.value),r=t.expires?`; expires=${t.expires.replace("expires=","")}`:"",n=(t.path||"/").replace("path=",""),a=t.url!=null&&t.url.length>0?`domain=${t.url}`:"";document.cookie=`${e}=${s||""}${r}; path=${n}; ${a};`;}catch(e){return Promise.reject(e)}})}deleteCookie(t){return L$7(this,null,function*(){try{document.cookie=`${t.key}=; Max-Age=0`;}catch(e){return Promise.reject(e)}})}clearCookies(){return L$7(this,null,function*(){try{let t=document.cookie.split(";")||[];for(let e of t)document.cookie=e.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`);}catch(t){return Promise.reject(t)}})}clearAllCookies(){return L$7(this,null,function*(){try{yield this.clearCookies();}catch(t){return Promise.reject(t)}})}};W$1("CapacitorCookies",{web:()=>new D$1});var me$1=i=>L$7(null,null,function*(){return new Promise((t,e)=>{let s=new FileReader;s.onload=()=>{let r=s.result;t(r.indexOf(",")>=0?r.split(",")[1]:r);},s.onerror=r=>e(r),s.readAsDataURL(i);})}),ve$1=(i={})=>{let t=Object.keys(i);return Object.keys(i).map(r=>r.toLocaleLowerCase()).reduce((r,n,a)=>(r[n]=i[t[a]],r),{})},be$1=(i,t=true)=>i?Object.entries(i).reduce((s,r)=>{let[n,a]=r,h,u;return Array.isArray(a)?(u="",a.forEach(p=>{h=t?encodeURIComponent(p):p,u+=`${n}=${h}&`;}),u.slice(0,-1)):(h=t?encodeURIComponent(a):a,u=`${n}=${h}`),`${s}&${u}`},"").substr(1):null,pe$1=(i,t={})=>{let e=Object.assign({method:i.method||"GET",headers:i.headers},t),r=ve$1(i.headers)["content-type"]||"";
10991if(typeof i.data=="string")e.body=i.data;else if(r.includes("application/x-www-form-urlencoded")){let n=new URLSearchParams;for(let[a,h]of Object.entries(i.data||{}))n.set(a,h);e.body=n.toString();}else if(r.includes("multipart/form-data")||i.data instanceof FormData){let n=new FormData;if(i.data instanceof FormData)i.data.forEach((h,u)=>{n.append(u,h);});else for(let h of Object.keys(i.data))n.append(h,i.data[h]);e.body=n;let a=new Headers(e.headers);a.delete("content-type"),e.headers=a;}else (r.includes("application/json")||typeof i.data=="object")&&(e.body=JSON.stringify(i.data));return e},B$1=class B extends P$1{request(t){return L$7(this,null,function*(){let e=pe$1(t,t.webFetchExtra),s=be$1(t.params,t.shouldEncodeUrlParams),r=s?`${t.url}?${s}`:t.url,n=yield fetch(r,e),a=n.headers.get("content-type")||"",{responseType:h="text"}=n.ok?t:{};a.includes("application/json")&&(h="json");let u,p;switch(h){case "arraybuffer":case "blob":p=yield n.blob(),u=yield me$1(p);break;case "json":u=yield n.json();break;default:u=yield n.text();}let E={};return n.headers.forEach((l,d)=>{E[d]=l;}),{data:u,headers:E,status:n.status,url:n.url}})}get(t){return L$7(this,null,function*(){return this.request(Object.assign(Object.assign({},t),{method:"GET"}))})}post(t){return L$7(this,null,function*(){return this.request(Object.assign(Object.assign({},t),{method:"POST"}))})}put(t){return L$7(this,null,function*(){return this.request(Object.assign(Object.assign({},t),{method:"PUT"}))})}patch(t){return L$7(this,null,function*(){return this.request(Object.assign(Object.assign({},t),{method:"PATCH"}))})}delete(t){return L$7(this,null,function*(){return this.request(Object.assign(Object.assign({},t),{method:"DELETE"}))})}};W$1("CapacitorHttp",{web:()=>new B$1});var F$1=class F extends P$1{setStyle(){return L$7(this,null,function*(){this.unavailable("not available for web");})}setAnimation(){return L$7(this,null,function*(){this.unavailable("not available for web");})}show(){return L$7(this,null,function*(){this.unavailable("not available for web");})}hide(){return L$7(this,null,function*(){this.unavailable("not available for web");})}};W$1("SystemBars",{web:()=>new F$1});var $="[email protected]",ae=60*1e3,_=180*1e3,ge$1=_,ye$1=60*1e3,we$2=1800*1e3,Se$1=60*1e3,oe$1="sl_presence_last_input",Te$2=2*1e3,Oe$1=600*1e3,Ae=900*1e3,Ke$1=(()=>{class i{constructor(e,s,r,n,a,h){this.signalR=e,this.authService=s,this.http=r,this.router=n,this.activatedRoute=a,this.httpOptions=h,this.platformId=g$4(So$3),this.isBrowser=_$(this.platformId),this.presenceUsers$=new Jr$1([]),this.presenceInfoSent=false,this.currentStatus=o$1.Online,this.awayTimer=null,this.offlineTimer=null,this.mobileOfflineTimer=null,this.heartbeatTimer=null,this.snapshotRefreshTimer=null,this.lastActivityReport=0,this.lastRealInputAt=Date.now(),this.lastCrossTabWrite=0,this.activityEvents=["keydown","pointerdown","click","wheel","touchstart"],this.boundOnActivity=this.onActivity.bind(this),this.boundOnMouseMove=this.onMouseMove.bind(this),this.lastPointerScreenX=null,this.lastPointerScreenY=null,this.boundOnWebVisibilityChange=()=>{document.visibilityState==="visible"&&(this.sendHeartbeat(),this.onActivity());},this.subs=new W$4,this.boundOnVisibilityChange=()=>{document.visibilityState==="visible"?(this.mobileOfflineTimer&&(clearTimeout(this.mobileOfflineTimer),this.mobileOfflineTimer=null),this.onActivity()):(this.setStatus(o$1.Away),this.mobileOfflineTimer=setTimeout(()=>{this.setStatus(o$1.Offline);},ye$1));},this.isBrowser&&(this.subs.add(this.authService.loginEvent$.subscribe(()=>this.presenceUsers$.next([]))),this.subs.add(this.signalR.userPresenceChanged$.subscribe(u=>this.applyPresenceUpdate(u))),this.subs.add(this.signalR.connectionStatus.pipe(Yt$5(u=>u==="Connected")).subscribe(()=>this.onSignalRConnected())),this.subs.add(this.router.events.pipe(Yt$5(u=>u instanceof k$3)).subscribe(()=>this.onNavigate(this.isCurrentRouteChat()))),this.startTracking());}getUserPresence(e){return this.presenceUsers$.value.find(s=>s.userId===e)}getOnlineUsers(){return this.presenceUsers$.value.filter(e=>e.status!==o$1.Offline)}getUserSessions(e,s,r){let n=new URLSearchParams({userId:e.toString(),from:s.toISOString(),to:r.toISOString()});return this.http.get(`${ee$1.serverBaseUrl}
10991Presence/sessions?${n}`,this.httpOptions.getHttpOptions()).pipe(ve$4(a=>a.data))}getMonthlyAttendance(e,s,r){let n=new URLSearchParams({year:e.toString(),month:s.toString()});return r!=null&&n.set("userId",r.toString()),this.http.get(`${ee$1.serverBaseUrl}Presence/attendance/monthly?${n}`,this.httpOptions.getHttpOptions()).pipe(ve$4(a=>a.data))}startTracking(){R$1.isNativePlatform()?this.startMobileTracking():this.startWebTracking();}startWebTracking(){this.addActivityListeners(),this.scheduleIdleTimers(),window.addEventListener("beforeunload",()=>this.sendOfflineBeacon()),document.addEventListener("visibilitychange",this.boundOnWebVisibilityChange),this.startHeartbeat(),this.startSnapshotRefresh();}addActivityListeners(){this.activityEvents.forEach(e=>document.addEventListener(e,this.boundOnActivity,{passive:true})),document.addEventListener("mousemove",this.boundOnMouseMove,{passive:true});}removeActivityListeners(){this.activityEvents.forEach(e=>document.removeEventListener(e,this.boundOnActivity)),document.removeEventListener("mousemove",this.boundOnMouseMove);}onMouseMove(e){let s=this.lastPointerScreenX===null||e.screenX!==this.lastPointerScreenX||e.screenY!==this.lastPointerScreenY;this.lastPointerScreenX=e.screenX,this.lastPointerScreenY=e.screenY,s&&this.onActivity();}onActivity(){this.lastRealInputAt=Date.now(),this.publishInputToOtherTabs(),this.currentStatus!==o$1.Online&&this.currentStatus!==o$1.InConversation&&this.setStatus(this.isCurrentRouteChat()?o$1.InConversation:o$1.Online),this.maybeReportActivity(),this.scheduleIdleTimers();}maybeReportActivity(){if(this.currentStatus!==o$1.Online&&this.currentStatus!==o$1.InConversation)return;let e=Date.now();if(e-this.lastActivityReport<Se$1)return;let s=this.authService.getUser();!s||s.email===$||(this.lastActivityReport=e,this.signalR.invoke("ReportActivity",this.currentStatus));}scheduleIdleTimers(){this.awayTimer&&clearTimeout(this.awayTimer),this.offlineTimer&&clearTimeout(this.offlineTimer),this.armIdleTimer(ae,ae,s=>this.awayTimer=s,()=>{this.currentStatus===o$1.Online&&this.setStatus(o$1.Away);});let e=this.currentStatus===o$1.InConversation?ge$1:_;this.armIdleTimer(e,e,s=>this.offlineTimer=s,()=>{this.setStatus(o$1.Offline);});}armIdleTimer(e,s,r,n){r(setTimeout(()=>{let a=Date.now()-this.lastInputAcrossTabs();if(a<e){this.armIdleTimer(e,e-a,r,n);return}n();},s));}lastInputAcrossTabs(){let e=0;try{let s=localStorage.getItem(oe$1),r=s?Number(s):0;Number.isFinite(r)&&r>0&&r<=Date.now()&&(e=r);}catch(s){}return Math.max(this.lastRealInputAt,e)}publishInputToOtherTabs(){if(!(this.lastRealInputAt-this.lastCrossTabWrite<Te$2)){this.lastCrossTabWrite=this.lastRealInputAt;try{localStorage.setItem(oe$1,String(this.lastRealInputAt));}catch(e){}}}startMobileTracking(){document.addEventListener("visibilitychange",this.boundOnVisibilityChange),this.addActivityListeners(),this.scheduleIdleTimers(),this.startHeartbeat(),this.startSnapshotRefresh();}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),Oe$1);}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null);}sendHeartbeat(){if(this.currentStatus===o$1.Offline)return;let e=this.authService.getUser();!e||e.email===$||(this.currentStatus===o$1.Online||this.currentStatus===o$1.InConversation)&&this.lastActivityReport>0&&Date.now()-this.lastActivityReport>_||this.signalR.invoke("SetPresenceStatus",this.currentStatus);}startSnapshotRefresh(){this.stopSnapshotRefresh(),this.snapshotRefreshTimer=setInterval(()=>this.loadPresenceSnapshot(),Ae);}stopSnapshotRefresh(){this.snapshotRefreshTimer&&(clearInterval(this.snapshotRefreshTimer),this.snapshotRefreshTimer=null);}onNavigate(e){e&&this.currentStatus===o$1.Online?this.setStatus(o$1.InConversation):!e&&this.currentStatus===o$1.InConversation&&this.setStatus(o$1.Online),this.lastRealInputAt=Date.now(),this.maybeReportActivity();}isCurrentRouteChat(){let e=this.activatedRoute.snapshot;for(;e;){if(e.data?.isChatRoute===true)return true;if(!e.firstChild)break;e=e.firstChild;}return false}onSignalRConnected(){this.presenceUsers$.next([]);let e=this.authService.getUser();!e||e.email===$||(this.presenceInfoSent=true,this.signalR.invoke("UpdatePresenceInfo",e.name??e.nickname??"",e.nickname??e.name??"",e.profilePicPath??null),this.currentStatus!==o$1.Offline&&this.signalR.invoke("SetPresenceStatus",this.currentStatus),Date.now()-this.lastRealInputAt<=_&&this.maybeReportActivity(),this.loadPresenceSnapshot());}setStatus(e){if(this.currentStatus===e)return;let s=this.authService.getUser();!s||s.email===$||(this.currentStatus=e,(e===o$1.Online||e===o$1.InConversation)&&(this.lastActivityReport=0),this.signalR.invoke("SetPresenceStatus",e));}sendOfflineBeacon(){let e=localStorage.getItem("token");e&&fetch(`${ee$1.serverBaseUrl}Presence/Offline`,{method:"POST",keepalive:true,headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:"{}"}).catch(()=>{});}loadPresenceSnapshot(){this.authService.hasPermission("Read_Users")&&this.http.get(`${ee$1.serverBaseUrl}Presence`,this.httpOptions.getHttpOptions()).subscribe({next:e=>{e.succeeded&&Array.isArray(e.data)&&this.presenceUsers$.next(this.cleanList(e.data));},error:()=>{}});}applyPresenceUpdate(e){if(e.userId===0)return;let s=[...this.presenceUsers$.value],r=s.findIndex(n=>n.userId===e.userId);r>=0?s[r]=e:s.push(e),this.presenceUsers$.next(this.cleanList(s));}cleanList(e){let s=Date.now()-we$2;return e.filter(r=>r.status!==o$1.Offline?true:new Date(r.lastSeen).getTime()>=s)}ngOnDestroy(){this.subs.unsubscribe(),this.stopHeartbeat(),this.stopSnapsh
10991otRefresh(),this.awayTimer&&clearTimeout(this.awayTimer),this.offlineTimer&&clearTimeout(this.offlineTimer),this.mobileOfflineTimer&&clearTimeout(this.mobileOfflineTimer),this.isBrowser&&(this.removeActivityListeners(),document.removeEventListener("visibilitychange",this.boundOnVisibilityChange),document.removeEventListener("visibilitychange",this.boundOnWebVisibilityChange));}static{this.\u0275fac=function(s){return new(s||i)(M$6(Ct$2),M$6(Us$1),M$6(ED),M$6(G$5),M$6(V$2),M$6(vt$3))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var h=(()=>{class e extends se$2{constructor(t,r,l){super(t,r,l,"CallCenterAdmin/");}getCalls(t){return this.post("GetCalls",t)}getActiveCalls(){return this.get("GetActiveCalls")}getHealth(){return this.get("GetHealth")}getScoringStats(t){return this.get("GetScoringStats",{days:t})}static{this.\u0275fac=function(r){return new(r||e)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var A$1=(()=>{class i extends se$2{constructor(t,e,r){super(t,e,r,"CallCenter/");}getMyNumbers(){return this.get("GetMyNumbers")}getMyCalls(t,e,r,a=null,l=null,u=null,n=null){return this.post("GetMyCalls",{search:t,pageNumber:e,pageSize:r,direction:a,status:l,fromDate:u,toDate:n})}exportMyCalls(t,e=null,r=null,a=null,l=null){let u=new St$5({Authorization:"Bearer "+localStorage.getItem("token")}),n=[];t&&n.push(`search=${encodeURIComponent(t)}`),e&&n.push(`direction=${encodeURIComponent(e)}`),r&&n.push(`status=${encodeURIComponent(r)}`),a&&n.push(`fromDate=${encodeURIComponent(a)}`),l&&n.push(`toDate=${encodeURIComponent(l)}`);let m=n.length?`?${n.join("&")}`:"";return this.http.get(`${ee$1.serverBaseUrl}CallCenter/ExportMyCalls${m}`,{headers:u,responseType:"blob",observe:"response"})}getSoftphoneConfig(){return this.get("GetSoftphoneConfig")}searchContacts(t){return this.get("SearchContacts",{query:t})}lookupCustomer(t){return this.post("LookupCustomer",{number:t})}reportCallState(t){return this.post("ReportCallState",{calls:t})}createConferenceRoom(t){return this.post("CreateConferenceRoom",{customerNumber:t})}getActiveCalls(){return this.get("GetActiveCalls")}endLiveCall(t){return this.post("EndLiveCall",{channel:t})}announceCallHandled(t){return this.post("AnnounceCallHandled",{callReference:t})}getMissedCallSetting(){return this.get("GetMissedCallSetting")}upsertMissedCallSetting(t){return this.post("UpsertMissedCallSetting",t)}getScoringSetting(){return this.get("GetScoringSetting")}upsertScoringSetting(t){return this.post("UpsertScoringSetting",t)}rateCall(t,e,r){return this.post("RateCall",{callId:t,score:e,comment:r})}getAgentScoreAverages(){return this.get("GetAgentScoreAverages")}getScoringStats(t){return this.get("GetScoringStats",{days:t})}getCallKpis(t,e,r){return this.get("GetCallKpis",{days:t,fromDate:e,toDate:r})}getCustomerCalls(t){return this.get("GetCustomerCalls",{customerId:t})}getCustomerTimeline(t){return this.get("GetCustomerTimeline",{customerId:t})}getConversationCallCards(t){return this.get("GetConversationCallCards",{customerId:t})}setCallDisposition(t,e,r){return this.post("SetCallDisposition",{callId:t,disposition:e,note:r})}setCallTimelineSetting(t){return this.post("SetCallTimelineSetting",{callTimelineEntryEnabled:t})}setAiAnalysisSetting(t){return this.post("SetAiAnalysisSetting",{aiCallAnalysisEnabled:t})}getCallTranscript(t){return this.get("GetCallTranscript",{callId:t})}submitCallTurnFeedback(t,e,r){return this.post("SubmitCallTurnFeedback",{callId:t,sequence:e,note:r})}getTicketCallTranscript(t){return this.get("GetTicketCallTranscript",{ticketId:t})}getCallScores(t){return this.post("GetCallScores",t)}getClientSettings(){return this.get("GetClientSettings")}setTransferSetting(t){return this.post("SetTransferSetting",t)}getTransferTargets(){return this.get("GetTransferTargets")}setVoicemailSetting(t){return this.post("SetVoicemailSetting",{voicemailEnabled:t})}setRecordingSetting(t){return this.post("SetRecordingSetting",{recordingEnabled:t})}uploadRecordingNotice(t){let e=new FormData;e.append("file",t,t.name);let r=new St$5({Authorization:"Bearer "+localStorage.getItem("token")});return this.http.post(`${ee$1.serverBaseUrl}CallCenter/UploadRecordingNotice`,e,{headers:r})}uploadVoicemailGreeting(t){let e=new FormData;e.append("file",t,t.name);let r=new St$5({Authorization:"Bearer "+localStorage.getItem("token")});return this.http.post(`${ee$1.serverBaseUrl}CallCenter/UploadVoicemailGreeting`,e,{headers:r})}uploadSurveyPrompt(t){let e=new FormData;e.append("file",t,t.name);let r=new St$5({Authorization:"Bearer "+localStorage.getItem("token")});return this.http.post(`${ee$1.serverBaseUrl}CallCenter/UploadSurveyPrompt`,e,{headers:r})}uploadIvrMenuPrompt(t){let e=new FormData;e.append("file",t,t.name);let r=new St$5({Authorization:"Bearer "+localStorage.getItem("token")});return this.http.post(`${ee$1.serverBaseUrl}CallCenter/UploadIvrMenuPrompt`,e,{headers:r})}setIvrMenu(t){return this.post("SetIvrMenu",t)}setForwardingSetting(t){return this.post("SetForwardingSetting",t)}setTollFraudSetting(t){return this.post("SetTollFraudSetting",t)}setQueueSetting(t){return this.post("SetQueueSetting",t)}getRingAgentOptions(){return this.get("GetRingAgentOptions",{})}setRingRoutingSetting(t){return this.post("SetRingRoutingSetting",t)}getRecordingUrl(t){return this.get("GetRecordingUrl",{callId:t})}getPromptUrl(t){return this.get("GetPromptUrl",{type:t})}sendTestMessage(t,e){return this.post("SendTestMessage",{type:t,phoneNumber:e})}static{this.\u0275fac=function(e){return new(e||i)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Jt="0.21.1";
10991var B=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype);}};var Re=class extends B{constructor(e){super(e||"Unsupported content type.");}};var de=class extends B{constructor(e){super(e||"Request pending.");}};var Je=class extends B{constructor(e){super(e||"Unspecified session description handler error.");}};var $e=class extends B{constructor(){super("The session has terminated.");}};var pe=class extends B{constructor(e){super(e||"An error occurred during state transition.");}};var Xe=class{constructor(e){this.incomingAckRequest=e;}get request(){return this.incomingAckRequest.message}};var Qe=class{constructor(e){this.incomingByeRequest=e;}get request(){return this.incomingByeRequest.message}accept(e){return this.incomingByeRequest.accept(e),Promise.resolve()}reject(e){return this.incomingByeRequest.reject(e),Promise.resolve()}};var et=class{constructor(e){this.incomingCancelRequest=e;}get request(){return this.incomingCancelRequest}};var ne=class{constructor(){this.listeners=new Array;}addListener(e,t){let r=s=>{this.removeListener(r),e(s);};t?.once===true?this.listeners.push(r):this.listeners.push(e);}emit(e){this.listeners.slice().forEach(t=>t(e));}removeAllListeners(){this.listeners=[];}removeListener(e){this.listeners=this.listeners.filter(t=>t!==e);}on(e){return this.addListener(e)}off(e){return this.removeListener(e)}once(e){return this.addListener(e,{once:true})}};var tt=class{constructor(e){this.incomingInfoRequest=e;}get request(){return this.incomingInfoRequest.message}accept(e){return this.incomingInfoRequest.accept(e),Promise.resolve()}reject(e){return this.incomingInfoRequest.reject(e),Promise.resolve()}};var De=class{constructor(e){this.parameters={};for(let t in e)e.hasOwnProperty(t)&&this.setParam(t,e[t]);}setParam(e,t){e&&(this.parameters[e.toLowerCase()]=typeof t>"u"||t===null?null:t.toString());}getParam(e){if(e)return this.parameters[e.toLowerCase()]}hasParam(e){return !!(e&&this.parameters[e.toLowerCase()]!==void 0)}deleteParam(e){if(e=e.toLowerCase(),this.hasParam(e)){let t=this.parameters[e];return delete this.parameters[e],t}}clearParams(){this.parameters={};}};var L=class o extends De{constructor(e,t,r){super(r),this.uri=e,this._displayName=t;}get friendlyName(){return this.displayName||this.uri.aor}get displayName(){return this._displayName}set displayName(e){this._displayName=e;}clone(){return new o(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))}toString(){let e=this.displayName||this.displayName==="0"?'"'+this.displayName+'" ':"";e+="<"+this.uri.toString()+">";for(let t in this.parameters)this.parameters.hasOwnProperty(t)&&(e+=";"+t,this.parameters[t]!==null&&(e+="="+this.parameters[t]));return e}};var G$1=class o extends De{constructor(e="sip",t,r,s,i,n){if(super(i||{}),this.headers={},!r)throw new TypeError('missing or invalid "host" parameter');for(let a in n)n.hasOwnProperty(a)&&this.setHeader(a,n[a]);this.raw={scheme:e,user:t,host:r,port:s},this.normal={scheme:e.toLowerCase(),user:t,host:r.toLowerCase(),port:s};}get scheme(){return this.normal.scheme}set scheme(e){this.raw.scheme=e,this.normal.scheme=e.toLowerCase();}get user(){return this.normal.user}set user(e){this.normal.user=this.raw.user=e;}get host(){return this.normal.host}set host(e){this.raw.host=e,this.normal.host=e.toLowerCase();}get aor(){return this.normal.user+"@"+this.normal.host}get port(){return this.normal.port}set port(e){this.normal.port=this.raw.port=e;}setHeader(e,t){this.headers[this.headerize(e)]=t instanceof Array?t:[t];}getHeader(e){if(e)return this.headers[this.headerize(e)]}hasHeader(e){return !!e&&!!this.headers.hasOwnProperty(this.headerize(e))}deleteHeader(e){if(e=this.headerize(e),this.headers.hasOwnProperty(e)){let t=this.headers[e];return delete this.headers[e],t}}clearHeaders(){this.headers={};}clone(){return new o(this._raw.scheme,this._raw.user||"",this._raw.host,this._raw.port,JSON.parse(JSON.stringify(this.parameters)),JSON.parse(JSON.stringify(this.headers)))}toRaw(){return this._toString(this._raw)}toString(){return this._toString(this._normal)}get _normal(){return this.normal}get _raw(){return this.raw}_toString(e){let t=e.scheme+":";e.scheme.toLowerCase().match("^sips?$")||(t+="//"),e.user&&(t+=this.escapeUser(e.user)+"@"),t+=e.host,(e.port||e.port===0)&&(t+=":"+e.port);for(let s in this.parameters)this.parameters.hasOwnProperty(s)&&(t+=";"+s,this.parameters[s]!==null&&(t+="="+this.parameters[s]));let r=[];for(let s in this.headers)if(this.headers.hasOwnProperty(s))for(let i in this.headers[s])this.headers[s].hasOwnProperty(i)&&r.push(s+"="+this.headers[s][i]);return r.length>0&&(t+="?"+r.join("&")),t}escapeUser(e){let t;try{t=decodeURIComponent(e);}catch(r){throw r}return encodeURIComponent(t).replace(/%3A/ig,":").replace(/%2B/ig,"+").replace(/%3F/ig,"?").replace(/%2F/ig,"/")}headerize(e){let t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),s=r.length,i="";for(let n=0;n<s;n++)n!==0&&(i+="-"),i+=r[n].charAt(0).toUpperCase()+r[n].substring(1);return t[i]&&(i=t[i]),i}};function At(o,e){if(o.scheme!==e.scheme||o.user!==e.user||o.host!==e.host||o.port!==e.port)return false;function t(i,n){let a=Object.keys(i.parameters),d=Object.keys(n.parameters);return !(!a.filter(h=>d.includes(h)).every(h=>i.parameters[h]===n.parameters[h])||!["user","ttl","method","transport"].every(h=>i.hasParam(h)&&n.hasParam(h)||!i.hasParam(h)&&!n.hasParam(h))||!["maddr"].every(h=>i.hasParam(h)&&n.hasParam(h)||!i.hasParam(h)&&!n.hasParam(h)))}if(!t(o,e))return false;let r=Object.keys(o.headers),s=Object.keys(e.headers);if(r.length!==0||s.length!==0){if(r.length!==s.length)return false;let i=r.filter(n=>s.includes(n));if(i.length!==s.length||!i.every(n=>o.headers[n].length&&e.headers[n].length&&o.headers[n][0]===e.headers[n][0]))return false}return true}function $t(o,e,t){return t=t||" ",o.length>e?o:(e-=o.length,t+=t.repeat(e),o+t.slice(0,e))}
10991var Ve=class o extends Error{constructor(e,t,r,s){super(),this.message=e,this.expected=t,this.found=r,this.location=s,this.name="SyntaxError",typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(this,o.prototype):this.__proto__=o.prototype,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,o);}static buildMessage(e,t){function r(u){return u.charCodeAt(0).toString(16).toUpperCase()}function s(u){return u.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,h=>"\\x0"+r(h)).replace(/[\x10-\x1F\x7F-\x9F]/g,h=>"\\x"+r(h))}function i(u){return u.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,h=>"\\x0"+r(h)).replace(/[\x10-\x1F\x7F-\x9F]/g,h=>"\\x"+r(h))}function n(u){switch(u.type){case "literal":return '"'+s(u.text)+'"';case "class":let h=u.parts.map(v=>Array.isArray(v)?i(v[0])+"-"+i(v[1]):i(v));return "["+(u.inverted?"^":"")+h+"]";case "any":return "any character";case "end":return "end of input";case "other":return u.description}}function a(u){let h=u.map(n),v,E;if(h.sort(),h.length>0){for(v=1,E=1;v<h.length;v++)h[v-1]!==h[v]&&(h[E]=h[v],E++);h.length=E;}switch(h.length){case 1:return h[0];case 2:return h[0]+" or "+h[1];default:return h.slice(0,-1).join(", ")+", or "+h[h.length-1]}}function d(u){return u?'"'+s(u)+'"':"end of input"}return "Expected "+a(e)+" but "+d(t)+" found."}format(e){let t="Error: "+this.message;if(this.location){let r=null,s;for(s=0;s<e.length;s++)if(e[s].source===this.location.source){r=e[s].text.split(/\r\n|\n|\r/g);break}let i=this.location.start,n=this.location.source+":"+i.line+":"+i.column;if(r){let a=this.location.end,d=$t("",i.line.toString().length," "),u=r[i.line-1],h=i.line===a.line?a.column:u.length+1;t+=` 10992 --> `+n+` 10993`+d+` | 10994`+i.line+" | "+u+` 10995`+d+" | "+$t("",i.column-1," ")+$t("",h-i.column,"^");}else t+=` 10996 at `+n;}return t}};function dr(o,e){e=e!==void 0?e:{};let t={},r=e.grammarSource,s={Contact:119,Name_Addr_Header:156,Record_Route:176,Request_Response:81,SIP_URI:45,Subscription_State:186,Supported:191,Require:182,Via:194,absoluteURI:84,Call_ID:118,Content_Disposition:130,Content_Length:135,Content_Type:136,CSeq:146,displayName:122,Event:149,From:151,host:52,Max_Forwards:154,Min_SE:213,Proxy_Authenticate:157,quoted_string:40,Refer_To:178,Replaces:179,Session_Expires:210,stun_URI:217,To:192,turn_URI:223,uuid:226,WWW_Authenticate:209,challenge:158,sipfrag:230,Referred_By:231},i=119,n=[`\r 10997`,w(`\r 10998`,false),/^[0-9]/,N([["0","9"]],false,false),/^[a-zA-Z]/,N([["a","z"],["A","Z"]],false,false),/^[0-9a-fA-F]/,N([["0","9"],["a","f"],["A","F"]],false,false),/^[\0-\xFF]/,N([["\0","\xFF"]],false,false),/^["]/,N(['"'],false,false)," ",w(" ",false)," ",w(" ",false),/^[a-zA-Z0-9]/,N([["a","z"],["A","Z"],["0","9"]],false,false),";",w(";",false),"/",w("/",false),"?",w("?",false),":",w(":",false),"@",w("@",false),"&",w("&",false),"=",w("=",false),"+",w("+",false),"$",w("$",false),",",w(",",false),"-",w("-",false),"_",w("_",false),".",w(".",false),"!",w("!",false),"~",w("~",false),"*",w("*",false),"'",w("'",false),"(",w("(",false),")",w(")",false),"%",w("%",false),function(){return " "},function(){return ":"},/^[!-~]/,N([["!","~"]],false,false),/^[\x80-\uFFFF]/,N([["\x80","\uFFFF"]],false,false),/^[\x80-\xBF]/,N([["\x80","\xBF"]],false,false),/^[a-f]/,N([["a","f"]],false,false),"`",w("`",false),"<",w("<",false),">",w(">",false),"\\",w("\\",false),"[",w("[",false),"]",w("]",false),"{",w("{",false),"}",w("}",false),function(){return "*"},function(){return "/"},function(){return "="},function(){return "("},function(){return ")"},function(){return ">"},function(){return "<"},function(){return ","},function(){return ";"},function(){return ":"},function(){return '"'},/^[!-']/,N([["!","'"]],false,false),/^[*-[]/,N([["*","["]],false,false),/^[\]-~]/,N([["]","~"]],false,false),function(l){return l},/^[#-[]/,N([["#","["]],false,false),/^[\0-\t]/,N([["\0"," "]],false,false),/^[\v-\f]/,N([["\v","\f"]],false,false),/^[\x0E-\x7F]/,N([["�","\x7F"]],false,false),function(){e=e||{data:{}},e.data.uri=new G$1(e.data.scheme,e.data.user,e.data.host,e.data.port),delete e.data.scheme,delete e.data.user,delete e.data.host,delete e.data.host_type,delete e.data.port;},function(){e=e||{data:{}},e.data.uri=new G$1(e.data.scheme,e.data.user,e.data.host,e.data.port,e.data.uri_params,e.data.uri_headers),delete e.data.scheme,delete e.data.user,delete e.data.host,delete e.data.host_type,delete e.data.port,delete e.data.uri_params,e.startRule==="SIP_URI"&&(e.data=e.data.uri);},"sips",w("sips",true),"sip",w("sip",true),function(l){e=e||{data:{}},e.data.scheme=l;},function(){e=e||{data:{}},e.data.user=decodeURIComponent(I().slice(0,-1));},function(){e=e||{data:{}},e.data.password=I();},function(){return e=e||{data:{}},e.data.host=I(),e.data.host},function(){return e=e||{data:{}},e.data.host_type="domain",I()},/^[a-zA-Z0-9_\-]/,N([["a","z"],["A","Z"],["0","9"],"_","-"],false,false),/^[a-zA-Z0-9\-]/,N([["a","z"],["A","Z"],["0","9"],"-"],false,false),function(){return e=e||{data:{}},e.data.host_type="IPv6",I()}
10998,"::",w("::",false),function(){return e=e||{data:{}},e.data.host_type="IPv6",I()},function(){return e=e||{data:{}},e.data.host_type="IPv4",I()},"25",w("25",false),/^[0-5]/,N([["0","5"]],false,false),"2",w("2",false),/^[0-4]/,N([["0","4"]],false,false),"1",w("1",false),/^[1-9]/,N([["1","9"]],false,false),function(l){return e=e||{data:{}},l=parseInt(l.join("")),e.data.port=l,l},"transport=",w("transport=",true),"udp",w("udp",true),"tcp",w("tcp",true),"sctp",w("sctp",true),"tls",w("tls",true),function(l){e=e||{data:{}},e.data.uri_params||(e.data.uri_params={}),e.data.uri_params.transport=l.toLowerCase();},"user=",w("user=",true),"phone",w("phone",true),"ip",w("ip",true),function(l){e=e||{data:{}},e.data.uri_params||(e.data.uri_params={}),e.data.uri_params.user=l.toLowerCase();},"method=",w("method=",true),function(l){e=e||{data:{}},e.data.uri_params||(e.data.uri_params={}),e.data.uri_params.method=l;},"ttl=",w("ttl=",true),function(l){e=e||{data:{}},e.data.params||(e.data.params={}),e.data.params.ttl=l;},"maddr=",w("maddr=",true),function(l){e=e||{data:{}},e.data.uri_params||(e.data.uri_params={}),e.data.uri_params.maddr=l;},"lr",w("lr",true),function(){e=e||{data:{}},e.data.uri_params||(e.data.uri_params={}),e.data.uri_params.lr=void 0;},function(l,p){e=e||{data:{}},e.data.uri_params||(e.data.uri_params={}),p===null?p=void 0:p=p[1],e.data.uri_params[l.toLowerCase()]=p;},function(l,p){l=l.join("").toLowerCase(),p=p.join(""),e=e||{data:{}},e.data.uri_headers||(e.data.uri_headers={}),e.data.uri_headers[l]?e.data.uri_headers[l].push(p):e.data.uri_headers[l]=[p];},function(){e=e||{data:{}},e.startRule==="Refer_To"&&(e.data.uri=new G$1(e.data.scheme,e.data.user,e.data.host,e.data.port,e.data.uri_params,e.data.uri_headers),delete e.data.scheme,delete e.data.user,delete e.data.host,delete e.data.host_type,delete e.data.port,delete e.data.uri_params);},"//",w("//",false),function(){e=e||{data:{}},e.data.scheme=I();},w("SIP",true),function(){e=e||{data:{}},e.data.sip_version=I();},"INVITE",w("INVITE",false),"ACK",w("ACK",false),"VXACH",w("VXACH",false),"OPTIONS",w("OPTIONS",false),"BYE",w("BYE",false),"CANCEL",w("CANCEL",false),"REGISTER",w("REGISTER",false),"SUBSCRIBE",w("SUBSCRIBE",false),"NOTIFY",w("NOTIFY",false),"REFER",w("REFER",false),"PUBLISH",w("PUBLISH",false),function(){return e=e||{data:{}},e.data.method=I(),e.data.method},function(l){e=e||{data:{}},e.data.status_code=parseInt(l.join(""));},function(){e=e||{data:{}},e.data.reason_phrase=I();},function(){e=e||{data:{}},e.data=I();},function(){var l,p;for(e=e||{data:{}},p=e.data.multi_header.length,l=0;l<p;l++)if(e.data.multi_header[l].parsed===null){e.data=null;break}e.data!==null?e.data=e.data.multi_header:e.data=-1;},function(){var l;e=e||{data:{}},e.data.multi_header||(e.data.multi_header=[]);try{l=new L(e.data.uri,e.data.displayName,e.data.params),delete e.data.uri,delete e.data.displayName,delete e.data.params;}catch(p){l=null;}e.data.multi_header.push({position:d,offset:le().start.offset,parsed:l});},function(l){l=I().trim(),l[0]==='"'&&(l=l.substring(1,l.length-1)),e=e||{data:{}},e.data.displayName=l;},"q",w("q",true),function(l){e=e||{data:{}},e.data.params||(e.data.params={}),e.data.params.q=l;},"expires",w("expires",true),function(l){e=e||{data:{}},e.data.params||(e.data.params={}),e.data.params.expires=l;},function(l){return parseInt(l.join(""))},"0",w("0",false),function(){return parseFloat(I())},function(l,p){e=e||{data:{}},e.data.params||(e.data.params={}),p===null?p=void 0:p=p[1],e.data.params[l.toLowerCase()]=p;},"render",w("render",true),"session",w("session",true),"icon",w("icon",true),"alert",w("alert",true),function(){e=e||{data:{}},e.startRule==="Content_Disposition"&&(e.data.type=I().toLowerCase());},"handling",w("handling",true),"optional",w("optional",true),"required",w("required",true),function(l){e=e||{data:{}},e.data=parseInt(l.join(""));},function(){e=e||{data:{}},e.data=I();},"text",w("text",true),"image",w("image",true),"audio",w("audio",true),"video",w("video",true),"application",w("application",true),"message",w("message",true),"multipart",w("multipart",true),"x-",w("x-",true),function(l){e=e||{data:{}},e.data.value=parseInt(l.join(""));},function(l){e=e||{data:{}},e.data=l;},function(l){e=e||{data:{}},e.data.event=l.toLowerCase();},function(){e=e||{data:{}};var l=e.data.tag;e.data=new L(e.data.uri,e.data.displayName,e.data.params),l&&e.data.setParam("tag",l);},"tag",w("tag",true),function(l){e=e||{data:{}},e.data.tag=l;},function(l){e=e||{data:{}},e.data=parseInt(l.join(""));},function(l){e=e||{data:{}},e.data=l;},function(){e=e||{data:{}},e.data=new L(e.data.uri,e.data.displayName,e.data.params);},"digest",w("Digest",true),"realm",w("realm",true),function(l){e=e||{data:{}},e.data.realm=l;},"domain",w("domain",true),"nonce",w("nonce",true),function(l){e=e||{data:{}},e.data.nonce=l;},"opaque",w("opaque",true),function(l){e=e||{data:{}},e.data.opaque=l;},"stale",w("stale",true),"true",w("true",true),function(){e=e||{data:{}},e.data.stale=true;},"false",w("false",true),function(){e=e||{data:{}},e.data.stale=false;},"algorithm",w("algorithm",true),"md5",w("MD5",true),"md5-sess",w("MD5-sess",true),function(l){e=e||{data:{}},e.data.algorithm=l.toUpperCase();},"qop",w("qop",true),"auth-int",w("auth-int",true),"auth",w("auth",true),function(l){e=e||{data:{}},e.data.qop||(e.data.qop=[]),e.data.qop.push(l.toLowerCase());},function(l){e=e||{data:{}},e.data.value=parseInt(l.join(""));},function(){var l,p;for(e=e||{data:{}},p=e.data.multi_header.length,l=0;l<p;l++)if(e.data.multi_header[l].parsed===null){e.data=null;break}e.data!==null?e.data=e.data.multi_header:e.data=-1;},function(){var l;e=e||{data:{}},e.data.multi_header||(e.data.multi_header=[]);try{l=new L(e.data.uri,e.data.displayName,e.data.params),delete e.data.uri,delete e.data.displayName,delete e.data.params;}catch(p){l=null;}e.data.multi_header.push({position:d,offset:le().start.offset,parsed:l});},function(){e=e||{data:{}},e.data=new L(e.data.uri,e.data.displayName,e.data.params);},function(){e=e||{data:{}},e.data.replaces_from_tag&&e.data.replaces_to_tag||(e.data=-1);},function(){e=e||{data:{}},e.data={call_id:e.data};},"from-tag",w("from-tag",true),function(l){e=e||{data:{}},e.data.replaces_from_tag=l;},"to-tag",w("to-tag",true),function(l){e=e||{data:{}},e.data.replaces_to_tag=l;},"early-only",w("early-only",true),function(){e=e||{data:{}},e.data.early_only=true;},function(l,p){return p},function(l,p){return or(l,p)},function(l){e=e||{data:{}},e.startRule==="Require"&&(e.data=l||[]);},function(l){e=e||{data:{}},e.data.value=parseInt(l.join(""));},"active",w("active",true),"pending",w("pending",true),"terminated",w("terminated",true),function(){e=e||{data:{}},e.data.state=I();},"reason",w("reason",true),function(l){e=e||{data:{}},typeof l<"u"&&(e.data.reason=l);},function(l){e=e||{data:{}},typeof l<"u"&&(e.data.expires=l);},"retry_after",w("retry_after",true),function(l){e=e||{data:{}},typeof l<"u"&&(e.data.retry_after=l);},"deactivated",w("deactivated",true),"probation",w("probation",true),"rejected",w("rejected",true),"timeout",w("timeout",true),"giveup",w("giveup",true),"noresource",w("noresource",true),"invariant",w("invariant",true),function(l){e=e||{data:{}},e.startRule==="Supported"&&(e.data=l||[]);},function(){e=e||{data:{}};var l=e.data.tag;e.data=new L(e.data.uri,e.data.displayName,e.data.params),l&&e.data.setParam("tag",l);},"ttl",w("ttl",true),function(l){e=e||{data:{}},e.data.ttl=l;},"maddr",w("maddr",true),function(l){e=e||{data:{}},e.data.maddr=l;},"received",w("received",true),function(l){e=e||{data:{}},e.data.received=l;},"branch",w("branch",true),function(l){e=e||{data:{}},e.data.branch=l;},"rport",w("rport",true),function(l){e=e||{data:{}},typeof l<"u"&&(e.data.rport=l.join(""));},function(l){e=e||{data:{}},e.data.protocol=l;},w("UDP",true),w("TCP",true),w("TLS",true),w("SCTP",true),function(l){e=e||{data:{}},e.data.transport=l;},function(){e=e||{data:{}},e.data.host=I();},function(l){e=e||{data:{}},e.data.port=parseInt(l.join(""));},function(l){return parseInt(l.join(""))},function(l){e=e||{data:{}},e.startRule==="Session_Expires"&&(e.data.deltaSeconds=l);},"refresher",w("refresher",false),"uas",w("uas",false),"uac",w("uac",false),function(l){e=e||{data:{}},e.startRule==="Session_Expires"&&(e.data.refresher=l);},function(l){e=e||{data:{}},e.startRule==="Min_SE"&&(e.data=l);},"stuns",w("stuns",true),"stun",w("stun",true),function(l){e=e||{data:{}},e.data.scheme=l;},function(l){e=e||{data:{}},e.data.host=l;},"?transport=",w("?transport=",false),"turns",w("turns",true),"turn",w("turn",true),function(l){e=e||{data:{}},e.data.transport=l;},function(){e=e||{data:{}},e.data=I();},"Referred-By",w("Referred-By",false),"b",w("b",false),"cid",w("cid",false)],a=[c('2 ""6 7!'),c('4"""5!7#'),c('4$""5!7%'),c(`4&""5!7'`),c(";'.# &;("),c('4(""5!7)'),c('4*""5!7+'),c('2,""6,7-'),c('2.""6.7/'),c('40""5!71'),c('22""6273.\x89 &24""6475.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>
109987?.A &2@""[email protected] &2B""6B7C.) &2D""6D7E'),c(";).# &;,"),c('2F""6F7G.} &2H""6H7I.q &2J""6J7K.e &2L""6L7M.Y &2N""6N7O.M &2P""6P7Q.A &2R""6R7S.5 &2T""6T7U.) &2V""6V7W'),c(`%%2X""6X7Y/5#;#/,$;#/#$+#)(#'#("'#&'#/"!&,)`),c(`%%$;$0#*;$&/,#; /#$+")("'#&'#." &"/=#$;$/�#*;$&&&#/'$8":Z" )("'#&'#`),c(';.." &"'),c(`%$;'.# &;(0)*;'.# &;(&/?#28""6879/0$;//'$8#:[# )(#'#("'#&'#`),c(`%%$;2/�#*;2&&&#/g#$%$;.0#*;.&/,#;2/#$+")("'#&'#0=*%$;.0#*;.&/,#;2/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),c('4\\""5!7].# &;3'),c('4^""5!7_'),c('4`""5!7a'),c(';!.) &4b""5!7c'),c('%$;).\x95 &2F""6F7G.\x89 &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""[email protected] &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/\x9E#0\x9B*;).\x95 &2F""6F7G.\x89 &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""[email protected] &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),c('%$;).\x89 &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""[email protected] &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/\x92#0\x8F*;).\x89 &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""[email protected] &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),c(`2T""6T7U.\xE3 &2V""6V7W.\xD7 &2f""6f7g.\xCB &2h""6h7i.\xBF &2:""6:7;.\xB3 &2D""6D7E.\xA7 &22""6273.\x9B &28""6879.\x8F &2j""6j7k.\x83 &;&.} &24""6475.q &2l""6l7m.e &2n""6n7o.Y &26""6677.M &2>""6>7?.A &2p""6p7q.5 &2r""6r7s.) &;'.# &;(`),c('%$;).\u012B &2F""6F7G.\u011F &2J""6J7K.\u0113 &2L""6L7M.\u0107 &2X""6X7Y.\xFB &2P""6P7Q.\xEF &2H""6H7I.\xE3 &2@""6@7A.\xD7 &2d""6d7e.\xCB &2R""6R7S.\xBF &2N""6N7O.\xB3 &2T""6T7U.\xA7 &2V""6V7W.\x9B &2f""6f7g.\x8F &2h""6h7i.\x83 &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s/\u0134#0\u0131*;).\u012B &2F""6F7G.\u011F &2J""6J7K.\u0113 &2L""6L7M.\u0107 &2X""6X7Y.\xFB &2P""6P7Q.\xEF &2H""6H7I.\xE3 &2@""6@7A.\xD7 &2d""6d7e.\xCB &2R""6R7S.\xBF &2N""6N7O.\xB3 &2T""6T7U.\xA7 &2V""6V7W.\x9B &2f""6f7g.\x8F &2h""6h7i.\x83 &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s&&&#/"!&,)'),c(`%;//?#2P""6P7Q/0$;//'$8#:t# )(#'#("'#&'#`),c(`%;//?#24""6475/0$;//'$8#:u# )(#'#("'#&'#`),c(`%;//?#2>""6>7?/0$;//'$8#:v# )(#'#("'#&'#`),c(`%;//?#2T""6T7U/0$;//'$8#:w# )(#'#("'#&'#`),c(`%;//?#2V""6V7W/0$;//'$8#:x# )(#'#("'#&'#`),c(`%2h""6h7i/0#;//'$8":y" )("'#&'#`),c(`%;//6#2f""6f7g/'$8":z" )("'#&'#`),c(`%;//?#2D""6D7E/0$;//'$8#:{# )(#'#("'#&'#`),c(`%;//?#22""6273/0$;//'$8#:|# )(#'#("'#&'#`),c(`%;//?#28""6879/0$;//'$8#:}# )(#'#("'#&'#`),c(`%;//0#;&/'$8":~" )("'#&'#`),c(`%;&/0#;//'$8":~" )("'#&'#`),c(`%;=/T#$;G.) &;K.# &;F0/*;G.) &;K.# &;F&/,$;>/#$+#)(#'#("'#&'#`),c('4\x7F""5!7\x80.A &4\x81""5!7\x82.5 &4\x83""5!7\x84.) &;3.# &;.'),c(`%%;//Q#;&/H$$;J.# &;K0)*;J.# &;K&/,$;&/#$+$)($'#(#'#("'#&'#/"!&,)`),c(`%;//]#;&/T$%$;J.# &;K0)*;J.# &;K&/"!&,)/1$;&/($8$:\x85$!!)($'#(#'#("'#&'#`),c(';..G &2L""6L7M.; &4\x86""5!7\x87./ &4\x83""5!7\x84.# &;3'),c(`%2j""6j7k/J#4\x88""5!7\x89.5 &4\x8A""5!7\x8B.) &4\x8C""5!7\x8D/#$+")("'#&'#`),c(`%;N/M#28""6879/>$;O." &"/0$;S/'$8$:\x8E$ )($'#(#'#("'#&'#`),c(`%;N/d#28""6879/U$;O." &"/G$;S/>$;_/5$;l." &"/'$8&:\x8F& )(&'#(%'#($'#(#'#("'#&'#`),c(`%3\x90""5$7\x91.) &3\x92""5#7\x93/' 8!:\x94!! )`),c(`%;P/]#%28""6879/,#;R/#$+")("'#&'#." &"/6$2:""6:7;/'$8#:\x95# )(#'#("'#&'#`),c("$;+.) &;-.# &;Q/2#0/*;+.) &;-.# &;Q&&&#"),c('2<""6<7=.q &2>""6>
109987?.e &2@""[email protected] &2B""6B7C.M &2D""6D7E.A &22""6273.5 &26""6677.) &24""6475'),c('%$;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""[email protected] &2B""6B7C.) &2D""6D7E0e*;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""[email protected] &2B""6B7C.) &2D""6D7E&/& 8!:\x96! )'),c(`%;T/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),c("%;U.) &;\\.# &;X/& 8!:\x97! )"),c(`%$%;V/2#2J""6J7K/#$+")("'#&'#0<*%;V/2#2J""6J7K/#$+")("'#&'#&/D#;W/;$2J""6J7K." &"/'$8#:\x98# )(#'#("'#&'#`),c('$4\x99""5!7\x9A/,#0)*4\x99""5!7\x9A&&&#'),c(`%4$""5!7%/?#$4\x9B""5!7\x9C0)*4\x9B""5!7\x9C&/#$+")("'#&'#`),c(`%2l""6l7m/?#;Y/6$2n""6n7o/'$8#:\x9D# )(#'#("'#&'#`),c(`%%;Z/\xB3#28""6879/\xA4$;Z/\x9B$28""6879/\x8C$;Z/\x83$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+-)(-'#(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.\u0790 &%2\x9E""6\x9E7\x9F/\xA4#;Z/\x9B$28""6879/\x8C$;Z/\x83$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+,)(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.\u06F9 &%2\x9E""6\x9E7\x9F/\x8C#;Z/\x83$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.\u067A &%2\x9E""6\x9E7\x9F/t#;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.\u0613 &%2\x9E""6\x9E7\x9F/\\#;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+&)(&'#(%'#($'#(#'#("'#&'#.\u05C4 &%2\x9E""6\x9E7\x9F/D#;Z/;$28""6879/,$;[/#$+$)($'#(#'#("'#&'#.\u058D &%2\x9E""6\x9E7\x9F/,#;[/#$+")("'#&'#.\u056E &%2\x9E""6\x9E7\x9F/,#;Z/#$+")("'#&'#.\u054F &%;Z/\x9B#2\x9E""6\x9E7\x9F/\x8C$;Z/\x83$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$++)(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.\u04C7 &%;Z/\xAA#%28""6879/,#;Z/#$+")("'#&'#." &"/\x83$2\x9E""6\x9E7\x9F/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.\u0430 &%;Z/\xB9#%28""6879/,#;Z/#$+")("'#&'#." &"/\x92$%28""6879/,#;Z/#$+")("'#&'#." &"/k$2\x9E""6\x9E7\x9F/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+))()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.\u038A &%;Z/\xC8#%28""6879/,#;Z/#$+")("'#&'#." &"/\xA1$%28""6879/,#;Z/#$+")("'#&'#." &"/z$%28""6879/,#;Z/#$+")("'#&'#." &"/S$2\x9E""6\x9E7\x9F/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.\u02D5 &%;Z/\xD7#%28""6879/,#;Z/#$+")("'#&'#." &"/\xB0$%28""6879/,#;Z/#$+")("'#&'#." &"/\x89$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2\x9E""6\x9E7\x9F/,$;[/#$+')(''#(&'#(%'#($'#(#'#("'#&'#.\u0211 &%;Z/\xFE#%28""6879/,#;Z/#$+")("'#&'#." &"/\xD7$%28""6879/,#;Z/#$+")("'#&'#." &"/\xB0$%28""6879/,#;Z/#$+")("'#&'#." &"/\x89$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2\x9E""6\x9E7\x9F/,$;Z/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.\u0126 &%;Z/\u011C#%28""6879/,#;Z/#$+")("'#&'#." &"/\xF5$%28""6879/,#;Z/#$+")("'#&'#." &"/\xCE$%28""6879/,#;Z/#$+")("'#&'#." &"/\xA7$%28""6879/,#;Z/#$+")("'#&'#." &"/\x80$%28""6879/,#;Z/#$+")("'#&'#." &"/Y$%28""6879/,#;Z/#$+")("'#&'#." &"/2$2\x9E""6\x9E7\x9F/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#/& 8!:\xA0! )`),c(`%;#/M#;#." &"/?$;#." &"/1$;#." &"/#$+$)($'#(#'#("'#&'#`),c(`%;Z/;#28""6879/,$;Z/#$+#)(#'#("'#&'#.# &;\\`),c(`%;]/o#2J""6J7K/\`$;]/W$2J""6J7K/H$;]/?$2J""6J7K/0$;]/'$8':\xA1' )(''#(&'#(%'#($'#(#'#("'#&'#`),c(`%2\xA2""6\xA27\xA3/2#4\xA4""5!7\xA5/#$+")("'#&'#.\x98 &%2\xA6""6\xA67\xA7/;#4\xA8""5!7\xA9/,$;!/#$+#)(#'#("'#&'#.j &%2\xAA""6\xAA7\xAB/5#;!/,$;!/#$+#)(#'#("'#&'#.B &%4\xAC""5!7\xAD/,#;!/#$+")("'#&'#.# &;!`),c(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:\xAE!! )`),c(`$%22""6273/,#;\`/#$+")("'#&'#0<*%22""6273/,#;\`/#$+")("'#&'#&`),c(";a.A &;b.; &;c.5 &;d./ &;e.) &;f.# &;g"),c(`%3\xAF""5*7\xB0/a#3\xB1""5#7\xB2.G &3\xB3""5#7\xB4.; &3\xB5""5$7\xB6./ &3\xB7""5#7\xB8.# &;6/($8":\xB9"! )("'#&'#`),c(`%3\xBA""5%7\xBB/I#3\xBC""5%7\xBD./ &3\xBE""5"7\xBF.# &;6/($8":\xC0"! )("'#&'#`),c(`%3\xC1""5'7\xC2/1#;\x90/($8":\xC3"! )("'#&'#`),c(`%3\xC4""5$7\xC5/1#;\xF0/($8":\xC6"! )("'#&'#`),c(`%3\xC7""5&7\xC8/1#;T/($8":\xC9"! )("'#&'#`),c(`%3\xCA""5"7\xCB/N#%2>""6>7?/,#;6/#$+")("'#&'#." &"/'$8":\xCC" )("'#&'#`),c(`%;h/P#%2>""6>7?/,#;i/#$+")("'#&'#." &"/)$8":\xCD""! )("'#&'#`),c('%$;j/�#*;j&&&#/"!&,)'),c('%$;j/�#*;j&&&#/"!&,)'),c(";k.) &;+.# &;-"),c('2l""6l7m.e &2n""6n7o.Y &24""6475.M &28""6879.A &2<""6<7=.5 &2@""6@7A.) &2B""6B7C'),c(`%26""6677/n#;m/e$$%2<""6<7=/,#;m/#$+")("'#&'#0<*%2<""6<7=/,#;m/#$+")("'#&'#&/#$+#)(#'#("'#&'#`),c(`%;n/A#2>""6>7?/2$;o/)$8#:\xCE#"" )(#'#("'#&'#`),c("$;p.) &;+.# &;-/2#0/*;p.) &;+.# &;-&&&#"),c("$;p.) &;+.# &;-0/*;p.) &;+.# &;-&"),c('2l""6l7m.e &2n""6n7o.Y &24""6475.M &26""6677.A &28""6879.5 &2@""6@7A.) &2B""6B7C'),c(";\x91.# &;r"),c(`%;\x90/G#;'/>$;s/5$;'/,$;\x84/#$+%)(%'#($'#(#'#("'#&'#`),c(";M.# &;t"),c(`%;\x7F/E#28""6879/6$;u.# &;x/'$8#:\xCF# )(#'#("'#&'#`),c(`%;v.# &;w/J#%26""6677/,#;\x83/#$+")("'#&'#." &"/#$+")("'#&'#`),c(`%2\xD0""6\xD07\xD1/:#;\x80/1$;w." &"/#$+#)(#'#("'#&'#`),c(`%24""6475/,#;{/#$+")("'#&'#`),c(`%;z/3#$;y0#*;y&/#$+")("'#&'#`),c(";*.) &;+.# &;-"),c(';+.\x8F &;-.\x89 &22""6273.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>
109987?.A &2@""[email protected] &2B""6B7C.) &2D""6D7E'),c(`%;|/e#$%24""6475/,#;|/#$+")("'#&'#0<*%24""6475/,#;|/#$+")("'#&'#&/#$+")("'#&'#`),c(`%$;~0#*;~&/e#$%22""6273/,#;}/#$+")("'#&'#0<*%22""6273/,#;}/#$+")("'#&'#&/#$+")("'#&'#`),c("$;~0#*;~&"),c(';+.w &;-.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""[email protected] &2B""6B7C.) &2D""6D7E'),c(`%%;"/\x87#$;".G &;!.A &2@""[email protected] &2F""6F7G.) &2J""6J7K0M*;".G &;!.A &2@""[email protected] &2F""6F7G.) &2J""6J7K&/#$+")("'#&'#/& 8!:\xD2! )`),c(";\x81.# &;\x82"),c(`%%;O/2#2:""6:7;/#$+")("'#&'#." &"/,#;S/#$+")("'#&'#." &"`),c('$;+.\x83 &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A/\x8C#0\x89*;+.\x83 &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A&&&#'),c("$;y0#*;y&"),c(`%3\x92""5#7\xD3/q#24""6475/b$$;!/�#*;!&&&#/L$2J""6J7K/=$$;!/�#*;!&&&#/'$8%:\xD4% )(%'#($'#(#'#("'#&'#`),c('2\xD5""6\xD57\xD6'),c('2\xD7""6\xD77\xD8'),c('2\xD9""6\xD97\xDA'),c('2\xDB""6\xDB7\xDC'),c('2\xDD""6\xDD7\xDE'),c('2\xDF""6\xDF7\xE0'),c('2\xE1""6\xE17\xE2'),c('2\xE3""6\xE37\xE4'),c('2\xE5""6\xE57\xE6'),c('2\xE7""6\xE77\xE8'),c('2\xE9""6\xE97\xEA'),c("%;\x85.Y &;\x86.S &;\x88.M &;\x89.G &;\x8A.A &;\x8B.; &;\x8C.5 &;\x8F./ &;\x8D.) &;\x8E.# &;6/& 8!:\xEB! )"),c(`%;\x84/G#;'/>$;\x92/5$;'/,$;\x94/#$+%)(%'#($'#(#'#("'#&'#`),c("%;\x93/' 8!:\xEC!! )"),c(`%;!/5#;!/,$;!/#$+#)(#'#("'#&'#`),c("%$;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(0G*;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(&/& 8!:\xED! )"),c(`%;\xB6/Y#$%;A/,#;\xB6/#$+")("'#&'#06*%;A/,#;\xB6/#$+")("'#&'#&/#$+")("'#&'#`),c(`%;9/N#%2:""6:7;/,#;9/#$+")("'#&'#." &"/'$8":\xEE" )("'#&'#`),c(`%;:.c &%;\x98/Y#$%;A/,#;\x98/#$+")("'#&'#06*%;A/,#;\x98/#$+")("'#&'#&/#$+")("'#&'#/& 8!:\xEF! )`),c(`%;L.# &;\x99/]#$%;B/,#;\x9B/#$+")("'#&'#06*%;B/,#;\x9B/#$+")("'#&'#&/'$8":\xF0" )("'#&'#`),c(`%;\x9A." &"/>#;@/5$;M/,$;?/#$+$)($'#(#'#("'#&'#`),c(`%%;6/Y#$%;./,#;6/#$+")("'#&'#06*%;./,#;6/#$+")("'#&'#&/#$+")("'#&'#.# &;H/' 8!:\xF1!! )`),c(";\x9C.) &;\x9D.# &;\xA0"),c(`%3\xF2""5!7\xF3/:#;</1$;\x9F/($8#:\xF4#! )(#'#("'#&'#`),c(`%3\xF5""5'7\xF6/:#;</1$;\x9E/($8#:\xF7#! )(#'#("'#&'#`),c("%$;!/�#*;!&&&#/' 8!:\xF8!! )"),c(`%2\xF9""6\xF97\xFA/o#%2J""6J7K/M#;!." &"/?$;!." &"/1$;!." &"/#$+$)($'#(#'#("'#&'#." &"/'$8":\xFB" )("'#&'#`),c(`%;6/J#%;</,#;\xA1/#$+")("'#&'#." &"/)$8":\xFC""! )("'#&'#`),c(";6.) &;T.# &;H"),c(`%;\xA3/Y#$%;B/,#;\xA4/#$+")("'#&'#06*%;B/,#;\xA4/#$+")("'#&'#&/#$+")("'#&'#`),c(`%3\xFD""5&7\xFE.G &3\xFF""5'7\u0100.; &3\u0101""5$7\u0102./ &3\u0103""5%7\u0104.# &;6/& 8!:\u0105! )`),c(";\xA5.# &;\xA0"),c(`%3\u0106""5(7\u0107/M#;</D$3\u0108""5(7\u0109./ &3\u010A""5(7\u010B.# &;6/#$+#)(#'#("'#&'#`),c(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),c("%$;!/�#*;!&&&#/' 8!:\u010C!! )"),c("%;\xA9/& 8!:\u010D! )"),c(`%;\xAA/k#;;/b$;\xAF/Y$$%;B/,#;\xB0/#$+")("'#&'#06*%;B/,#;\xB0/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),c(";\xAB.# &;\xAC"),c('3\u010E""5$7\u010F.S &3\u0110""5%7\u0111.G &3\u0112""5%7\u0113.; &3\u0114""5%7\u0115./ &3\u0116""5+7\u0117.# &;\xAD'),c(`3\u0118""5'7\u0119./ &3\u011A""5)7\u011B.# &;\xAD`),c(";6.# &;\xAE"),c(`%3\u011C""5"7\u011D/,#;6/#$+")("'#&'#`),c(";\xAD.# &;6"),c(`%;6/5#;</,$;\xB1/#$+#)(#'#("'#&'#`),c(";6.# &;H"),c(`%;\xB3/5#;./,$;\x90/#$+#)(#'#("'#&'#`),c("%$;!/�#*;!&&&#/' 8!:\u011E!! )"),c("%;\x9E/' 8!:\u011F!! )"),c(`%;\xB6/^#$%;B/,#;\xA0/#$+")("'#&'#06*%;B/,#;\xA0/#$+")("'#&'#&/($8":\u0120"!!)("'#&'#`),c(`%%;7/e#$%2J""6J7K/,#;7/#$+")("'#&'#0<*%2J""6J7K/,#;7/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),c(`%;L.# &;\x99/]#$%;B/,#;\xB8/#$+")("'#&'#06*%;B/,#;\xB8/#$+")("'#&'#&/'$8":\u0121" )("'#&'#`),c(";\xB9.# &;\xA0"),c(`%3\u0122""5#7\u0123/:#;</1$;6/($8#:\u0124#! )(#'#("'#&'#`),c("%$;!/�#*;!&&&#/' 8!:\u0125!! )"),c("%;\x9E/' 8!:\u0126!! )"),c(`%$;\x9A0#*;\x9A&/x#;@/o$;M/f$;?/]$$%;B/,#;\xA0/#$+")("'#&'#06*%;B/,#;\xA0/#$+")("'#&'#&/'$8%:\u0127% )(%'#($'#(#'#("'#&'#`),c(";\xBE"),c(`%3\u0128""5&7\u0129/k#;./b$;\xC1/Y$$%;A/,#;\xC1/#$+")("'#&'#06*%;A/,#;\xC1/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#.# &;\xBF`),c(`%;6/k#;./b$;\xC0/Y$$%;A/,#;\xC0/#$+")("'#&'#06*%;A/,#;\xC0/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),c(`%;6/;#;</2$;6.# &;H/#$+#)(#'#("'#&'#`),c(";\xC2.G &;\xC4.A &;\xC6.; &;\xC8.5 &;\xC9./ &;\xCA.) &;\xCB.# &;\xC0"),c(`%3\u012A""5%7\u012B/5#;</,$;\xC3/#$+#)(#'#("'#&'#`),c("%;I/' 8!:\u012C!! )"),c(`%3\u012D""5&7\u012E/\x97#;</\x8E$;D/\x85$;\xC5/|$$%$;'/�#*;'&&&#/,#;\xC5/#$+")("'#&'#0C*%$;'/�#*;'&&&#/,#;\xC5/#$+")("'#&'#&/,$;E/#$+&)(&'#(%'#($'#(#'#("'#&'#`),c(";t.# &;w"),c(`%3\u012F""5%7\u0130/5#;</,$;\xC7/#$+#)(#'#("'#&'#`),c("%;I/' 8!:\u0131!! )"),c(`%3\u0132""5&7\u0133/:#;</1$;I/($8#:\u0134#! )(#'#("'#&'#`),c(`%3\u0135""5%7\u0136/]#;</T$%3\u0137""5$7\u0138/& 8!:\u0139! ).4 &%3\u013A""5%7\u013B/& 8!:\u013C! )/#$+#)(#'#("'#&'#`),c(`%3\u013D""5)7\u013E/R#;</I$3\u013F""5#7\u0140./ &3\u0141""5(7\u0142.# &;6/($8#:\u0143#! )(#'#("'#&'#`),c(`%3\u0144""5#7\u0145/\x93#;</\x8A$;D/\x81$%;\xCC/e#$%2D""6D7E/,#;\xCC/#$+")("'#&'#0<*%2D""6D7E/,#;\xCC/#$+")("'#&'#&/#$+")("'#&'#/,$;E/#$+%)(%'#($'#(#'#("'#&'#`),c(`%3\u0146""5(7\u0147./ &3\u0148""5$7\u0149.# &;6/' 8!:\u014A!! )`),c(`%;6/Y#$%;A/,#;
109986/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),c(`%;\xCF/G#;./>$;\xCF/5$;./,$;\x90/#$+%)(%'#($'#(#'#("'#&'#`),c("%$;!/�#*;!&&&#/' 8!:\u014B!! )"),c(`%;\xD1/]#$%;A/,#;\xD1/#$+")("'#&'#06*%;A/,#;\xD1/#$+")("'#&'#&/'$8":\u014C" )("'#&'#`),c(`%;\x99/]#$%;B/,#;\xA0/#$+")("'#&'#06*%;B/,#;\xA0/#$+")("'#&'#&/'$8":\u014D" )("'#&'#`),c(`%;L.O &;\x99.I &%;@." &"/:#;t/1$;?." &"/#$+#)(#'#("'#&'#/]#$%;B/,#;\xA0/#$+")("'#&'#06*%;B/,#;\xA0/#$+")("'#&'#&/'$8":\u014E" )("'#&'#`),c(`%;\xD4/]#$%;B/,#;\xD5/#$+")("'#&'#06*%;B/,#;\xD5/#$+")("'#&'#&/'$8":\u014F" )("'#&'#`),c("%;\x96/& 8!:\u0150! )"),c(`%3\u0151""5(7\u0152/:#;</1$;6/($8#:\u0153#! )(#'#("'#&'#.g &%3\u0154""5&7\u0155/:#;</1$;6/($8#:\u0156#! )(#'#("'#&'#.: &%3\u0157""5*7\u0158/& 8!:\u0159! ).# &;\xA0`),c(`%%;6/k#$%;A/2#;6/)$8":\u015A""$ )("'#&'#0<*%;A/2#;6/)$8":\u015A""$ )("'#&'#&/)$8":\u015B""! )("'#&'#." &"/' 8!:\u015C!! )`),c(`%;\xD8/Y#$%;A/,#;\xD8/#$+")("'#&'#06*%;A/,#;\xD8/#$+")("'#&'#&/#$+")("'#&'#`),c(`%;\x99/Y#$%;B/,#;\xA0/#$+")("'#&'#06*%;B/,#;\xA0/#$+")("'#&'#&/#$+")("'#&'#`),c("%$;!/�#*;!&&&#/' 8!:\u015D!! )"),c(`%;\xDB/Y#$%;B/,#;\xDC/#$+")("'#&'#06*%;B/,#;\xDC/#$+")("'#&'#&/#$+")("'#&'#`),c(`%3\u015E""5&7\u015F.; &3\u0160""5'7\u0161./ &3\u0162""5*7\u0163.# &;6/& 8!:\u0164! )`),c(`%3\u0165""5&7\u0166/:#;</1$;\xDD/($8#:\u0167#! )(#'#("'#&'#.} &%3\xF5""5'7\xF6/:#;</1$;\x9E/($8#:\u0168#! )(#'#("'#&'#.P &%3\u0169""5+7\u016A/:#;</1$;\x9E/($8#:\u016B#! )(#'#("'#&'#.# &;\xA0`),c(`3\u016C""5+7\u016D.k &3\u016E""5)7\u016F._ &3\u0170""5(7\u0171.S &3\u0172""5'7\u0173.G &3\u0174""5&7\u0175.; &3\u0176""5*7\u0177./ &3\u0178""5)7\u0179.# &;6`),c(';1." &"'),c(`%%;6/k#$%;A/2#;6/)$8":\u015A""$ )("'#&'#0<*%;A/2#;6/)$8":\u015A""$ )("'#&'#&/)$8":\u015B""! )("'#&'#." &"/' 8!:\u017A!! )`),c(`%;L.# &;\x99/]#$%;B/,#;\xE1/#$+")("'#&'#06*%;B/,#;\xE1/#$+")("'#&'#&/'$8":\u017B" )("'#&'#`),c(";\xB9.# &;\xA0"),c(`%;\xE3/Y#$%;A/,#;\xE3/#$+")("'#&'#06*%;A/,#;\xE3/#$+")("'#&'#&/#$+")("'#&'#`),c(`%;\xEA/k#;./b$;\xED/Y$$%;B/,#;\xE4/#$+")("'#&'#06*%;B/,#;\xE4/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),c(";\xE5.; &;\xE6.5 &;\xE7./ &;\xE8.) &;\xE9.# &;\xA0"),c(`%3\u017C""5#7\u017D/:#;</1$;\xF0/($8#:\u017E#! )(#'#("'#&'#`),c(`%3\u017F""5%7\u0180/:#;</1$;T/($8#:\u0181#! )(#'#("'#&'#`),c(`%3\u0182""5(7\u0183/F#;</=$;\\.) &;Y.# &;X/($8#:\u0184#! )(#'#("'#&'#`),c(`%3\u0185""5&7\u0186/:#;</1$;6/($8#:\u0187#! )(#'#("'#&'#`),c(`%3\u0188""5%7\u0189/A#;</8$$;!0#*;!&/($8#:\u018A#! )(#'#("'#&'#`),c(`%;\xEB/G#;;/>$;6/5$;;/,$;\xEC/#$+%)(%'#($'#(#'#("'#&'#`),c(`%3\x92""5#7\xD3.# &;6/' 8!:\u018B!! )`),c(`%3\xB1""5#7\u018C.G &3\xB3""5#7\u018D.; &3\xB7""5#7\u018E./ &3\xB5""5$7\u018F.# &;6/' 8!:\u0190!! )`),c(`%;\xEE/D#%;C/,#;\xEF/#$+")("'#&'#." &"/#$+")("'#&'#`),c("%;U.) &;\\.# &;X/& 8!:\u0191! )"),c(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:\u0192!! )`),c(`%%;!/?#;!." &"/1$;!." &"/#$+#)(#'#("'#&'#/' 8!:\u0193!! )`),c(";\xBE"),c(`%;\x9E/^#$%;B/,#;\xF3/#$+")("'#&'#06*%;B/,#;\xF3/#$+")("'#&'#&/($8":\u0194"!!)("'#&'#`),c(";\xF4.# &;\xA0"),c(`%2\u0195""6\u01957\u0196/L#;</C$2\u0197""6\u01977\u0198.) &2\u0199""6\u01997\u019A/($8#:\u019B#! )(#'#("'#&'#`),c(`%;\x9E/^#$%;B/,#;\xA0/#$+")("'#&'#06*%;B/,#;\xA0/#$+")("'#&'#&/($8":\u019C"!!)("'#&'#`),c(`%;6/5#;0/,$;\xF7/#$+#)(#'#("'#&'#`),c("$;2.) &;4.# &;.0/*;2.) &;4.# &;.&"),c("$;%0#*;%&"),c(`%;\xFA/;#28""6879/,$;\xFB/#$+#)(#'#("'#&'#`),c(`%3\u019D""5%7\u019E.) &3\u019F""5$7\u01A0/' 8!:\u01A1!! )`),c(`%;\xFC/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),c("%;\\.) &;X.# &;\x82/' 8!:\u01A2!! )"),c(';".S &;!.M &2F""6F7G.A &2J""6J7K.5 &2H""6H7I.) &2N""6N7O'),c('2L""6L7M.\x95 &2B""6B7C.\x89 &2<""6<7=.} &2R""6R7S.q &2T""6T7U.e &2V""6V7W.Y &2P""6P7Q.M &2@""[email protected] &2D""6D7E.5 &22""6273.) &2>""6>7?'),c(`%;\u0100/b#28""6879/S$;\xFB/J$%2\u01A3""6\u01A37\u01A4/,#;\xEC/#$+")("'#&'#." &"/#$+$)($'#(#'#("'#&'#`),c(`%3\u01A5""5%7\u01A6.) &3\u01A7""5$7\u01A8/' 8!:\u01A1!! )`),c(`%3\xB1""5#7\xB2.6 &3\xB3""5#7\xB4.* &$;+0#*;+&/' 8!:\u01A9!! )`),c(`%;\u0104/\x87#2F""6F7G/x$;\u0103/o$2F""6F7G/\`$;\u0103/W$2F""6F7G/H$;\u0103/?$2F""6F7G/0$;\u0105/'$8):\u01AA) )()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#`),c(`%;#/>#;#/5$;#/,$;#/#$+$)($'#(#'#("'#&'#`),c(`%;\u0103/,#;\u0103/#$+")("'#&'#`),c(`%;\u0103/5#;\u0103/,$;\u0103/#$+#)(#'#("'#&'#`),c(`%;q/T#$;m0#*;m&/D$%; /,#;\xF8/#$+")("'#&'#." &"/#$+#)(#'#("'#&'#`),c(`%2\u01AB""6\u01AB7\u01AC.) &2\u01AD""6\u01AD7\u01AE
10998/w#;0/n$;\u0108/e$$%;B/2#;\u0109.# &;\xA0/#$+")("'#&'#0<*%;B/2#;\u0109.# &;\xA0/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),c(";\x99.# &;L"),c(`%2\u01AF""6\u01AF7\u01B0/5#;</,$;\u010A/#$+#)(#'#("'#&'#`),c(`%;D/S#;,/J$2:""6:7;/;$;,.# &;T/,$;E/#$+%)(%'#($'#(#'#("'#&'#`)],d=0,u=0,h=[{line:1,column:1}],v=0,E=[],$=0,k;if(e.startRule!==void 0){if(!(e.startRule in s))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');i=s[e.startRule];}function I(){return o.substring(u,d)}function le(){return Be(u,d)}function w(l,p){return {type:"literal",text:l,ignoreCase:p}}function N(l,p,f){return {type:"class",parts:l,inverted:p,ignoreCase:f}}function sr(){return {type:"end"}}function Nt(l){let p=h[l],f;if(p)return p;for(f=l-1;!h[f];)f--;for(p=h[f],p={line:p.line,column:p.column};f<l;)o.charCodeAt(f)===10?(p.line++,p.column=1):p.column++,f++;return h[l]=p,p}function Be(l,p){let f=Nt(l),X=Nt(p);return {source:r,start:{offset:l,line:f.line,column:f.column},end:{offset:p,line:X.line,column:X.column}}}function Ft(l){d<v||(d>v&&(v=d,E=[]),E.push(l));}function Ot(l,p,f){return new Ve(Ve.buildMessage(l,p),l,p,f)}function c(l){return l.split("").map(p=>p.charCodeAt(0)-32)}function Ut(l){let p=a[l],f=0,X=[],_=p.length,ce=[],C=[],Lt;for(;;){for(;f<_;)switch(p[f]){case 0:C.push(n[p[f+1]]),f+=2;break;case 1:C.push(void 0),f++;break;case 2:C.push(null),f++;break;case 3:C.push(t),f++;break;case 4:C.push([]),f++;break;case 5:C.push(d),f++;break;case 6:C.pop(),f++;break;case 7:d=C.pop(),f++;break;case 8:C.length-=p[f+1],f+=2;break;case 9:C.splice(-2,1),f++;break;case 10:C[C.length-2].push(C.pop()),f++;break;case 11:C.push(C.splice(C.length-p[f+1],p[f+1])),f+=2;break;case 12:C.push(o.substring(C.pop(),d)),f++;break;case 13:ce.push(_),X.push(f+3+p[f+1]+p[f+2]),C[C.length-1]?(_=f+3+p[f+1],f+=3):(_=f+3+p[f+1]+p[f+2],f+=3+p[f+1]);break;case 14:ce.push(_),X.push(f+3+p[f+1]+p[f+2]),C[C.length-1]===t?(_=f+3+p[f+1],f+=3):(_=f+3+p[f+1]+p[f+2],f+=3+p[f+1]);break;case 15:ce.push(_),X.push(f+3+p[f+1]+p[f+2]),C[C.length-1]!==t?(_=f+3+p[f+1],f+=3):(_=f+3+p[f+1]+p[f+2],f+=3+p[f+1]);break;case 16:C[C.length-1]!==t?(ce.push(_),X.push(f),_=f+2+p[f+1],f+=2):f+=2+p[f+1];break;case 17:ce.push(_),X.push(f+3+p[f+1]+p[f+2]),o.length>d?(_=f+3+p[f+1],f+=3):(_=f+3+p[f+1]+p[f+2],f+=3+p[f+1]);break;case 18:ce.push(_),X.push(f+4+p[f+2]+p[f+3]),o.substr(d,n[p[f+1]].length)===n[p[f+1]]?(_=f+4+p[f+2],f+=4):(_=f+4+p[f+2]+p[f+3],f+=4+p[f+2]);break;case 19:ce.push(_),X.push(f+4+p[f+2]+p[f+3]),o.substr(d,n[p[f+1]].length).toLowerCase()===n[p[f+1]]?(_=f+4+p[f+2],f+=4):(_=f+4+p[f+2]+p[f+3],f+=4+p[f+2]);break;case 20:ce.push(_),X.push(f+4+p[f+2]+p[f+3]),n[p[f+1]].test(o.charAt(d))?(_=f+4+p[f+2],f+=4):(_=f+4+p[f+2]+p[f+3],f+=4+p[f+2]);break;case 21:C.push(o.substr(d,p[f+1])),d+=p[f+1],f+=2;break;case 22:C.push(n[p[f+1]]),d+=n[p[f+1]].length,f+=2;break;case 23:C.push(t),$===0&&Ft(n[p[f+1]]),f+=2;break;case 24:u=C[C.length-1-p[f+1]],f+=2;break;case 25:u=d,f++;break;case 26:Lt=p.slice(f+4,f+4+p[f+3]).map(function(ar){return C[C.length-1-ar]}),C.splice(C.length-p[f+2],p[f+2],n[p[f+1]].apply(null,Lt)),f+=4+p[f+3];break;case 27:C.push(Ut(p[f+1])),f+=2;break;case 28:$++,f++;break;case 29:$--,f++;break;default:throw new Error("Invalid opcode: "+p[f]+".")}if(ce.length>0)_=ce.pop(),f=X.pop();else break}return C[0]}e.data={};function or(l,p){return [l].concat(p)}if(k=Ut(i),k!==t&&d===o.length)return k;throw k!==t&&d<o.length&&Ft(sr()),Ot(E,v<o.length?o.charAt(v):null,v<o.length?Be(v,v+1):Be(v,v))}var Xt=dr;var A;(function(o){function e(s,i){let n={startRule:i};try{Xt(s,n);}catch(a){n.data=-1;}return n.data}o.parse=e;function t(s){let i=o.parse(s,"Name_Addr_Header");return i!==-1?i:void 0}o.nameAddrHeaderParse=t;function r(s){let i=o.parse(s,"SIP_URI");return i!==-1?i:void 0}o.URIParse=r;})(A=A||(A={}));var lr={100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"};function he(o,e=32){let t="";for(let r=0;r<o;r++){let s=Math.floor(Math.random()*e);t+=s.toString(e);}return t}function me(o){return lr[o]||""}function we$1(){return he(10)}function te(o){let e={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},t=o.toLowerCase().replace(/_/g,"-").split("-"),r=t.length,s="";for(let i=0;i<r;i++)i!==0&&(s+="-"),s+=t[i].charAt(0).toUpperCase()+t[i].substring(1);return e[s]&&(s=e[s]),s}function ve(o){return encodeURIComponent(o).replace(/%[A-F\d]{2}/g,"U").length}var He=class{constructor(){this.headers={};}addHeader(e,t){let r={raw:t};e=te(e),this.headers[e]?this.headers[e].push(r):this.headers[e]=[r];}getHeader(e){let t=this.headers[te(e)];if(t){if(t[0])return t[0].raw}else return}getHeaders(e){let t=this.headers[te(e)],r=[];if(!t)return [];for(let s of t)r.push(s.raw);return r}hasHeader(e){return !!this.headers[te(e)]}parseHeader(e,t=0){if(e=te(e),this.headers[e]){if(t>=this.headers[e].length)return}else return;let r=this.headers[e][t],s=r.raw;if(r.parsed)return r.parsed;let i=A.parse(s,e.replace(/-/g,"_"));if(i===-1){this.headers[e].splice(t,1);return}else return r.parsed=i,i}s(e,t=0){return this.parseHeader(e,t)}setHeader(e,t){this.headers[te(e)]=[{raw:t}];}toString(){return this.data}};var re=class extends He{constructor(){super();}};var V=class extends He{constructor(){super();}};var Te$1=class o{constructor(e,t,r,s,i,n,a){this.headers={},this.extraHeaders=[],this.options=o.getDefaultOptions(),i&&(this.options=Object.assign(Object.assign({},this.options),i),this.options.optionTags&&this.options.optionTags.length&&(this.options.optionTags=this.options.optionTags.slice()),this.options.routeSet&&this.options.routeSet.length&&(this.options.routeSet=this.options.routeSet.slice())),n&&n.length&&(this.extraHeaders=n.slice()),a&&(this.body={body:a.content,contentType:a.contentType}),this.method=e,this.ruri=t.clone(),this.fromURI=r.clone(),this.fromTag=this.options.fromTag?this.options.fromTag:we$1(),this.from=o.makeNameAddrHeader(this.fromURI,this.options.fromDisplayName,this.fromTag),this.toURI=s.
10998clone(),this.toTag=this.options.toTag,this.to=o.makeNameAddrHeader(this.toURI,this.options.toDisplayName,this.toTag),this.callId=this.options.callId?this.options.callId:this.options.callIdPrefix+he(15),this.cseq=this.options.cseq,this.setHeader("route",this.options.routeSet),this.setHeader("via",""),this.setHeader("to",this.to.toString()),this.setHeader("from",this.from.toString()),this.setHeader("cseq",this.cseq+" "+this.method),this.setHeader("call-id",this.callId),this.setHeader("max-forwards","70");}static getDefaultOptions(){return {callId:"",callIdPrefix:"",cseq:1,toDisplayName:"",toTag:"",fromDisplayName:"",fromTag:"",forceRport:false,hackViaTcp:false,optionTags:["outbound"],routeSet:[],userAgentString:"sip.js",viaHost:""}}static makeNameAddrHeader(e,t,r){let s={};return r&&(s.tag=r),new L(e,t,s)}getHeader(e){let t=this.headers[te(e)];if(t){if(t[0])return t[0]}else {let r=new RegExp("^\\s*"+e+"\\s*:","i");for(let s of this.extraHeaders)if(r.test(s))return s.substring(s.indexOf(":")+1).trim()}}getHeaders(e){let t=[],r=this.headers[te(e)];if(r)for(let s of r)t.push(s);else {let s=new RegExp("^\\s*"+e+"\\s*:","i");for(let i of this.extraHeaders)s.test(i)&&t.push(i.substring(i.indexOf(":")+1).trim());}return t}hasHeader(e){if(this.headers[te(e)])return true;{let t=new RegExp("^\\s*"+e+"\\s*:","i");for(let r of this.extraHeaders)if(t.test(r))return true}return false}setHeader(e,t){this.headers[te(e)]=t instanceof Array?t:[t];}setViaHeader(e,t){this.options.hackViaTcp&&(t="TCP");let r="SIP/2.0/"+t;r+=" "+this.options.viaHost+";branch="+e,this.options.forceRport&&(r+=";rport"),this.setHeader("via",r),this.branch=e;}toString(){let e="";e+=this.method+" "+this.ruri.toRaw()+` SIP/2.0\r 10999`;for(let t in this.headers)if(this.headers[t])for(let r of this.headers[t])e+=t+": "+r+`\r 11000`;for(let t of this.extraHeaders)e+=t.trim()+`\r 11001`;return e+="Supported: "+this.options.optionTags.join(", ")+`\r 11002`,e+="User-Agent: "+this.options.userAgentString+`\r 11003`,this.body?typeof this.body=="string"?(e+="Content-Length: "+ve(this.body)+`\r 11004\r 11005`,e+=this.body):this.body.body&&this.body.contentType?(e+="Content-Type: "+this.body.contentType+`\r 11006`,e+="Content-Length: "+ve(this.body.body)+`\r 11007\r 11008`,e+=this.body.body):e+=`Content-Length: 0\r 11009\r 11010`:e+=`Content-Length: 0\r 11011\r 11012`,e}};function Qt(o){return o==="application/sdp"?"session":"render"}function Pe(o){let e=typeof o=="string"?o:o.body,t=typeof o=="string"?"application/sdp":o.contentType;return {contentDisposition:Qt(t),contentType:t,content:e}}function Dt(o){return o&&typeof o.content=="string"&&typeof o.contentType=="string"&&o.contentDisposition===void 0?true:typeof o.contentDisposition=="str
11012ing"}function xe(o){let e,t,r;if(o instanceof re&&o.body){let s=o.parseHeader("Content-Disposition");e=s?s.type:void 0,t=o.parseHeader("Content-Type"),r=o.body;}if(o instanceof V&&o.body){let s=o.parseHeader("Content-Disposition");e=s?s.type:void 0,t=o.parseHeader("Content-Type"),r=o.body;}if(o instanceof Te$1&&o.body)if(e=o.getHeader("Content-Disposition"),t=o.getHeader("Content-Type"),typeof o.body=="string"){if(!t)throw new Error("Header content type header does not equal body content type.");r=o.body;}else {if(t&&t!==o.body.contentType)throw new Error("Header content type header does not equal body content type.");t=o.body.contentType,r=o.body.body;}if(Dt(o)&&(e=o.contentDisposition,t=o.contentType,r=o.content),!!r){if(t&&!e&&(e=Qt(t)),!e)throw new Error("Content disposition undefined.");if(!t)throw new Error("Content type undefined.");return {contentDisposition:e,contentType:t,content:r}}}var W;(function(o){o.Initial="Initial",o.Early="Early",o.AckWait="AckWait",o.Confirmed="Confirmed",o.Terminated="Terminated";})(W=W||(W={}));var x;(function(o){o.Initial="Initial",o.HaveLocalOffer="HaveLocalOffer",o.HaveRemoteOffer="HaveRemoteOffer",o.Stable="Stable",o.Closed="Closed";})(x=x||(x={}));var P={T1:500,T2:4e3,TIMER_B:32e3,TIMER_D:0,TIMER_F:32e3,TIMER_H:32e3,TIMER_I:0,TIMER_J:0,TIMER_K:0,TIMER_L:32e3,TIMER_M:32e3,TIMER_N:32e3,PROVISIONAL_RESPONSE_INTERVAL:6e4};var z=class extends B{constructor(e){super(e||"Transaction state error.");}};var T;(function(o){o.ACK="ACK",o.BYE="BYE",o.CANCEL="CANCEL",o.INFO="INFO",o.INVITE="INVITE",o.MESSAGE="MESSAGE",o.NOTIFY="NOTIFY",o.OPTIONS="OPTIONS",o.REGISTER="REGISTER",o.UPDATE="UPDATE",o.SUBSCRIBE="SUBSCRIBE",o.PUBLISH="PUBLISH",o.REFER="REFER",o.PRACK="PRACK";})(T=T||(T={}));var se=[T.ACK,T.BYE,T.CANCEL,T.INFO,T.INVITE,T.MESSAGE,T.NOTIFY,T.OPTIONS,T.PRACK,T.REFER,T.REGISTER,T.SUBSCRIBE];var ke=class{constructor(e){this.incomingMessageRequest=e;}get request(){return this.incomingMessageRequest.message}accept(e){return this.incomingMessageRequest.accept(e),Promise.resolve()}reject(e){return this.incomingMessageRequest.reject(e),Promise.resolve()}};var ye=class{constructor(e){this.incomingNotifyRequest=e;}get request(){return this.incomingNotifyRequest.message}accept(e){return this.incomingNotifyRequest.accept(e),Promise.resolve()}reject(e){return this.incomingNotifyRequest.reject(e),Promise.resolve()}};var rt=class{constructor(e,t){this.incomingReferRequest=e,this.session=t;}get referTo(){let e=this.incomingReferRequest.message.parseHeader("refer-to");if(!(e instanceof L))throw new Error("Failed to parse Refer-To header.");return e}get referredBy(){return this.incomingReferRequest.message.getHeader("referred-by")}get replaces(){let e=this.referTo.uri.getHeader("replaces");return e instanceof Array?e[0]:e}get request(){return this.incomingReferRequest.message}accept(e={statusCode:202}){return this.incomingReferRequest.accept(e),Promise.resolve()}reject(e){return this.incomingReferRequest.reject(e),Promise.resolve()}makeInviter(e){if(this.inviter)return this.inviter;let t=this.referTo.uri.clone();t.clearHeaders(),e=e||{};let r=(e.extraHeaders||[]).slice(),s=this.replaces;s&&r.push("Replaces: "+decodeURIComponent(s));let i=this.referredBy;return i&&r.push("Referred-By: "+i),e.extraHeaders=r,this.inviter=this.session.userAgent._makeInviter(t,e),this.inviter._referred=this.session,this.session._referral=this.inviter,this.inviter}};var m;(function(o){o.Initial="Initial",o.Establishing="Establishing",o.Established="Established",o.Terminating="Terminating",o.Terminated="Terminated";})(m=m||(m={}));var ue=class o{constructor(e,t={}){this.pendingReinvite=false,this.pendingReinviteAck=false,this._state=m.Initial,this.delegate=t.delegate,this._stateEventEmitter=new ne,this._userAgent=e;}dispose(){switch(this.logger.log(`Session ${this.id} in state ${this._state} is being disposed`),delete this.userAgent._sessions[this.id],this._sessionDescriptionHandler&&this._sessionDescriptionHandler.close(),this.state){case m.Initial:break;case m.Establishing:break;case m.Established:return new Promise(e=>{this._bye({onAccept:()=>e(),onRedirect:()=>e(),onReject:()=>e()});});case m.Terminating:break;case m.Terminated:break;default:throw new Error("Unknown state.")}return Promise.resolve()}get assertedIdentity(){return this._assertedIdentity}get dialog(){return this._dialog}get id(){return this._id}get replacee(){return this._replacee}get sessionDescriptionHandler(){return this._sessionDescriptionHandler}get sessionDescriptionHandlerFactory(){return this.userAgent.configuration.sessionDescriptionHandlerFactory}get sessionDescriptionHandlerModifiers(){return this._sessionDescriptionHandlerModifiers||[]}set sessionDescriptionHandlerModifiers(e){this._sessionDescriptionHandlerModifiers=e.slice();}get sessionDescriptionHandlerOptions(){return this._sessionDescriptionHandlerOptions||{}}set sessionDescriptionHandlerOptions(e){this._sessionDescriptionHandlerOptions=Object.assign({},e);}get sessionDescriptionHandlerModifiersReInvite(){return this._sessionDescriptionHandlerModifiersReInvite||[]}set sessionDescriptionHandlerModifiersReInvite(e){this._sessionDescriptionHandlerModifiersReInvite=e.slice();}get sessionDescriptionHandlerOptionsReInvite(){return this._sessionDescriptionHandlerOptionsReInvite||{}}set sessionDescriptionHandlerOptionsReInvite(e){this._sessionDescriptionHandlerOptionsReInvite=Object.assign({},e);}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get userAgent(){return this._userAgent}bye(e={}){let t="Session.bye() may only be called if established session.";switch(this.state){case m.Initial:typeof this.cancel=="function"?(t+=" However Inviter.invite() has not yet been called.",t+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(t+=" However Invitation.accept() has not yet been called.",t+=" Perhaps you should have called Invitation.reject()?");break;case m.Establishing:typeof this.cancel=="function"?(t+=" However a dialog does not yet exist.",t+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(t+=" However Invitation.accept() has not yet been called (or not yet resolved).",t+=" Perhaps you should have called Invitation.reject()?");break;case m.Established:{let r=e.requestDelegate,s=this.copyRequestOptions(e.requestOptions);return this._bye(r,s)}case m.Terminating:t+=" However this session is already terminating.",typeof this.cancel=="function"?t+=" Perhaps you have already called Inviter.cancel()?":typeof this.reject=="function"&&(t+=" Perhaps you have already called Session.bye()?");break;case m.Terminated:t+=" However this session is already terminated.";break;default:throw new Error("Unknown state")}return this.logger.error(t),Promise.reject(new Error(`Invalid session state ${this.state}`))}info(e={}){if(this.state!==m.Established)return this.logger.error("Session.info() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));let t=e.requestDelegate,r=this.copyRequestOptions(e.requestOptions);return this._info(t,r)}invite(e={}){if(this.logger.log("Session.invite"),this.state!==m.Established)return Promise.reject(new Error(`Invalid session state ${this.state}`));if(this.pendingReinvite)return Promise.reject(new de("Reinvite in progress. Please wait until complete, then try again."));this.pendingReinvite=true,e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiersReInvite=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptionsReInvite=e.sessionDescriptionHandlerOptions);let t={onAccept:i=>{let n=xe(i.message);if(!n){this.logger.error("Received 2xx response to re-INVITE without a session description"),this.ackAndBye(i,400,"Missing session description"),this.stateTransition(m.Terminated),this.pendingReinvite=false;return}if(e.withoutSdp){let a={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setOfferAndGetAnswer(n,a).then(d=>{i.ack({body:d});}).catch(d=>{this.logger.error("Failed to handle offer in 2xx response to re-INVITE"),this.logger.error(d.message),this.state===m.Terminated?i.ack():(this.ackAndBye(i,488,"Bad Media Description"),this.stateTransition(m.Terminated));}).then(()=>{this.pendingReinvite=false,e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(i);});}else {let a={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setAnswer(n,a).then(()=>{i.ack();}).catch(d=>{this.logger.error("Failed to handle answer in 2xx response to re-INVITE"),this.logger.error(d.message),this.state!==m.Terminated?(this.ackAndBye(i,488,"Bad Media Description"),this.stateTransition(m.Terminated)):i.ack();}).then(()=>{this.pendingReinvite=false,e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(i);});}},onProgress:i=>{},onRedirect:i=>{},onReject:i=>{this.logger.warn("Received a non-2xx response to re-INVITE"),this.pendingReinvite=false,e.withoutSdp?e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(i):this.rollbackOffer().catch(n=>{if(this.logger.error("Failed to rollback offer on non-2xx response to re-INVITE"),this.logger.error(n.message),this.state!==m.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");let a=[];a.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:a}),this.stateTransition(m.Terminated);}}).then(()=>{e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(i);});},onTrying:i=>{}},r=e.requestOptions||{};if(r.extraHeaders=(r.extraHeaders||[]).slice(),r.extraHeaders.push("Allow: "+se.toString()),r.extraHeaders.push("Contact: "+this._contact),e.withoutSdp){if(!this.dialog)throw this.pendingReinvite=false,new Error("Dialog undefined.");return Promise.resolve(this.dialog.invite(t,r))}let s={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};return this.getOffer(s).then(i=>{if(!this.dialog)throw this.pendingReinvite=false,new Error("Dialog undefined.");return r.body=i,this.dialog.invite(t,r)}).catch(i=>{throw this.logger.error(i.message),this.logger.error("Failed to send re-INVITE"),this.pendingReinvite=false,i})}message(e={}){if(this.state!==m.Established)return this.logger.error("Session.message() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));let t=e.requestDelegate,r=this.copyRequestOptions(e.requestOptions);return this._message(t,r)}refer(e,t={}){if(this.state!==m.Established)return this.logger.error("Session.refer() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));if(e instanceof o&&!e.dialog)return this.logger.error("Session.refer() may only be called with session which is established. You are perhaps attempting to attended transfer to a target for which there is not dialog yet established. Perhaps you are attempting a 'semi-attended' tansfer? Regardless, this is not supported. The recommended approached is to check to see if the target Session is in the Established state before calling refer(); if the state is not Established you may proceed by falling back using a URI as the target (blind transfer)."),Promise.reject(new Error(`Invalid session state ${this.state}`));let r=t.requestDelegate,s=this.copyRequestOptions(t.requestOptions);return s.extraHeaders=s.extraHeaders?s.extraHeaders.concat(this.referExtraHeaders(this.referToString(e))):this.referExtraHeaders(this.referToString(e)),this._refer(t.onNotify,r,s)}_bye(e,t){if(!this.dialog)return Promise.reject(new Error("Session dialog undefined."));let r=this.dialog;switch(r.sessionState){case W.Initial:throw new Error(`Invalid dialog state ${r.sessionState}`);case W.Early:throw new Error(`Invalid dialog state ${r.sessionState}`);case W.AckWait:return this.stateTransition(m.Terminating),new Promise(s=>{r.delegate={onAck:()=>{let i=r.bye(e,t);return this.stateTransition(m.Terminated),s(i),Promise.resolve()},onAckTimeout:()=>{let i=r.bye(e,t);this.stateTransition(m.Terminated),s(i);}};});case W.Confirmed:{let s=r.bye(e,t);return this.stateTransition(m.Terminated),Promise.resolve(s)}case W.Terminated:throw new Error(`Invalid dialog state ${r.sessionState}`);default:throw new Error("Unrecognized state.")}}_info(e,t){return this.dialog?Promise.resolve(this.dialog.info(e,t)):Promise.reject(new Error("Session dialog undefined."))}_message(e,t){return this.dialog?Promise.resolve(this.dialog.message(e,t)):Promise.reject(new Error("Session dialog undefined."))}_refer(e,t,r){return this.dialog?(this.onNotify=e,Promise.resolve(this.dialog.refer(t,r))):Promise.reject(new Error("Session dialog undefined."))}ackAndBye(e,t,r){e.ack();let s=[];t&&s.push("Reason: "+this.getReasonHeaderValue(t,r)),e.session.bye(void 0,{extraHeaders:s});}onAckRequest(e){if(this.logger.log("Session.onAckRequest"),this.state!==m.Established&&this.state!==m.Terminating)return this.logger.error(`ACK received while in state ${this.state}, dropping request`),Promise.resolve();let t=this.dialog;if(!t)throw new Error("Dialog undefined.");let r={sessionDescriptionHandlerOptions:this.pendingReinviteAck?this.sessionDescriptionHandlerOptionsReInvite:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.pendingReinviteAck?this._sessionDescriptionHandlerModifiersReInvite:this._sessionDescriptionHandlerModifiers};if(this.delegate&&this.delegate.onAck){let s=new Xe(e);this.delegate.onAck(s);}switch(this.pendingReinviteAck=false,t.signalingState){case x.Initial:{this.logger.error(`Invalid signaling state ${t.signalingState}.`);let s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return t.bye(void 0,{extraHeaders:s}),this.stateTransition(m.Terminated),Promise.resolve()}case x.Stable:{let s=xe(e.message);return s?s.contentDisposition==="render"?(this._renderbody=s.content,this._rendertype=s.contentType,Promise.resolve()):s.contentDisposition!=="session"?Promise.resolve():this.setAnswer(s,r).catch(i=>{this.logger.error(i.message);let n=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];t.bye(void 0,{extraHeaders:n}),this.stateTransition(m.Terminated);}):Promise.resolve()}case x.HaveLocalOffer:{this.logger.error(`Invalid signaling state ${t.signalingState}.`);let s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return t.bye(void 0,{extraHeaders:s}),this.stateTransition(m.Terminated),Promise.resolve()}case x.HaveRemoteOffer:{this.logger.error(`Invalid signaling state ${t.signalingState}.`);let s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return t.bye(void 0,{extraHeaders:s}),this.stateTransition(m.Terminated),Promise.resolve()}case x.Closed:throw new Error(`Invalid signaling state ${t.signalingState}.`);default:throw new Error(`Invalid signaling state ${t.signalingState}.`)}}
11012onByeRequest(e){if(this.logger.log("Session.onByeRequest"),this.state!==m.Established){this.logger.error(`BYE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onBye){let t=new Qe(e);this.delegate.onBye(t);}else e.accept();this.stateTransition(m.Terminated);}onInfoRequest(e){if(this.logger.log("Session.onInfoRequest"),this.state!==m.Established){this.logger.error(`INFO received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onInfo){let t=new tt(e);this.delegate.onInfo(t);}else e.accept();}onInviteRequest(e){if(this.logger.log("Session.onInviteRequest"),this.state!==m.Established){this.logger.error(`INVITE received while in state ${this.state}, dropping request`);return}this.pendingReinviteAck=true;let t=["Contact: "+this._contact];if(e.message.hasHeader("P-Asserted-Identity")){let s=e.message.getHeader("P-Asserted-Identity");if(!s)throw new Error("Header undefined.");this._assertedIdentity=A.nameAddrHeaderParse(s);}let r={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.generateResponseOfferAnswerInDialog(r).then(s=>{let i=e.accept({statusCode:200,extraHeaders:t,body:s});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(e.message,i.message,200);}).catch(s=>{if(this.logger.error(s.message),this.logger.error("Failed to handle to re-INVITE request"),!this.dialog)throw new Error("Dialog undefined.");if(this.logger.error(this.dialog.signalingState),this.dialog.signalingState===x.Stable){let i=e.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(e.message,i.message,488);return}this.rollbackOffer().then(()=>{let i=e.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(e.message,i.message,488);}).catch(i=>{this.logger.error(i.message),this.logger.error("Failed to rollback offer on re-INVITE request");let n=e.reject({statusCode:488});if(this.state!==m.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");let a=[];a.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:a}),this.stateTransition(m.Terminated);}this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(e.message,n.message,488);});});}onMessageRequest(e){if(this.logger.log("Session.onMessageRequest"),this.state!==m.Established){this.logger.error(`MESSAGE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onMessage){let t=new ke(e);this.delegate.onMessage(t);}else e.accept();}onNotifyRequest(e){if(this.logger.log("Session.onNotifyRequest"),this.state!==m.Established){this.logger.error(`NOTIFY received while in state ${this.state}, dropping request`);return}if(this.onNotify){let t=new ye(e);this.onNotify(t);return}if(this.delegate&&this.delegate.onNotify){let t=new ye(e);this.delegate.onNotify(t);}else e.accept();}onPrackRequest(e){if(this.logger.log("Session.onPrackRequest"),this.state!==m.Established){this.logger.error(`PRACK received while in state ${this.state}, dropping request`);return}throw new Error("Unimplemented.")}onReferRequest(e){if(this.logger.log("Session.onReferRequest"),this.state!==m.Established){this.logger.error(`REFER received while in state ${this.state}, dropping request`);return}if(!e.message.hasHeader("refer-to")){this.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting."),e.reject();return}let t=new rt(e,this);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(t):(this.logger.log("No delegate available to handle REFER, automatically accepting and following."),t.accept().then(()=>t.makeInviter(this._referralInviterOptions).invite()).catch(r=>{this.logger.error(r.message);}));}generateResponseOfferAnswer(e,t){if(this.dialog)return this.generateResponseOfferAnswerInDialog(t);let r=xe(e.message);return !r||r.contentDisposition!=="session"?this.getOffer(t):this.setOfferAndGetAnswer(r,t)}generateResponseOfferAnswerInDialog(e){if(!this.dialog)throw new Error("Dialog undefined.");switch(this.dialog.signalingState){case x.Initial:return this.getOffer(e);case x.HaveLocalOffer:return Promise.resolve(void 0);case x.HaveRemoteOffer:if(!this.dialog.offer)throw new Error(`Session offer undefined in signaling state ${this.dialog.signalingState}.`);return this.setOfferAndGetAnswer(this.dialog.offer,e);case x.Stable:return this.state!==m.Established?Promise.resolve(void 0):this.getOffer(e);case x.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}getOffer(e){let t=this.setupSessionDescriptionHandler(),r=e.sessionDescriptionHandlerOptions,s=e.sessionDescriptionHandlerModifiers;try{return t.getDescription(r,s).then(i=>Pe(i)).catch(i=>{this.logger.error("Session.getOffer: SDH getDescription rejected...");let n=i instanceof Error?i:new Error("Session.getOffer unknown error.");throw this.logger.error(n.message),n})}catch(i){this.logger.error("Session.getOffer: SDH getDescription threw...");let n=i instanceof Error?i:new Error(i);return this.logger.error(n.message),Promise.reject(n)}}rollbackOffer(){let e=this.setupSessionDescriptionHandler();if(e.rollbackDescription===void 0)return Promise.resolve();try{return e.rollbackDescription().catch(t=>{this.logger.error("Session.rollbackOffer: SDH rollbackDescription rejected...");let r=t instanceof Error?t:new Error("Session.rollbackOffer unknown error.");throw this.logger.error(r.message),r})}catch(t){this.logger.error("Session.rollbackOffer: SDH rollbackDescription threw...");let r=t instanceof Error?t:new Error(t);return this.logger.error(r.message),Promise.reject(r)}}setAnswer(e,t){let r=this.setupSessionDescriptionHandler(),s=t.sessionDescriptionHandlerOptions,i=t.sessionDescriptionHandlerModifiers;try{if(!r.hasDescription(e.contentType))return Promise.reject(new Re)}catch(n){this.logger.error("Session.setAnswer: SDH hasDescription threw...");let a=n instanceof Error?n:new Error(n);return this.logger.error(a.message),Promise.reject(a)}try{return r.setDescription(e.content,s,i).catch(n=>{this.logger.error("Session.setAnswer: SDH setDescription rejected...");let a=n instanceof Error?n:new Error("Session.setAnswer unknown error.");throw this.logger.error(a.message),a})}catch(n){this.logger.error("Session.setAnswer: SDH setDescription threw...");let a=n instanceof Error?n:new Error(n);return this.logger.error(a.message),Promise.reject(a)}}setOfferAndGetAnswer(e,t){let r=this.setupSessionDescriptionHandler(),s=t.sessionDescriptionHandlerOptions,i=t.sessionDescriptionHandlerModifiers;try{if(!r.hasDescription(e.contentType))return Promise.reject(new Re)}catch(n){this.logger.error("Session.setOfferAndGetAnswer: SDH hasDescription threw...");let a=n instanceof Error?n:new Error(n);return this.logger.error(a.message),Promise.reject(a)}try{return r.setDescription(e.content,s,i).then(()=>r.getDescription(s,i)).then(n=>Pe(n)).catch(n=>{this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription rejected...");let a=n instanceof Error?n:new Error("Session.setOfferAndGetAnswer unknown error.");throw this.logger.error(a.message),a})}catch(n){this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription threw...");let a=n instanceof Error?n:new Error(n);return this.logger.error(a.message),Promise.reject(a)}}setSessionDescriptionHandler(e){if(this._sessionDescriptionHandler)throw new Error("Session description handler defined.");this._sessionDescriptionHandler=e;}setupSessionDescriptionHandler(){var e;return this._sessionDescriptionHandler?this._sessionDescriptionHandler:(this._sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions),!((e=this.delegate)===null||e===void 0)&&e.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(this._sessionDescriptionHandler,false),this._sessionDescriptionHandler)}stateTransition(e){let t=()=>{throw new Error(`Invalid state transition from ${this._state} to ${e}`)};switch(this._state){case m.Initial:e!==m.Establishing&&e!==m.Established&&e!==m.Terminating&&e!==m.Terminated&&t();break;case m.Establishing:e!==m.Established&&e!==m.Terminating&&e!==m.Terminated&&t();break;case m.Established:e!==m.Terminating&&e!==m.Terminated&&t();break;case m.Terminating:e!==m.Terminated&&t();break;case m.Terminated:t();break;default:throw new Error("Unrecognized state.")}this._state=e,this.logger.log(`Session ${this.id} transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),e===m.Terminated&&this.dispose();}copyRequestOptions(e={}){let t=e.extraHeaders?e.extraHeaders.slice():void 0,r=e.body?{contentDisposition:e.body.contentDisposition||"render",contentType:e.body.contentType||"text/plain",content:e.body.content||""}:void 0;return {extraHeaders:t,body:r}}getReasonHeaderValue(e,t){let r=e,s=me(e);return !s&&t&&(s=t),"SIP;cause="+r+';text="'+s+'"'}referExtraHeaders(e){let t=[];return t.push("Referred-By: <"+this.userAgent.configuration.uri+">"),t.push("Contact: "+this._contact),t.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),t.push("Refer-To: "+e),t}referToString(e){let t;if(e instanceof G$1)t=e.toString();else {if(!e.dialog)throw new Error("Dialog undefined.");let r=e.remoteIdentity.friendlyName,s=e.dialog.remoteTarget.toString(),i=e.dialog.callId,n=e.dialog.remoteTag,a=e.dialog.localTag,d=encodeURIComponent(`${i};to-tag=${n};from-tag=${a}`);t=`"${r}" <${s}?Replaces=${d}>`;}return t}};var K;(function(o){o.Required="Required",o.Supported="Supported",o.Unsupported="Unsupported";})(K=K||(K={}));var er={"100rel":true,199:true,answermode:true,"early-session":true,eventlist:true,explicitsub:true,"from-change":true,"geolocation-http":true,"geolocation-sip":true,gin:true,gruu:true,histinfo:true,ice:true,join:true,"multiple-refer":true,norefersub:true,nosub:true,outbound:true,path:true,policy:true,precondition:true,pref:true,privacy:true,"recipient-list-invite":true,"recipient-list-message":true,"recipient-list-subscribe":true,replaces:true,"resource-priority":true,"sdp-anat":true,"sec-agree":true,tdialog:true,timer:true,uui:true};var ge=class extends ue{constructor(e,t){super(e),this.incomingInviteRequest=t,this.disposed=false,this.expiresTimer=void 0,this.isCanceled=false,this.rel100="none",this.rseq=Math.floor(Math.random()*1e4),this.userNoAnswerTimer=void 0,this.waitingForPrack=false,this.logger=e.getLogger("sip.Invitation");let r=this.incomingInviteRequest.message,s=r.getHeader("require");s&&s.toLowerCase().includes("100rel")&&(this.rel100="required");let i=r.getHeader("supported");if(i&&i.toLowerCase().includes("100rel")&&(this.rel100="supported"),r.toTag=t.toTag,typeof r.toTag!="string")throw new TypeError("toTag should have been a string.");if(this.userNoAnswerTimer=setTimeout(()=>{t.reject({statusCode:480}),this.stateTransition(m.Terminated);},this.userAgent.configuration.noAnswerTimeout?this.userAgent.configuration.noAnswerTimeout*1e3:6e4),r.hasHeader("expires")){let d=Number(r.getHeader("expires")||0)*1e3;this.expiresTimer=setTimeout(()=>{this.state===m.Initial&&(t.reject({statusCode:487}),this.stateTransition(m.Terminated));},d);}let n=this.request.getHeader("P-Asserted-Identity");n&&(this._assertedIdentity=A.nameAddrHeaderParse(n)),this._contact=this.userAgent.contact.toString();let a=r.parseHeader("Content-Disposition");a&&a.type==="render"&&(this._renderbody=r.body,this._rendertype=r.getHeader("Content-Type")),this._id=r.callId+r.fromTag,this.userAgent._sessions[this._id]=this;}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=true,this.expiresTimer&&(clearTimeout(this.expiresTimer),this.expiresTimer=void 0),this.userNoAnswerTimer&&(clearTimeout(this.userNoAnswerTimer),this.userNoAnswerTimer=void 0),this.prackNeverArrived(),this.state){case m.Initial:return this.reject().then(()=>super.dispose());case m.Establishing:return this.reject().then(()=>super.dispose());case m.Established:return super.dispose();case m.Terminating:return super.dispose();case m.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get autoSendAnInitialProvisionalResponse(){return this.rel100!=="required"&&this.userAgent.configuration.sendInitialProvisionalResponse}get body(){return this.incomingInviteRequest.message.body}get localIdentity(){return this.request.to}get remoteIdentity(){return this.request.from}get request(){return this.incomingInviteRequest.message}accept(e={}){if(this.logger.log("Invitation.accept"),this.state!==m.Initial){let t=new Error(`Invalid session state ${this.state}`);return this.logger.error(t.message),Promise.reject(t)}return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.stateTransition(m.Establishing),this.sendAccept(e).then(({message:t,session:r})=>{r.delegate={onAck:s=>this.onAckRequest(s),onAckTimeout:()=>this.onAckTimeout(),onBye:s=>
11012this.onByeRequest(s),onInfo:s=>this.onInfoRequest(s),onInvite:s=>this.onInviteRequest(s),onMessage:s=>this.onMessageRequest(s),onNotify:s=>this.onNotifyRequest(s),onPrack:s=>this.onPrackRequest(s),onRefer:s=>this.onReferRequest(s)},this._dialog=r,this.stateTransition(m.Established),this._replacee&&this._replacee._bye();}).catch(t=>this.handleResponseError(t))}progress(e={}){if(this.logger.log("Invitation.progress"),this.state!==m.Initial){let r=new Error(`Invalid session state ${this.state}`);return this.logger.error(r.message),Promise.reject(r)}let t=e.statusCode||180;if(t<100||t>199)throw new TypeError("Invalid statusCode: "+t);return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.waitingForPrack?(this.logger.warn("Unexpected call for progress while waiting for prack, ignoring"),Promise.resolve()):e.statusCode===100?this.sendProgressTrying().then(()=>{}).catch(r=>this.handleResponseError(r)):this.rel100!=="required"&&!(this.rel100==="supported"&&e.rel100)&&!(this.rel100==="supported"&&this.userAgent.configuration.sipExtension100rel===K.Required)?this.sendProgress(e).then(()=>{}).catch(r=>this.handleResponseError(r)):this.sendProgressReliableWaitForPrack(e).then(()=>{}).catch(r=>this.handleResponseError(r))}reject(e={}){if(this.logger.log("Invitation.reject"),this.state!==m.Initial&&this.state!==m.Establishing){let n=new Error(`Invalid session state ${this.state}`);return this.logger.error(n.message),Promise.reject(n)}let t=e.statusCode||480,r=e.reasonPhrase?e.reasonPhrase:me(t),s=e.extraHeaders||[];if(t<300||t>699)throw new TypeError("Invalid statusCode: "+t);let i=e.body?Pe(e.body):void 0;return t<400?this.incomingInviteRequest.redirect([],{statusCode:t,reasonPhrase:r,extraHeaders:s,body:i}):this.incomingInviteRequest.reject({statusCode:t,reasonPhrase:r,extraHeaders:s,body:i}),this.stateTransition(m.Terminated),Promise.resolve()}_onCancel(e){if(this.logger.log("Invitation._onCancel"),this.state!==m.Initial&&this.state!==m.Establishing){this.logger.error(`CANCEL received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onCancel){let t=new et(e);this.delegate.onCancel(t);}this.isCanceled=true,this.incomingInviteRequest.reject({statusCode:487}),this.stateTransition(m.Terminated);}handlePrackOfferAnswer(e){if(!this.dialog)throw new Error("Dialog undefined.");let t=xe(e.message);if(!t||t.contentDisposition!=="session")return Promise.resolve(void 0);let r={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers};switch(this.dialog.signalingState){case x.Initial:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case x.Stable:return this.setAnswer(t,r).then(()=>{});case x.HaveLocalOffer:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case x.HaveRemoteOffer:return this.setOfferAndGetAnswer(t,r);case x.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}handleResponseError(e){let t=480;if(e instanceof Error?this.logger.error(e.message):this.logger.error(e),e instanceof Re?(this.logger.error("A session description handler occurred while sending response (content type unsupported"),t=415):e instanceof Je?this.logger.error("A session description handler occurred while sending response"):e instanceof $e?this.logger.error("Session ended before response could be formulated and sent (while waiting for PRACK)"):e instanceof z&&this.logger.error("Session changed state before response could be formulated and sent"),this.state===m.Initial||this.state===m.Establishing)try{this.incomingInviteRequest.reject({statusCode:t}),this.stateTransition(m.Terminated);}catch(r){throw this.logger.error("An error occurred attempting to reject the request while handling another error"),r}if(this.isCanceled){this.logger.warn("An error occurred while attempting to formulate and send a response to an incoming INVITE. However a CANCEL was received and processed while doing so which can (and often does) result in errors occurring as the session terminates in the meantime. Said error is being ignored.");return}throw e}onAckTimeout(){if(this.logger.log("Invitation.onAckTimeout"),!this.dialog)throw new Error("Dialog undefined.");this.logger.log("No ACK received for an extended period of time, terminating session"),this.dialog.bye(),this.stateTransition(m.Terminated);}sendAccept(e={}){let t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.extraHeaders||[];return this.waitingForPrack?this.waitForArrivalOfPrack().then(()=>clearTimeout(this.userNoAnswerTimer)).then(()=>this.generateResponseOfferAnswer(this.incomingInviteRequest,t)).then(s=>this.incomingInviteRequest.accept({statusCode:200,body:s,extraHeaders:r})):(clearTimeout(this.userNoAnswerTimer),this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(s=>this.incomingInviteRequest.accept({statusCode:200,body:s,extraHeaders:r})))}sendProgress(e={}){let t=e.statusCode||180,r=e.reasonPhrase,s=(e.extraHeaders||[]).slice(),i=e.body?Pe(e.body):void 0;if(t===183&&!i)return this.sendProgressWithSDP(e);try{let n=this.incomingInviteRequest.progress({statusCode:t,reasonPhrase:r,extraHeaders:s,body:i});return this._dialog=n.session,Promise.resolve(n)}catch(n){return Promise.reject(n)}}sendProgressWithSDP(e={}){let t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.statusCode||183,s=e.reasonPhrase,i=(e.extraHeaders||[]).slice();return this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(n=>this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:s,extraHeaders:i,body:n})).then(n=>(this._dialog=n.session,n))}sendProgressReliable(e={}){return e.extraHeaders=(e.extraHeaders||[]).slice(),e.extraHeaders.push("Require: 100rel"),e.extraHeaders.push("RSeq: "+Math.floor(Math.random()*1e4)),this.sendProgressWithSDP(e)}sendProgressReliableWaitForPrack(e={}){let t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.statusCode||183,s=e.reasonPhrase,i=(e.extraHeaders||[]).slice();i.push("Require: 100rel"),i.push("RSeq: "+this.rseq++);let n;return new Promise((a,d)=>{this.waitingForPrack=true,this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(u=>(n=u,this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:s,extraHeaders:i,body:n}))).then(u=>{this._dialog=u.session;let h,v;u.session.delegate={onPrack:ae=>{h=ae,clearTimeout($),clearTimeout(le),this.waitingForPrack&&(this.waitingForPrack=false,this.handlePrackOfferAnswer(h).then(Ie=>{try{v=h.accept({statusCode:200,body:Ie}),this.prackArrived(),a({prackRequest:h,prackResponse:v,progressResponse:u});}catch(w){d(w);}}).catch(Ie=>d(Ie)));}};let $=setTimeout(()=>{this.waitingForPrack&&(this.waitingForPrack=false,this.logger.warn("No PRACK received, rejecting INVITE."),clearTimeout(le),this.reject({statusCode:504}).then(()=>d(new $e)).catch(ae=>d(ae)));},P.T1*64),k=()=>{try{this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:s,extraHeaders:i,body:n});}catch(ae){this.waitingForPrack=false,d(ae);return}le=setTimeout(k,I*=2);},I=P.T1,le=setTimeout(k,I);}).catch(u=>{this.waitingForPrack=false,d(u);});})}sendProgressTrying(){try{let e=this.incomingInviteRequest.trying();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}waitForArrivalOfPrack(){if(this.waitingForPrackPromise)throw new Error("Already waiting for PRACK");return this.waitingForPrackPromise=new Promise((e,t)=>
11012{this.waitingForPrackResolve=e,this.waitingForPrackReject=t;}),this.waitingForPrackPromise}prackArrived(){this.waitingForPrackResolve&&this.waitingForPrackResolve(),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0;}prackNeverArrived(){this.waitingForPrackReject&&this.waitingForPrackReject(new $e),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0;}};var Ee=class extends ue{constructor(e,t,r={}){super(e,r),this.disposed=false,this.earlyMedia=false,this.earlyMediaSessionDescriptionHandlers=new Map,this.isCanceled=false,this.inviteWithoutSdp=false,this.logger=e.getLogger("sip.Inviter"),this.earlyMedia=r.earlyMedia!==void 0?r.earlyMedia:this.earlyMedia,this.fromTag=we$1(),this.inviteWithoutSdp=r.inviteWithoutSdp!==void 0?r.inviteWithoutSdp:this.inviteWithoutSdp;let s=Object.assign({},r);s.params=Object.assign({},r.params);let i=r.anonymous||false,n=e.contact.toString({anonymous:i,outbound:i?!e.contact.tempGruu:!e.contact.pubGruu});i&&e.configuration.uri&&(s.params.fromDisplayName="Anonymous",s.params.fromUri="sip:[email protected]");let a=e.userAgentCore.configuration.aor;if(s.params.fromUri&&(a=typeof s.params.fromUri=="string"?A.URIParse(s.params.fromUri):s.params.fromUri),!a)throw new TypeError("Invalid from URI: "+s.params.fromUri);let d=t;if(s.params.toUri&&(d=typeof s.params.toUri=="string"?A.URIParse(s.params.toUri):s.params.toUri),!d)throw new TypeError("Invalid to URI: "+s.params.toUri);let u=Object.assign({},s.params);u.fromTag=this.fromTag;let h=(s.extraHeaders||[]).slice();i&&e.configuration.uri&&(h.push("P-Preferred-Identity: "+e.configuration.uri.toString()),h.push("Privacy: id")),h.push("Contact: "+n),h.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),e.configuration.sipExtension100rel===K.Required&&h.push("Require: 100rel"),e.configuration.sipExtensionReplaces===K.Required&&h.push("Require: replaces"),s.extraHeaders=h;let v=void 0;this.outgoingRequestMessage=e.userAgentCore.makeOutgoingRequestMessage(T.INVITE,t,a,d,u,h,v),this._contact=n,this._referralInviterOptions=s,this._renderbody=r.renderbody,this._rendertype=r.rendertype,r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),r.sessionDescriptionHandlerModifiersReInvite&&(this.sessionDescriptionHandlerModifiersReInvite=r.sessionDescriptionHandlerModifiersReInvite),r.sessionDescriptionHandlerOptionsReInvite&&(this.sessionDescriptionHandlerOptionsReInvite=r.sessionDescriptionHandlerOptionsReInvite),this._id=this.outgoingRequestMessage.callId+this.fromTag,this.userAgent._sessions[this._id]=this;}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=true,this.disposeEarlyMedia(),this.state){case m.Initial:return this.cancel().then(()=>super.dispose());case m.Establishing:return this.cancel().then(()=>super.dispose());case m.Established:return super.dispose();case m.Terminating:return super.dispose();case m.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get body(){return this.outgoingRequestMessage.body}get localIdentity(){return this.outgoingRequestMessage.from}get remoteIdentity(){return this.outgoingRequestMessage.to}get request(){return this.outgoingRequestMessage}cancel(e={}){if(this.logger.log("Inviter.cancel"),this.state!==m.Initial&&this.state!==m.Establishing){let r=new Error(`Invalid session state ${this.state}`);return this.logger.error(r.message),Promise.reject(r)}this.isCanceled=true,this.stateTransition(m.Terminating);function t(r,s){if(r&&r<200||r>699)throw new TypeError("Invalid statusCode: "+r);if(r){let i=r,n=me(r)||s;return "SIP;cause="+i+';text="'+n+'"'}}if(this.outgoingInviteRequest){let r;e.statusCode&&e.reasonPhrase&&(r=t(e.statusCode,e.reasonPhrase)),this.outgoingInviteRequest.cancel(r,e);}else this.logger.warn("Canceled session before INVITE was sent"),this.stateTransition(m.Terminated);return Promise.resolve()}invite(e={}){if(this.logger.log("Inviter.invite"),this.state!==m.Initial)return super.invite(e);if(e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),e.withoutSdp||this.inviteWithoutSdp)return this._renderbody&&this._rendertype&&(this.outgoingRequestMessage.body={contentType:this._rendertype,body:this._renderbody}),this.stateTransition(m.Establishing),Promise.resolve(this.sendInvite(e));let t={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.getOffer(t).then(r=>(this.outgoingRequestMessage.body={body:r.content,contentType:r.contentType},this.stateTransition(m.Establishing),this.sendInvite(e))).catch(r=>{throw this.logger.log(r.message),this.state!==m.Terminated&&this.stateTransition(m.Terminated),r})}sendInvite(e={}){return this.outgoingInviteRequest=this.userAgent.userAgentCore.invite(this.outgoingRequestMessage,{onAccept:t=>{if(this.dialog){this.logger.log("Additional confirmed dialog, sending ACK and BYE"),this.ackAndBye(t);return}if(this.isCanceled){this.logger.log("Canceled session accepted, sending ACK and BYE"),this.ackAndBye(t),this.stateTransition(m.Terminated);return}this.notifyReferer(t),this.onAccept(t).then(()=>{this.disposeEarlyMedia();}).catch(()=>{this.disposeEarlyMedia();}).then(()=>{e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(t);});},onProgress:t=>{this.isCanceled||(this.notifyReferer(t),this.onProgress(t).catch(()=>{this.disposeEarlyMedia();}).then(()=>{e.requestDelegate&&e.requestDelegate.onProgress&&e.requestDelegate.onProgress(t);}));},onRedirect:t=>{this.notifyReferer(t),this.onRedirect(t),e.requestDelegate&&e.requestDelegate.onRedirect&&e.requestDelegate.onRedirect(t);},onReject:t=>{this.notifyReferer(t),this.onReject(t),e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(t);},onTrying:t=>{this.notifyReferer(t),this.onTrying(t),e.requestDelegate&&e.requestDelegate.onTrying&&e.requestDelegate.onTrying(t);}}),this.outgoingInviteRequest}disposeEarlyMedia(){this.earlyMediaSessionDescriptionHandlers.forEac
11012h(e=>{e.close();}),this.earlyMediaSessionDescriptionHandlers.clear();}notifyReferer(e){if(!this._referred)return;if(!(this._referred instanceof ue))throw new Error("Referred session not instance of session");if(!this._referred.dialog)return;if(!e.message.statusCode)throw new Error("Status code undefined.");if(!e.message.reasonPhrase)throw new Error("Reason phrase undefined.");let t=e.message.statusCode,r=e.message.reasonPhrase,s=`SIP/2.0 ${t} ${r}`.trim(),i=this._referred.dialog.notify(void 0,{extraHeaders:["Event: refer","Subscription-State: terminated"],body:{contentDisposition:"render",contentType:"message/sipfrag",content:s}});i.delegate={onReject:()=>{this._referred=void 0;}};}onAccept(e){if(this.logger.log("Inviter.onAccept"),this.state!==m.Establishing)return this.logger.error(`Accept received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));let t=e.message,r=e.session;switch(t.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=A.nameAddrHeaderParse(t.getHeader("P-Asserted-Identity"))),r.delegate={onAck:s=>this.onAckRequest(s),onBye:s=>this.onByeRequest(s),onInfo:s=>this.onInfoRequest(s),onInvite:s=>this.onInviteRequest(s),onMessage:s=>this.onMessageRequest(s),onNotify:s=>this.onNotifyRequest(s),onPrack:s=>this.onPrackRequest(s),onRefer:s=>this.onReferRequest(s)},this._dialog=r,r.signalingState){case x.Initial:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(m.Terminated),Promise.reject(new Error("Bad Media Description"));case x.HaveLocalOffer:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(m.Terminated),Promise.reject(new Error("Bad Media Description"));case x.HaveRemoteOffer:{if(!this._dialog.offer)throw new Error(`Session offer undefined in signaling state ${this._dialog.signalingState}.`);let s={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setOfferAndGetAnswer(this._dialog.offer,s).then(i=>{e.ack({body:i}),this.stateTransition(m.Established);}).catch(i=>{throw this.ackAndBye(e,488,"Invalid session description"),this.stateTransition(m.Terminated),i})}case x.Stable:{if(this.earlyMediaSessionDescriptionHandlers.size>0){let n=this.earlyMediaSessionDescriptionHandlers.get(r.id);if(!n)throw new Error("Session description handler undefined.");return this.setSessionDescriptionHandler(n),this.earlyMediaSessionDescriptionHandlers.delete(r.id),e.ack(),this.stateTransition(m.Established),Promise.resolve()}if(this.earlyMediaDialog){if(this.earlyMediaDialog!==r){this.earlyMedia&&this.logger.error("You have set the 'earlyMedia' option to 'true' which requires that your INVITE requests do not fork and yet this INVITE request did in fact fork. Consequentially and not surprisingly the end point which accepted the INVITE (confirmed dialog) does not match the end point with which early media has been setup (early dialog) and thus this session is unable to proceed. In accordance with the SIP specifications, the SIP servers your end point is connected to determine if an INVITE forks and the forking behavior of those servers cannot be controlled by this library. If you wish to use early media with this library you must configure those servers accordingly. Alternatively you may set the 'earlyMedia' to 'false' which will allow this library to function with any INVITE requests which do fork.");let n=new Error("Early media dialog does not equal confirmed dialog, terminating session");return this.logger.error(n.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(m.Terminated),Promise.reject(n)}return e.ack(),this.stateTransition(m.Established),Promise.resolve()}let s=r.answer;if(!s)throw new Error("Answer is undefined.");let i={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(s,i).then(()=>{let n;this._renderbody&&this._rendertype&&(n={body:{contentDisposition:"render",contentType:this._rendertype,content:this._renderbody}}),e.ack(n),this.stateTransition(m.Established);}).catch(n=>{throw this.logger.error(n.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(m.Terminated),n})}case x.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onProgress(e){var t;if(this.logger.log("Inviter.onProgress"),this.state!==m.Establishing)return this.logger.error(`Progress received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));if(!this.outgoingInviteRequest)throw new Error("Outgoing INVITE request undefined.");let r=e.message,s=e.session;r.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=A.nameAddrHeaderParse(r.getHeader("P-Asserted-Identity")));let i=r.getHeader("require"),n=r.getHeader("rseq"),d=!!(i&&i.includes("100rel")&&n?Number(n):void 0),u=[];switch(d&&u.push("RAck: "+r.getHeader("rseq")+" "+r.getHeader("cseq")),s.signalingState){case x.Initial:return d&&(this.logger.warn("First reliable provisional response received MUST contain an offer when INVITE does not contain an offer."),e.prack({extraHeaders:u})),Promise.resolve();case x.HaveLocalOffer:return d&&e.prack({extraHeaders:u}),Promise.resolve();case x.HaveRemoteOffer:if(!d)return this.logger.warn("Non-reliable provisional response MUST NOT contain an initial offer, discarding response."),Promise.resolve();{let h=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions||{});return !((t=this.delegate)===null||t===void 0)&&t.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(h,true),this.earlyMediaSessionDescriptionHandlers.set(s.id,h),h.setDescription(r.body,this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers).then(()=>h.getDescription(this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers)).then(v=>{let E={contentDisposition:"session",contentType:v.contentType,content:v.body};e.prack({extraHeaders:u,body:E});}).catch(v=>{throw this.stateTransition(m.Terminated),v})}case x.Stable:if(d&&e.prack({extraHeaders:u}),this.earlyMedia&&!this.earlyMediaDialog){this.earlyMediaDialog=s;let h=s.answer;if(!h)throw new Error("Answer is undefined.");let v={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(h,v).catch(E=>{throw this.stateTransition(m.Terminated),E})}return Promise.resolve();case x.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onRedirect(e){if(this.logger.log("Inviter.onRedirect"),this.state!==m.Establishing&&this.state!==m.Terminating){this.logger.error(`Redirect received while in state ${this.state}, dropping response`);return}this.stateTransition(m.Terminated);}onReject(e){if(this.logger.log("Inviter.onReject"),this.state!==m.Establishing&&this.state!==m.Terminating){this.logger.error(`Reject received while in state ${this.state}, dropping response`);return}this.stateTransition(m.Terminated);}onTrying(e){if(this.logger.log("Inviter.onTrying"),this.state!==m.Establishing){this.logger.error(`Trying received while in state ${this.state}, dropping response`);return}}};var st=class{constructor(e,t,r,s="text/plain",i={}){this.logger=e.getLogger("sip.Messager"),i.params=i.params||{};let n=e.userAgentCore.configuration.aor;if(i.params.fromUri&&(n=typeof i.params.fromUri=="string"?A.URIParse(i.params.fromUri):i.params.fromUri),!n)throw new TypeError("Invalid from URI: "+i.params.fromUri);let a=t;if(i.params.toUri&&(a=typeof i.params.toUri=="string"?A.URIParse(i.params.toUri):i.params.toUri),!a)throw new TypeError("Invalid to URI: "+i.params.toUri);let d=i.params?Object.assign({},i.params):{},u=(i.extraHeaders||[]).slice(),v={contentDisposition:"render",contentType:s,content:r};this.request=e.userAgentCore.makeOutgoingRequestMessage(T.MESSAGE,t,n,a,d,u,v),this.userAgent=e;}message(e={}){return this.userAgent.userAgentCore.request(this.request,e.requestDelegate),Promise.resolve()}};var R;(function(o){o.Initial="Initial",o.Registered="Registered",o.Unregistered="Unregistered",o.Terminated="Terminated";})(R=R||(R={}));var tr=(()=>{class o{constructor(t,r={}){this.disposed=false,this._contacts=[],this._retryAfter=void 0,this._state=R.Initial,this._waiting=false,this._stateEventEmitter=new ne,this._waitingEventEmitter=new ne,this.userAgent=t;let s=t.configuration.uri.clone();if(s.user=void 0,this.options=Object.assign(Object.assign(Object.assign({},o.defaultOptions()),{registrar:s}),o.stripUndefinedProperties(r)),this.options.extraContactHeaderParams=(this.options.extraContactHeaderParams||[]).slice(),this.options.extraHeaders=(this.options.extraHeaders||[]).slice(),!this.options.registrar)throw new Error("Registrar undefined.");if(this.options.registrar=this.options.registrar.clone(),this.options.regId&&!this.options.instanceId?this.options.instanceId=this.userAgent.instanceId:!this.options.regId&&this.options.instanceId&&(this.options.regId=1),this.options.instanceId&&A.parse(this.options.instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");if(this.options.regId&&this.options.regId<0)throw new Error("Invalid regId.");let i=this.options.registrar,n=this.options.params&&this.options.params.fromUri||t.userAgentCore.configuration.aor,a=this.options.params&&this.options.params.toUri||t.configuration.uri,d=this.options.params||{},u=(r.extraHeaders||[]).slice();if(this.request=t.userAgentCore.makeOutgoingRequestMessage(T.REGISTER,i,n,a,d,u,void 0),this.expires=this.options.expires||o.defaultExpires,this.expires<0)throw new Error("Invalid expires.");if(this.refreshFrequency=this.options.refreshFrequency||o.defaultRefreshFrequency,this.refreshFrequency<50||this.refreshFrequency>99)throw new Error("Invalid refresh frequency. The value represents a percentage of the expiration time and should be between 50 and 99.");this.logger=t.getLogger("sip.Registerer"),this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEac
11012h(h=>{let v=this.options[h];h==="registrar"?this.logger.log("\xB7 "+h+": "+v):this.logger.log("\xB7 "+h+": "+JSON.stringify(v));})),this.id=this.request.callId+this.request.from.parameters.tag,this.userAgent._registerers[this.id]=this;}static defaultOptions(){return {expires:o.defaultExpires,extraContactHeaderParams:[],extraHeaders:[],logConfiguration:true,instanceId:"",params:{},regId:0,registrar:new G$1("sip","anonymous","anonymous.invalid"),refreshFrequency:o.defaultRefreshFrequency}}static stripUndefinedProperties(t){return Object.keys(t).reduce((r,s)=>(t[s]!==void 0&&(r[s]=t[s]),r),{})}get contacts(){return this._contacts.slice()}get retryAfter(){return this._retryAfter}get state(){return this._state}get stateChange(){return this._stateEventEmitter}dispose(){return this.disposed?Promise.resolve():(this.disposed=true,this.logger.log(`Registerer ${this.id} in state ${this.state} is being disposed`),delete this.userAgent._registerers[this.id],new Promise(t=>{let r=()=>{if(!this.waiting&&this._state===R.Registered){this.stateChange.addListener(()=>{this.terminated(),t();},{once:true}),this.unregister();return}this.terminated(),t();};this.waiting?this.waitingChange.addListener(()=>{r();},{once:true}):r();}))}register(t={}){if(this.state===R.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();let i=new de("REGISTER request already in progress, waiting for final response");return Promise.reject(i)}t.requestOptions&&(this.options=Object.assign(Object.assign({},this.options),t.requestOptions));let r=(this.options.extraHeaders||[]).slice();r.push("Contact: "+this.generateContactHeader(this.expires)),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.request.extraHeaders=r,this.waitingToggle(true);let s=this.userAgent.userAgentCore.register(this.request,{onAccept:i=>{let n;i.message.hasHeader("expires")&&(n=Number(i.message.getHeader("expires"))),this._contacts=i.message.getHeaders("contact");let a=this._contacts.length;if(!a){this.logger.error("No Contact header in response to REGISTER, dropping response."),this.unregistered();return}let d;for(;a--;){if(d=i.message.parseHeader("contact",a),!d)throw new Error("Contact undefined");if(this.userAgent.contact.pubGruu&&At(d.uri,this.userAgent.contact.pubGruu)){n=Number(d.getParam("expires"));break}if(this.userAgent.configuration.contactName===""){if(d.uri.user===this.userAgent.contact.uri.user){n=Number(d.getParam("expires"));break}}else if(At(d.uri,this.userAgent.contact.uri)){n=Number(d.getParam("expires"));break}d=void 0;}if(d===void 0){this.logger.error("No Contact header pointing to us, dropping response"),this.unregistered(),this.waitingToggle(false);return}if(n===void 0){this.logger.error("Contact pointing to us is missing expires parameter, dropping response"),this.unregistered(),this.waitingToggle(false);return}if(d.hasParam("temp-gruu")){let u=d.getParam("temp-gruu");u&&(this.userAgent.contact.tempGruu=A.URIParse(u.replace(/"/g,"")));}if(d.hasParam("pub-gruu")){let u=d.getParam("pub-gruu");u&&(this.userAgent.contact.pubGruu=A.URIParse(u.replace(/"/g,"")));}this.registered(n),t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(i),this.waitingToggle(false);},onProgress:i=>{t.requestDelegate&&t.requestDelegate.onProgress&&t.requestDelegate.onProgress(i);},onRedirect:i=>{this.logger.error("Redirect received. Not supported."),this.unregistered(),t.requestDelegate&&t.requestDelegate.onRedirect&&t.requestDelegate.onRedirect(i),this.waitingToggle(false);},onReject:i=>{if(i.message.statusCode===423){if(!i.message.hasHeader("min-expires")){this.logger.error("423 response received for REGISTER without Min-Expires, dropping response"),this.unregistered(),this.waitingToggle(false);return}this.expires=Number(i.message.getHeader("min-expires")),this.waitingToggle(false),this.register();return}this.logger.warn(`Failed to register, status code ${i.message.statusCode}`);let n=NaN;if(i.message.statusCode===500||i.message.statusCode===503){let a=i.message.getHeader("retry-after");a&&(n=Number.parseInt(a,void 0));}this._retryAfter=isNaN(n)?void 0:n,this.unregistered(),t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(i),this._retryAfter=void 0,this.waitingToggle(false);},onTrying:i=>{t.requestDelegate&&t.requestDelegate.onTrying&&t.requestDelegate.onTrying(i);}});return Promise.resolve(s)}unregister(t={}){if(this.state===R.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed&&this.state!==R.Registered)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();let i=new de("REGISTER request already in progress, waiting for final response");return Promise.reject(i)}this._state!==R.Registered&&!t.all&&this.logger.warn("Not currently registered, but sending an unregister anyway.");let r=(t.requestOptions&&t.requestOptions.extraHeaders||[]).slice();this.request.extraHeaders=r,t.all?(r.push("Contact: *"),r.push("Expires: 0")):r.push("Contact: "+this.generateContactHeader(0)),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.waitingToggle(true);let s=this.userAgent.userAgentCore.register(this.request,{onAccept:i=>{this._contacts=i.message.getHeaders("contact"),this.unregistered(),t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(i),this.waitingToggle(false);},onProgress:i=>{t.requestDelegate&&t.requestDelegate.onProgress&&t.requestDelegate.onProgress(i);},onRedirect:i=>{this.logger.error("Unregister redirected. Not currently supported."),this.unregistered(),t.requestDelegate&&t.requestDelegate.onRedirect&&t.requestDelegate.onRedirect(i),this.waitingToggle(false);},onReject:i=>{this.logger.error(`Unregister rejected with status code ${i.message.statusCode}`),this.unregistered(),t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(i),this.waitingToggle(false);},onTrying:i=>{t.requestDelegate&&t.requestDelegate.onTrying&&t.requestDelegate.onTrying(i);}});return Promise.resolve(s)}clearTimers(){this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.registrationExpiredTimer!==void 0&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0);}generateContactHeader(t){let r=this.userAgent.contact.toString({register:true});return this.options.regId&&this.options.instanceId&&(r+=";reg-id="+this.options.regId,r+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEac
11012h(s=>{r+=";"+s;}),r+=";expires="+t,r}registered(t){this.clearTimers(),this.registrationTimer=setTimeout(()=>{this.registrationTimer=void 0,this.register();},this.refreshFrequency/100*t*1e3),this.registrationExpiredTimer=setTimeout(()=>{this.logger.warn("Registration expired"),this.unregistered();},t*1e3),this._state!==R.Registered&&this.stateTransition(R.Registered);}unregistered(){this.clearTimers(),this._state!==R.Unregistered&&this.stateTransition(R.Unregistered);}terminated(){this.clearTimers(),this._state!==R.Terminated&&this.stateTransition(R.Terminated);}stateTransition(t){let r=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case R.Initial:t!==R.Registered&&t!==R.Unregistered&&t!==R.Terminated&&r();break;case R.Registered:t!==R.Unregistered&&t!==R.Terminated&&r();break;case R.Unregistered:t!==R.Registered&&t!==R.Terminated&&r();break;case R.Terminated:r();break;default:throw new Error("Unrecognized state.")}this._state=t,this.logger.log(`Registration transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),t===R.Terminated&&this.dispose();}get waiting(){return this._waiting}get waitingChange(){return this._waitingEventEmitter}waitingToggle(t){if(this._waiting===t)throw new Error(`Invalid waiting transition from ${this._waiting} to ${t}`);this._waiting=t,this.logger.log(`Waiting toggled to ${this._waiting}`),this._waitingEventEmitter.emit(this._waiting);}waitingWarning(){let t="An attempt was made to send a REGISTER request while a prior one was still in progress.";t+=" RFC 3261 requires UAs MUST NOT send a new registration until they have received a final response",t+=" from the registrar for the previous one or the previous REGISTER request has timed out.",t+=" Note that if the transport disconnects, you still must wait for the prior request to time out before",t+=" sending a new REGISTER request or alternatively dispose of the current Registerer and create a new Registerer.",this.logger.warn(t);}stateError(){let r=`An attempt was made to send a REGISTER request when the Registerer ${this.state===R.Terminated?"is in 'Terminated' state":"has been disposed"}.`;r+=" The Registerer transitions to 'Terminated' when Registerer.dispose() is called.",r+=" Perhaps you called UserAgent.stop() which dipsoses of all Registerers?",this.logger.error(r);}}return o.defaultExpires=600,o.defaultRefreshFrequency=99,o})();var y;(function(o){o.Initial="Initial",o.NotifyWait="NotifyWait",o.Pending="Pending",o.Active="Active",o.Terminated="Terminated";})(y=y||(y={}));var b;(function(o){o.Connecting="Connecting",o.Connected="Connected",o.Disconnecting="Disconnecting",o.Disconnected="Disconnected";})(b=b||(b={}));var q;(function(o){o.Started="Started",o.Stopped="Stopped";})(q=q||(q={}));var oe=class o{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start();}static hashStr(e,t=false){return this.onePassHasher.start().appendStr(e).end(t)}static hashAsciiStr(e,t=false){return this.onePassHasher.start().appendAsciiStr(e).end(t)}static _hex(e){let t=o.hexChars,r=o.hexOut,s,i,n,a;for(a=0;a<4;a+=1)for(i=a*8,s=e[a],n=0;n<8;n+=2)r[i+1+n]=t.charAt(s&15),s>>>=4,r[i+0+n]=t.charAt(s&15),s>>>=4;return r.join("")}static _md5cycle(e,t){let r=e[0],s=e[1],i=e[2],n=e[3];r+=(s&i|~s&n)+t[0]-680876936|0,r=(r<<7|r>>>25)+s|0,n+=(r&s|~r&i)+t[1]-389564586|0,n=(n<<12|n>>>20)+r|0,i+=(n&r|~n&s)+t[2]+606105819|0,i=(i<<17|i>>>15)+n|0,s+=(i&n|~i&r)+t[3]-1044525330|0,s=(s<<22|s>>>10)+i|0,r+=(s&i|~s&n)+t[4]-176418897|0,r=(r<<7|r>>>25)+s|0,n+=(r&s|~r&i)+t[5]+1200080426|0,n=(n<<12|n>>>20)+r|0,i+=(n&r|~n&s)+t[6]-1473231341|0,i=(i<<17|i>>>15)+n|0,s+=(i&n|~i&r)+t[7]-45705983|0,s=(s<<22|s>>>10)+i|0,r+=(s&i|~s&n)+t[8]+1770035416|0,r=(r<<7|r>>>25)+s|0,n+=(r&s|~r&i)+t[9]-1958414417|0,n=(n<<12|n>>>20)+r|0,i+=(n&r|~n&s)+t[10]-42063|0,i=(i<<17|i>>>15)+n|0,s+=(i&n|~i&r)+t[11]-1990404162|0,s=(s<<22|s>>>10)+i|0,r+=(s&i|~s&n)+t[12]+1804603682|0,r=(r<<7|r>>>25)+s|0,n+=(r&s|~r&i)+t[13]-40341101|0,n=(n<<12|n>>>20)+r|0,i+=(n&r|~n&s)+t[14]-1502002290|0,i=(i<<17|i>>>15)+n|0,s+=(i&n|~i&r)+t[15]+1236535329|0,s=(s<<22|s>>>10)+i|0,r+=(s&n|i&~n)+t[1]-165796510|0,r=(r<<5|r>>>27)+s|0,n+=(r&i|s&~i)+t[6]-1069501632|0,n=(n<<9|n>>>23)+r|0,i+=(n&s|r&~s)+t[11]+643717713|0,i=(i<<14|i>>>18)+n|0,s+=(i&r|n&~r)+t[0]-373897302|0,s=(s<<20|s>>>12)+i|0,r+=(s&n|i&~n)+t[5]-701558691|0,r=(r<<5|r>>>
1101227)+s|0,n+=(r&i|s&~i)+t[10]+38016083|0,n=(n<<9|n>>>23)+r|0,i+=(n&s|r&~s)+t[15]-660478335|0,i=(i<<14|i>>>18)+n|0,s+=(i&r|n&~r)+t[4]-405537848|0,s=(s<<20|s>>>12)+i|0,r+=(s&n|i&~n)+t[9]+568446438|0,r=(r<<5|r>>>27)+s|0,n+=(r&i|s&~i)+t[14]-1019803690|0,n=(n<<9|n>>>23)+r|0,i+=(n&s|r&~s)+t[3]-187363961|0,i=(i<<14|i>>>18)+n|0,s+=(i&r|n&~r)+t[8]+1163531501|0,s=(s<<20|s>>>12)+i|0,r+=(s&n|i&~n)+t[13]-1444681467|0,r=(r<<5|r>>>27)+s|0,n+=(r&i|s&~i)+t[2]-51403784|0,n=(n<<9|n>>>23)+r|0,i+=(n&s|r&~s)+t[7]+1735328473|0,i=(i<<14|i>>>18)+n|0,s+=(i&r|n&~r)+t[12]-1926607734|0,s=(s<<20|s>>>12)+i|0,r+=(s^i^n)+t[5]-378558|0,r=(r<<4|r>>>28)+s|0,n+=(r^s^i)+t[8]-2022574463|0,n=(n<<11|n>>>21)+r|0,i+=(n^r^s)+t[11]+1839030562|0,i=(i<<16|i>>>16)+n|0,s+=(i^n^r)+t[14]-35309556|0,s=(s<<23|s>>>9)+i|0,r+=(s^i^n)+t[1]-1530992060|0,r=(r<<4|r>>>28)+s|0,n+=(r^s^i)+t[4]+1272893353|0,n=(n<<11|n>>>21)+r|0,i+=(n^r^s)+t[7]-155497632|0,i=(i<<16|i>>>16)+n|0,s+=(i^n^r)+t[10]-1094730640|0,s=(s<<23|s>>>9)+i|0,r+=(s^i^n)+t[13]+681279174|0,r=(r<<4|r>>>28)+s|0,n+=(r^s^i)+t[0]-358537222|0,n=(n<<11|n>>>21)+r|0,i+=(n^r^s)+t[3]-722521979|0,i=(i<<16|i>>>16)+n|0,s+=(i^n^r)+t[6]+76029189|0,s=(s<<23|s>>>9)+i|0,r+=(s^i^n)+t[9]-640364487|0,r=(r<<4|r>>>28)+s|0,n+=(r^s^i)+t[12]-421815835|0,n=(n<<11|n>>>21)+r|0,i+=(n^r^s)+t[15]+530742520|0,i=(i<<16|i>>>16)+n|0,s+=(i^n^r)+t[2]-995338651|0,s=(s<<23|s>>>9)+i|0,r+=(i^(s|~n))+t[0]-198630844|0,r=(r<<6|r>>>26)+s|0,n+=(s^(r|~i))+t[7]+1126891415|0,n=(n<<10|n>>>22)+r|0,i+=(r^(n|~s))+t[14]-1416354905|0,i=(i<<15|i>>>17)+n|0,s+=(n^(i|~r))+t[5]-57434055|0,s=(s<<21|s>>>11)+i|0,r+=(i^(s|~n))+t[12]+1700485571|0,r=(r<<6|r>>>26)+s|0,n+=(s^(r|~i))+t[3]-1894986606|0,n=(n<<10|n>>>22)+r|0,i+=(r^(n|~s))+t[10]-1051523|0,i=(i<<15|i>>>17)+n|0,s+=(n^(i|~r))+t[1]-2054922799|0,s=(s<<21|s>>>11)+i|0,r+=(i^(s|~n))+t[8]+1873313359|0,r=(r<<6|r>>>26)+s|0,n+=(s^(r|~i))+t[15]-30611744|0,n=(n<<10|n>>>22)+r|0,i+=(r^(n|~s))+t[6]-1560198380|0,i=(i<<15|i>>>17)+n|0,s+=(n^(i|~r))+t[13]+1309151649|0,s=(s<<21|s>>>11)+i|0,r+=(i^(s|~n))+t[4]-145523070|0,r=(r<<6|r>>>26)+s|0,n+=(s^(r|~i))+t[11]-1120210379|0,n=(n<<10|n>>>22)+r|0,i+=(r^(n|~s))+t[2]+718787259|0,i=(i<<15|i>>>17)+n|0,s+=(n^(i|~r))+t[9]-343485551|0,s=(s<<21|s>>>11)+i|0,e[0]=r+e[0]|0,e[1]=s+e[1]|0,e[2]=i+e[2]|0,e[3]=n+e[3]|0;}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(o.stateIdentity),this}appendStr(e){let t=this._buffer8,r=this._buffer32,s=this._bufferLength,i,n;for(n=0;n<e.length;n+=1){if(i=e.charCodeAt(n),i<128)t[s++]=i;else if(i<2048)t[s++]=(i>>>6)+192,t[s++]=i&63|128;else if(i<55296||i>56319)t[s++]=(i>>>12)+224,t[s++]=i>>>6&63|128,t[s++]=i&63|128;else {if(i=(i-55296)*1024+(e.charCodeAt(++n)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");t[s++]=(i>>>18)+240,t[s++]=i>>>12&63|128,t[s++]=i>>>6&63|128,t[s++]=i&63|128;}s>=64&&(this._dataLength+=64,o._md5cycle(this._state,r),s-=64,r[0]=r[16]);}return this._bufferLength=s,this}appendAsciiStr(e){let t=this._buffer8,r=this._buffer32,s=this._bufferLength,i,n=0;for(;;){for(i=Math.min(e.length-n,64-s);i--;)t[s++]=e.charCodeAt(n++);if(s<64)break;this._dataLength+=64,o._md5cycle(this._state,r),s=0;}return this._bufferLength=s,this}appendByteArray(e){let t=this._buffer8,r=this._buffer32,s=this._bufferLength,i,n=0;for(;;){for(i=Math.min(e.length-n,64-s);i--;)t[s++]=e[n++];if(s<64)break;this._dataLength+=64,o._md5cycle(this._state,r),s=0;}return this._bufferLength=s,this}getState(){let e=this,t=e._state;return {buffer:String.fromCharCode.apply(null,e._buffer8),buflen:e._bufferLength,length:e._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(e){let t=e.buffer,r=e.state,s=this._state,i;for(this._dataLength=e.length,this._bufferLength=e.buflen,s[0]=r[0],s[1]=r[1],s[2]=r[2],s[3]=r[3],i=0;i<t.length;i+=1)this._buffer8[i]=t.charCodeAt(i);}end(e=false){let t=this._bufferLength,r=this._buffer8,s=this._buffer32,i=(t>>2)+1,n;if(this._dataLength+=t,r[t]=128,r[t+1]=r[t+2]=r[t+3]=0,s.set(o.buffer32Identity.subarray(i),i),t>55&&(o._md5cycle(this._state,s),s.set(o.buffer32Identity)),n=this._dataLength*8,n<=4294967295)s[14]=n;else {let a=n.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;let d=parseInt(a[2],16),u=parseInt(a[1],16)||0;s[14]=d,s[15]=u;}return o._md5cycle(this._state,s),e?this._state:o._hex(this._state)}};oe.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]);oe.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);oe.hexChars="0123456789abcdef";oe.hexOut=[];oe.onePassHasher=new oe;oe.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592"&&console.error("Md5 self test failed.");function be(o){return oe.hashStr(o)}var it=class{constructor(e,t,r,s){this.logger=e.getLogger("sipjs.digestauthentication"),this.username=r,this.password=s,this.ha1=t,this.nc=0,this.ncHex="00000000";}authenticate(e,t,r){if(this.algorithm=t.algorithm,this.realm=t.realm,this.nonce=t.nonce,this.opaque=t.opaque,this.stale=t.stale,this.algorithm){if(this.algorithm!=="MD5")return this.logger.warn("challenge with Digest algorithm different than 'MD5', authentication aborted"),false}else this.algorithm="MD5";if(!this.realm)return this.logger.warn("challenge without Digest realm, authentication aborted"),false;if(!this.nonce)return this.logger.warn("challenge without Digest nonce, authentication aborted"),false;if(t.qop)if(t.qop.indexOf("auth")>-1)this.qop="auth";else if(t.qop.indexOf("auth-int")>-1)this.qop="auth-int";else return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),false;else this.qop=void 0;return this.method=e.method,this.uri=e.ruri,this.cnonce=he(12),this.nc+=1,this.updateNcHex(),this.nc===4294967296&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(r),true}toString(){let e=[];
11012if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return e.push("algorithm="+this.algorithm),e.push('username="'+this.username+'"'),e.push('realm="'+this.realm+'"'),e.push('nonce="'+this.nonce+'"'),e.push('uri="'+this.uri+'"'),e.push('response="'+this.response+'"'),this.opaque&&e.push('opaque="'+this.opaque+'"'),this.qop&&(e.push("qop="+this.qop),e.push('cnonce="'+this.cnonce+'"'),e.push("nc="+this.ncHex)),"Digest "+e.join(", ")}updateNcHex(){let e=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-e.length)+e;}calculateResponse(e){let t,r;t=this.ha1,(t===""||t===void 0)&&(t=be(this.username+":"+this.realm+":"+this.password)),this.qop==="auth"?(r=be(this.method+":"+this.uri),this.response=be(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+r)):this.qop==="auth-int"?(r=be(this.method+":"+this.uri+":"+be(e||"")),this.response=be(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+r)):this.qop===void 0&&(r=be(this.method+":"+this.uri),this.response=be(t+":"+this.nonce+":"+r));}};var O$1;(function(o){o[o.error=0]="error",o[o.warn=1]="warn",o[o.log=2]="log",o[o.debug=3]="debug";})(O$1=O$1||(O$1={}));var Ge$1=class Ge{constructor(e,t,r){this.logger=e,this.category=t,this.label=r;}error(e){this.genericLog(O$1.error,e);}warn(e){this.genericLog(O$1.warn,e);}log(e){this.genericLog(O$1.log,e);}debug(e){this.genericLog(O$1.debug,e);}genericLog(e,t){this.logger.genericLog(e,this.category,this.label,t);}get level(){return this.logger.level}set level(e){this.logger.level=e;}};var nt=class{constructor(){this.builtinEnabled=true,this._level=O$1.log,this.loggers={},this.logger=this.getLogger("sip:loggerfactory");}get level(){return this._level}set level(e){e>=0&&e<=3?this._level=e:e>3?this._level=3:O$1.hasOwnProperty(e)?this._level=e:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(e));}get connector(){return this._connector}set connector(e){e?typeof e=="function"?this._connector=e:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(e)):this._connector=void 0;}getLogger(e,t){if(t&&this.level===3)return new Ge$1(this,e,t);if(this.loggers[e])return this.loggers[e];{let r=new Ge$1(this,e);return this.loggers[e]=r,r}}genericLog(e,t,r,s){this.level>=e&&this.builtinEnabled&&this.print(e,t,r,s),this.connector&&this.connector(O$1[e],t,r,s);}print(e,t,r,s){if(typeof s=="string"){let i=[new Date,t];r&&i.push(r),s=i.concat(s).join(" | ");}switch(e){case O$1.error:console.error(s);break;case O$1.warn:console.warn(s);break;case O$1.log:console.log(s);break;case O$1.debug:console.debug(s);break;}}};var We;(function(o){function e(s,i){let n=i,a=0,d=0;if(s.substring(n,n+2).match(/(^\r\n)/))return -2;for(;a===0;){if(d=s.indexOf(`\r 11013`,n),d===-1)return d;!s.substring(d+2,d+4).match(/(^\r\n)/)&&s.charAt(d+2).match(/(^\s+)/)?n=d+2:a=d;}return a}o.getHeader=e;function t(s,i,n,a){let d=i.indexOf(":",n),u=i.substring(n,d).trim(),h=i.substring(d+1,a).trim(),v;switch(u.toLowerCase()){case "via":case "v":s.addHeader("via",h),s.getHeaders("via").length===1?(v=s.parseHeader("Via"),v&&(s.via=v,s.viaBranch=v.branch)):v=0;break;case "from":case "f":s.setHeader("from",h),v=s.parseHeader("from"),v&&(s.from=v,s.fromTag=v.getParam("tag"));break;case "to":case "t":s.setHeader("to",h),v=s.parseHeader("to"),v&&(s.to=v,s.toTag=v.getParam("tag"));break;case "record-route":if(v=A.parse(h,"Record_Route"),v===-1){v=void 0;break}if(!(v instanceof Array)){v=void 0;break}v.forEach(E=>{s.addHeader("record-route",h.substring(E.position,E.offset)),s.headers["Record-Route"][s.getHeaders("record-route").length-1].parsed=E.parsed;});break;case "call-id":case "i":s.setHeader("call-id",h),v=s.parseHeader("call-id"),v&&(s.callId=h);break;case "contact":case "m":if(v=A.parse(h,"Contact"),v===-1){v=void 0;break}if(!(v instanceof Array)){v=void 0;break}v.forEach(E=>{s.addHeader("contact",h.substring(E.position,E.offset)),s.headers.Contact[s.getHeaders("contact").length-1].parsed=E.parsed;});break;case "content-length":case "l":s.setHeader("content-length",h),v=s.parseHeader("content-length");break;case "content-type":case "c":s.setHeader("content-type",h),v=s.parseHeader("content-type");break;case "cseq":s.setHeader("cseq",h),v=s.parseHeader("cseq"),v&&(s.cseq=v.value),s instanceof V&&(s.method=v.method);break;case "max-forwards":s.setHeader("max-forwards",h),v=s.parseHeader("max-forwards");break;case "www-authenticate":s.setHeader("www-authenticate",h),v=s.parseHeader("www-authenticate");break;case "proxy-authenticate":s.setHeader("proxy-authenticate",h),v=s.parseHeader("proxy-authenticate");break;case "refer-to":case "r":s.setHeader("refer-to",h),v=s.parseHeader("refer-to"),v&&(s.referTo=v);break;default:s.addHeader(u.toLowerCase(),h),v=0;}return v===void 0?{error:"error parsing header '"+u+"'"}:true}o.parseHeader=t;function r(s,i){let n=0,a=s.indexOf(`\r 11014`);if(a===-1){i.warn("no CRLF found, not a SIP message, discarded");return}let d=s.substring(0,a),u=A.parse(d,"Request_Response"),h;if(u===-1){i.warn('error parsing first line of SIP message: "'+d+'"');return}else u.status_code?(h=new V,h.statusCode=u.status_code,h.reasonPhrase=u.reason_phrase):(h=new re,h.method=u.method,h.ruri=u.uri);h.data=s,n=a+2;let v;for(;;){if(a=e(s,n),a===-2){v=n+2;break}else if(a===-1){i.error("malformed message");return}let E=t(h,s,n,a);if(E&&E!==true){i.error(E.error);return}n=a+2;}
11014return h.hasHeader("content-length")?h.body=s.substr(v,Number(h.getHeader("content-length"))):h.body=s.substring(v),h}o.parseMessage=r;})(We=We||(We={}));function ot(o,e){if(e.statusCode<100||e.statusCode>699)throw new TypeError("Invalid statusCode: "+e.statusCode);let r=e.reasonPhrase?e.reasonPhrase:me(e.statusCode),s="SIP/2.0 "+e.statusCode+" "+r+`\r 11015`;e.statusCode>=100&&e.statusCode<200,e.statusCode;let i="From: "+o.getHeader("From")+`\r 11016`,n="Call-ID: "+o.callId+`\r 11017`,a="CSeq: "+o.cseq+" "+o.method+`\r 11018`,d=o.getHeaders("via").reduce(($,k)=>$+"Via: "+k+`\r 11019`,""),u="To: "+o.getHeader("to");if(e.statusCode>100&&!o.parseHeader("to").hasParam("tag")){let $=e.toTag;$||($=we$1()),u+=";tag="+$;}u+=`\r 11020`;let h="";e.supported&&(h="Supported: "+e.supported.join(", ")+`\r 11021`);let v="";e.userAgent&&(v="User-Agent: "+e.userAgent+`\r 11022`);let E="";return e.extraHeaders&&(E=e.extraHeaders.reduce(($,k)=>$+k.trim()+`\r 11023`,"")),s+=d,s+=i,s+=u,s+=a,s+=n,s+=h,s+=v,s+=E,e.body?(s+="Content-Type: "+e.body.contentType+`\r 11024`,s+="Content-Length: "+ve(e.body.content)+`\r 11025\r 11026`,s+=e.body.content):s+=`Content-Length: 0\r 11027\r 11028`,{message:s}}var _e=class extends B{constructor(e){super(e||"Unspecified transport error.");}};var Me=class{constructor(e,t,r,s,i){this._transport=e,this._user=t,this._id=r,this._state=s,this.listeners=new Array,this.logger=t.loggerFactory.getLogger(i,r),this.logger.debug(`Constructing ${this.typeToString()} with id ${this.id}.`);}dispose(){this.logger.debug(`Destroyed ${this.typeToString()} with id ${this.id}.`);}get id(){return this._id}get kind(){throw new Error("Invalid kind.")}get state(){return this._state}get transport(){return this._transport}addStateChangeListener(e,t){let r=()=>{this.removeStateChangeListener(r),e();};t?.once===true?this.listeners.push(r):this.listeners.push(e);}notifyStateChangeListeners(){this.listeners.slice().forEach(e=>e());}removeStateChangeListener(e){this.listeners=this.listeners.filter(t=>t!==e);}logTransportError(e,t){this.logger.error(e.message),this.logger.error(`Transport error occurred in ${this.typeToString()} with id ${this.id}.`),this.logger.error(t);}send(e){return this.transport.send(e).catch(t=>{if(t instanceof _e)throw this.onTransportError(t),t;let r;throw t&&typeof t.message=="string"?r=new _e(t.message):r=new _e,this.onTransportError(r),r})}setState(e){this.logger.debug(`State change to "${e}" on ${this.typeToString()} with id ${this.id}.`),this._state=e,this._user.onStateChange&&this._user.onStateChange(e),this.notifyStateChangeListeners();}typeToString(){return "UnknownType"}};var qe=class extends Me{constructor(e,t,r,s,i){super(t,r,e.viaBranch,s,i),this._request=e,this.user=r;}get request(){return this._request}};var g;(function(o){o.Accepted="Accepted",o.Calling="Calling",o.Completed="Completed",o.Confirmed="Confirmed",o.Proceeding="Proceeding",o.Terminated="Terminated",o.Trying="Trying";})(g=g||(g={}));var U=class extends qe{constructor(e,t,r){super(e,t,r,g.Proceeding,"sip.transaction.ist");}dispose(){this.stopProgressExtensionTimer(),this.H&&(clearTimeout(this.H),this.H=void 0),this.I&&(clearTimeout(this.I),this.I=void 0),this.L&&(clearTimeout(this.L),this.L=void 0),super.dispose();}get kind(){return "ist"}receiveRequest(e){switch(this.state){case g.Proceeding:if(e.method===T.INVITE){this.lastProvisionalResponse&&this.send(this.lastProvisionalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of provisional response.");});return}break;case g.Accepted:if(e.method===T.INVITE)return;break;case g.Completed:if(e.method===T.INVITE){if(!this.lastFinalResponse)throw new Error("Last final response undefined.");this.send(this.lastFinalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of final response.");});return}if(e.method===T.ACK){this.stateTransition(g.Confirmed);return}break;case g.Confirmed:if(e.method===T.INVITE||e.method===T.ACK)return;break;case g.Terminated:if(e.method===T.INVITE||e.method===T.ACK)return;break;default:throw new Error(`Invalid state ${this.state}`)}let t=`INVITE server transaction received unexpected ${e.method} request while in state ${this.state}.`;this.logger.warn(t);}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);switch(this.state){case g.Proceeding:if(e>=100&&e<=199){this.lastProvisionalResponse=t,e>
11028100&&this.startProgressExtensionTimer(),this.send(t).catch(s=>{this.logTransportError(s,"Failed to send 1xx response.");});return}if(e>=200&&e<=299){this.lastFinalResponse=t,this.stateTransition(g.Accepted),this.send(t).catch(s=>{this.logTransportError(s,"Failed to send 2xx response.");});return}if(e>=300&&e<=699){this.lastFinalResponse=t,this.stateTransition(g.Completed),this.send(t).catch(s=>{this.logTransportError(s,"Failed to send non-2xx final response.");});return}break;case g.Accepted:if(e>=200&&e<=299){this.send(t).catch(s=>{this.logTransportError(s,"Failed to send 2xx response.");});return}break;case g.Completed:break;case g.Confirmed:break;case g.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}let r=`INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(r),new Error(r)}retransmitAcceptedResponse(){this.state===g.Accepted&&this.lastFinalResponse&&this.send(this.lastFinalResponse).catch(e=>{this.logTransportError(e,"Failed to send 2xx response.");});}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e);}typeToString(){return "INVITE server transaction"}stateTransition(e){let t=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case g.Proceeding:t();break;case g.Accepted:case g.Completed:this.state!==g.Proceeding&&t();break;case g.Confirmed:this.state!==g.Completed&&t();break;case g.Terminated:this.state!==g.Accepted&&this.state!==g.Completed&&this.state!==g.Confirmed&&t();break;default:t();}this.stopProgressExtensionTimer(),e===g.Accepted&&(this.L=setTimeout(()=>this.timerL(),P.TIMER_L)),e===g.Completed&&(this.H=setTimeout(()=>this.timerH(),P.TIMER_H)),e===g.Confirmed&&(this.I=setTimeout(()=>this.timerI(),P.TIMER_I)),e===g.Terminated&&this.dispose(),this.setState(e);}startProgressExtensionTimer(){this.progressExtensionTimer===void 0&&(this.progressExtensionTimer=setInterval(()=>{if(this.logger.debug(`Progress extension timer expired for INVITE server transaction ${this.id}.`),!this.lastProvisionalResponse)throw new Error("Last provisional response undefined.");this.send(this.lastProvisionalResponse).catch(e=>{this.logTransportError(e,"Failed to send retransmission of provisional response.");});},P.PROVISIONAL_RESPONSE_INTERVAL));}stopProgressExtensionTimer(){this.progressExtensionTimer!==void 0&&(clearInterval(this.progressExtensionTimer),this.progressExtensionTimer=void 0);}timerG(){}timerH(){this.logger.debug(`Timer H expired for INVITE server transaction ${this.id}.`),this.state===g.Completed&&(this.logger.warn("ACK to negative final response was never received, terminating transaction."),this.stateTransition(g.Terminated));}timerI(){this.logger.debug(`Timer I expired for INVITE server transaction ${this.id}.`),this.stateTransition(g.Terminated);}timerL(){this.logger.debug(`Timer L expired for INVITE server transaction ${this.id}.`),this.state===g.Accepted&&this.stateTransition(g.Terminated);}};var Ne=class o extends Me{constructor(e,t,r,s,i){super(t,r,o.makeId(e),s,i),this._request=e,this.user=r,e.setViaHeader(this.id,t.protocol);}static makeId(e){if(e.method==="CANCEL"){if(!e.branch)throw new Error("Outgoing CANCEL request without a branch.");return e.branch}else return "z9hG4bK"+Math.floor(Math.random()*1e7)}get request(){return this._request}onRequestTimeout(){this.user.onRequestTimeout&&this.user.onRequestTimeout();}};var H=class extends Ne{constructor(e,t,r){super(e,t,r,g.Trying,"sip.transaction.nict"),this.F=setTimeout(()=>this.timerF(),P.TIMER_F),this.send(e.toString()).catch(s=>{this.logTransportError(s,"Failed to send initial outgoing request.");});}dispose(){this.F&&(clearTimeout(this.F),this.F=void 0),this.K&&(clearTimeout(this.K),this.K=void 0),super.dispose();}get kind(){return "nict"}receiveResponse(e){let t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case g.Trying:if(t>=100&&t<=199){this.stateTransition(g.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=699){if(this.stateTransition(g.Completed),t===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case g.Proceeding:if(t>=100&&t<=199&&this.user.receiveResponse)return this.user.receiveResponse(e);if(t>=200&&t<=699){if(this.stateTransition(g.Completed),t===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case g.Completed:return;case g.Terminated:return;default:throw new Error(`Invalid state ${this.state}`)}let r=`Non-INVITE client transaction received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(r);}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(g.Terminated,true);}typeToString(){return "non-INVITE client transaction"}stateTransition(e,t=false){let r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case g.Trying:r();break;case g.Proceeding:this.state!==g.Trying&&r();break;case g.Completed:this.state!==g.Trying&&this.state!==g.Proceeding&&r();break;case g.Terminated:this.state!==g.Trying&&this.state!==g.Proceeding&&this.state!==g.Completed&&(t||r());break;default:r();}e===g.Completed&&(this.F&&(clearTimeout(this.F),this.F=void 0),this.K=setTimeout(()=>this.timerK(),P.TIMER_K)),e===g.Terminated&&this.dispose(),this.setState(e);}timerF(){this.logger.debug(`Timer F expired for non-INVITE client transaction ${this.id}.`),(this.state===g.Trying||this.state===g.Proceeding)&&(this.onRequestTimeout(),this.stateTransition(g.Terminated));}timerK(){this.state===g.Completed&&this.stateTransition(g.Terminated);}};var ie=class{constructor(e,t){this.core=e,this.dialogState=t,this.core.dialogs.set(this.id,this);}static initialDialogStateForUserAgentClient(e,t){let s=t.getHeaders("record-route").reverse(),i=t.parseHeader("contact");if(!i)throw new Error("Contact undefined.");if(!(i instanceof L))throw new Error("Contact not instance of NameAddrHeader.");let n=i.uri,a=e.cseq,d=void 0,u=e.callId,h=e.fromTag,v=t.toTag;if(!u)throw new Error("Call id undefined.");if(!h)throw new Error("From tag undefined.");if(!v)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");
11028let E=e.from.uri,$=e.to.uri;if(!t.statusCode)throw new Error("Incoming response status code undefined.");let k=t.statusCode<200;return {id:u+h+v,early:k,callId:u,localTag:h,remoteTag:v,localSequenceNumber:a,remoteSequenceNumber:d,localURI:E,remoteURI:$,remoteTarget:n,routeSet:s,secure:false}}static initialDialogStateForUserAgentServer(e,t,r=false){let i=e.getHeaders("record-route"),n=e.parseHeader("contact");if(!n)throw new Error("Contact undefined.");if(!(n instanceof L))throw new Error("Contact not instance of NameAddrHeader.");let a=n.uri,d=e.cseq,u=void 0,h=e.callId,v=t,E=e.fromTag,$=e.from.uri,k=e.to.uri;return {id:h+v+E,early:r,callId:h,localTag:v,remoteTag:E,localSequenceNumber:u,remoteSequenceNumber:d,localURI:k,remoteURI:$,remoteTarget:a,routeSet:i,secure:false}}dispose(){this.core.dialogs.delete(this.id);}get id(){return this.dialogState.id}get early(){return this.dialogState.early}get callId(){return this.dialogState.callId}get localTag(){return this.dialogState.localTag}get remoteTag(){return this.dialogState.remoteTag}get localSequenceNumber(){return this.dialogState.localSequenceNumber}get remoteSequenceNumber(){return this.dialogState.remoteSequenceNumber}get localURI(){return this.dialogState.localURI}get remoteURI(){return this.dialogState.remoteURI}get remoteTarget(){return this.dialogState.remoteTarget}get routeSet(){return this.dialogState.routeSet}get secure(){return this.dialogState.secure}get userAgentCore(){return this.core}confirm(){this.dialogState.early=false;}receiveRequest(e){if(e.method!==T.ACK){if(this.remoteSequenceNumber){if(e.cseq<=this.remoteSequenceNumber)throw new Error("Out of sequence in dialog request. Did you forget to call sequenceGuard()?");this.dialogState.remoteSequenceNumber=e.cseq;}this.remoteSequenceNumber||(this.dialogState.remoteSequenceNumber=e.cseq);}}recomputeRouteSet(e){this.dialogState.routeSet=e.getHeaders("record-route").reverse();}createOutgoingRequestMessage(e,t){let r=this.remoteURI,s=this.remoteTag,i=this.localURI,n=this.localTag,a=this.callId,d;t&&t.cseq?d=t.cseq:this.dialogState.localSequenceNumber?d=this.dialogState.localSequenceNumber+=1:d=this.dialogState.localSequenceNumber=1;let u=this.remoteTarget,h=this.routeSet,v=t&&t.extraHeaders,E=t&&t.body;return this.userAgentCore.makeOutgoingRequestMessage(e,u,i,r,{callId:a,cseq:d,fromTag:n,toTag:s,routeSet:h},v,E)}incrementLocalSequenceNumber(){if(!this.dialogState.localSequenceNumber)throw new Error("Local sequence number undefined.");this.dialogState.localSequenceNumber+=1;}sequenceGuard(e){return e.method===T.ACK?true:this.remoteSequenceNumber&&e.cseq<=this.remoteSequenceNumber?(this.core.replyStateless(e,{statusCode:500}),false):true}};var Z=class extends Ne{constructor(e,t,r){super(e,t,r,g.Calling,"sip.transaction.ict"),this.ackRetransmissionCache=new Map,this.B=setTimeout(()=>this.timerB(),P.TIMER_B),this.send(e.toString()).catch(s=>{this.logTransportError(s,"Failed to send initial outgoing request.");});}dispose(){this.B&&(clearTimeout(this.B),this.B=void 0),this.D&&(clearTimeout(this.D),this.D=void 0),this.M&&(clearTimeout(this.M),this.M=void 0),super.dispose();}get kind(){return "ict"}ackResponse(e){let t=e.toTag;if(!t)throw new Error("To tag undefined.");let r="z9hG4bK"+Math.floor(Math.random()*1e7);e.setViaHeader(r,this.transport.protocol),this.ackRetransmissionCache.set(t,e),this.send(e.toString()).catch(s=>{this.logTransportError(s,"Failed to send ACK to 2xx response.");});}receiveResponse(e){let t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case g.Calling:if(t>=100&&t<=199){this.stateTransition(g.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=299){this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(g.Accepted),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=300&&t<=699){this.stateTransition(g.Completed),this.ack(e),this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case g.Proceeding:if(t>=100&&t<=199){this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=299){this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(g.Accepted),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=300&&t<=699){this.stateTransition(g.Completed),this.ack(e),this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case g.Accepted:if(t>=200&&t<=299){if(!this.ackRetransmissionCache.has(e.toTag)){this.ackRetransmissionCache.set(e.toTag,void 0),this.user.receiveResponse&&this.user.receiveResponse(e);return}let s=this.ackRetransmissionCache.get(e.toTag);if(s){this.send(s.toString()).catch(i=>{this.logTransportError(i,"Failed to send retransmission of ACK to 2xx response.");});return}return}break;case g.Completed:if(t>=300&&t<=699){this.ack(e);return}break;case g.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}let r=`Received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(r);}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(g.Terminated,true);}typeToString(){return "INVITE client transaction"}ack(e){let t=this.request.ruri,r=this.request.callId,s=this.request.cseq,i=this.request.getHeader("from"),n=e.getHeader("to"),a=this.request.getHeader("via"),d=this.request.getHeader("route");
11028if(!i)throw new Error("From undefined.");if(!n)throw new Error("To undefined.");if(!a)throw new Error("Via undefined.");let u=`ACK ${t} SIP/2.0\r 11029`;d&&(u+=`Route: ${d}\r 11030`),u+=`Via: ${a}\r 11031`,u+=`To: ${n}\r 11032`,u+=`From: ${i}\r 11033`,u+=`Call-ID: ${r}\r 11034`,u+=`CSeq: ${s} ACK\r 11035`,u+=`Max-Forwards: 70\r 11036`,u+=`Content-Length: 0\r 11037\r 11038`,this.send(u).catch(h=>{this.logTransportError(h,"Failed to send ACK to non-2xx response.");});}stateTransition(e,t=false){let r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case g.Calling:r();break;case g.Proceeding:this.state!==g.Calling&&r();break;case g.Accepted:case g.Completed:this.state!==g.Calling&&this.state!==g.Proceeding&&r();break;case g.Terminated:this.state!==g.Calling&&this.state!==g.Accepted&&this.state!==g.Completed&&(t||r());break;default:r();}this.B&&(clearTimeout(this.B),this.B=void 0),g.Proceeding,e===g.Completed&&(this.D=setTimeout(()=>this.timerD(),P.TIMER_D)),e===g.Accepted&&(this.M=setTimeout(()=>this.timerM(),P.TIMER_M)),e===g.Terminated&&this.dispose(),this.setState(e);}timerA(){}timerB(){this.logger.debug(`Timer B expired for INVITE client transaction ${this.id}.`),this.state===g.Calling&&(this.onRequestTimeout(),this.stateTransition(g.Terminated));}timerD(){this.logger.debug(`Timer D expired for INVITE client transaction ${this.id}.`),this.state===g.Completed&&this.stateTransition(g.Terminated);}timerM(){this.logger.debug(`Timer M expired for INVITE client transaction ${this.id}.`),this.state===g.Accepted&&this.stateTransition(g.Terminated);}};var D=class o{constructor(e,t,r,s){this.transactionConstructor=e,this.core=t,this.message=r,this.delegate=s,this.challenged=false,this.stale=false,this.logger=this.loggerFactory.getLogger("sip.user-agent-client"),this.init();}dispose(){this.transaction.dispose();}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}cancel(e,t={}){if(!this.transaction)throw new Error("Transaction undefined.");if(!this.message.to)throw new Error("To undefined.");if(!this.message.from)throw new Error("From undefined.");let r=this.core.makeOutgoingRequestMessage(T.CANCEL,this.message.ruri,this.message.from.uri,this.message.to.uri,{toTag:this.message.toTag,fromTag:this.message.fromTag,callId:this.message.callId,cseq:this.message.cseq},t.extraHeaders);return r.branch=this.message.branch,this.message.headers.Route&&(r.headers.Route=this.message.headers.Route),e&&r.setHeader("Reason",e),this.transaction.state===g.Proceeding?new o(H,this.core,r):this.transaction.addStateChangeListener(()=>{this.transaction&&this.transaction.state===g.Proceeding&&new o(H,this.core,r);},{once:true}),r}authenticationGuard(e,t){let r=e.statusCode;if(!r)throw new Error("Response status code undefined.");if(r!==401&&r!==407)return true;let s,i;if(r===401?(s=e.parseHeader("www-authenticate"),i="authorization"):(s=e.parseHeader("proxy-authenticate"),i="proxy-authorization"),!s)return this.logger.warn(r+" with wrong or missing challenge, cannot authenticate"),true;if(this.challenged&&(this.stale||s.stale!==true))return this.logger.warn(r+" apparently in authentication loop, cannot authenticate"),true;if(!this.credentials&&(this.credentials=this.core.configuration.authenticationFactory(),!this.credentials))return this.logger.warn("Unable to obtain credentials, cannot authenticate"),true;if(!this.credentials.authenticate(this.message,s))return true;this.challenged=true,s.stale&&(this.stale=true);let n=this.message.cseq+=1;return t&&t.localSequenceNumber&&(t.incrementLocalSequenceNumber(),n=this.message.cseq=t.localSequenceNumber),this.message.setHeader("cseq",n+" "+this.message.method),this.message.setHeader(i,this.credentials.toString()),this.init(),false}onRequestTimeout(){this.logger.warn("User agent client request timed out. Generating internal 408 Request Timeout.");let e=new V;e.statusCode=408,e.reasonPhrase="Request Timeout",this.receiveResponse(e);}onTransportError(e){this.logger.error(e.message),this.logger.error("User agent client request transport error. Generating internal 503 Service Unavailable.");let t=new V;t.statusCode=503,t.reasonPhrase="Service Unavailable",this.receiveResponse(t);}receiveResponse(e){if(!this.authenticationGuard(e))return;let t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(true){case /^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});break;case /^1[0-9]{2}$/.test(t):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e});break;case /^2[0-9]{2}$/.test(t):this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:e});break;case /^3[0-9]{2}$/.test(t):this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});break;case /^[4-6][0-9]{2}$/.test(t):this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});break;default:throw new Error(`Invalid status code ${t}`)}}init(){let e={loggerFactory:this.loggerFactory,onRequestTimeout:()=>this.onRequestTimeout(),onStateChange:s=>{s===g.Terminated&&(this.core.userAgentClients.delete(r),t===this._transaction&&this.dispose());},onTransportError:s=>this.onTransportError(s),receiveResponse:s=>this.receiveResponse(s)},t=new this.transactionConstructor(this.message,this.core.transport,e);this._transaction=t;let r=t.id+t.request.method;this.core.userAgentClients.set(r,this);}};var at=class extends D{constructor(e,t,r){let s=e.createOutgoingRequestMessage(T.BYE,r);super(H,e.userAgentCore,s,t),e.dispose();}};var M=class extends qe{constructor(e,t,r){super(e,t,r,g.Trying,"sip.transaction.nist");}dispose(){this.J&&(clearTimeout(this.J),this.J=void 0),super.dispose();}get kind(){return "nist"}receiveRequest(e){switch(this.state){case g.Trying:break;case g.Proceeding:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(t=>{this.logTransportError(t,"Failed to send retransmission of provisional response.");});break;case g.Completed:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(t=>{this.logTransportError(t,"Failed to send retransmission of final response.");});break;case g.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);if(e>100&&e<=199)throw new Error("Provisional response other than 100 not allowed.");switch(this.state){case g.Trying:if(this.lastResponse=t,e>=100&&e<200){this.stateTransition(g.Proceeding),this.send(t).cat
11038ch(s=>{this.logTransportError(s,"Failed to send provisional response.");});return}if(e>=200&&e<=699){this.stateTransition(g.Completed),this.send(t).catch(s=>{this.logTransportError(s,"Failed to send final response.");});return}break;case g.Proceeding:if(this.lastResponse=t,e>=200&&e<=699){this.stateTransition(g.Completed),this.send(t).catch(s=>{this.logTransportError(s,"Failed to send final response.");});return}break;case g.Completed:return;case g.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}let r=`Non-INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(r),new Error(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(g.Terminated,true);}typeToString(){return "non-INVITE server transaction"}stateTransition(e,t=false){let r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case g.Trying:r();break;case g.Proceeding:this.state!==g.Trying&&r();break;case g.Completed:this.state!==g.Trying&&this.state!==g.Proceeding&&r();break;case g.Terminated:this.state!==g.Proceeding&&this.state!==g.Completed&&(t||r());break;default:r();}e===g.Completed&&(this.J=setTimeout(()=>this.timerJ(),P.TIMER_J)),e===g.Terminated&&this.dispose(),this.setState(e);}timerJ(){this.logger.debug(`Timer J expired for NON-INVITE server transaction ${this.id}.`),this.state===g.Completed&&this.stateTransition(g.Terminated);}};var F=class{constructor(e,t,r,s){this.transactionConstructor=e,this.core=t,this.message=r,this.delegate=s,this.logger=this.loggerFactory.getLogger("sip.user-agent-server"),this.toTag=r.toTag?r.toTag:we$1(),this.init();}dispose(){this.transaction.dispose();}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}accept(e={statusCode:200}){if(!this.acceptable)throw new z(`${this.message.method} not acceptable in state ${this.transaction.state}.`);let t=e.statusCode;if(t<200||t>299)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}progress(e={statusCode:180}){if(!this.progressable)throw new z(`${this.message.method} not progressable in state ${this.transaction.state}.`);let t=e.statusCode;if(t<101||t>199)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}redirect(e,t={statusCode:302}){if(!this.redirectable)throw new z(`${this.message.method} not redirectable in state ${this.transaction.state}.`);let r=t.statusCode;if(r<300||r>399)throw new TypeError(`Invalid statusCode: ${r}`);let s=new Array;return e.forEach(n=>s.push(`Contact: ${n.toString()}`)),t.extraHeaders=(t.extraHeaders||[]).concat(s),this.reply(t)}reject(e={statusCode:480}){if(!this.rejectable)throw new z(`${this.message.method} not rejectable in state ${this.transaction.state}.`);let t=e.statusCode;if(t<400||t>699)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}trying(e){if(!this.tryingable)throw new z(`${this.message.method} not tryingable in state ${this.transaction.state}.`);return this.reply({statusCode:100})}receiveCancel(e){this.delegate&&this.delegate.onCancel&&this.delegate.onCancel(e);}get acceptable(){if(this.transaction instanceof U)return this.transaction.state===g.Proceeding||this.transaction.state===g.Accepted;if(this.transaction instanceof M)return this.transaction.state===g.Trying||this.transaction.state===g.Proceeding;throw new Error("Unknown transaction type.")}get progressable(){if(this.transaction instanceof U)return this.transaction.state===g.Proceeding;if(this.transaction instanceof M)return false;throw new Error("Unknown transaction type.")}get redirectable(){if(this.transaction instanceof U)return this.transaction.state===g.Proceeding;if(this.transaction instanceof M)return this.transaction.state===g.Trying||this.transaction.state===g.Proceeding;throw new Error("Unknown transaction type.")}get rejectable(){if(this.transaction instanceof U)return this.transaction.state===g.Proceeding;if(this.transaction instanceof M)return this.transaction.state===g.Trying||this.transaction.state===g.Proceeding;throw new Error("Unknown transaction type.")}get tryingable(){if(this.transaction instanceof U)return this.transaction.state===g.Proceeding;if(this.transaction instanceof M)return this.transaction.state===g.Trying;throw new Error("Unknown transaction type.")}reply(e){!e.toTag&&e.statusCode!==100&&(e.toTag=this.toTag),e.userAgent=e.userAgent||this.core.configuration.userAgentHeaderFieldValue,e.supported=e.supported||this.core.configuration.supportedOptionTagsResponse;let t=ot(this.message,e);return this.transaction.receiveResponse(e.statusCode,t.message),t}init(){let e={loggerFactory:this.loggerFactory,onStateChange:s=>{s===g.Terminated&&(this.core.userAgentServers.delete(r),this.dispose());},onTransportError:s=>{this.logger.error(s.message),this.delegate&&this.delegate.onTransportError?this.delegate.onTransportError(s):this.logger.error("User agent server response transport error.");}},t=new this.transactionConstructor(this.message,this.core.transport,e);this._transaction=t;let r=t.id;this.core.userAgentServers.set(t.id,this);}};var ct=class extends F{constructor(e,t,r){super(M,e.userAgentCore,t,r);}};var dt=class extends D{constructor(e,t,r){let s=e.createOutgoingRequestMessage(T.INFO,r);super(H,e.userAgentCore,s,t);}};var ht=class extends F{constructor(e,t,r){super(M,e.userAgentCore,t,r);}};var Fe=class extends D{constructor(e,t,r){super(H,e,t,r);}};var Oe=class extends F{constructor(e,t,r){super(M,e,t,r);}};var lt=class extends D{constructor(e,t,r){let s=e.createOutgoingRequestMessage(T.NOTIFY,r);super(H,e.userAgentCore,s,t);}};function ur(o){return o.userAgentCore!==void 0}var fe=class extends F{constructor(e,t,r){let s=ur(e)?e.userAgentCore:e;super(M,s,t,r);}};var ut=class extends D{constructor(e,t,r){let s=e.createOutgoingRequestMessage(T.PRACK,r);super(H,e.userAgentCore,s,t),e.signalingStateTransition(s);}};var gt=class extends F{constructor(e,t,r){super(M,e.userAgentCore,t,r),e.signalingStateTransition(t),this.dialog=e;}accept(e={statusCode:200}){return e.body&&this.dialog.signalingStateTransition(e.body),super.accept(e)}};var ft=class extends D{constructor(e,t,r){let s=e.createOutgoingRequestMessage(T.INVITE,r);super(Z,e.userAgentCore,s,t),this.delegate=t,e.signalingStateTransition(s),e.reinv
11038iteUserAgentClient=this,this.dialog=e;}receiveResponse(e){if(!this.authenticationGuard(e,this.dialog))return;let t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(true){case /^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});break;case /^1[0-9]{2}$/.test(t):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:this.dialog,prack:r=>{throw new Error("Unimplemented.")}});break;case /^2[0-9]{2}$/.test(t):this.dialog.signalingStateTransition(e),this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:e,session:this.dialog,ack:r=>this.dialog.ack(r)});break;case /^3[0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});break;case /^[4-6][0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});break;default:throw new Error(`Invalid status code ${t}`)}}};var pt=class extends F{constructor(e,t,r){super(U,e.userAgentCore,t,r),e.reinviteUserAgentServer=this,this.dialog=e;}accept(e={statusCode:200}){e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(this.dialog.routeSet.map(i=>`Record-Route: ${i}`));let t=super.accept(e),r=this.dialog,s=Object.assign(Object.assign({},t),{session:r});return e.body&&this.dialog.signalingStateTransition(e.body),this.dialog.reConfirm(),s}progress(e={statusCode:180}){let t=super.progress(e),r=this.dialog,s=Object.assign(Object.assign({},t),{session:r});return e.body&&this.dialog.signalingStateTransition(e.body),s}redirect(e,t={statusCode:302}){throw this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,new Error("Unimplemented.")}reject(e={statusCode:488}){return this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,super.reject(e)}};var mt=class extends D{constructor(e,t,r){let s=e.createOutgoingRequestMessage(T.REFER,r);super(H,e.userAgentCore,s,t);}};function gr(o){return o.userAgentCore!==void 0}var Ue=class extends F{constructor(e,t,r){let s=gr(e)?e.userAgentCore:e;super(M,s,t,r);}};var Se=class extends ie{constructor(e,t,r,s){super(t,r),this.initialTransaction=e,this._signalingState=x.Initial,this.ackWait=false,this.ackProcessing=false,this.delegate=s,e instanceof U&&(this.ackWait=true),this.early||this.start2xxRetransmissionTimer(),this.signalingStateTransition(e.request),this.logger=t.loggerFactory.getLogger("sip.invite-dialog"),this.logger.log(`INVITE dialog ${this.id} constructed`);}dispose(){super.dispose(),this._signalingState=x.Closed,this._offer=void 0,this._answer=void 0,this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.logger.log(`INVITE dialog ${this.id} destroyed`);}get sessionState(){return this.early?W.Early:this.ackWait?W.AckWait:this._signalingState===x.Closed?W.Terminated:W.Confirmed}get signalingState(){return this._signalingState}get offer(){return this._offer}get answer(){return this._answer}confirm(){this.early&&this.start2xxRetransmissionTimer(),super.confirm();}reConfirm(){this.reinviteUserAgentServer&&this.startReInvite2xxRetransmissionTimer();}ack(e={}){this.logger.log(`INVITE dialog ${this.id} sending ACK request`);let t;if(this.reinviteUserAgentClient){if(!(this.reinviteUserAgentClient.transaction instanceof Z))throw new Error("Transaction not instance of InviteClientTransaction.");t=this.reinviteUserAgentClient.transaction,this.reinviteUserAgentClient=void 0;}else {if(!(this.initialTransaction instanceof Z))throw new Error("Initial transaction not instance of InviteClientTransaction.");t=this.initialTransaction;}let r=this.createOutgoingRequestMessage(T.ACK,{cseq:t.request.cseq,extraHeaders:e.extraHeaders,body:e.body});return t.ackResponse(r),this.signalingStateTransition(r),{message:r}}bye(e,t){if(this.logger.log(`INVITE dialog ${this.id}
11038 sending BYE request`),this.initialTransaction instanceof U){if(this.early)throw new Error("UAS MUST NOT send a BYE on early dialogs.");if(this.ackWait&&this.initialTransaction.state!==g.Terminated)throw new Error("UAS MUST NOT send a BYE on a confirmed dialog until it has received an ACK for its 2xx response or until the server transaction times out.")}return new at(this,e,t)}info(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INFO request`),this.early)throw new Error("Dialog not confirmed.");return new dt(this,e,t)}invite(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INVITE request`),this.early)throw new Error("Dialog not confirmed.");if(this.reinviteUserAgentClient)throw new Error("There is an ongoing re-INVITE client transaction.");if(this.reinviteUserAgentServer)throw new Error("There is an ongoing re-INVITE server transaction.");return new ft(this,e,t)}message(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending MESSAGE request`),this.early)throw new Error("Dialog not confirmed.");let r=this.createOutgoingRequestMessage(T.MESSAGE,t);return new Fe(this.core,r,e)}notify(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending NOTIFY request`),this.early)throw new Error("Dialog not confirmed.");return new lt(this,e,t)}prack(e,t){return this.logger.log(`INVITE dialog ${this.id} sending PRACK request`),new ut(this,e,t)}refer(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending REFER request`),this.early)throw new Error("Dialog not confirmed.");return new mt(this,e,t)}receiveRequest(e){if(this.logger.log(`INVITE dialog ${this.id} received ${e.method} request`),e.method===T.ACK){if(this.ackWait){if(this.initialTransaction instanceof Z){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}if(this.initialTransaction.request.cseq!==e.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}this.ackWait=false;}else {if(!this.reinviteUserAgentServer){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}if(this.reinviteUserAgentServer.transaction.request.cseq!==e.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}this.reinviteUserAgentServer=void 0;}if(this.signalingStateTransition(e),this.delegate&&this.delegate.onAck){let t=this.delegate.onAck({message:e});t instanceof Promise&&(this.ackProcessing=true,t.then(()=>this.ackProcessing=false).catch(()=>this.ackProcessing=false));}return}if(!this.sequenceGuard(e)){this.logger.log(`INVITE dialog ${this.id} rejected out of order ${e.method} request.`);return}if(super.receiveRequest(e),e.method===T.INVITE){let t=()=>{let i=this.ackWait?"waiting for initial ACK":"processing initial ACK";this.logger.warn(`INVITE dialog ${this.id} received re-INVITE while ${i}`);let n="RFC 5407 suggests the following to avoid this race condition... ";n+=" Note: Implementation issues are outside the scope of this document,",n+=" but the following tip is provided for avoiding race conditions of",n+=" this type. The caller can delay sending re-INVITE F6 for some period",n+=" of time (2 seconds, perhaps), after which the caller can reasonably",n+=" assume that its ACK has been received. Implementors can decouple the",n+=" actions of the user (e.g., pressing the hold button) from the actions",n+=" of the protocol (the sending of re-INVITE F6), so that the UA can",n+=" behave like this. In this case, it is the implementor's choice as to",n+=" how long to wait. In most cases, such an implementation may be",n+=" useful to prevent the type of race condition shown in this section.",n+=" This document expresses no preference about whether or not they",n+=" should wait for an ACK to be delivered. After considering the impact",n+=" on user experience, implementors should decide whether or not to wait",n+=" for a while, because the user experience depends on the",n+=" implementation and has no direct bearing on protocol behavior.",this.logger.warn(n);},s=[`Retry-After: ${Math.floor(Math.random()*10)+1}`];if(this.ackProcessing){this.core.replyStateless(e,{statusCode:500,extraHeaders:s}),t();return}if(this.ackWait&&this.signalingState!==x.Stable){this.core.replyStateless(e,{statusCode:500,extraHeaders:s}),t();return}if(this.reinviteUserAgentServer){this.core.replyStateless(e,{statusCode:500,extraHeaders:s});return}if(this.reinviteUserAgentClient){this.core.replyStateless(e,{statusCode:491});return}}if(e.method===T.INVITE){let t=e.parseHeader("contact");if(!t)throw new Error("Contact undefined.");if(!(t instanceof L))throw new Error("Contact not instance of NameAddrHeader.");this.dialogState.remoteTarget=t.uri;}switch(e.method){case T.BYE:{let t=new ct(this,e);this.delegate&&this.delegate.onBye?this.delegate.onBye(t):t.accept(),this.dispose();}break;case T.INFO:{let t=new ht(this,e);this.delegate&&this.delegate.onInfo?this.delegate.onInfo(t):t.reject({statusCode:469,extraHeaders:["Recv-Info:"]});}break;case T.INVITE:{let t=new pt(this,e);this.signalingStateTransition(e),this.delegate&&this.delegate.onInv
11038ite?this.delegate.onInvite(t):t.reject({statusCode:488});}break;case T.MESSAGE:{let t=new Oe(this.core,e);this.delegate&&this.delegate.onMessage?this.delegate.onMessage(t):t.accept();}break;case T.NOTIFY:{let t=new fe(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(t):t.accept();}break;case T.PRACK:{let t=new gt(this,e);this.delegate&&this.delegate.onPrack?this.delegate.onPrack(t):t.accept();}break;case T.REFER:{let t=new Ue(this,e);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(t):t.reject();}break;default:this.logger.log(`INVITE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501});break}}reliableSequenceGuard(e){let t=e.statusCode;if(!t)throw new Error("Status code undefined");if(t>100&&t<200){let r=e.getHeader("require"),s=e.getHeader("rseq"),i=r&&r.includes("100rel")&&s?Number(s):void 0;if(i){if(this.rseq&&this.rseq+1!==i)return false;this.rseq=this.rseq?this.rseq+1:i;}}return true}signalingStateRollback(){(this._signalingState===x.HaveLocalOffer||this.signalingState===x.HaveRemoteOffer)&&this._rollbackOffer&&this._rollbackAnswer&&(this._signalingState=x.Stable,this._offer=this._rollbackOffer,this._answer=this._rollbackAnswer);}signalingStateTransition(e){let t=xe(e);if(!(!t||t.contentDisposition!=="session")){if(this._signalingState===x.Stable&&(this._rollbackOffer=this._offer,this._rollbackAnswer=this._answer),e instanceof re)switch(this._signalingState){case x.Initial:case x.Stable:this._signalingState=x.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case x.HaveLocalOffer:this._signalingState=x.Stable,this._answer=t;break;case x.HaveRemoteOffer:break;case x.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof V)switch(this._signalingState){case x.Initial:case x.Stable:this._signalingState=x.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case x.HaveLocalOffer:this._signalingState=x.Stable,this._answer=t;break;case x.HaveRemoteOffer:break;case x.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof Te$1)switch(this._signalingState){case x.Initial:case x.Stable:this._signalingState=x.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case x.HaveLocalOffer:break;case x.HaveRemoteOffer:this._signalingState=x.Stable,this._answer=t;break;case x.Closed:break;default:throw new Error("Unexpected signaling state.")}if(Dt(e))switch(this._signalingState){case x.Initial:case x.Stable:this._signalingState=x.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case x.HaveLocalOffer:break;case x.HaveRemoteOffer:this._signalingState=x.Stable,this._answer=t;break;case x.Closed:break;default:throw new Error("Unexpected signaling state.")}}}start2xxRetransmissionTimer(){if(this.initialTransaction instanceof U){let e=this.initialTransaction,t=P.T1,r=()=>{if(!this.ackWait){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(t*2,P.T2),this.invite2xxTimer=setTimeout(r,t);};this.invite2xxTimer=setTimeout(r,t);let s=()=>{e.state===g.Terminated&&(e.removeStateChangeListener(s),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.ackWait&&(this.delegate&&this.delegate.onAckTimeout?this.delegate.onAckTimeout():this.bye()));};e.addStateChangeListener(s);}}startReInvite2xxRetransmissionTimer(){if(this.reinviteUserAgentServer&&this.reinviteUserAgentServer.transaction instanceof U){let e=this.reinviteUserAgentServer.transaction,t=P.T1,r=()=>{if(!this.reinviteUserAgentServer){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(t*2,P.T2),this.invite2xxTimer=setTimeout(r,t);};this.invite2xxTimer=setTimeout(r,t);let s=()=>{e.state===g.Terminated&&(e.removeStateChangeListener(s),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.reinviteUserAgentServer);};e.addStateChangeListener(s);}}};var wt=class extends D{constructor(e,t,r){super(Z,e,t,r),this.confirmedDialogAcks=new Map,this.confirmedDialogs=new Map,this.earlyDialogs=new Map,this.delegate=r;}
11038dispose(){this.earlyDialogs.forEach(e=>e.dispose()),this.earlyDialogs.clear(),super.dispose();}onTransportError(e){if(this.transaction.state===g.Calling)return super.onTransportError(e);this.logger.error(e.message),this.logger.error("User agent client request transport error while sending ACK.");}receiveResponse(e){if(!this.authenticationGuard(e))return;let t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(true){case /^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});return;case /^1[0-9]{2}$/.test(t):{if(!e.toTag){this.logger.warn("Non-100 1xx INVITE response received without a to tag, dropping.");return}if(!e.parseHeader("contact")){this.logger.error("Non-100 1xx INVITE response received without a Contact header field, dropping.");return}let s=ie.initialDialogStateForUserAgentClient(this.message,e),i=this.earlyDialogs.get(s.id);if(!i){let a=this.transaction;if(!(a instanceof Z))throw new Error("Transaction not instance of InviteClientTransaction.");i=new Se(a,this.core,s),this.earlyDialogs.set(i.id,i);}if(!i.reliableSequenceGuard(e)){this.logger.warn("1xx INVITE reliable response received out of order or is a retransmission, dropping.");return}(i.signalingState===x.Initial||i.signalingState===x.HaveLocalOffer)&&i.signalingStateTransition(e);let n=i;this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:n,prack:a=>n.prack(void 0,a)});}return;case /^2[0-9]{2}$/.test(t):{if(!e.toTag){this.logger.error("2xx INVITE response received without a to tag, dropping.");return}if(!e.parseHeader("contact")){this.logger.error("2xx INVITE response received without a Contact header field, dropping.");return}let s=ie.initialDialogStateForUserAgentClient(this.message,e),i=this.confirmedDialogs.get(s.id);if(i){let a=this.confirmedDialogAcks.get(s.id);if(a){let d=this.transaction;if(!(d instanceof Z))throw new Error("Client transaction not instance of InviteClientTransaction.");d.ackResponse(a.message);}return}if(i=this.earlyDialogs.get(s.id),i)i.confirm(),i.recomputeRouteSet(e),this.earlyDialogs.delete(i.id),this.confirmedDialogs.set(i.id,i);else {let a=this.transaction;if(!(a instanceof Z))throw new Error("Transaction not instance of InviteClientTransaction.");i=new Se(a,this.core,s),this.confirmedDialogs.set(i.id,i);}(i.signalingState===x.Initial||i.signalingState===x.HaveLocalOffer)&&i.signalingStateTransition(e);let n=i;if(this.delegate&&this.delegate.onAccept)this.delegate.onAccept({message:e,session:n,ack:a=>{let d=n.ack(a);return this.confirmedDialogAcks.set(n.id,d),d}});else {let a=n.ack();this.confirmedDialogAcks.set(n.id,a);}}return;case /^3[0-9]{2}
11038$/.test(t):this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});return;case /^[4-6][0-9]{2}$/.test(t):this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});return;default:throw new Error(`Invalid status code ${t}`)}}};var Le=class extends F{constructor(e,t,r){super(U,e,t,r),this.core=e;}dispose(){this.earlyDialog&&this.earlyDialog.dispose(),super.dispose();}accept(e={statusCode:200}){if(!this.acceptable)throw new z(`${this.message.method} not acceptable in state ${this.transaction.state}.`);if(!this.confirmedDialog)if(this.earlyDialog)this.earlyDialog.confirm(),this.confirmedDialog=this.earlyDialog,this.earlyDialog=void 0;else {let d=this.transaction;if(!(d instanceof U))throw new Error("Transaction not instance of InviteClientTransaction.");let u=ie.initialDialogStateForUserAgentServer(this.message,this.toTag);this.confirmedDialog=new Se(d,this.core,u);}let t=this.message.getHeaders("record-route").map(d=>`Record-Route: ${d}`),r=`Contact: ${this.core.configuration.contact.toString()}`,s="Allow: "+se.toString();if(!e.body){if(this.confirmedDialog.signalingState===x.Stable)e.body=this.confirmedDialog.answer;else if(this.confirmedDialog.signalingState===x.Initial||this.confirmedDialog.signalingState===x.HaveRemoteOffer)throw new Error("Response must have a body.")}e.statusCode=e.statusCode||200,e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(s),e.extraHeaders.push(r);let i=super.accept(e),n=this.confirmedDialog,a=Object.assign(Object.assign({},i),{session:n});return e.body&&this.confirmedDialog.signalingState!==x.Stable&&this.confirmedDialog.signalingStateTransition(e.body),a}progress(e={statusCode:180}){if(!this.progressable)throw new z(`${this.message.method} not progressable in state ${this.transaction.state}.`);if(!this.earlyDialog){let a=this.transaction;if(!(a instanceof U))throw new Error("Transaction not instance of InviteClientTransaction.");let d=ie.initialDialogStateForUserAgentServer(this.message,this.toTag,true);this.earlyDialog=new Se(a,this.core,d);}let t=this.message.getHeaders("record-route").map(a=>`Record-Route: ${a}`),r=`Contact: ${this.core.configuration.contact}`;e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(r);let s=super.progress(e),i=this.earlyDialog,n=Object.assign(Object.assign({},s),{session:i});return e.body&&this.earlyDialog.signalingState!==x.Stable&&this.earlyDialog.signalingStateTransition(e.body),n}redirect(e,t={statusCode:302}){return super.redirect(e,t)}reject(e={statusCode:486}){return super.reject(e)}};var vt=class extends D{constructor(e,t,r){super(H,e,t,r);}};var Tt=class extends D{constructor(e,t,r){super(H,e,t,r);}};var xt=class extends F{constructor(e,t,r){super(M,e,t,r),this.core=e;}};var Et=class extends D{constructor(e,t,r){let s=e.createOutgoingRequestMessage(T.SUBSCRIBE,r);super(H,e.userAgentCore,s,t),this.dialog=e;}waitNotifyStop(){}receiveResponse(e){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){let t=e.getHeader("Expires");if(!t)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else {let r=Number(t);this.dialog.subscriptionExpires>r&&(this.dialog.subscriptionExpires=r);}}e.statusCode&&e.statusCode>=400&&e.statusCode<700&&[404,405,410,416,480,481,482,483,484,485,489,501,604].includes(e.statusCode)&&this.dialog.terminate(),super.receiveResponse(e);}};var Ke=class extends ie{constructor(e,t,r,s,i,n){super(s,i),this.delegate=n,this._autoRefresh=false,this._subscriptionEvent=e,this._subscriptionExpires=t,this._subscriptionExpiresInitial=t,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this._subscriptionState=r,this.logger=s.loggerFactory.getLogger("sip.subscribe-dialog"),this.logger.log(`SUBSCRIBE dialog ${this.id} constructed`);}static initialDialogStateForSubscription(e,t){let s=t.getHeaders("record-route"),i=t.parseHeader("contact");if(!i)throw new Error("Contact undefined.");if(!(i instanceof L))throw new Error("Contact not instance of NameAddrHeader.");let n=i.uri,a=e.cseq,d=void 0,u=e.callId,h=e.fromTag,v=t.fromTag;if(!u)throw new Error("Call id undefined.");if(!h)throw new Error("From tag undefined.");if(!v)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");
11038let E=e.from.uri,$=e.to.uri;return {id:u+h+v,early:false,callId:u,localTag:h,remoteTag:v,localSequenceNumber:a,remoteSequenceNumber:d,localURI:E,remoteURI:$,remoteTarget:n,routeSet:s,secure:false}}dispose(){super.dispose(),this.N&&(clearTimeout(this.N),this.N=void 0),this.refreshTimerClear(),this.logger.log(`SUBSCRIBE dialog ${this.id} destroyed`);}get autoRefresh(){return this._autoRefresh}set autoRefresh(e){this._autoRefresh=true,this.refreshTimerSet();}get subscriptionEvent(){return this._subscriptionEvent}get subscriptionExpires(){let e=Math.floor(Date.now()/1e3)-this._subscriptionExpiresLastSet,t=this._subscriptionExpires-e;return Math.max(t,0)}set subscriptionExpires(e){if(e<0)throw new Error("Expires must be greater than or equal to zero.");if(this._subscriptionExpires=e,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this.autoRefresh){let t=this.subscriptionRefresh;(t===void 0||t>=e)&&this.refreshTimerSet();}}get subscriptionExpiresInitial(){return this._subscriptionExpiresInitial}get subscriptionRefresh(){if(this._subscriptionRefresh===void 0||this._subscriptionRefreshLastSet===void 0)return;let e=Math.floor(Date.now()/1e3)-this._subscriptionRefreshLastSet,t=this._subscriptionRefresh-e;return Math.max(t,0)}get subscriptionState(){return this._subscriptionState}receiveRequest(e){if(this.logger.log(`SUBSCRIBE dialog ${this.id} received ${e.method} request`),!this.sequenceGuard(e)){this.logger.log(`SUBSCRIBE dialog ${this.id} rejected out of order ${e.method} request.`);return}super.receiveRequest(e),e.method===T.NOTIFY?this.onNotify(e):(this.logger.log(`SUBSCRIBE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501}));}refresh(){let e="Allow: "+se.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: "+this.subscriptionExpiresInitial),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}subscribe(e,t={}){var r;if(this.subscriptionState!==y.Pending&&this.subscriptionState!==y.Active)throw new Error(`Invalid state ${this.subscriptionState}. May only re-subscribe while in state "pending" or "active".`);this.logger.log(`SUBSCRIBE dialog ${this.id} sending SUBSCRIBE request`);let s=new Et(this,e,t);return this.N&&(clearTimeout(this.N),this.N=void 0),!((r=t.extraHeaders)===null||r===void 0)&&r.includes("Expires: 0")||(this.N=setTimeout(()=>this.timerN(),P.TIMER_N)),s}terminate(){this.stateTransition(y.Terminated),this.onTerminated();}unsubscribe(){let e="Allow: "+se.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: 0"),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}onNotify(e){let t=e.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent){this.core.replyStateless(e,{statusCode:489});return}this.N&&(clearTimeout(this.N),this.N=void 0);let r=e.parseHeader("Subscription-State");if(!r||!r.state){this.core.replyStateless(e,{statusCode:489});return}let s=r.state,i=r.expires?Math.max(r.expires,0):void 0;switch(s){case "pending":this.stateTransition(y.Pending,i);break;case "active":this.stateTransition(y.Active,i);break;case "terminated":this.stateTransition(y.Terminated,i);break;default:this.logger.warn("Unrecognized subscription state.");break}let n=new fe(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(n):n.accept();}onRefresh(e){this.delegate&&this.delegate.onRefresh&&this.delegate.onRefresh(e);}onTerminated(){this.delegate&&this.delegate.onTerminated&&this.delegate.onTerminated();}refreshTimerClear(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0);}refreshTimerSet(){if(this.refreshTimerClear(),this.autoRefresh&&this.subscriptionExpires>0){let e=this.subscriptionExpires*900;this._subscriptionRefresh=Math.floor(e/1e3),this._subscriptionRefreshLastSet=Math.floor(Date.now()/1e3),this.refreshTimer=setTimeout(()=>{this.refreshTimer=void 0,this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this.onRefresh(this.refresh());},e);}}stateTransition(e,t){let r=()=>{this.logger.warn(`Invalid subscription state transition from ${this.subscriptionState} to ${e}`);};switch(e){case y.Initial:r();return;case y.NotifyWait:r();return;case y.Pending:if(this.subscriptionState!==y.NotifyWait&&this.subscriptionState!==y.Pending){r();return}break;case y.Active:if(this.subscriptionState!==y.NotifyWait&&this.subscriptionState!==y.Pending&&this.subscriptionState!==y.Active){r();return}break;case y.Terminated:if(this.subscriptionState!==y.NotifyWait&&this.subscriptionState!==y.Pending&&this.subscriptionState!==y.Active){r();return}break;default:r();return}e===y.Pending&&t&&(this.subscriptionExpires=t),e===y.Active&&t&&(this.subscriptionExpires=t),e===y.Terminated&&this.dispose(),this._subscriptionState=e;}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE dialog. Timed out waiting for NOTIFY."),this.subscriptionState!==y.Terminated&&(this.stateTransition(y.Terminated),this.onTerminated());}};var bt=class extends D{constructor(e,t,r){let s=t.getHeader("Event");
11038if(!s)throw new Error("Event undefined");let i=t.getHeader("Expires");if(!i)throw new Error("Expires undefined");super(H,e,t,r),this.delegate=r,this.subscriberId=t.callId+t.fromTag+s,this.subscriptionExpiresRequested=this.subscriptionExpires=Number(i),this.subscriptionEvent=s,this.subscriptionState=y.NotifyWait,this.waitNotifyStart();}dispose(){super.dispose();}onNotify(e){let t=e.message.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent){this.logger.warn("Failed to parse event."),e.reject({statusCode:489});return}let r=e.message.parseHeader("Subscription-State");if(!r||!r.state){this.logger.warn("Failed to parse subscription state."),e.reject({statusCode:489});return}let s=r.state;switch(s){case "pending":break;case "active":break;case "terminated":break;default:this.logger.warn(`Invalid subscription state ${s}`),e.reject({statusCode:489});return}if(s!=="terminated"&&!e.message.parseHeader("contact")){this.logger.warn("Failed to parse contact."),e.reject({statusCode:489});return}if(this.dialog)throw new Error("Dialog already created. This implementation only supports install of single subscriptions.");switch(this.waitNotifyStop(),this.subscriptionExpires=r.expires?Math.min(this.subscriptionExpires,Math.max(r.expires,0)):this.subscriptionExpires,s){case "pending":this.subscriptionState=y.Pending;break;case "active":this.subscriptionState=y.Active;break;case "terminated":this.subscriptionState=y.Terminated;break;default:throw new Error(`Unrecognized state ${s}.`)}if(this.subscriptionState!==y.Terminated){let i=Ke.initialDialogStateForSubscription(this.message,e.message);this.dialog=new Ke(this.subscriptionEvent,this.subscriptionExpires,this.subscriptionState,this.core,i);}if(this.delegate&&this.delegate.onNotify){let i=e,n=this.dialog;this.delegate.onNotify({request:i,subscription:n});}else e.accept();}waitNotifyStart(){this.N||(this.core.subscribers.set(this.subscriberId,this),this.N=setTimeout(()=>this.timerN(),P.TIMER_N));}waitNotifyStop(){this.N&&(this.core.subscribers.delete(this.subscriberId),clearTimeout(this.N),this.N=void 0);}receiveResponse(e){if(this.authenticationGuard(e)){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){let t=e.getHeader("Expires");if(!t)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else {let r=Number(t);r>this.subscriptionExpiresRequested&&this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),r<this.subscriptionExpires&&(this.subscriptionExpires=r);}this.dialog&&this.dialog.subscriptionExpires>this.subscriptionExpires&&(this.dialog.subscriptionExpires=this.subscriptionExpires);}e.statusCode&&e.statusCode>=300&&e.statusCode<700&&this.waitNotifyStop(),super.receiveResponse(e);}}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE user agent client. Timed out waiting for NOTIFY."),this.waitNotifyStop(),this.delegate&&this.delegate.onNotifyTimeout&&this.delegate.onNotifyTimeout();}};var St=class extends F{constructor(e,t,r){super(M,e,t,r),this.core=e;}};var rr=["application/sdp","application/dtmf-relay"],Ct=class{constructor(e,t={}){this.userAgentClients=new Map,this.userAgentServers=new Map,this.configuration=e,this.delegate=t,this.dialogs=new Map,this.subscribers=new Map,this.logger=e.loggerFactory.getLogger("sip.user-agent-core");}dispose(){this.reset();}
11038reset(){this.dialogs.forEach(e=>e.dispose()),this.dialogs.clear(),this.subscribers.forEach(e=>e.dispose()),this.subscribers.clear(),this.userAgentClients.forEach(e=>e.dispose()),this.userAgentClients.clear(),this.userAgentServers.forEach(e=>e.dispose()),this.userAgentServers.clear();}get loggerFactory(){return this.configuration.loggerFactory}get transport(){let e=this.configuration.transportAccessor();if(!e)throw new Error("Transport undefined.");return e}invite(e,t){return new wt(this,e,t)}message(e,t){return new Fe(this,e,t)}publish(e,t){return new vt(this,e,t)}register(e,t){return new Tt(this,e,t)}subscribe(e,t){return new bt(this,e,t)}request(e,t){return new D(H,this,e,t)}makeOutgoingRequestMessage(e,t,r,s,i,n,a){let d=this.configuration.sipjsId,u=this.configuration.displayName,h=this.configuration.viaForceRport,v=this.configuration.hackViaTcp,E=this.configuration.supportedOptionTags.slice();e===T.REGISTER&&E.push("path","gruu"),e===T.INVITE&&(this.configuration.contact.pubGruu||this.configuration.contact.tempGruu)&&E.push("gruu");let $=this.configuration.routeSet,k=this.configuration.userAgentHeaderFieldValue,I=this.configuration.viaHost,ae=Object.assign(Object.assign({},{callIdPrefix:d,forceRport:h,fromDisplayName:u,hackViaTcp:v,optionTags:E,routeSet:$,userAgentString:k,viaHost:I}),i);return new Te$1(e,t,r,s,ae,n,a)}receiveIncomingRequestFromTransport(e){this.receiveRequestFromTransport(e);}receiveIncomingResponseFromTransport(e){this.receiveResponseFromTransport(e);}replyStateless(e,t){let r=this.configuration.userAgentHeaderFieldValue,s=this.configuration.supportedOptionTagsResponse;t=Object.assign(Object.assign({},t),{userAgent:r,supported:s});let i=ot(e,t);return this.transport.send(i.message).catch(n=>{n instanceof Error&&this.logger.error(n.message),this.logger.error(`Transport error occurred sending stateless reply to ${e.method} request.`);}),i}receiveRequestFromTransport(e){let t=e.viaBranch,r=this.userAgentServers.get(t);if(e.method===T.ACK&&r&&r.transaction.state===g.Accepted&&r instanceof Le){this.logger.warn(`Discarding out of dialog ACK after 2xx response sent on transaction ${t}.`);return}if(e.method===T.CANCEL){r?(this.replyStateless(e,{statusCode:200}),r.transaction instanceof U&&r.transaction.state===g.Proceeding&&r instanceof Le&&r.receiveCancel(e)):this.replyStateless(e,{statusCode:481});return}if(r){r.transaction.receiveRequest(e);return}this.receiveRequest(e);}receiveRequest(e){if(!se.includes(e.method)){let s="Allow: "+se.toString();this.replyStateless(e,{statusCode:405,extraHeaders:[s]});return}if(!e.ruri)throw new Error("Request-URI undefined.");if(e.ruri.scheme!=="sip"){this.replyStateless(e,{statusCode:416});return}let t=e.ruri,r=s=>!!s&&s.user===t.user;if(!r(this.configuration.aor)&&!(r(this.configuration.contact.uri)||r(this.configuration.contact.pubGruu)||r(this.configuration.contact.tempGruu))){this.logger.warn("Request-URI does not point to us."),e.method!==T.ACK&&this.replyStateless(e,{statusCode:404});return}if(e.method===T.INVITE&&!e.hasHeader("Contact")){this.replyStateless(e,{statusCode:400,reasonPhrase:"Missing Contact Header"});return}if(!e.toTag){let s=e.viaBranch;if(!this.userAgentServers.has(s)&&Array.from(this.userAgentServers.values()).some(n=>n.transaction.request.fromTag===e.fromTag&&n.transaction.request.callId===e.callId&&n.transaction.request.cseq===e.cseq)){this.replyStateless(e,{statusCode:482});return}}e.toTag?this.receiveInsideDialogRequest(e):this.receiveOutsideDialogRequest(e);}receiveInsideDialogRequest(e){if(e.method===T.NOTIFY){let s=e.parseHeader("Event");if(!s||!s.event){this.replyStateless(e,{statusCode:489});return}let i=e.callId+e.toTag+s.event,n=this.subscribers.get(i);if(n){let a=new fe(this,e);n.onNotify(a);return}}let t=e.callId+e.toTag+e.fromTag,r=this.dialogs.get(t);if(r){if(e.method===T.OPTIONS){let s="Allow: "+se.toString(),i="Accept: "+rr.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[s,i]});return}r.receiveRequest(e);return}e.method!==T.ACK&&this.replyStateless(e,{statusCode:481});}receiveOutsideDialogRequest(e){switch(e.method){case T.ACK:break;case T.BYE:this.replyStateless(e,{statusCode:481});break;case T.CANCEL:throw new Error(`Unexpected out of dialog request method ${e.method}.`);case T.INFO:this.replyStateless(e,{statusCode:405});break;case T.INVITE:{let t=new Le(this,e);
11038this.delegate.onInvite?this.delegate.onInvite(t):t.reject();}break;case T.MESSAGE:{let t=new Oe(this,e);this.delegate.onMessage?this.delegate.onMessage(t):t.accept();}break;case T.NOTIFY:{let t=new fe(this,e);this.delegate.onNotify?this.delegate.onNotify(t):t.reject({statusCode:405});}break;case T.OPTIONS:{let t="Allow: "+se.toString(),r="Accept: "+rr.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[t,r]});}break;case T.REFER:{let t=new Ue(this,e);this.delegate.onRefer?this.delegate.onRefer(t):t.reject({statusCode:405});}break;case T.REGISTER:{let t=new xt(this,e);this.delegate.onRegister?this.delegate.onRegister(t):t.reject({statusCode:405});}break;case T.SUBSCRIBE:{let t=new St(this,e);this.delegate.onSubscribe?this.delegate.onSubscribe(t):t.reject({statusCode:480});}break;default:throw new Error(`Unexpected out of dialog request method ${e.method}.`)}}receiveResponseFromTransport(e){if(e.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response, dropping");return}let t=e.viaBranch+e.method,r=this.userAgentClients.get(t);r?r.transaction.receiveResponse(e):this.logger.warn(`Discarding unmatched ${e.statusCode} response to ${e.method} ${t}.`);}};function Ht(){return o=>!o.audio&&!o.video?Promise.resolve(new MediaStream):navigator.mediaDevices===void 0?Promise.reject(new Error("Media devices not available in insecure contexts.")):navigator.mediaDevices.getUserMedia.call(navigator.mediaDevices,o)}function Pt(){return {bundlePolicy:"balanced",certificates:void 0,iceCandidatePoolSize:0,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require"}}var Y=class o{constructor(e,t,r){e.debug("SessionDescriptionHandler.constructor"),this.logger=e,this.mediaStreamFactory=t,this.sessionDescriptionHandlerConfiguration=r,this._localMediaStream=new MediaStream,this._remoteMediaStream=new MediaStream,this._peerConnection=new RTCPeerConnection(r?.peerConnectionConfiguration),this.initPeerConnectionEventHandlers();}get localMediaStream(){return this._localMediaStream}get remoteMediaStream(){return this._remoteMediaStream}get dataChannel(){return this._dataChannel}get peerConnection(){return this._peerConnection}get peerConnectionDelegate(){return this._peerConnectionDelegate}set peerConnectionDelegate(e){this._peerConnectionDelegate=e;}static dispatchAddTrackEvent(e,t){e.dispatchEvent(new MediaStreamTrackEvent("addtrack",{track:t}));}static dispatchRemoveTrackEvent(e,t){e.dispatchEvent(new MediaStreamTrackEvent("removetrack",{track:t}));}close(){this.logger.debug("SessionDescriptionHandler.close"),this._peerConnection!==void 0&&(this._peerConnection.getReceivers().forEach(e=>{e.track&&e.track.stop();}),this._peerConnection.getSenders().forEach(e=>{e.track&&e.track.stop();}),this._dataChannel&&this._dataChannel.close(),this._peerConnection.close(),this._peerConnection=void 0);}enableReceiverTracks(e){let t=this.peerConnection;if(!t)throw new Error("Peer connection closed.");t.getReceivers().forEach(r=>{r.track&&(r.track.enabled=e);});}enableSenderTracks(e){let t=this.peerConnection;if(!t)throw new Error("Peer connection closed.");t.getSenders().forEach(r=>{r.track&&(r.track.enabled=e);});}getDescription(e,t){var r,s;if(this.logger.debug("SessionDescriptionHandler.getDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=e?.onDataChannel;let i=(r=e?.offerOptions)===null||r===void 0?void 0:r.iceRestart,n=e?.iceGatheringTimeout===void 0?(s=this.sessionDescriptionHandlerConfiguration)===null||s===void 0?void 0:s.iceGatheringTimeout:e?.iceGatheringTimeout;return this.getLocalMediaStream(e).then(()=>this.updateDirection(e)).then(()=>this.createDataChannel(e)).then(()=>this.createLocalOfferOrAnswer(e)).then(a=>this.applyModifiers(a,t)).then(a=>this.setLocalSessionDescription(a)).then(()=>this.waitForIceGatheringComplete(i,n)).then(()=>this.getLocalSessionDescription()).then(a=>({body:a.sdp,contentType:"application/sdp"})).catch(a=>{throw this.logger.error("SessionDescriptionHandler.getDescription failed - "+a),a})}hasDescription(e){return this.logger.debug("SessionDescriptionHandler.hasDescription"),e==="application/sdp"}iceGatheringComplete(){this.logger.debug("SessionDescriptionHandler.iceGatheringComplete"),this.iceGatheringCompleteTimeoutId!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - clearing timeout"),clearTimeout(this.iceGatheringCompleteTimeoutId),this.iceGatheringCompleteTimeoutId=void 0),this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - resolving promise"),this.iceGatheringCompleteResolve&&this.iceGatheringCompleteResolve(),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0);}sendDtmf(e,t){if(this.logger.debug("SessionDescriptionHandler.sendDtmf"),this._peerConnection===void 0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - peer connection closed"),false;let r=this._peerConnection.getSenders();if(r.length===0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no senders"),false;let s=r[0].dtmf;if(!s)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no DTMF sender"),false;let i=t?.duration,n=t?.interToneGap;try{s.insertDTMF(e,i,n);}catch(a){return this.logger.error(a.toString()),false}return this.logger.log("SessionDescriptionHandler.sendDtmf sent via RTP: "+e.toString()),true}setDescription(e,t,r){if(this.logger.debug("SessionDescriptionHandler.setDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=t?.onDataChannel;let s=this._peerConnection.signalingState==="have-local-offer"?"answer":"offer";return this.getLocalMediaStream(t).then(()=>this.applyModifiers({sdp:e,type:s},r)).then(i=>this.setRemoteSessionDescription(i)).catch(i=>{throw this.logger.error("SessionDescriptionHandler.setDescription failed - "+i),i})}applyModifiers(e,t){return this.logger.debug("SessionDescriptionHandler.applyModifiers"),!t||t.length===0?Promise.resolve(e):t.reduce((r,s)=>r.then(s),Promise.resolve(e)).then(r=>{if(this.logger.debug("SessionDescriptionHandler.applyModifiers - modified sdp"),!r.sdp||!r.type)throw new Error("Invalid SDP.");return {sdp:r.sdp,type:r.type}})}
11038createDataChannel(e){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));if(e?.dataChannel!==true||this._dataChannel)return Promise.resolve();switch(this._peerConnection.signalingState){case "stable":this.logger.debug("SessionDescriptionHandler.createDataChannel - creating data channel");try{return this._dataChannel=this._peerConnection.createDataChannel(e?.dataChannelLabel||"",e?.dataChannelOptions),this.onDataChannel&&this.onDataChannel(this._dataChannel),Promise.resolve()}catch(t){return Promise.reject(t)}case "have-remote-offer":return Promise.resolve();default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}createLocalOfferOrAnswer(e){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case "stable":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP offer"),this._peerConnection.createOffer(e?.offerOptions);case "have-remote-offer":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP answer"),this._peerConnection.createAnswer(e?.answerOptions);default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}getLocalMediaStream(e){if(this.logger.debug("SessionDescriptionHandler.getLocalMediaStream"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));let t=Object.assign({},e?.constraints);if(this.localMediaStreamConstraints){if(t.audio=t.audio||this.localMediaStreamConstraints.audio,t.video=t.video||this.localMediaStreamConstraints.video,JSON.stringify(this.localMediaStreamConstraints.audio)===JSON.stringify(t.audio)&&JSON.stringify(this.localMediaStreamConstraints.video)===JSON.stringify(t.video))return Promise.resolve()}else t.audio===void 0&&t.video===void 0&&(t={audio:true});return this.localMediaStreamConstraints=t,this.mediaStreamFactory(t,this,e).then(r=>this.setLocalMediaStream(r))}setLocalMediaStream(e){if(this.logger.debug("SessionDescriptionHandler.setLocalMediaStream"),!this._peerConnection)throw new Error("Peer connection undefined.");let t=this._peerConnection,r=this._localMediaStream,s=[],i=d=>{let u=d.kind;if(u!=="audio"&&u!=="video")throw new Error(`Unknown new track kind ${u}.`);let h=t.getSenders().find(v=>v.track&&v.track.kind===u);h?s.push(new Promise(v=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - replacing sender ${u} track`),v();}).then(()=>h.replaceTrack(d).then(()=>{let v=r.getTracks().find(E=>E.kind===u);v&&(v.stop(),r.removeTrack(v),o.dispatchRemoveTrackEvent(r,v)),r.addTrack(d),o.dispatchAddTrackEvent(r,d);}).catch(v=>{throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to replace sender ${u} track`),v}))):s.push(new Promise(v=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - adding sender ${u} track`),v();}).then(()=>{try{t.addTrack(d,r);}catch(v){throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to add sender ${u} track`),v}r.addTrack(d),o.dispatchAddTrackEvent(r,d);}));},n=e.getAudioTracks();n.length&&i(n[0]);let a=e.getVideoTracks();return a.length&&i(a[0]),s.reduce((d,u)=>d.then(()=>u),Promise.resolve())}getLocalSessionDescription(){if(this.logger.debug("SessionDescriptionHandler.getLocalSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));let e=this._peerConnection.localDescription;return e?Promise.resolve(e):Promise.reject(new Error("Failed to get local session description"))}setLocalSessionDescription(e){return this.logger.debug("SessionDescriptionHandler.setLocalSessionDescription"),this._peerConnection===void 0?Promise.reject(new Error("Peer connection closed.")):this._peerConnection.setLocalDescription(e)}setRemoteSessionDescription(e){if(this.logger.debug("SessionDescriptionHandler.setRemoteSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));let t=e.sdp,r;switch(this._peerConnection.signalingState){case "stable":r="offer";break;case "have-local-offer":r="answer";break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return t?this._peerConnection.setRemoteDescription({sdp:t,type:r}):(this.logger.error("SessionDescriptionHandler.setRemoteSessionDescription failed - cannot set null sdp"),Promise.reject(new Error("SDP is undefined")))}setRemoteTrack(e){this.logger.debug("SessionDescriptionHandler.setRemoteTrack");let t=this._remoteMediaStream;t.getTrackById(e.id)?this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - have remote ${e.kind} track`):e.kind==="audio"?(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${e.kind}
11038 track`),t.getAudioTracks().forEach(r=>{r.stop(),t.removeTrack(r),o.dispatchRemoveTrackEvent(t,r);}),t.addTrack(e),o.dispatchAddTrackEvent(t,e)):e.kind==="video"&&(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${e.kind} track`),t.getVideoTracks().forEach(r=>{r.stop(),t.removeTrack(r),o.dispatchRemoveTrackEvent(t,r);}),t.addTrack(e),o.dispatchAddTrackEvent(t,e));}updateDirection(e){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case "stable":this.logger.debug("SessionDescriptionHandler.updateDirection - setting offer direction");{let t=r=>{switch(r){case "inactive":return e?.hold?"inactive":"recvonly";case "recvonly":return e?.hold?"inactive":"recvonly";case "sendonly":return e?.hold?"sendonly":"sendrecv";case "sendrecv":return e?.hold?"sendonly":"sendrecv";case "stopped":return "stopped";default:throw new Error("Should never happen")}};this._peerConnection.getTransceivers().forEach(r=>{if(r.direction){let s=t(r.direction);r.direction!==s&&(r.direction=s);}});}break;case "have-remote-offer":this.logger.debug("SessionDescriptionHandler.updateDirection - setting answer direction");{let t=(()=>{let s=this._peerConnection.remoteDescription;if(!s)throw new Error("Failed to read remote offer");let i=/a=sendrecv\r\n|a=sendonly\r\n|a=recvonly\r\n|a=inactive\r\n/.exec(s.sdp);if(i)switch(i[0]){case `a=inactive\r 11039`:return "inactive";case `a=recvonly\r 11040`:return "recvonly";case `a=sendonly\r 11041`:return "sendonly";case `a=sendrecv\r 11042`:return "sendrecv";default:throw new Error("Should never happen")}return "sendrecv"})(),r=(()=>{switch(t){case "inactive":return "inactive";case "recvonly":return "sendonly";case "sendonly":return e?.hold?"inactive":"recvonly";case "sendrecv":return e?.hold?"sendonly":"sendrecv";default:throw new Error("Should never happen")}})();this._peerConnection.getTransceivers().forEach(s=>{s.direction&&s.direction!=="stopped"&&s.direction!==r&&(s.direction=r);});}break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return Promise.resolve()}waitForIceGatheringComplete(e=false,t=0){return this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete"),this._peerConnection===void 0?Promise.reject("Peer connection closed."):!e&&this._peerConnection.iceGatheringState==="complete"?(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - already complete"),Promise.resolve()):(this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - rejecting prior waiting promise"),this.iceGatheringCompleteReject&&this.iceGatheringCompleteReject(new Error("Promise superseded.")),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0),this.iceGatheringCompletePromise=new Promise((r,s)=>{this.iceGatheringCompleteResolve=r,this.iceGatheringCompleteReject=s,t>0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout in "+t),this.iceGatheringCompleteTimeoutId=setTimeout(()=>{this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout"),this.iceGatheringComplete();},t));}),this.iceGatheringCompletePromise)}initPeerConnectionEventHandlers(){if(this.logger.debug("SessionDescriptionHandler.initPeerConnectionEventHandlers"),!this._peerConnection)throw new Error("Peer connection undefined.");let e=this._peerConnection;e.onconnectionstatechange=t=>{var r;let s=e.connectionState;this.logger.debug(`SessionDescriptionHandler.onconnectionstatechange ${s}`),!((r=this._peerConnectionDelegate)===null||r===void 0)&&r.onconnectionstatechange&&this._peerConnectionDelegate.onconnectionstatechange(t);},e.ondatachannel=t=>{var r;this.logger.debug("SessionDescriptionHandler.ondatachannel"),this._dataChannel=t.channel,this.onDataChannel&&this.onDataChannel(this._dataChannel),!((r=this._peerConnectionDelegate)===null||r===void 0)&&r.ondatachannel&&this._peerConnectionDelegate.ondatachannel
11042(t);},e.onicecandidate=t=>{var r;this.logger.debug("SessionDescriptionHandler.onicecandidate"),!((r=this._peerConnectionDelegate)===null||r===void 0)&&r.onicecandidate&&this._peerConnectionDelegate.onicecandidate(t);},e.onicecandidateerror=t=>{var r;this.logger.debug("SessionDescriptionHandler.onicecandidateerror"),!((r=this._peerConnectionDelegate)===null||r===void 0)&&r.onicecandidateerror&&this._peerConnectionDelegate.onicecandidateerror(t);},e.oniceconnectionstatechange=t=>{var r;let s=e.iceConnectionState;this.logger.debug(`SessionDescriptionHandler.oniceconnectionstatechange ${s}`),!((r=this._peerConnectionDelegate)===null||r===void 0)&&r.oniceconnectionstatechange&&this._peerConnectionDelegate.oniceconnectionstatechange(t);},e.onicegatheringstatechange=t=>{var r;let s=e.iceGatheringState;this.logger.debug(`SessionDescriptionHandler.onicegatheringstatechange ${s}`),s==="complete"&&this.iceGatheringComplete(),!((r=this._peerConnectionDelegate)===null||r===void 0)&&r.onicegatheringstatechange&&this._peerConnectionDelegate.onicegatheringstatechange(t);},e.onnegotiationneeded=t=>{var r;this.logger.debug("SessionDescriptionHandler.onnegotiationneeded"),!((r=this._peerConnectionDelegate)===null||r===void 0)&&r.onnegotiationneeded&&this._peerConnectionDelegate.onnegotiationneeded(t);},e.onsignalingstatechange=t=>{var r;let s=e.signalingState;this.logger.debug(`SessionDescriptionHandler.onsignalingstatechange ${s}`),!((r=this._peerConnectionDelegate)===null||r===void 0)&&r.onsignalingstatechange&&this._peerConnectionDelegate.onsignalingstatechange(t);},e.ontrack=t=>{var r;let s=t.track.kind,i=t.track.enabled?"enabled":"disabled";this.logger.debug(`SessionDescriptionHandler.ontrack ${s} ${i}`),this.setRemoteTrack(t.track),!((r=this._peerConnectionDelegate)===null||r===void 0)&&r.ontrack&&this._peerConnectionDelegate.ontrack(t);};}};function kt(o){return (e,t)=>{o===void 0&&(o=Ht());let s={iceGatheringTimeout:t?.iceGatheringTimeout!==void 0?t?.iceGatheringTimeout:5e3,peerConnectionConfiguration:Object.assign(Object.assign({},Pt()),t?.peerConnectionConfiguration)},i=e.userAgent.getLogger("sip.SessionDescriptionHandler");return new Y(i,o,s)}}var Ye=(()=>{class o{constructor(t,r){if(this._state=b.Disconnected,this.transitioningState=false,this._stateEventEmitter=new ne,this.logger=t,r){let n=r,a=n?.wsServers,d=n?.maxReconnectionAttempts;a!==void 0&&this.logger.warn('The transport option "wsServers" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),d!==void 0&&this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),a&&!r.server&&(typeof a=="string"&&(r.server=a),a instanceof Array&&(r.server=a[0]));}this.configuration=Object.assign(Object.assign({},o.defaultOptions),r);let s=this.configuration.server,i=A.parse(s,"absoluteURI");if(i===-1)throw this.logger.error(`Invalid WebSocket Server URL "${s}"`),new Error("Invalid WebSocket Server URL");if(!["wss","ws","udp"].includes(i.scheme))throw this.logger.error(`Invalid scheme in WebSocket Server URL "${s}"`),new Error("Invalid scheme in WebSocket Server URL");this._protocol=i.scheme.toUpperCase();}dispose(){return this.disconnect()}get protocol(){return this._protocol}get server(){return this.configuration.server}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get ws(){return this._ws}connect(){return this._connect()}disconnect(){return this._disconnect()}isConnected(){return this.state===b.Connected}send(t){return this._send(t)}_connect(){switch(this.logger.log(`Connecting ${this.server}`),this.state){case b.Connecting:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(b.Connecting));if(!this.connectPromise)throw new Error("Connect promise must be defined.");return this.connectPromise;case b.Connected:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(b.Connecting));if(this.connectPromise)throw new Error("Connect promise must not be defined.");return Promise.resolve();case b.Disconnecting:if(this.connectPromise)throw new Error("Connect promise must not be defined.");try{this.transitionState(b.Connecting);}catch(r){if(r instanceof pe)return Promise.reject(r);throw r}break;case b.Disconnected:if(this.connectPromise)throw new Error("Connect promise must not be defined.");try{this.transitionState(b.Connecting);}catch(r){if(r instanceof pe)return Promise.reject(r);throw r}break;default:throw new Error("Unknown state")}let t;try{t=new WebSocket(this.server,"sip"),t.binaryType="arraybuffer",t.addEventListener("close",r=>
11042this.onWebSocketClose(r,t)),t.addEventListener("error",r=>this.onWebSocketError(r,t)),t.addEventListener("open",r=>this.onWebSocketOpen(r,t)),t.addEventListener("message",r=>this.onWebSocketMessage(r,t)),this._ws=t;}catch(r){return this._ws=void 0,this.logger.error("WebSocket construction failed."),this.logger.error(r.toString()),new Promise((s,i)=>{this.connectResolve=s,this.connectReject=i,this.transitionState(b.Disconnected,r);})}return this.connectPromise=new Promise((r,s)=>{this.connectResolve=r,this.connectReject=s,this.connectTimeout=setTimeout(()=>{this.logger.warn("Connect timed out. Exceeded time set in configuration.connectionTimeout: "+this.configuration.connectionTimeout+"s."),t.close(1e3);},this.configuration.connectionTimeout*1e3);}),this.connectPromise}_disconnect(){switch(this.logger.log(`Disconnecting ${this.server}`),this.state){case b.Connecting:if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");try{this.transitionState(b.Disconnecting);}catch(r){if(r instanceof pe)return Promise.reject(r);throw r}break;case b.Connected:if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");try{this.transitionState(b.Disconnecting);}catch(r){if(r instanceof pe)return Promise.reject(r);throw r}break;case b.Disconnecting:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(b.Disconnecting));if(!this.disconnectPromise)throw new Error("Disconnect promise must be defined.");return this.disconnectPromise;case b.Disconnected:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(b.Disconnecting));if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");return Promise.resolve();default:throw new Error("Unknown state")}if(!this._ws)throw new Error("WebSocket must be defined.");let t=this._ws;return this.disconnectPromise=new Promise((r,s)=>{this.disconnectResolve=r,this.disconnectReject=s;try{t.close(1e3);}catch(i){throw this.logger.error("WebSocket close failed."),this.logger.error(i.toString()),i}}),this.disconnectPromise}_send(t){if(this.configuration.traceSip===true&&this.logger.log(`Sending WebSocket message: 11043 11044`+t+` 11045`),this._state!==b.Connected)return Promise.reject(new Error("Not connected."));if(!this._ws)throw new Error("WebSocket undefined.");try{this._ws.send(t);}catch(r){return r instanceof Error?Promise.reject(r):Promise.reject(new Error("WebSocket send failed."))}return Promise.resolve()}onWebSocketClose(t,r){if(r!==this._ws)return;let s=`WebSocket closed ${this.server} (code: ${t.code})`,i=this.disconnectPromise?void 0:new Error(s);i&&this.logger.warn("WebSocket closed unexpectedly"),this.logger.log(s),this._ws=void 0,this.transitionState(b.Disconnected,i);}onWebSocketError(t,r){r===this._ws&&this.logger.error("WebSocket error occurred.");}onWebSocketMessage(t,r){if(r!==this._ws)return;let s=t.data,i;if(/^(\r\n)+$/.test(s)){this.clearKeepAliveTimeout(),this.configuration.traceSip===true&&this.logger.log("Received WebSocket message with CRLF Keep Alive response");return}if(!s){this.logger.warn("Received empty message, discarding...");return}if(typeof s!="string"){try{i=new TextDecoder().decode(new Uint8Array(s));}catch(n){this.logger.error(n.toString()),this.logger.error("Received WebSocket binary message failed to be converted into string, message discarded");return}this.configuration.traceSip===true&&this.logger.log(`Received WebSocket binary message: 11046 11047`+i+` 11048`);}else i=s,this.configuration.traceSip===true&&this.logger.log(`Received WebSocket text message: 11049 11050`+i+` 11051`);if(this.state!==b.Connected){this.logger.warn("Received message while not connected, discarding...");return}if(this.onMessage)try{this.onMessage(i);}catch(n){throw this.logger.error(n.toString()),this.logger.error("Exception thrown by onMessage callback"),n}}onWebSocketOpen(t,r){r===this._ws&&this._state===b.Connecting&&(this.logger.log(`WebSocket opened ${this.server}`),this.transitionState(b.Connected));}transitionLoopDetectedError(t){let r="A state transition loop has been detected.";return r+=` An attempt to transition from ${this._state} to ${t} before the prior transition completed.`,r+=" Perhaps you are synchronously calling connect() or disconnect() from a callback or state change handler?",this.logger.error(r),new pe("Loop detected.")}transitionState(t,r){let s=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};if(this.transitioningState)throw this.transitionLoopDetectedError(t);switch(this.transitioningState=true,this._state){case b.Connecting:t!==b.Connected&&t!==b.Disconnecting&&t!==b.Disconnected&&s();break;case b.Connected:t!==b.Disconnecting&&t!==b.Disconnected&&s();break;case b.Disconnecting:t!==b.Connecting&&t!==b.Disconnected&&s();break;case b.Disconnected:t!==b.Connecting&&s();break;default:throw new Error("Unknown state.")}let i=this._state;this._state=t;let n=this.connectResolve,a=this.connectReject;i===b.Connecting&&(this.connectPromise=void 0,this.connectResolve=void 0,this.connectReject=void 0);let d=this.disconnectResolve,u=this.disconnectReject;if(i===b.Disconnecting&&(this.disconnectPromise=void 0,this.disconnectResolve=void 0,this.disconnectReject=void 0),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0),this.logger.log(`Transitioned from ${i} to ${this._state}`),this._stateEventEmitter.emit(this._state),t===b.Connected&&(this.startSendingKeepAlives(),this.onConnect))try{this.onConnect();}catch(h){throw this.logger.error(h.toString()),this.logger.error("Exception thrown by onConnect callback"),h}if(i===b.Connected&&(this.stopSendingKeepAlives(),this.onDisconnect))try{r?this.onDisconnect(r):this.onDisconnect();}catch(h){throw this.logger.error(h.toString()),this.logger.error("Exception thrown by onDisconnect callback"),h}if(i===b.Connecting){if(!n)throw new Error("Connect resolve undefined.");if(!a)throw new Error("Connect reject undefined.");t===b.Connected?n():a(r||new Error("Connect aborted."));}if(i===b.Disconnecting){if(!d)throw new Error("Disconnect resolve undefined.");if(!u)throw new Error("Disconnect reject undefined.");t===b.Disconnected?d():u(r||new Error("Disconnect aborted."));}this.transitioningState=false;}clearKeepAliveTimeout(){this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveDebounceTimeout=void 0;}sendKeepAlive(){return this.keepAliveDebounceTimeout?Promise.resolve():(this.keepAliveDebounceTimeout=setTimeout(()=>{this.clearKeepAliveTimeout();},this.configuration.keepAliveDebounce*1e3),this.send(`\r 11052\r 11053`))}startSendingKeepAlives(){let t=r=>{let s=r*.8;return 1e3*(Math.random()*(r-s)+s)};this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(()=>{this.sendKeepAlive(),this.startSendingKeepAlives();},t(this.configuration.keepAliveInterval)));}stopSendingKeepAlives(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0;}}
11053return o.defaultOptions={server:"",connectionTimeout:5,keepAliveInterval:0,keepAliveDebounce:10,traceSip:true},o})();var J=class o{constructor(e={}){if(this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this._state=q.Stopped,this._stateEventEmitter=new ne,this.delegate=e.delegate,this.options=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o.defaultOptions()),{sipjsId:he(5)}),{uri:new G$1("sip","anonymous."+he(6),"anonymous.invalid")}),{viaHost:he(12)+".invalid"}),o.stripUndefinedProperties(e)),this.options.hackIpInContact)if(typeof this.options.hackIpInContact=="boolean"&&this.options.hackIpInContact){let s=Math.floor(Math.random()*254+1);this.options.viaHost="192.0.2."+s;}else this.options.hackIpInContact&&(this.options.viaHost=this.options.hackIpInContact);switch(this.loggerFactory=new nt,this.logger=this.loggerFactory.getLogger("sip.UserAgent"),this.loggerFactory.builtinEnabled=this.options.logBuiltinEnabled,this.loggerFactory.connector=this.options.logConnector,this.options.logLevel){case "error":this.loggerFactory.level=O$1.error;break;case "warn":this.loggerFactory.level=O$1.warn;break;case "log":this.loggerFactory.level=O$1.log;break;case "debug":this.loggerFactory.level=O$1.debug;break;}if(this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(t=>{let r=this.options[t];switch(t){case "uri":case "sessionDescriptionHandlerFactory":this.logger.log("\xB7 "+t+": "+r);break;case "authorizationPassword":this.logger.log("\xB7 "+t+": NOT SHOWN");break;case "transportConstructor":this.logger.log("\xB7 "+t+": "+r.name);break;default:this.logger.log("\xB7 "+t+": "+JSON.stringify(r));}})),this.options.transportOptions){let t=this.options.transportOptions,r=t.maxReconnectionAttempts,s=t.reconnectionTimeout;r!==void 0&&this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),s!==void 0&&this.logger.warn('The transport option "reconnectionTimeout" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),e.reconnectionDelay===void 0&&s!==void 0&&(this.options.reconnectionDelay=s),e.reconnectionAttempts===void 0&&r!==void 0&&(this.options.reconnectionAttempts=r);}if(e.reconnectionDelay!==void 0&&this.logger.warn('The user agent option "reconnectionDelay" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),e.reconnectionAttempts!==void 0&&this.logger.warn('The user agent option "reconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),this._transport=new this.options.transportConstructor(this.getLogger("sip.Transport"),this.options.transportOptions),this.initTransportCallbacks(),this._contact=this.initContact(),this._instanceId=this.options.instanceId?this.options.instanceId:o.newUUID(),A.parse(this._instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");this._userAgentCore=this.initCore();}static makeURI(e){return A.URIParse(e)}static defaultOptions(){return {allowLegacyNotifications:false,authorizationHa1:"",authorizationPassword:"",authorizationUsername:"",delegate:{},contactName:"",contactParams:{transport:"ws"},displayName:"",forceRport:false,gracefulShutdown:true,hackAllowUnregisteredOptionTags:false,hackIpInContact:false,hackViaTcp:false,instanceId:"",instanceIdAlwaysAdded:false,logBuiltinEnabled:true,logConfiguration:true,logConnector:()=>{},logLevel:"log",noAnswerTimeout:60,preloadedRouteSet:[],reconnectionAttempts:0,reconnectionDelay:4,sendInitialProvisionalResponse:true,sessionDescriptionHandlerFactory:kt(),sessionDescriptionHandlerFactoryOptions:{},sipExtension100rel:K.Unsupported,sipExtensionReplaces:K.Unsupported,sipExtensionExtraSupported:[],sipjsId:"",transportConstructor:Ye,transportOptions:{},uri:new G$1("sip","anonymous","anonymous.invalid"),userAgentString:"SIP.js/"+Jt,viaHost:""}}static newUUID(){return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.floor(Math.random()*16);return (t==="x"?r:r%4+8).toString(16)})}static stripUndefinedProperties(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}get configuration(){return this.options}get contact(){return this._contact}get instanceId(){return this._instanceId}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get transport(){return this._transport}get userAgentCore(){return this._userAgentCore}getLogger(e,t){return this.loggerFactory.getLogger(e,t)}getLoggerFactory(){return this.loggerFactory}isConnected(){return this.transport.isConnected()}reconnect(){return this.state===q.Stopped?Promise.reject(new Error("User agent stopped.")):Promise.resolve().then(()=>this.transport.connect())}start(){return this.state===q.Started?(this.logger.warn("User agent already started"),Promise.resolve()):(this.logger.log(`Starting ${this.configuration.uri}`),this.transitionState(q.Started),this.transport.connect())}stop(){return L$7(this,null,function*(){if(this.state===q.Stopped)return this.logger.warn("User agent already stopped"),Promise.resolve();if(this.logger.log(`Stopping ${this.configuration.uri}`),!this.options.gracefulShutdown)return this.logger.log("Dispose of transport"),this.transport.dis
11053pose().catch(a=>{throw this.logger.error(a.message),a}),this.logger.log("Dispose of core"),this.userAgentCore.dispose(),this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this.transitionState(q.Stopped),Promise.resolve();let e=Object.assign({},this._publishers),t=Object.assign({},this._registerers),r=Object.assign({},this._sessions),s=Object.assign({},this._subscriptions),i=this.transport,n=this.userAgentCore;this.logger.log("Dispose of registerers");for(let a in t)t[a]&&(yield t[a].dispose().catch(d=>{throw this.logger.error(d.message),delete this._registerers[a],d}));this.logger.log("Dispose of sessions");for(let a in r)r[a]&&(yield r[a].dispose().catch(d=>{throw this.logger.error(d.message),delete this._sessions[a],d}));this.logger.log("Dispose of subscriptions");for(let a in s)s[a]&&(yield s[a].dispose().catch(d=>{throw this.logger.error(d.message),delete this._subscriptions[a],d}));this.logger.log("Dispose of publishers");for(let a in e)e[a]&&(yield e[a].dispose().catch(d=>{throw this.logger.error(d.message),delete this._publishers[a],d}));this.logger.log("Dispose of transport"),yield i.dispose().catch(a=>{throw this.logger.error(a.message),a}),this.logger.log("Dispose of core"),n.dispose(),this.transitionState(q.Stopped);})}_makeInviter(e,t){return new Ee(this,e,t)}attemptReconnection(e=1){let t=this.options.reconnectionAttempts,r=this.options.reconnectionDelay;if(e>t){this.logger.log("Maximum reconnection attempts reached");return}this.logger.log(`Reconnection attempt ${e} of ${t} - trying`),setTimeout(()=>{this.reconnect().then(()=>{this.logger.log(`Reconnection attempt ${e} of ${t} - succeeded`);}).catch(s=>{this.logger.error(s.message),this.logger.log(`Reconnection attempt ${e} of ${t} - failed`),this.attemptReconnection(++e);});},e===1?0:r*1e3);}initContact(){let e=this.options.contactName!==""?this.options.contactName:he(8),t=this.options.contactParams;return {pubGruu:void 0,tempGruu:void 0,uri:new G$1("sip",e,this.options.viaHost,void 0,t),toString:(s={})=>{let i=s.anonymous||false,n=s.outbound||false,a=s.register||false,d="<";return i?d+=this.contact.tempGruu||`sip:[email protected];transport=${t.transport?t.transport:"ws"}`:a?d+=this.contact.uri:d+=this.contact.pubGruu||this.contact.uri,n&&(d+=";ob"),d+=">",this.options.instanceIdAlwaysAdded&&(d+=';+sip.instance="<urn:uuid:'+this._instanceId+'>"'),d}}}initCore(){let e=[];e.push("outbound"),this.options.sipExtension100rel===K.Supported&&e.push("100rel"),this.options.sipExtensionReplaces===K.Supported&&e.push("replaces"),this.options.sipExtensionExtraSupported&&e.push(...this.options.sipExtensionExtraSupported),this.options.hackAllowUnregisteredOptionTags||(e=e.filter(i=>er[i])),e=Array.from(new Set(e));let t=e.slice();(this.contact.pubGruu||this.contact.tempGruu)&&t.push("gruu");let r={aor:this.options.uri,contact:this.contact,displayName:this.options.displayName,loggerFactory:this.loggerFactory,hackViaTcp:this.options.hackViaTcp,routeSet:this.options.preloadedRouteSet,supportedOptionTags:e,supportedOptionTagsResponse:t,sipjsId:this.options.sipjsId,userAgentHeaderFieldValue:this.options.userAgentString,viaForceRport:this.options.forceRport,viaHost:this.options.viaHost,authenticationFactory:()=>{let i=this.options.authorizationUsername?this.options.authorizationUsername:this.options.uri.user,n=this.options.authorizationPassword?this.options.authorizationPassword:void 0,a=this.options.authorizationHa1?this.options.authorizationHa1:void 0;return new it(this.getLoggerFactory(),a,i,n)},transportAccessor:()=>this.transport},s={onInvite:i=>{var n;let a=new ge(this,i);if(i.delegate={onCancel:d=>{a._onCancel(d);},onTransportError:d=>{this.logger.error("A transport error has occurred while handling an incoming INVITE request.");}},i.trying(),this.options.sipExtensionReplaces!==K.Unsupported){let u=i.message.parseHeader("replaces");if(u){let h=u.call_id;if(typeof h!="string")throw new Error("Type of call id is not string");let v=u.replaces_to_tag;if(typeof v!="string")throw new Error("Type of to tag is not string");let E=u.replaces_from_tag;
11053if(typeof E!="string")throw new Error("type of from tag is not string");let $=h+v+E,k=this.userAgentCore.dialogs.get($);if(!k){a.reject({statusCode:481});return}if(!k.early&&u.early_only===true){a.reject({statusCode:486});return}let I=this._sessions[h+E]||this._sessions[h+v]||void 0;if(!I)throw new Error("Session does not exist.");a._replacee=I;}}if(!((n=this.delegate)===null||n===void 0)&&n.onInvite){if(a.autoSendAnInitialProvisionalResponse){a.progress().then(()=>{var d;if(((d=this.delegate)===null||d===void 0?void 0:d.onInvite)===void 0)throw new Error("onInvite undefined.");this.delegate.onInvite(a);});return}this.delegate.onInvite(a);return}a.reject({statusCode:486});},onMessage:i=>{if(this.delegate&&this.delegate.onMessage){let n=new ke(i);this.delegate.onMessage(n);}else i.accept();},onNotify:i=>{if(this.delegate&&this.delegate.onNotify){let n=new ye(i);this.delegate.onNotify(n);}else this.options.allowLegacyNotifications?i.accept():i.reject({statusCode:481});},onRefer:i=>{this.logger.warn("Received an out of dialog REFER request"),this.delegate&&this.delegate.onReferRequest?this.delegate.onReferRequest(i):i.reject({statusCode:405});},onRegister:i=>{this.logger.warn("Received an out of dialog REGISTER request"),this.delegate&&this.delegate.onRegisterRequest?this.delegate.onRegisterRequest(i):i.reject({statusCode:405});},onSubscribe:i=>{this.logger.warn("Received an out of dialog SUBSCRIBE request"),this.delegate&&this.delegate.onSubscribeRequest?this.delegate.onSubscribeRequest(i):i.reject({statusCode:405});}};return new Ct(r,s)}initTransportCallbacks(){this.transport.onConnect=()=>this.onTransportConnect(),this.transport.onDisconnect=e=>this.onTransportDisconnect(e),this.transport.onMessage=e=>this.onTransportMessage(e);}onTransportConnect(){this.state!==q.Stopped&&this.delegate&&this.delegate.onConnect&&this.delegate.onConnect();}onTransportDisconnect(e){this.state!==q.Stopped&&(this.delegate&&this.delegate.onDisconnect&&this.delegate.onDisconnect(e),e&&this.options.reconnectionAttempts>0&&this.attemptReconnection());}onTransportMessage(e){let t=We.parseMessage(e,this.getLogger("sip.Parser"));if(!t){this.logger.warn("Failed to parse incoming message. Dropping.");return}if(this.state===q.Stopped&&t instanceof re){this.logger.warn(`Received ${t.method} request while stopped. Dropping.`);return}let r=()=>{let s=["from","to","call_id","cseq","via"];for(let i of s)if(!t.hasHeader(i))return this.logger.warn(`Missing mandatory header field : ${i}.`),false;return true};if(t instanceof re){if(!r()){this.logger.warn("Request missing mandatory header field. Dropping.");return}if(!t.toTag&&t.callId.substr(0,5)===this.options.sipjsId){this.userAgentCore.replyStateless(t,{statusCode:482});return}let s=ve(t.body),i=t.getHeader("content-length");if(i&&s<Number(i)){this.userAgentCore.replyStateless(t,{statusCode:400});return}}if(t instanceof V){if(!r()){this.logger.warn("Response missing mandatory header field. Dropping.");return}if(t.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response. Dropping.");return}if(t.via.host!==this.options.viaHost||t.via.port!==void 0){this.logger.warn("Via sent-by in the response does not match UA Via host value. Dropping.");return}let s=ve(t.body),i=t.getHeader("content-length");if(i&&s<Number(i)){this.logger.warn("Message body length is lower than the value in Content-Length header field. Dropping.");return}}if(t instanceof re){this.userAgentCore.receiveIncomingRequestFromTransport(t);return}if(t instanceof V){this.userAgentCore.receiveIncomingResponseFromTransport(t);return}throw new Error("Invalid message type.")}transitionState(e,t){let r=()=>{throw new Error(`Invalid state transition from ${this._state} to ${e}`)};switch(this._state){case q.Started:e!==q.Stopped&&r();break;case q.Stopped:e!==q.Started&&r();break;default:throw new Error("Unknown state.")}this.logger.log(`Transitioned from ${this._state} to ${e}`),this._state=e,this._stateEventEmitter.emit(this._state);}};var Rt={};J$5(Rt,{SessionDescriptionHandler:()=>Y,SessionManager:()=>Ze,SimpleUser:()=>qt,Transport:()=>Ye,WebAudioSessionDescriptionHandler:()=>ze,addMidLines:()=>Er,cleanJitsiSdpImageattr:()=>wr,defaultManagedSessionFactory:()=>Mt,defaultMediaStreamFactory:()=>Ht,defaultPeerConnectionConfiguration:()=>Pt,defaultSessionDescriptionHandlerFactory:()=>kt,holdModifier:()=>br,startLocalConference:()=>Sr,stripG722:()=>vr,stripRtpPayload:()=>Tr,stripTcpCandidates:()=>pr,stripTelephoneEvent:()=>mr,stripVideo:()=>xr});var _t=(o,e)=>{let t=[],r=o.split(/\r\n/),s;for(let i=0;i<r.length;){let n=r[i];if(/^m=(?:audio|video)/.test(n))s={index:i,stripped:[]},t.push(s);else if(s){let a=/^a=rtpmap:(\d+) ([^/]+)\//.exec(n);if(a&&e===a[2]){r.splice(i,1),s.stripped.push(a[1]);continue}}i++;}for(let i of t){let n=r[i.index].split(" ");for(let a=3;a<n.length;){if(i.stripped.indexOf(n[a])!==-1){n.splice(a,1);continue}a++;}r[i.index]=n.join(" ");}return r.join(`\r 11054`)},fr=(o,e)=>{let t=new RegExp("m="+e+".*$","gm"),r=new RegExp("^a=group:.*$","gm");if(t.test(o)){let s;o=o.split(/^m=/gm).filter(n=>{if(n.substr(0,e.length)===e){if(s=n.match(/^a=mid:.*$/gm),s){let a=s[0].match(/:.+$/g);a&&(s=a[0].substr(1));}return false}return true}).join("m=");let i=o.match(r);if(i&&i.length===1){let n=i[0],a=new RegExp(" *"+s+"[^ ]*","g");n=n.replace(a,""),o=o.split(r).join(n);}}return o};function pr(o){return o.sdp=(o.sdp||"").replace(/^a=candidate:\d+ \d+ tcp .*?\r\n/img,""),Promise.resolve(o)}function mr(o){return o.sdp=_t(o.sdp||"","telephone-event"),Promise.resolve(o)}function wr(o){return o.sdp=(o.sdp||"").replace(/^(a=imageattr:.*?)(x|y)=\[0-/gm,"$1$2=[1:"),Promise.resolve(o)}function vr(o){return o.sdp=_t(o.sdp||"","G722"),Promise.resolve(o)}function Tr(o){return e=>(e.sdp=_t(e.sdp||"",o),Promise.resolve(e))}function xr(o){return o.sdp=fr(o.sdp||"","video"),Promise.resolve(o)}function Er(o){let e=o.sdp||"";if(e.search(/^a=mid.*$/gm)===-1){let t=e.match(/^m=.*$/gm),r=e.split(/^m=.*$/gm);t&&t.forEach((s,i)=>{t[i]=s+` 11055a=mid:`+i;}),r.forEach((s,i)=>{t&&t[i]&&(r[i]=s+t[i]);}),e=r.join(""),o.sdp=e;}return Promise.resolve(o)}function br(o){if(!o.sdp||!o.type)throw new Error("Invalid SDP");let e=o.sdp,t=o.type;return e&&(/a=(sendrecv|sendonly|recvonly|inactive)/.test(e)?(e=e.replace(/a=sendrecv\r\n/g,`a=sendonly\r 11056`),e=e.replace(/a=recvonly\r\n/g,`a=inactive\r 11057`)):e=e.replace(/(m=[^\r]*\r\n)/g,`$1a=sendonly\r 11058`)),Promise.resolve({sdp:e,type:t})}function Sr(o){if(o.length<2)throw new Error("Start local conference requires at leaast 2 sessions.");(t=>t.map((r,s)=>t.slice(s+1).map(i=>[r,i])).reduce((r,s)=>r.concat(s),[]))(o.map(t=>
11058t.sessionDescriptionHandler)).forEach(([t,r])=>{if(!(t instanceof ze&&r instanceof ze))throw new Error("Session description handler not instance of SessionManagerSessionDescriptionHandler");t.joinWith(r);});}var ze=class o extends Y{constructor(e,t,r){super(e,t,r),o.audioContext||(o.audioContext=new AudioContext);}enableSenderTracks(e){let t=this.localMediaStreamReal;if(t===void 0)throw new Error("Stream undefined.");t.getAudioTracks().forEach(r=>{r.enabled=e;});}initLocalMediaStream(e){if(!o.audioContext)throw new Error("SessionManagerSessionDescriptionHandler.audioContext undefined.");return this.localMediaStreamReal=e,this.localMediaStreamSourceNode=o.audioContext.createMediaStreamSource(e),this.localMediaStreamDestinationNode=o.audioContext.createMediaStreamDestination(),this.localMediaStreamSourceNode.connect(this.localMediaStreamDestinationNode),this.localMediaStreamDestinationNode.stream}joinWith(e){if(!o.audioContext)throw new Error("SessionManagerSessionDescriptionHandler.audioContext undefined.");let t=o.audioContext.createMediaStreamSource(this.remoteMediaStream),r=e.localMediaStreamDestinationNode;if(r===void 0)throw new Error("Peer outbound (local) stream local media stream destination is undefined.");t.connect(r);let s=o.audioContext.createMediaStreamSource(e.remoteMediaStream),i=this.localMediaStreamDestinationNode;if(i===void 0)throw new Error("Our outbound (local) stream local media stream destination is undefined.");s.connect(i);}setRealLocalMediaStream(e){if(!o.audioContext)throw new Error("SessionManagerSessionDescriptionHandler.audioContext undefined.");if(!this.localMediaStreamReal){this.initLocalMediaStream(e);return}if(!this.localMediaStreamDestinationNode||!this.localMediaStreamSourceNode||!this.localMediaStreamReal)throw new Error("Local media stream undefined.");this.localMediaStreamReal=e,this.localMediaStreamSourceNode.disconnect(this.localMediaStreamDestinationNode),this.localMediaStreamSourceNode=o.audioContext.createMediaStreamSource(e),this.localMediaStreamSourceNode.connect(this.localMediaStreamDestinationNode);}};function Mt(){return (o,e)=>({session:e,held:false,muted:false})}var Ze=class o{constructor(e,t={}){this.managedSessions=[],this.attemptingReconnection=false,this.optionsPingFailure=false,this.optionsPingRunning=false,this.shouldBeConnected=false,this.shouldBeRegistered=false,this.delegate=t.delegate,this.options=Object.assign({aor:"",autoStop:true,delegate:{},iceStopWaitingOnServerReflexive:false,managedSessionFactory:Mt(),maxSimultaneousSessions:2,media:{},optionsPingInterval:-1,optionsPingRequestURI:"",reconnectionAttempts:3,reconnectionDelay:4,registrationRetry:false,registrationRetryInterval:3,registerGuard:null,registererOptions:{},registererRegisterOptions:{},sendDTMFUsingSessionDescriptionHandler:false,userAgentOptions:{}},o.stripUndefinedProperties(t));let r=Object.assign({},t.userAgentOptions);if(r.transportConstructor||(r.transportConstructor=Ye),r.transportOptions||(r.transportOptions={server:e}),!r.uri&&t.aor){let s=J.makeURI(t.aor);if(!s)throw new Error(`Failed to create valid URI from ${t.aor}`);r.uri=s;}if(this.userAgent=new J(r),this.userAgent.delegate={onConnect:()=>{this.logger.log("Connected"),this.delegate&&this.delegate.onServerConnect&&this.delegate.onServerConnect(),this.shouldBeRegistered&&this.register(),this.options.optionsPingInterval>0&&this.optionsPingStart();},onDisconnect:s=>L$7(this,null,function*(){this.logger.log("Disconnected");let i=false;this.options.optionsPingInterval>0&&(i=this.optionsPingFailure,this.optionsPingFailure=false,this.optionsPingStop()),this.delegate&&this.delegate.onServerDisconnect&&this.delegate.onServerDisconnect(s),(s||i)&&(this.registerer&&(this.logger.log("Disposing of registerer..."),this.registerer.dispose().catch(n=>{this.logger.debug("Error occurred disposing of registerer after connection with server was lost."),this.logger.debug(n.toString());}),this.registerer=void 0),this.managedSessions.slice().map(n=>n.session).forEach(n=>L$7(this,null,function*(){this.logger.log("Disposing of session..."),n.dispose().catch(a=>{this.logger.debug("Error occurred disposing of a session after connection with server was lost."),this.logger.debug(a.toString());});})),this.shouldBeConnected&&this.attemptReconnection());}),onInvite:s=>{this.logger.log(`[${s.id}] Received INVITE`);let i=this.options.maxSimultaneousSessions;
11058if(i!==0&&this.managedSessions.length>i){this.logger.warn(`[${s.id}] Session already in progress, rejecting INVITE...`),s.reject().then(()=>{this.logger.log(`[${s.id}] Rejected INVITE`);}).catch(a=>{this.logger.error(`[${s.id}] Failed to reject INVITE`),this.logger.error(a.toString());});return}let n={sessionDescriptionHandlerOptions:{constraints:this.constraints}};this.initSession(s,n),this.delegate&&this.delegate.onCallReceived?this.delegate.onCallReceived(s):(this.logger.warn(`[${s.id}] No handler available, rejecting INVITE...`),s.reject().then(()=>{this.logger.log(`[${s.id}] Rejected INVITE`);}).catch(a=>{this.logger.error(`[${s.id}] Failed to reject INVITE`),this.logger.error(a.toString());}));},onMessage:s=>{s.accept().then(()=>{this.delegate&&this.delegate.onMessageReceived&&this.delegate.onMessageReceived(s);});},onNotify:s=>{s.accept().then(()=>{this.delegate&&this.delegate.onNotificationReceived&&this.delegate.onNotificationReceived(s);});}},this.registererOptions=Object.assign({},t.registererOptions),this.registererRegisterOptions=Object.assign({},t.registererRegisterOptions),this.options.registrationRetry){this.registererRegisterOptions.requestDelegate=this.registererRegisterOptions.requestDelegate||{};let s=this.registererRegisterOptions.requestDelegate.onReject;this.registererRegisterOptions.requestDelegate.onReject=i=>{s&&s(i),this.attemptRegistration();};}this.logger=this.userAgent.getLogger("sip.SessionManager"),window.addEventListener("online",()=>{this.logger.log("Online"),this.shouldBeConnected&&this.connect();}),this.options.autoStop&&window.addEventListener("beforeunload",()=>L$7(this,null,function*(){this.shouldBeConnected=false,this.shouldBeRegistered=false,this.userAgent.state!==q.Stopped&&(yield this.userAgent.stop());}));}static stripUndefinedProperties(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}getLocalMediaStream(e){let t=e.sessionDescriptionHandler;if(t){if(!(t instanceof Y))throw new Error("Session description handler not instance of web SessionDescriptionHandler");return t.localMediaStream}}getRemoteMediaStream(e){let t=e.sessionDescriptionHandler;if(t){if(!(t instanceof Y))throw new Error("Session description handler not instance of web SessionDescriptionHandler");return t.remoteMediaStream}}getLocalAudioTrack(e){var t;return (t=this.getLocalMediaStream(e))===null||t===void 0?void 0:t.getTracks().find(r=>r.kind==="audio")}getLocalVideoTrack(e){var t;return (t=this.getLocalMediaStream(e))===null||t===void 0?void 0:t.getTracks().find(r=>r.kind==="video")}getRemoteAudioTrack(e){var t;return (t=this.getRemoteMediaStream(e))===null||t===void 0?void 0:t.getTracks().find(r=>r.kind==="audio")}getRemoteVideoTrack(e){var t;return (t=this.getRemoteMediaStream(e))===null||t===void 0?void 0:t.getTracks().find(r=>r.kind==="video")}connect(){return L$7(this,null,function*(){return this.logger.log("Connecting UserAgent..."),this.shouldBeConnected=true,this.userAgent.state!==q.Started?this.userAgent.start():this.userAgent.reconnect()})}disconnect(){return L$7(this,null,function*(){return this.logger.log("Disconnecting UserAgent..."),this.userAgent.state===q.Stopped?Promise.resolve():(this.shouldBeConnected=false,this.shouldBeRegistered=false,this.registerer=void 0,this.userAgent.stop())})}isConnected(){return this.userAgent.isConnected()}register(e){return L$7(this,null,function*(){return this.logger.log("Registering UserAgent..."),this.shouldBeRegistered=true,e!==void 0&&(this.registererRegisterOptions=Object.assign({},e)),this.registerer||(this.registerer=new tr(this.userAgent,this.registererOptions),this.registerer.stateChange.addListener(t=>{switch(t){case R.Initial:break;case R.Registered:this.delegate&&this.delegate.onRegistered&&this.delegate.onRegistered();break;case R.Unregistered:this.delegate&&this.delegate.onUnregistered&&this.delegate.onUnregistered(),this.shouldBeRegistered&&this.attemptRegistration();break;case R.Terminated:break;default:throw new Error("Unknown registerer state.")}})),this.attemptRegistration(true)})}unregister(e){return L$7(this,null,function*(){return this.logger.log("Unregistering UserAgent..."),this.shouldBeRegistered=false,this.registerer?this.registerer.unregister(e).then(()=>{}):(this.logger.warn("No registerer to unregister."),Promise.resolve())})}call(e,t,r){return L$7(this,null,function*(){this.logger.log("Beginning Session...");let s=this.options.maxSimultaneousSessions;
11058if(s!==0&&this.managedSessions.length>s)return Promise.reject(new Error("Maximum number of sessions already exists."));let i=J.makeURI(e);if(!i)return Promise.reject(new Error(`Failed to create a valid URI from "${e}"`));if(t||(t={}),t.sessionDescriptionHandlerOptions||(t.sessionDescriptionHandlerOptions={}),t.sessionDescriptionHandlerOptions.constraints||(t.sessionDescriptionHandlerOptions.constraints=this.constraints),t.earlyMedia){r=r||{},r.requestDelegate=r.requestDelegate||{};let a=r.requestDelegate.onProgress;r.requestDelegate.onProgress=d=>{d.message.statusCode===183&&this.setupRemoteMedia(n),a&&a(d);};}this.options.iceStopWaitingOnServerReflexive&&(t.delegate=t.delegate||{},t.delegate.onSessionDescriptionHandler=a=>{if(!(a instanceof Y))throw new Error("Session description handler not instance of SessionDescriptionHandler");a.peerConnectionDelegate={onicecandidate:d=>{var u;((u=d.candidate)===null||u===void 0?void 0:u.type)==="srflx"&&(this.logger.log(`[${n.id}] Found srflx ICE candidate, stop waiting...`),a.iceGatheringComplete());}};});let n=new Ee(this.userAgent,i,t);return this.sendInvite(n,t,r).then(()=>n)})}hangup(e){return L$7(this,null,function*(){return this.logger.log(`[${e.id}] Hangup...`),this.sessionExists(e)?this.terminate(e):Promise.reject(new Error("Session does not exist."))})}answer(e,t){return L$7(this,null,function*(){return this.logger.log(`[${e.id}] Accepting Invitation...`),this.sessionExists(e)?e instanceof ge?(t||(t={}),t.sessionDescriptionHandlerOptions||(t.sessionDescriptionHandlerOptions={}),t.sessionDescriptionHandlerOptions.constraints||(t.sessionDescriptionHandlerOptions.constraints=this.constraints),e.accept(t)):Promise.reject(new Error("Session not instance of Invitation.")):Promise.reject(new Error("Session does not exist."))})}decline(e){return L$7(this,null,function*(){return this.logger.log(`[${e.id}] Rejecting Invitation...`),this.sessionExists(e)?e instanceof ge?e.reject():Promise.reject(new Error("Session not instance of Invitation.")):Promise.reject(new Error("Session does not exist."))})}hold(e){return L$7(this,null,function*(){return this.logger.log(`[${e.id}] Holding session...`),this.setHold(e,true)})}unhold(e){return L$7(this,null,function*(){return this.logger.log(`[${e.id}] Unholding session...`),this.setHold(e,false)})}isHeld(e){let t=this.sessionManaged(e);return t?t.held:false}mute(e){this.logger.log(`[${e.id}] Disabling media tracks...`),this.setMute(e,true);}unmute(e){this.logger.log(`[${e.id}] Enabling media tracks...`),this.setMute(e,false);}isMuted(e){let t=this.sessionManaged(e);return t?t.muted:false}sendDTMF(e,t){return L$7(this,null,function*(){if(this.logger.log(`[${e.id}] Sending DTMF...`),!/^[0-9A-D#*,]$/.exec(t))return Promise.reject(new Error("Invalid DTMF tone."));if(!this.sessionExists(e))return Promise.reject(new Error("Session does not exist."));if(this.logger.log(`[${e.id}] Sending DTMF tone: ${t}`),this.options.sendDTMFUsingSessionDescriptionHandler)return e.sessionDescriptionHandler?e.sessionDescriptionHandler.sendDtmf(t)?Promise.resolve():Promise.reject(new Error("Failed to send DTMF")):Promise.reject(new Error("Session desciption handler undefined."));{let n={body:{contentDisposition:"render",contentType:"application/dtmf-relay",content:"Signal="+t+`\r 11059Duration=`+2e3}};return e.info({requestOptions:n}).then(()=>{})}})}transfer(e,t,r){return L$7(this,null,function*(){if(this.logger.log(`[${e.id}] Referring session...`),t instanceof ue)return e.refer(t,r).then(()=>{});let s=J.makeURI(t);return s?e.refer(s,r).then(()=>{}):Promise.reject(new Error(`Failed to create a valid URI from "${t}"`))})}message(e,t){return L$7(this,null,function*(){this.logger.log("Sending message...");let r=J.makeURI(e);return r?new st(this.userAgent,r,t).message():Promise.reject(new Error(`Failed to create a valid URI from "${e}"`))})}get constraints(){let e={audio:true,video:false};return this.options.media.constraints&&(e=Object.assign({},this.options.media.constraints)),e}attemptReconnection(e=1){let t=this.options.reconnectionAttempts,r=this.options.reconnectionDelay;if(!this.shouldBeConnected){this.logger.log("Should not be connected currently");return}if(this.attemptingReconnection&&this.logger.log("Reconnection attempt already in progress"),e>t){this.logger.log("Reconnection maximum attempts reached");return}e===1?this.logger.log(`Reconnection attempt ${e} of ${t} - trying`):this.logger.log(`Reconnection attempt ${e} of ${t} - trying in ${r} seconds`),this.attemptingReconnection=true,setTimeout(()=>{if(!this.shouldBeConnected){this.logger.log(`Reconnection attempt ${e} of ${t} - aborted`),this.attemptingReconnection=false;return}this.userAgent.reconnect().then(()=>{this.logger.log(`Reconnection attempt ${e} of ${t} - succeeded`),this.attemptingReconnection=false;}).catch(s=>{this.logger.log(`Reconnection attempt ${e} of ${t} - failed`),this.logger.error(s.message),this.attemptingReconnection=false,this.attemptReconnection(++e);});},e===1?0:r*1e3);}attemptRegistration(e=false){if(this.logger.log(`Registration attempt ${e?"without delay":""}`),!this.shouldBeRegistered)return this.logger.log("Should not be registered currently"),Promise.resolve();if(this.registrationAttemptTimeout!==void 0)return this.logger.log("Registration attempt already in progress"),Promise.resolve();let t=()=>
11059this.registerer?this.isConnected()?this.userAgent.state===q.Stopped?(this.logger.log("User agent stopped"),Promise.resolve()):this.options.registerGuard?this.options.registerGuard().catch(s=>{throw this.logger.log("Register guard rejected will making registration attempt"),s}).then(s=>s||!this.registerer?Promise.resolve():this.registerer.register(this.registererRegisterOptions).then(()=>{})):this.registerer.register(this.registererRegisterOptions).then(()=>{}):(this.logger.log("User agent not connected"),Promise.resolve()):(this.logger.log("Registerer undefined"),Promise.resolve()),r=s=>{let i=s*2;return 1e3*(Math.random()*(i-s)+s)};return new Promise((s,i)=>{this.registrationAttemptTimeout=setTimeout(()=>{t().then(()=>{this.registrationAttemptTimeout=void 0,s();}).catch(n=>{this.registrationAttemptTimeout=void 0,n instanceof de?s():i(n);});},e?0:r(this.options.registrationRetryInterval));})}cleanupMedia(e){let t=this.sessionManaged(e);if(!t)throw new Error("Managed session does not exist.");t.mediaLocal&&t.mediaLocal.video&&(t.mediaLocal.video.srcObject=null,t.mediaLocal.video.pause()),t.mediaRemote&&(t.mediaRemote.audio&&(t.mediaRemote.audio.srcObject=null,t.mediaRemote.audio.pause()),t.mediaRemote.video&&(t.mediaRemote.video.srcObject=null,t.mediaRemote.video.pause()));}enableReceiverTracks(e,t){if(!this.sessionExists(e))throw new Error("Session does not exist.");let r=e.sessionDescriptionHandler;if(!(r instanceof Y))throw new Error("Session's session description handler not instance of SessionDescriptionHandler.");r.enableReceiverTracks(t);}enableSenderTracks(e,t){if(!this.sessionExists(e))throw new Error("Session does not exist.");let r=e.sessionDescriptionHandler;if(!(r instanceof Y))throw new Error("Session's session description handler not instance of SessionDescriptionHandler.");r.enableSenderTracks(t);}initSession(e,t){this.sessionAdd(e),this.delegate&&this.delegate.onCallCreated&&this.delegate.onCallCreated(e),e.stateChange.addListener(r=>{switch(this.logger.log(`[${e.id}] Session state changed to ${r}`),r){case m.Initial:break;case m.Establishing:break;case m.Established:this.setupLocalMedia(e),this.setupRemoteMedia(e),this.delegate&&this.delegate.onCallAnswered&&this.delegate.onCallAnswered(e);break;case m.Terminating:case m.Terminated:this.sessionExists(e)&&(this.cleanupMedia(e),this.sessionRemove(e),this.delegate&&this.delegate.onCallHangup&&this.delegate.onCallHangup(e));break;default:throw new Error("Unknown session state.")}}),e.delegate=e.delegate||{},e.delegate.onInfo=r=>{var s;if(((s=this.delegate)===null||s===void 0?void 0:s.onCallDTMFReceived)===void 0){r.reject();return}let i=r.request.getHeader("content-type");if(!i||!/^application\/dtmf-relay/i.exec(i)){r.reject();return}let n=r.request.body.split(`\r 11060`,2);if(n.length!==2){r.reject();return}let a,d=/^(Signal\s*?=\s*?)([0-9A-D#*]{1})(\s)?.*/;if(n[0]!==void 0&&d.test(n[0])&&(a=n[0].replace(d,"$2")),!a){r.reject();return}let u,h=/^(Duration\s?=\s?)([0-9]{1,4})(\s)?.*/;if(n[1]!==void 0&&h.test(n[1])&&(u=parseInt(n[1].replace(h,"$2"),10)),!u){r.reject();return}r.accept().then(()=>{if(this.delegate&&this.delegate.onCallDTMFReceived){if(!a||!u)throw new Error("Tone or duration undefined.");this.delegate.onCallDTMFReceived(e,a,u);}}).catch(v=>{this.logger.error(v.message);});},e.delegate.onRefer=r=>{r.accept().then(()=>this.sendInvite(r.makeInviter(t),t)).catch(s=>{this.logger.error(s.message);});};}optionsPingRun(e,t,r){if(this.options.optionsPingInterval<1)throw new Error("Invalid options ping interval.");this.optionsPingRunning||(this.optionsPingRunning=true,this.optionsPingTimeout=setTimeout(()=>{this.optionsPingTimeout=void 0;let s=()=>{this.optionsPingFailure=false,this.optionsPingRunning&&(this.optionsPingRunning=false,this.optionsPingRun(e,t,r));},i=()=>{this.logger.error("OPTIONS ping failed"),this.optionsPingFailure=true,this.optionsPingRunning=false,this.userAgent.transport.disconnect().catch(d=>this.logger.error(d));},n=this.userAgent.userAgentCore,a=n.makeOutgoingRequestMessage("OPTIONS",e,t,r,{});this.optionsPingRequest=n.request(a,{onAccept:()=>{this.optionsPingRequest=void 0,s();},onReject:d=>{this.optionsPingRequest=void 0,d.message.statusCode===408||d.message.statusCode===503?i():s();}});},this.options.optionsPingInterval*1e3));}optionsPingStart(){this.logger.log("OPTIONS pings started");let e,t,r;if(this.options.optionsPingRequestURI){if(e=J.makeURI(this.options.optionsPingRequestURI),!e)throw new Error("Failed to create Request URI.");t=this.userAgent.contact.uri.clone(),r=this.userAgent.contact.uri.clone();}else if(this.options.aor){let s=J.makeURI(this.options.aor);if(!s)throw new Error("Failed to create URI.");e=s.clone(),e.user=void 0,t=s.clone(),r=s.clone();}else {this.logger.error("You have enabled sending OPTIONS pings and as such
11060you must provide either a) an AOR to register, or b) an RURI to use for the target of the OPTIONS ping requests. ");return}this.optionsPingRun(e,t,r);}optionsPingStop(){this.logger.log("OPTIONS pings stopped"),this.optionsPingRunning=false,this.optionsPingFailure=false,this.optionsPingRequest&&(this.optionsPingRequest.dispose(),this.optionsPingRequest=void 0),this.optionsPingTimeout&&(clearTimeout(this.optionsPingTimeout),this.optionsPingTimeout=void 0);}sendInvite(e,t,r){return L$7(this,null,function*(){return this.initSession(e,t),e.invite(r).then(()=>{this.logger.log(`[${e.id}] Sent INVITE`);})})}sessionAdd(e){let t=this.options.managedSessionFactory(this,e);this.managedSessions.push(t);}sessionExists(e){return this.sessionManaged(e)!==void 0}sessionManaged(e){return this.managedSessions.find(t=>t.session.id===e.id)}sessionRemove(e){this.managedSessions=this.managedSessions.filter(t=>t.session.id!==e.id);}setHold(e,t){return L$7(this,null,function*(){if(!this.sessionExists(e))return Promise.reject(new Error("Session does not exist."));if(this.isHeld(e)===t)return Promise.resolve();if(!(e.sessionDescriptionHandler instanceof Y))throw new Error("Session's session description handler not instance of SessionDescriptionHandler.");let s={requestDelegate:{onAccept:()=>{let a=this.sessionManaged(e);a!==void 0&&(a.held=t,this.enableReceiverTracks(e,!a.held),this.enableSenderTracks(e,!a.held&&!a.muted),this.delegate&&this.delegate.onCallHold&&this.delegate.onCallHold(e,a.held));},onReject:()=>{this.logger.warn(`[${e.id}] Re-invite request was rejected`);let a=this.sessionManaged(e);a!==void 0&&(a.held=!t,this.enableReceiverTracks(e,!a.held),this.enableSenderTracks(e,!a.held&&!a.muted),this.delegate&&this.delegate.onCallHold&&this.delegate.onCallHold(e,a.held));}}},i=e.sessionDescriptionHandlerOptionsReInvite;i.hold=t,e.sessionDescriptionHandlerOptionsReInvite=i;let n=this.sessionManaged(e);if(!n)throw new Error("Managed session is undefiend.");return n.held=t,e.invite(s).then(()=>{let a=this.sessionManaged(e);a!==void 0&&(this.enableReceiverTracks(e,!a.held),this.enableSenderTracks(e,!a.held&&!a.muted));}).catch(a=>{throw n.held=!t,a instanceof de&&this.logger.error(`[${e.id}] A hold request is already in progress.`),a})})}setMute(e,t){if(!this.sessionExists(e)){this.logger.warn(`[${e.id}] A session is required to enabled/disable media tracks`);return}if(e.state!==m.Established){this.logger.warn(`[${e.id}] An established session is required to enable/disable media tracks`);return}let r=this.sessionManaged(e);r!==void 0&&(r.muted=t,this.enableSenderTracks(e,!r.held&&!r.muted));}setupLocalMedia(e){let t=this.sessionManaged(e);if(!t)throw new Error("Managed session does not exist.");let r=typeof this.options.media.local=="function"?this.options.media.local(e):this.options.media.local;t.mediaLocal=r;let s=r?.video;if(s){let i=this.getLocalMediaStream(e);if(!i)throw new Error("Local media stream undefiend.");s.srcObject=i,s.volume=0,s.play().catch(n=>{this.logger.error(`[${e.id}] Failed to play local media`),this.logger.error(n.message);});}}setupRemoteMedia(e){let t=this.sessionManaged(e);if(!t)throw new Error("Managed session does not exist.");let r=typeof this.options.media.remote=="function"?this.options.media.remote(e):this.options.media.remote;t.mediaRemote=r;let s=r?.video||r?.audio;if(s){let i=this.getRemoteMediaStream(e);if(!i)throw new Error("Remote media stream undefiend.");s.autoplay=true,s.srcObject=i,s.play().catch(n=>{this.logger.error(`[${e.id}] Failed to play remote media`),this.logger.error(n.message);}),i.onaddtrack=()=>{this.logger.log("Remote media onaddtrack"),s.load(),s.play().catch(n=>{this.logger.error(`[${e.id}] Failed to play remote media`),this.logger.error(n.message);});};}}terminate(e){return L$7(this,null,function*(){switch(this.logger.log(`[${e.id}] Terminating...`),e.state){case m.Initial:if(e instanceof Ee)return e.cancel().then(()=>{this.logger.log(`[${e.id}] Inviter never sent INVITE (canceled)`);});if(e instanceof ge)return e.reject().then(()=>{this.logger.log(`[${e.id}] Invitation rejected (sent 480)`);});throw new Error("Unknown session type.");case m.Establishing:if(e instanceof Ee)return e.cancel().then(()=>{this.logger.log(`[${e.id}] Inviter canceled (sent CANCEL)`);});if(e instanceof ge)return e.reject().then(()=>{this.logger.log(`[${e.id}] Invitation rejected (sent 480)`);});throw new Error("Unknown session type.");case m.Established:return e.bye().then(()=>{this.logger.log(`[${e.id}] Session ended (sent BYE)`);});case m.Terminating:break;case m.Terminated:break;default:throw new Error("Unknown state")}return this.logger.log(`[${e.id}] Terminating in state ${e.state}, no action taken`),Promise.resolve()})}};var qt=class{constructor(e,t={}){this.session=void 0,this.delegate=t.delegate,this.options=Object.assign({},t);let r={aor:this.options.aor,delegate:{onCallAnswered:()=>{var s,i;return (i=(s=this.delegate)===null||s===void 0?void 0:s.onCallAnswered)===null||i===void 0?void 0:i.call(s)},onCallCreated:s=>{var i,n;this.session=s,(n=(i=this.delegate)===null||i===void 0?void 0:i.onCallCreated)===null||n===void 0||n.call(i);},onCallReceived:()=>{var s,i;return (i=(s=this.delegate)===null||s===void 0?void 0:s.onCallReceived)===null||i===void 0?void 0:i.call(s)},onCallHangup:()=>{var s,i;this.session=void 0,!((s=this.delegate)===null||s===void 0)&&s.onCallHangup&&((i=this.delegate)===null||i===void 0||i.onCallHangup());},onCallHold:(s,i)=>{var n,a;return (a=(n=this.delegate)===null||n===void 0?void 0:n.onCallHold)===null||a===void 0?void 0:a.call(n,i)},onCallDTMFReceived:(s,i,n)=>{var a,d;return (d=(a=this.delegate)===null||a===void 0?void 0:a.onCallDTMFReceived)===null||d===void 0?void 0:d.call(a,i,n)},onMessageReceived:s=>{var i,n;return (n=(i=this.delegate)===null||i===void 0?void 0:i.onMessageReceived)===null||n===void 0?void 0:n.call(i,s.request.body)},onRegistered:()=>{var s,i;return (i=(s=this.delegate)===null||s===void 0?void 0:s.onRegistered)===null||i===void 0?void 0:i.call(s)},onUnregistered:()=>{var s,i;return (i=(s=this.delegate)===null||s===void 0?void 0:s.onUnregistered)===null||i===void 0?void 0:i.call(s)},onServerConnect:()=>{var s,i;return (i=(s=this.delegate)===null||s===void 0?void 0:s.onServerConnect)===null||i===void 0?void 0:i.call(s)},onServerDisconnect:()=>{var s,i;return (i=(s=this.delegate)===null||s===void 0?void 0:s.onServerDisconnect)===null||i===void 0?void 0:i.call(s)}},maxSimultaneousSessions:1,media:this.options.media,reconnectionAttempts:this.options.reconnectionAttempts,reconnectionDelay:this.options.reconnectionDelay,registererOptions:this.options.registererOptions,sendDTMFUsingSessionDescriptionHandler:this.options.sendDTMFUsingSessionDescriptionHandler,userAgentOptions:this.options.userAgentOptions};this.sessionManager=new Ze(e,r),this.logger=this.sessionManager.userAgent.getLogger("sip.SimpleUser");}get id(){return this.options.userAgentOptions&&this.options.userAgentOptions.displayName||"Anonymous"}get localMediaStream(){return this.session&&this.sessionManager.getLocalMediaStream(this.session)}get remoteMediaStream(){return this.session&&this.sessionManager.getRemoteMediaStream(this.session)}get localAudioTrack(){return this.session&&this.sessionManager.getLocalAudioTrack(this.session)}get localVideoTrack(){return this.session&&this.sessionManager.getLocalVideoTrack(this.session)}get remoteAudioTrack(){return this.session&&this.sessionManager.getRemoteAudioTrack(this.session)}get remoteVideoTrack(){return this.session&&this.sessionManager.getRemoteVideoTrack(this.session)}connect(){return this.logger.log(`[${this.id}] Connecting UserAgent...`),this.sessionManager.connect()}disconnect(){return this.logger.log(`[${this.id}] Disconnecting UserAgent...`),this.sessionManager.disconnect()}isConnected(){return this.sessionManager.isConnected()}register(e){return this.logger.log(`[${this.id}] Registering UserAgent...`),this.sessionManager.register(e)}unregister(e){return this.logger.log(`[${this.id}] Unregistering UserAgent...`),this.sessionManager.unregister(e)}call(e,t,r){return this.logger.log(`[${this.id}] Beginning Session...`),this.session?Promise.reject(new Error("Session already exists.")):this.sessionManager.call(e,t,r).then(()=>{})}hangup(){return this.logger.log(`[${this.id}] Hangup...`),this.session?this.sessionManager.hangup(this.session).then(()=>{this.session=void 0;}):Promise.reject(new Error("Session does not exist."))}answer(e){return this.logger.log(`[${this.id}] Accepting Invitation...`),this.session?this.sessionManager.answer(this.session,e):Promise.reject(new Error("Session does not exist."))}decline(){return this.logger.log(`[${this.id}] rejecting Invitation...`),this.session?this.sessionManager.decline(this.session):Promise.reject(new Error("Session does not exist."))}hold(){return this.logger.log(`[${this.id}] holding session...`),this.session?this.sessionManager.hold(this.session):Promise.reject(new Error("Session does not exist."))}unhold(){return this.logger.log(`[${this.id}] unholding session...`),this.session?this.sessionManager.unhold(this.session):Promise.reject(new Error("Session does not exist."))}isHeld(){return this.session?this.sessionManager.isHeld(this.session):false}mute(){return this.logger.log(`[${this.id}] disabling media tracks...`),this.session&&this.sessionManager.mute(this.session)}unmute(){return this.logger.log(`[${this.id}] enabling media tracks...`),this.session&&this.sessionManager.unmute(this.session)}isMuted(){return this.session?this.sessionManager.isMuted(this.session):false}sendDTMF(e){return this.logger.log(`[${this.id}] sending DTMF...`),this.session?this.sessionManager.sendDTMF(this.session,e):Promise.reject(new Error("Session does not exist."))}message(e,t){return this.logger.log(`[${this.id}] sending message...`),this.sessionManager.message(e,t)}};
11060var Cr=["CallCenter"],Rr="sociallab-softphone",Dd$1=(()=>{class o{openDock(){this.setDockExpanded(true);}toggleDock(){this.setDockExpanded(!this.dockExpanded());}setDockExpanded(t){this.dockExpanded.set(t);}searchContacts(t){let r=(t||"").trim();return r.length<2?ki$3([]):this.clientCallService.searchContacts(r).pipe(ve$4(s=>(s?.succeeded?s.data:[])||[]),uc$1(()=>ki$3([])))}ensureFloorPoll(){this.floorTimer||(this.pollFloor(),this.floorTimer=setInterval(()=>this.pollFloor(),5e3));}clearFloorPoll(){this.floorTimer&&(clearInterval(this.floorTimer),this.floorTimer=null),this.othersCalls.set([]);}pollFloor(){this.canUse()&&this.clientCallService.getActiveCalls().subscribe({next:t=>{let r=(t?.succeeded?t.data:[])||[],s=this.auth.getUser()?.id;this.zone.run(()=>{this.othersCalls.set(r.filter(i=>i.agentUserId!==s)),this.reconcileChannels(r.filter(i=>i.agentUserId===s));});},error:()=>{}});}reconcileChannels(t){let r=t.filter(d=>!!d.channelId),s=this.calls(),n=s.map(d=>{let u=r.find(h=>this.sameNumber(h.number,d.number))??(r.length===1&&s.length===1?r[0]:void 0);return u&&u.channelId!==d.channelId?E$7(D$6({},d),{channelId:u.channelId}):d}).filter(d=>!d.stale||r.some(u=>this.sameNumber(u.number,d.number)||u.channelId===d.channelId));(n.length!==s.length||n.some((d,u)=>d!==s[u]))&&this.calls.set(n);}sameNumber(t,r){let s=(t||"").replace(/\D/g,""),i=(r||"").replace(/\D/g,"");if(!s||!i)return false;let n=Math.min(9,s.length,i.length);return s.slice(-n)===i.slice(-n)}constructor(t,r,s,i,n,a){this.callService=t,this.clientCallService=r,this.auth=s,this.zone=i,this.router=n,this.push=a,this.state=Es$1("offline"),this.statusText=Es$1("Offline"),this.configured=Es$1(false),this.lastError=Es$1(null),this.audioIssue=Es$1(null),this.heldByAnotherTab=Es$1(false),this.audioBlocked=Es$1(false),this.audioUnlockArmed=false,this.phoneLockHeld=false,this.phoneLockWaiting=false,this.releasePhoneLock=null,this.calls=Es$1([]),this.now=Es$1(Date.now()),this.hasCalls=wS(()=>this.calls().length>0),this.callCount=wS(()=>this.calls().length),this.ringingIn=wS(()=>this.calls().some(d=>d.status==="ringing"&&!d.ignored)),this.dockExpanded=Es$1(false),this.othersCalls=Es$1([]),this.floorTimer=null,this.myNumbers=Es$1([]),this.fromNumberId=Es$1(null),this.selectedFrom=wS(()=>{let d=this.myNumbers(),u=this.fromNumberId();return d.find(h=>h.id===u)??d.find(h=>h.isDefaultOutbound)??d[0]??null}),this.sm=null,this.peerConfig=null,this.iceTimer=null,this.sipDomain="",this.audioEl=null,this.starting=false,this.numbersRequested=false,this.legSeq=1,this.clockTimer=null,this.audioTimer=null,this.audioChecking=false,this.audioSeen=new WeakMap,this.audioSentSeen=new WeakMap,this.iceRepairInFlight=new WeakSet,this.iceRepairAt=new WeakMap,this.audioCtx=null,this.toneOscs=[],this.toneGain=null,this.toneTimer=null,this.transferTargets=Es$1([]),this.relaunchTimer=null,this.relaunchAttempt=0,this.push.callHandledElsewhere$.subscribe(d=>{let u=this.calls().find(h=>h.status==="ringing"&&(h.channelId===d||this.sameNumber(h.number,d)));if(u){try{u.session.dispose?.();}catch(h){}this.zone.run(()=>this.removeLeg(u.session));}}),ih$1(()=>{let d=this.calls(),u=d.some(h=>h.status==="active");d.some(h=>h.status==="ringing"&&!h.ignored)&&!u?this.playRingtone():d.some(h=>h.status==="calling")?this.playRingback():this.stopTones();}),ih$1(()=>{this.hasCalls()?this.ensureClock():this.clearClock();}),ih$1(()=>{this.calls().some(d=>d.status==="active")?this.ensureAudioWatch():this.clearAudioWatch();}),ih$1(()=>{this.reportState(this.calls());}),ih$1(()=>{this.dockExpanded()||this.hasCalls()?this.ensureFloorPoll():this.clearFloorPoll();});}canUse(){return this.auth.isAuthenticatedUser&&Cr.some(t=>this.auth.hasPermission(t))}static iceServersFrom(t){let r=i=>/^turns?:/i.test(i.trim()),s=(t.iceServers??[]).filter(i=>{let n=(Array.isArray(i.urls)?i.urls:[i.urls]).filter(a=>!!a&&typeof a=="string");return n.length?!n.some(r)||!!i.username&&!!i.credential:false});return s.length?s:[{urls:"stun:stun.l.google.com:19302"}]}attachAudio(t){this.audioEl=t;}display(t){return (t||"").replace(/^\+/,"")}isAgentId(t){return /^sl\d+$/i.test((t||"").trim())}peerLabel(t){let r=(t||"").trim();return this.isAgentId(r)?this.transferTargets().find(i=>i.kind==="agent"&&(i.target||"").trim().toLowerCase()===r.toLowerCase())?.name?.trim()||"":this.display(r)}startIfEligible(){if(!this.canUse()){this.sm&&this.disconnect();return}this.ensureNumbersLoaded(),!(this.sm||this.starting||!this.audioEl)&&(this.starting=true,this.claimPhoneLock().then(t=>{if(!t){this.starting=false;return}this.fetchConfigAndStart();}));}claimPhoneLock(){let t=navigator.locks;if(!t?.request||this.phoneLockHeld)return Promise.resolve(true);if(this.phoneLockWaiting)return Promise.resolve(false);this.phoneLockWaiting=true;let r=false;return new Promise(s=>{let i=n=>{r||(r=true,s(n));};t.request(Rr,{mode:"exclusive"},()=>new Promise(n=>{let a=r;this.releasePhoneLock=n,this.phoneLockHeld=true,this.phoneLockWaiting=false,this.zone.run(()=>this.heldByAnotherTab.set(false)),i(true),a&&this.zone.run(()=>this.startIfEligible());})).catch(()=>{this.phoneLockWaiting=false,i(true);}),setTimeout(()=>{this.phoneLockHeld||(this.zone.run(()=>this.heldByAnotherTab.set(true)),this.setState("offline","Phone is active in another tab"),i(false));},400);})}fetchConfigAndStart(){this.clientCallService.getSoftphoneConfig().subscribe({next:t=>{let r=t?.data;t?.succeeded&&r?.isConfigured?this.startPhone(r):(this.starting=false,this.configured.set(false),this.setState("offline","Softphone not configured"));},error:()=>{this.starting=false,this.configured.set(false),this.setState("offline","Softphone unavailable");}});}startPhone(t){return L$7(this,null,function*(){try{this.sipDomain=t.sipDomain,this.configured.set(!0),this.peerConfig={iceServers:o.iceServersFrom(t)};let r={aor:`sip:${t.sipUsername}@${t.sipDomain}`,maxSimultaneousSessions:5,reconnectionAttempts:30,reconnectionDelay:5,registrationRetry:!0,registrationRetryInterval:5,media:{constraints:{audio:!0,video:!1},remote:()=>({audio:this.audioEl??void 0})},userAgentOptions:{authorizationUsername:t.sipUsername,authorizationPassword:t.sipPassword,sessionDescriptionHandlerFactoryOptions:{peerConnectionConfiguration:this.peerConfig}},delegate:{onServerConnect:()=>this.setState("connecting","Connecting\u2026"),onServerDisconnect:()=>this.onServerDown(),onRegistered:()=>{this.clearRelaunch(),this.setState("registered","Ready");},onUnregistered:()=>this.setState("offline","Offline"),onCallReceived:s=>this.onIncoming(s),onCallAnswered:s=>this.onAnswered(s),onCallHold:(s,i)=>this.onHold(s,i),onCallHangup:s=>this.onHangup(s)}};this.sm=new Rt.SessionManager(t.wssUrl,r),this.setState("connecting","Connecting\u2026"),yield this.sm.connect(),yield this.sm.register(),this.scheduleIceRefresh(t);}catch(r){this.configured.set(false),this.setState("offline","Softphone error"),this.sm=null,this.clearIceRefresh(),this.peerConfig=null;}finally{this.starting=false;}})}scheduleIceRefresh(t){this.clearIceRefresh();let r=o.turnExpiryMsFrom(t);if(r===null)return;let s=Math.min(Math.max(Math.floor(r/2),6e4),720*6e4);this.iceTimer=setTimeout(()=>this.refreshIceServers(),s);}refreshIceServers(){this.iceTimer=null,!(!this.sm||!this.peerConfig)&&this.clientCallService.getSoftphoneConfig().subscribe({next:t=>{if(!this.sm||!this.peerConfig)return;let r=t?.data;
11060if(!(r&&!r.isConfigured)){if(!t?.succeeded||!r){this.iceTimer=setTimeout(()=>this.refreshIceServers(),6e4);return}this.peerConfig.iceServers=o.iceServersFrom(r),this.scheduleIceRefresh(r);}},error:()=>{this.sm&&(this.iceTimer=setTimeout(()=>this.refreshIceServers(),6e4));}});}static turnExpiryMsFrom(t){for(let r of t.iceServers??[]){if(!(Array.isArray(r.urls)?r.urls:[r.urls]).filter(n=>!!n&&typeof n=="string").some(n=>/^turns?:/i.test(n.trim())))continue;let i=Number((r.username??"").split(":")[0]);return !Number.isFinite(i)||i<=0?15*6e4:Math.max(i*1e3-Date.now(),6e4)}return null}clearIceRefresh(){this.iceTimer&&(clearTimeout(this.iceTimer),this.iceTimer=null);}call(t,r=null,s=false){return L$7(this,null,function*(){if(!this.sm||this.state()!=="registered")return null;let i=s?t.trim():this.normalizeDialNumber(t);if(!i)return null;yield this.holdActiveExcept(-1);try{let n=this.selectedFrom(),a=n?{requestOptions:{extraHeaders:[`X-CC-From-DID: ${n.did}`]}}:void 0,d=yield this.sm.call(`sip:${i}@${this.sipDomain}`,void 0,a),u={id:this.legSeq++,session:d,number:this.peerLabel(i),direction:"out",status:"calling",name:r||this.peerLabel(i)||null,customerId:null,muted:!1,answeredAt:null,startedAt:Date.now()};return this.zone.run(()=>this.addLeg(u)),s||this.lookupCaller(u.id,i),u.id}catch(n){return this.lastError.set(o.describeCallFailure(n)),console.error("[softphone] outbound call failed",n),null}})}answer(t){return L$7(this,null,function*(){let r=this.legById(t);if(!this.sm||!r||r.status!=="ringing")return null;yield this.holdActiveExcept(t);try{return yield this.sm.answer(r.session),null}catch(s){let i=o.describeCallFailure(s);return this.lastError.set(i),console.error("[softphone] answer failed",s),i}})}static describeCallFailure(t){switch(t?.name??""){case "NotAllowedError":case "SecurityError":return "Microphone access is blocked. Allow it for this site in your browser, then try again.";case "NotFoundError":return "No microphone was found. Connect one and try again.";case "NotReadableError":case "AbortError":return "Your microphone is in use by another application. Close it and try again.";default:return "The call could not be started. Please try again."}}ignore(t){let r=this.legById(t);!r||r.status!=="ringing"||r.ignored||this.zone.run(()=>this.updateLegById(t,s=>E$7(D$6({},s),{ignored:true})));}hangup(t){return L$7(this,null,function*(){let r=this.legById(t);if(!r)return false;let s=r.status==="ringing",i=r.channelId||r.number||null;if(!r.stale&&this.sm&&(yield this.tryLocalHangup(r)))return this.announceHandled(s,i),true;if(yield this.endOnServer(r))return this.announceHandled(s,i),true;try{r.session.dispose?.();}catch(a){}return this.zone.run(()=>this.removeLeg(r.session)),false})}announceHandled(t,r){!t||!r||this.clientCallService.announceCallHandled(r).subscribe({error:()=>{}});}tryLocalHangup(t){return L$7(this,null,function*(){for(let r of [0,400]){r&&(yield new Promise(s=>setTimeout(s,r)));try{yield this.sm.hangup(t.session);}catch(s){continue}if(yield this.legEnded(t))return true}return false})}legEnded(t){return L$7(this,null,function*(){for(let r=0;r<6;r++){if(!this.calls().some(s=>s.id===t.id))return true;yield new Promise(s=>setTimeout(s,250));}return !this.calls().some(r=>r.id===t.id)})}endOnServer(t){return L$7(this,null,function*(){if(!t.channelId)return false;try{return (yield oE(this.clientCallService.endLiveCall(t.channelId)))?.succeeded?(this.zone.run(()=>this.removeLeg(t.session)),!0):!1}catch(r){return false}})}loadTransferTargets(){this.clientCallService.getTransferTargets().subscribe({next:t=>{let r=(t?.succeeded?t.data:[])||[];this.zone.run(()=>this.transferTargets.set(r));},error:()=>{}});}blindTransfer(t,r){return L$7(this,null,function*(){let s=this.legById(t);if(!this.sm||!s||!r?.target)return false;try{let i=J.makeURI(`sip:${this.transferAddress(r)}@${this.sipDomain}`);return i?(yield s.session.refer(i),!0):!1}catch(i){return false}})}transferAddress(t){let r=(t.target||"").trim();return t.kind==="agent"?r:this.normalizeDialNumber(r)||r}startConsult(t,r){return L$7(this,null,function*(){if(!this.legById(t)||!r?.target)return false;let i=yield this.call(this.transferAddress(r),r.name||null,r.kind==="agent");return i===null?false:(this.zone.run(()=>this.updateLegById(i,n=>E$7(D$6({}
11060,n),{consultFor:t,number:r.kind==="agent"?"":n.number}))),true)})}completeConsult(t){return L$7(this,null,function*(){let r=this.legById(t),s=r?.consultFor!=null?this.legById(r.consultFor):void 0;if(!this.sm||!r||!s)return false;try{return yield s.session.refer(r.session),!0}catch(i){return false}})}conference(t){return L$7(this,null,function*(){let r=this.legById(t),s=r?.consultFor!=null?this.legById(r.consultFor):void 0;if(!this.sm||!r||!s)return false;if(s.merging||r.merging)return true;s.merging=true,r.merging=true,this.calls.update(d=>[...d]);let i=yield this.conferenceRoomName(s.number),n=J.makeURI(`sip:${i}@${this.sipDomain}`);if(!n)return s.merging=false,r.merging=false,this.calls.update(d=>[...d]),false;let a=false;try{return yield s.session.refer(n),a=!0,yield r.session.refer(n),(yield this.call(i,"Conference",!0))!==null}catch(d){return a||(s.merging=false,r.merging=false,this.calls.update(u=>[...u])),false}})}conferenceRoomName(t){return L$7(this,null,function*(){try{let i=(yield oE(this.clientCallService.createConferenceRoom(t)))?.data;if(typeof i=="string"&&i.length>0)return i}catch(s){}return `conf${this.auth.getUser()?.id??0}${Math.floor(Date.now()%1e6)}`})}consultLegFor(t){return this.calls().find(r=>r.consultFor===t)}toggleMute(t){let r=this.legById(t);if(!(!this.sm||!r))try{r.muted?this.sm.unmute(r.session):this.sm.mute(r.session),this.zone.run(()=>this.updateLegById(t,s=>E$7(D$6({},s),{muted:!s.muted})));}catch(s){}}toggleHold(t){return L$7(this,null,function*(){let r=this.legById(t);if(!(!this.sm||!r)){if(r.status==="held")yield this.resume(t);else if(r.status==="active")try{yield this.sm.hold(r.session);}catch(s){}}})}resume(t){return L$7(this,null,function*(){let r=this.legById(t);if(!(!this.sm||!r)){yield this.holdActiveExcept(t);try{yield this.sm.unhold(r.session);}catch(s){}}})}sendDtmf(t,r){let s=this.legById(t);!this.sm||!s||this.sm.sendDTMF(s.session,r).catch(()=>{});}openCustomer(t){t&&this.router.navigate(["/apps/customers/customer-profile",t]);}setFromNumber(t){this.fromNumberId.set(t);}retry(){let t=this.sm;this.sm=null,this.starting=false,this.clearIceRefresh(),this.peerConfig=null,t?.disconnect().catch(()=>{}),this.startIfEligible();}ensureNumbersLoaded(){this.numbersRequested||(this.numbersRequested=true,this.loadNumbers());}loadNumbers(){this.clientCallService.getMyNumbers().subscribe({next:t=>{let r=(t?.data??[]).filter(s=>s.enabled);this.zone.run(()=>{this.myNumbers.set(r);let s=r.find(i=>i.isDefaultOutbound)??r[0];this.fromNumberId.set(s?s.id:null);});},error:()=>{this.numbersRequested=false;}});}duration(t){if(!t.answeredAt)return "";let r=Math.max(0,Math.floor((this.now()-t.answeredAt)/1e3)),s=Math.floor(r/60),i=r%60;return `${s}:${i.toString().padStart(2,"0")}`}onIncoming(t){let r=this.remoteNumber(t),s={id:this.legSeq++,session:t,number:this.peerLabel(r),direction:"in",status:"ringing",name:this.isAgentId(r)&&this.peerLabel(r)||null,customerId:null,muted:false,answeredAt:null,startedAt:Date.now()};this.zone.run(()=>this.addLeg(s)),this.isAgentId(r)||this.lookupCaller(s.id,r);}onAnswered(t){this.zone.run(()=>this.updateLeg(t,r=>E$7(D$6({},r),{status:"active",answeredAt:r.answeredAt??Date.now()}))),this.routeAudio(t);}onHold(t,r){this.zone.run(()=>this.updateLeg(t,s=>E$7(D$6({},s),{status:r?"held":"active"}))),r||(this.audioSeen.delete(t),this.audioSentSeen.delete(t),this.routeAudio(t));}onHangup(t){this.zone.run(()=>{let r=this.calls().find(i=>i.session===t);if(this.removeLeg(t),r&&r.status!=="held"){let i=this.calls().find(n=>n.status==="held");if(i){this.resume(i.id);return}}let s=this.calls().find(i=>i.status==="active");s&&this.routeAudio(s.session);});}onServerDown(){this.zone.run(()=>{this.calls.update(t=>t.map(r=>E$7(D$6({},r),{stale:true}))),this.setState("offline","Offline");}),this.scheduleRelaunch();}static{this.RELAUNCH_BACKOFF=[10,20,40,60,120];}scheduleRelaunch(){if(this.relaunchTimer||!this.canUse())return;let t=o.RELAUNCH_BACKOFF,r=t[Math.min(this.relaunchAttempt,t.length-1)];this.relaunchAttempt++,this.relaunchTimer=setTimeout(()=>{this.relaunchTimer=null,!(!this.canUse()||this.state()==="registered")&&(this.retry(),this.scheduleRelaunch());},r*1e3);}clearRelaunch(){this.relaunchTimer&&(clearTimeout(this.relaunchTimer),this.relaunchTimer=null),this.relaunchAttempt=0;}legById(t){return this.calls().find(r=>r.id===t)}addLeg(t){this.calls.update(r=>[...r,t]);}removeLeg(t){this.calls.update(r=>r.filter(s=>s.session!==t));}updateLeg(t,r){this.calls.update(s=>s.map(i=>i.session===t?r(i):i));}updateLegById(t,r){this.calls.update(s=>s.map(i=>i.id===t?r(i):i));}holdActiveExcept(t){return L$7(this,null,function*(){if(!this.sm)return;let r=this.calls().filter(s=>s.status==="active"&&s.id!==t);for(let s of r)try{yield this.sm.hold(s.session);}catch(i){}})}routeAudio(t){try{let r=this.sm?.getRemoteMediaStream(t);this.audioEl&&r&&(this.audioEl.srcObject=r,this.audioEl.play?.().catch(()=>{}));}catch(r){}}normalizeDialNumber(t){let r=(t||"").trim();if(!r)return "";let s=r.startsWith("+"),i=r.replace(/\D/g,"");if(!i)return "";if(s)return `+${i}`;if(i.startsWith("00"))return `+${i.slice(2)}`;if(i.startsWith("0")){let n=this.myCountryCode();return n?`+${n}${i.slice(1)}`:i}return `+${i}`}myCountryCode(){let t=(this.myNumbers()[0]?.did||"").replace(/\D/g,"");return t?["966","971","973","974","965","968","962","961","964","963","970","212","213","216","218","20","90","91","92","98","44","49","33","1"].find(s=>t.startsWith(s))??null:null}remoteNumber(t){let r=t.remoteIdentity;return r?.uri?.user||r?.displayName||""}lookupCaller(t,r){let s=(r||"").replace(/\D/g,"");s&&this.clientCallService.lookupCustomer(s).subscribe({next:i=>{let n=i?.data;i?.succeeded&&n?.found&&this.zone.run(()=>this.updateLegById(t,a=>E$7(D$6({},a),{name:n.name??a.name,customerId:n.customerId??a.customerId})));},error:()=>{}});}disconnect(){let t=this.sm;this.sm=null,this.starting=false,this.clearIceRefresh(),this.peerConfig=null,this.releaseLine(),this.numbersRequested=false,this.myNumbers.set([]),this.configured.set(false),this.calls.set([]),this.setState("offline","Offline"),t?.disconnect().catch(()=>{});}releaseLine(){let t=this.releasePhoneLock;this.releasePhoneLock=null,this.phoneLockHeld=false;try{t?.();}catch(r){}}setState(t,r){this.zone.run(()=>{this.state.set(t),this.statusText.set(r);});}ensureClock(){if(this.clockTimer)return;let t=0;this.clockTimer=setInterval(()=>this.zone.run(()=>{this.now.set(Date.now()),++t%15===0&&this.reportState(this.calls());}),1e3);}reportState(t){if(!this.canUse())return;let r=t.map(s=>({number:this.isAgentId(s.number)?"":s.number,direction:s.direction,status:s.status,customerName:this.isAgentId(s.name)?this.peerLabel(s.name):s.name,startedOnUtc:new Date(s.startedAt).toISOString()}));this.clientCallService.reportCallState(r).subscribe({next:()=>{},error:()=>{}});}clearClock(){this.clockTimer&&(clearInterval(this.clockTimer),this.clockTimer=null);}static{this.AUDIO_GRACE_MS=4e3;}static{this.AUDIO_STALL_MS=4e3;}static{this.AUDIO_MAX_REPAIRS=2;}static{this.MIC_SILENT_MS=2e4;}static{this.FAR_END_WINDOW_MS=12e3;}static{this.FAR_END_MIN_PACKETS=250;}static{this.FAR_END_DELIVERED_RATIO=.05;}static{this.FAR_END_FRACTION_LOST_MIN=.9;}static{this.ICE_DISCONNECTED_MS=8e3;}static{this.ICE_FAILED_MS=2e3;}static{this.ICE_REPEAT_MS=1e4;}
11060ensureAudioWatch(){this.audioTimer||(this.audioTimer=setInterval(()=>{this.audioChecking||(this.audioChecking=true,this.checkAudio().finally(()=>{this.audioChecking=false;}));},2e3));}clearAudioWatch(){this.audioTimer&&(clearInterval(this.audioTimer),this.audioTimer=null),this.audioChecking=false;}inboundAudioPackets(t){return L$7(this,null,function*(){try{let r=t.sessionDescriptionHandler?.peerConnection;if(!r||r.connectionState==="closed")return null;let s=null;return (yield r.getStats()).forEach(n=>{n.type==="inbound-rtp"&&(n.kind==="audio"||n.mediaType==="audio")&&(s=(s??0)+(n.packetsReceived??0));}),s}catch(r){return null}})}resyncSink(t){let r=this.sm?.getRemoteMediaStream(t);!this.audioEl||!r||(this.audioEl.srcObject!==r&&(this.audioEl.srcObject=r),this.audioEl.paused&&this.audioEl.play?.().catch(()=>{}));}outboundAudioStats(t){return L$7(this,null,function*(){let r={packets:null,micLevel:null,remoteLost:null,remoteFractionLost:null,remoteReportAt:null,iceState:null};try{let s=t.sessionDescriptionHandler?.peerConnection;if(!s||s.connectionState==="closed")return r;let i=typeof s.iceConnectionState=="string"?s.iceConnectionState:null,n=null,a=null,d=null,u=null,h=null;return (yield s.getStats()).forEach(E=>{E.type==="outbound-rtp"&&(E.kind==="audio"||E.mediaType==="audio")&&(n=(n??0)+(E.packetsSent??0)),E.type==="media-source"&&E.kind==="audio"&&typeof E.audioLevel=="number"&&(a=Math.max(a??0,E.audioLevel)),E.type==="remote-inbound-rtp"&&(E.kind==="audio"||E.mediaType==="audio")&&typeof E.timestamp=="number"&&(h===null||E.timestamp>h)&&(h=E.timestamp,d=typeof E.packetsLost=="number"?E.packetsLost:null,u=typeof E.fractionLost=="number"?E.fractionLost:null);}),{packets:n,micLevel:a,remoteLost:d,remoteFractionLost:u,remoteReportAt:h,iceState:i}}catch(s){return r}})}micTrackState(t){try{let s=t.sessionDescriptionHandler?.peerConnection?.getSenders().find(i=>i.track?.kind==="audio")?.track;return s?{muted:s.muted,ended:s.readyState==="ended"}:null}catch(r){return null}}attemptIceRestart(t){return L$7(this,null,function*(){if(this.iceRepairInFlight.has(t))return false;this.iceRepairInFlight.add(t),this.iceRepairAt.set(t,Date.now());try{return yield t.invite({sessionDescriptionHandlerOptions:{offerOptions:{iceRestart:!0}}}),!0}catch(r){return console.warn("[softphone] audio repair (ICE restart) failed",r),false}finally{this.iceRepairInFlight.delete(t);}})}canSendRepair(){let t=this.sm?.userAgent;if(!t)return false;try{return t.isConnected()}catch(r){return false}}rebuildingMediaPath(t,r){return this.iceRepairInFlight.has(t)||r-(this.iceRepairAt.get(t)??0)<o.AUDIO_STALL_MS}anchorFarEndWindow(t,r,s,i,n){t.farEndReportAt=i,t.farEndAnchorAt=n,t.farEndLost=s,t.farEndPackets=r;}resetFarEndWindow(t){t.farEndReportAt=null,t.farEndAnchorAt=null,t.farEndLost=null,t.farEndPackets=null;}checkFarEndDelivery(t,r,s,i){if(s.reportAt===null||s.lost===null)return "unknown";if(t.farEndReportAt===null||t.farEndAnchorAt===null||t.farEndLost===null||t.farEndPackets===null)return this.anchorFarEndWindow(t,r,s.lost,s.reportAt,i),"unknown";if(s.reportAt<=t.farEndReportAt)return "unknown";let n=s.reportAt-t.farEndReportAt,a=i-t.farEndAnchorAt;if(n<o.FAR_END_WINDOW_MS||a<=0)return "unknown";if(r<t.farEndPackets)return this.anchorFarEndWindow(t,r,s.lost,s.reportAt,i),"unknown";let d=(r-t.farEndPackets)/a,u=Math.round(d*n);if(u<o.FAR_END_MIN_PACKETS)return "unknown";let h=Math.max(0,s.lost-t.farEndLost),E=Math.max(0,u-h)<=u*o.FAR_END_DELIVERED_RATIO&&(s.fractionLost===null||s.fractionLost>=o.FAR_END_FRACTION_LOST_MIN);return this.anchorFarEndWindow(t,r,s.lost,s.reportAt,i),E?"deaf":"ok"}checkIceConsent(t,r,s){if(r===null)return "unknown";if(r==="connected"||r==="completed")return t.iceBadSince=null,t.iceVerdictAt=null,"ok";if(r==="new"||r==="checking")return t.iceBadSince=null,"unknown";t.iceBadSince??=s;let i=r==="failed"?o.ICE_FAILED_MS:o.ICE_DISCONNECTED_MS;return s-t.iceBadSince<i||t.iceVerdictAt!==null&&s-t.iceVerdictAt<o.ICE_REPEAT_MS?"unknown":(t.iceVerdictAt=s,"deaf")}checkOutboundAudio(t,r){return L$7(this,null,function*(){if(t.muted){this.audioSentSeen.delete(t.session);return}let{packets:s,micLevel:i,remoteLost:n,remoteFractionLost:a,remoteReportAt:d,iceState:u}=yield this.outboundAudioStats(t.session);if(s===null)return;let h=this.audioSentSeen.get(t.session)??{packets:-1,movedAt:r,repairs:0,warned:false,micZeroSince:null,micWarned:false,gaveUp:false,farEndReportAt:null,farEndAnchorAt:null,farEndLost:null,farEndPackets:null,farEndDeaf:false,iceBadSince:null,iceVerdictAt:null,iceDeaf:false},v=this.micTrackState(t.session);v&&(v.muted||v.ended)?h.micWarned||(h.micWarned=true,this.zone.run(()=>this.audioIssue.set("Your microphone is muted or disconnected \u2014 check your input device."))):i!==null&&(i>0?(h.micZeroSince=null,h.micWarned=false):(h.micZeroSince??=r,!h.micWarned&&r-h.micZeroSince>=o.MIC_SILENT_MS&&(h.micWarned=true,this.zone.run(()=>this.audioIssue.set("Your microphone is not picking up any sound \u2014 check that the right device is selected."))))),s>
11060h.packets&&(h.packets=s,h.movedAt=r);let E=r-h.movedAt>=o.AUDIO_STALL_MS,$=this.checkFarEndDelivery(h,s,{lost:n,fractionLost:a,reportAt:d},r),k=this.checkIceConsent(h,u,r);if($==="ok"?h.farEndDeaf=false:$==="deaf"&&(h.farEndDeaf=true),k==="ok"?h.iceDeaf=false:k==="deaf"&&(h.iceDeaf=true),this.audioSentSeen.set(t.session,h),!(E||$==="deaf"||k==="deaf")){(h.warned||h.gaveUp)&&!h.farEndDeaf&&!h.iceDeaf&&(h.warned=false,h.gaveUp=false,h.repairs=0,this.audioSentSeen.set(t.session,h),this.zone.run(()=>this.audioIssue.set("Your voice is reaching the call again.")));return}if(h.repairs<o.AUDIO_MAX_REPAIRS){if(this.rebuildingMediaPath(t.session,r)||!this.canSendRepair())return;let le=h.movedAt,ae=h.packets;if(h.movedAt=r,h.packets=-1,this.audioSentSeen.set(t.session,h),!h.warned){h.warned=true;let Ie=E?"Your voice is not reaching the call \u2014 reconnecting\u2026":"The other side is not receiving your voice \u2014 reconnecting\u2026";this.zone.run(()=>this.audioIssue.set(Ie));}(yield this.attemptIceRestart(t.session))?(h.repairs++,this.resetFarEndWindow(h)):(h.movedAt=le,h.packets=ae),this.audioSentSeen.set(t.session,h);return}h.gaveUp||(h.gaveUp=true,this.audioSentSeen.set(t.session,h),this.zone.run(()=>this.audioIssue.set("Your voice still is not reaching \u2014 end the call and dial again.")));})}checkAudio(){return L$7(this,null,function*(){let t=Date.now();for(let r of this.calls().filter(s=>s.status==="active"&&!s.stale)){if(!r.answeredAt||t-r.answeredAt<o.AUDIO_GRACE_MS)continue;this.resyncSink(r.session),yield this.checkOutboundAudio(r,t);let s=yield this.inboundAudioPackets(r.session);if(s===null)continue;let i=this.audioSeen.get(r.session)??{packets:-1,movedAt:t,repairs:0,warned:false};if(s>i.packets&&(i.packets=s,i.movedAt=t),this.audioSeen.set(r.session,i),t-i.movedAt<o.AUDIO_STALL_MS){r.audio&&r.audio!=="ok"&&(this.zone.run(()=>this.updateLeg(r.session,n=>E$7(D$6({},n),{audio:"ok"}))),i.warned&&(i.warned=false,this.zone.run(()=>this.audioIssue.set("Audio is back."))),i.repairs=0,this.audioSeen.set(r.session,i));continue}if(i.repairs<o.AUDIO_MAX_REPAIRS){if(this.rebuildingMediaPath(r.session,t)||!this.canSendRepair())continue;let n=i.packets<=0,a=i.movedAt,d=i.packets;i.movedAt=t,i.packets=-1,this.audioSeen.set(r.session,i),this.zone.run(()=>this.updateLeg(r.session,u=>E$7(D$6({},u),{audio:"recovering"}))),!i.warned&&n&&(i.warned=true,this.zone.run(()=>this.audioIssue.set("No sound on this call \u2014 reconnecting the audio\u2026"))),(yield this.attemptIceRestart(r.session))?i.repairs++:(i.movedAt=a,i.packets=d),this.audioSeen.set(r.session,i);continue}r.audio!=="silent"&&this.zone.run(()=>{this.updateLeg(r.session,n=>E$7(D$6({},n),{audio:"silent"})),this.audioIssue.set("Still no sound \u2014 end the call and dial again.");});}})}ensureAudioCtx(){try{if(!this.audioCtx){let t=window.AudioContext||window.webkitAudioContext;if(!t)return null;this.audioCtx=new t;}return this.audioCtx.state==="suspended"&&(this.audioCtx.resume().catch(()=>this.armAudioUnlock()),this.audioCtx.state==="suspended"&&this.armAudioUnlock()),this.audioCtx}catch(t){return null}}armAudioUnlock(){if(this.audioBlocked.set(true),this.audioUnlockArmed)return;this.audioUnlockArmed=true;let t=()=>{this.audioCtx?.resume().then(()=>this.zone.run(()=>this.audioBlocked.set(false))).catch(()=>{});};for(let r of ["pointerdown","keydown","touchstart"])document.addEventListener(r,t,{passive:true});}stopTones(){this.toneTimer&&(clearInterval(this.toneTimer),this.toneTimer=null);try{this.toneOscs.forEach(t=>t.stop());}catch(t){}this.toneOscs=[];try{this.toneGain?.disconnect();}catch(t){}this.toneGain=null;}startCadence(t,r,s,i){this.stopTones();let n=this.ensureAudioCtx();if(!n)return;let a=n.createGain();a.gain.value=0,a.connect(n.destination),this.toneGain=a,this.toneOscs=t.map(u=>{let h=n.createOscillator();return h.type="sine",h.frequency.value=u,h.connect(a),h.start(),h});let d=()=>{if(!this.toneGain||!this.audioCtx)return;let u=this.audioCtx.currentTime,h=this.toneGain.gain;h.cancelScheduledValues(u),h.setValueAtTime(0,u),h.linearRampToValueAtTime(i,u+.03),h.setValueAtTime(i,u
11060+r/1e3-.03),h.linearRampToValueAtTime(0,u+r/1e3);};d(),this.toneTimer=setInterval(d,r+s);}playRingback(){this.startCadence([425],1e3,3e3,.12);}playRingtone(){this.startCadence([440,480],400,250,.16);}static{this.\u0275fac=function(r){return new(r||o)(M$6(h),M$6(A$1),M$6(Us$1),M$6(q$3),M$6(G$5),M$6(Ct$2))};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var e=(()=>{class a{static{this.languages=[{language:"English",code:"en",type:"US",icon:"/assets/images/flag/icon-flag-en.svg"},{language:"\u0639\u0631\u0628\u064A",code:"ar",type:"SA",icon:"/assets/images/flag/icon-flag-es.svg"}];}static{this.notifications=[];}static{this.allApps=[{id:11,icon:"chat_bubble",title:"Messages",link:"/apps/messages",permission:"Read_Messages"},{id:12,title:"Files Manager",icon:"folder",link:"/apps/files-manager",permission:"Read_Files"},{id:14,icon:"phone",title:"Contacts Manager",link:"/apps/contacts",permission:"Read_Contacts"},{id:141,title:"Salla",icon:"salla",link:"/apps/salla"},{id:142,title:"Zid",icon:"zid",link:"/apps/zid"},{id:16,title:"WhatsApp",icon:"whatsapp",link:"/apps/whatsapp"},{id:17,title:"Instagram",icon:"instagram",link:"/apps/instagram"},{id:182,title:"Messenger",icon:"messenger",link:"/apps/messenger"},{id:18,title:"TikTok",icon:"tiktok",link:"/apps/tiktok"},{id:181,title:"X (Twitter)",icon:"x",link:"/apps/x"},{id:19,icon:"share",title:"Promotions",link:"/apps/promotions",permission:"Read_Promotions"},{id:20,icon:"settings",title:"Settings",link:"/apps/settings",permission:"Read_Messages"},{id:21,icon:"help",title:"Knowledge Base",link:"help"}];}static{this.profiledd=[{id:1,img:"/assets/images/svgs/icon-account.svg",title:"My Profile",subtitle:"Account Settings",link:"/apps/users/account-settings"},{id:2,img:"/assets/images/svgs/icon-office-bag.svg",title:"Subscriptions",subtitle:"Subscriptions",link:"/apps/subscriptions"},{id:3,img:"/assets/images/svgs/icon-master-card-2.svg",title:"Payment methods",subtitle:"Payment Methods",link:"/apps/users/cards"}];}static{this.allCountries=[{country:"Afghanistan",code:"93",arName:"\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646",iso:"af"},{country:"Albania",code:"355",arName:"\u0623\u0644\u0628\u0627\u0646\u064A\u0627",iso:"al"},{country:"Algeria",code:"213",arName:"\u0627\u0644\u062C\u0632\u0627\u0626\u0631",iso:"dz"},{country:"American Samoa",code:"1684",arName:"\u0633\u0627\u0645\u0648\u0627 \u0627\u0644\u0623\u0645\u0631\u064A\u0643\u064A\u0629",iso:"as"},{country:"Andorra",code:"376",arName:"\u0623\u0646\u062F\u0648\u0631\u0627",iso:"ad"},{country:"Angola",code:"244",arName:"\u0623\u0646\u063A\u0648\u0644\u0627",iso:"ao"},{country:"Anguilla",code:"1-264",arName:"\u0623\u0646\u062C\u0648\u064A\u0644\u0627",iso:"ai"},{country:"Antarctica",code:"672",arName:"\u0627\u0644\u0642\u0637\u0628 \u0627\u0644\u062C\u0646\u0648\u0628\u064A",iso:"aq"},{country:"Antigua and Barbuda",code:"1268",arName:"\u0623\u0646\u062A\u064A\u063A\u0648\u0627 \u0648\u0628\u0631\u0628\u0648\u062F\u0627",iso:"ag"},{country:"Argentina",code:"54",arName:"\u0627\u0644\u0623\u0631\u062C\u0646\u062A\u064A\u0646",iso:"ar"},{country:"Armenia",code:"374",arName:"\u0623\u0631\u0645\u064A\u0646\u064A\u0627",iso:"am"},{country:"Aruba",code:"297",arName:"\u0623\u0631\u0648\u0628\u0627",iso:"aw"},{country:"Australia",code:"61",arName:"\u0623\u0633\u062A\u0631\u0627\u0644\u064A\u0627",iso:"au"},{country:"Austria",code:"43",arName:"\u0627\u0644\u0646\u0645\u0633\u0627",iso:"at"},{country:"Azerbaijan",code:"994",arName:"\u0623\u0630\u0631\u0628\u064A\u062C\u0627\u0646",iso:"az"},{country:"Bahamas",code:"1-242",arName:"\u0627\u0644\u0628\u0627\u0647\u0627\u0645\u0627",iso:"bs"},{country:"Bahrain",code:"973",arName:"\u0627\u0644\u0628\u062D\u0631\u064A\u0646",iso:"bh"},{country:"Bangladesh",code:"880",arName:"\u0628\u0646\u063A\u0644\u0627\u062F\u064A\u0634",iso:"bd"},{country:"Barbados",code:"1-246",arName:"\u0628\u0627\u0631\u0628\u0627\u062F\u0648\u0633",iso:"bb"},{country:"Belarus",code:"375",arName:"\u0628\u064A\u0644\u0627\u0631\u0648\u0633",iso:"by"},{country:"Belgium",code:"32",arName:"\u0628\u0644\u062C\u064A\u0643\u0627",iso:"be"},{country:"Belize",code:"501",arName:"\u0628\u0644\u064A\u0632",iso:"bz"},{country:"Benin",code:"229",arName:"\u0628\u0646\u064A\u0646",iso:"bj"},{country:"Bermuda",code:"1441",arName:"\u0628\u0631\u0645\u0648\u062F\u0627",iso:"bm"},{country:"Bhutan",code:"975",arName:"\u0628\u0648\u062A\u0627\u0646",iso:"bt"},{country:"Bolivia",code:"591",arName:"\u0628\u0648\u0644\u064A\u0641\u064A\u0627",iso:"bo"},{country:"Bosnia and Herzegovina",code:"387",arName:"\u0628\u0648\u0633\u0646\u0629 \u0648\u0647\u0631\u0633\u0643\u0648\u0641\u064A\u0646\u064A\u0627",iso:"ba"},{country:"Botswana",code:"267",arName:"\u0628\u0648\u062A\u0633\u0648\u0627\u0646\u0627",iso:"bw"},{country:"Brazil",code:"55",arName:"\u0627\u0644\u0628\u0631\u0627\u0632\u064A\u0644",iso:"br"},{country:"British Indian Ocean Territory",code:"246",arName:"\u062C\u0632\u0631 \u0627\u0644\u0645\u062D\u064A\u0637 \u0627\u0644\u0647\u0646\u062F\u064A \u0627\u0644\u0628\u0631\u064A\u0637\u0627\u0646\u064A\u0629",iso:"io"},{country:"British Virgin Islands",code:"1284",arName:"\u062C\u0632\u0631 \u0627\u0644\u0625\u0646\u062C\u0644\u064A\u0632\u064A\u0629 \u0627\u0644\u0628\u064A\u0636\u0627\u0621",iso:"vg"},{country:"Brunei",code:"673",arName:"\u0628\u0631\u0648\u0646\u0627\u064A",iso:"bn"},{country:"Bulgaria",code:"359",arName:"\u0628\u0644\u063A\u0627\u0631\u064A\u0627",iso:"bg"},{country:"Burkina Faso",code:"226",arName:"\u0628\u0648\u0631\u0643\u064A\u0646\u0627 \u0641\u0627\u0633\u0648",iso:"bf"},{country:"Burundi",code:"257",arName:"\u0628\u0648\u0631\u0648\u0646\u062F\u064A",iso:"bi"},{country:"Cambodia",code:"855",arName:"\u0643\u0645\u0628\u0648\u062F\u064A\u0627",iso:"kh"},{country:"Cameroon",code:"237",arName:"\u0643\u0627\u0645\u064A\u0631\u0648\u0646",iso:"cm"},{country:"Canada",code:"1",arName:"\u0643\u0646\u062F\u0627",iso:"ca"},{country:"Cape Verde",code:"238",arName:"\u0643\u0627\u0628\u0648 \u0641\u064A\u0631\u062F\u064A",iso:"cv"},{country:"Cayman Islands",code:"1345",arName:"\u062C\u0632\u0631 \u0643\u0627\u064A\u0645\u0627\u0646",iso:"ky"},{country:"Central African Republic",code:"236",arName:"\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0623\u0641\u0631\u064A\u0642\u064A\u0629 \u0627\u0644\u0648\u0633\u0637\u0649",iso:"cf"},{country:"Chad",code:"235",arName:"\u062A\u0634\u0627\u062F",iso:"td"},{country:"Chile",code:"56",arName:"\u0634\u064A\u0644\u064A",iso:"cl"},{country:"China",code:"86",arName:"\u0627\u0644\u0635\u064A\u0646",iso:"cn"},{country:"Christmas Island",code:"61",arName:"\u062C\u0632\u0631 \u0643\u0631\u064A\u0633\u0645\u0627\u0633",iso:"cx"},{country:"Cocos Islands",code:"61",arName:"\u062C\u0632\u0631 \u0643\u0648\u0643\u0648\u0633",iso:"cc"},{country:"Colombia",code:"57",arName:"\u0643\u0648\u0644\u0648\u0645\u0628\u064A\u0627",iso:"co"},{country:"Comoros",code:"269",arName:"\u062C\u0648\u0645\u0648\u0631\u064A",iso:"km"},{country:"Cook Islands",code:"682",arName:"\u062C\u0632\u0631 \u0643\u0648\u0643",iso:"ck"},{country:"Costa Rica",code:"506",arName:"\u0643\u0648\u0633\u062A\u0627\u0631\u064A\u0643\u0627",iso:"cr"},{country:"Croatia",code:"385",arName:"\u0643\u0631\u0648\u0627\u062A\u064A\u0627",iso:"hr"},{country:"Cuba",code:"53",arName:"\u0643\u0648\u0628\u0627",iso:"cu"},{country:"Curacao",code:"599",arName:"\u0643\u0648\u0631\u0627\u0633\u0627\u0648",iso:"cw"},{country:"Cyprus",code:"357",arName:"\u0642\u0628\u0631\u0635",iso:"cy"},{country:"Czech Republic",code:"420",arName:"\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0634\u064A\u0643",iso:"cz"},{country:"Democratic Republic of the Congo",code:"243",arName:"\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0643\u0648\u0646\u063A\u0648 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629",iso:"cd"},{country:"Denmark",code:"45",arName:"\u0627\u0644\u062F\u0627\u0646\u0645\u0627\u0631\u0643",iso:"dk"},{country:"Djibouti",code:"253",arName:"\u062C\u064A\u0628\u0648\u062A\u064A",iso:"dj"},{country:"Dominica",code:"1-767",arName:"\u062F\u0648\u0645\u064A\u0646\u064A\u0643\u0627",iso:"dm"},{country:"Dominican Republic",code:"1-809",arName:"\u0627\u0644\u062F\u0648\u0645\u064A\u0646\u064A\u0643\u0627\u0646",iso:"do"},{country:"East Timor",code:"670",arName:"\u062A\u064A\u0645\u0648\u0631 \u0627\u0644\u0634\u0631\u0642\u064A\u0629",iso:"tl"},{country:"Ecuador",code:"593",arName:"\u0625\u0643\u0648\u0627\u062F\u0648\u0631",iso:"ec"},{country:"Egypt",code:"20",arName:"\u0645\u0635\u0631",iso:"eg"},{country:"El Salvador",code:"503",arName:"\u0627\u0644\u0633\u0644\u0641\u0627\u062F\u0648\u0631",iso:"sv"},{country:"Equatorial Guinea",code:"240",arName:"\u063A\u064A\u0646\u064A\u0627 \u0627\u0644\u0627\u0633\u062A\u0648\u0627\u0626\u064A\u0629",iso:"gq"},{country:"Eritrea",code:"291",arName:"\u0625\u0631\u064A\u062A\u0631\u064A\u0627",iso:"er"},{country:"Estonia",code:"372",arName:"\u0625\u0633\u062A\u0648\u0646\u064A\u0627",iso:"ee"},{country:"Ethiopia",code:"251",arName:"\u0625\u062B\u064A\u0648\u0628\u064A\u0627",iso:"et"},{country:"Falkland Islands",code:"500",arName:"\u062C\u0632\u0631 \u0641\u0648\u0643\u0644\u0627\u0646\u062F",iso:"fk"},{country:"Faroe Islands",code:"298",arName:"\u062C\u0632\u0631 \u0641\u0627\u0631\u0648",iso:"fo"},{country:"Fiji",code:"679",arName:"\u0641\u064A\u062C\u064A",iso:"fj"},{country:"Finland",code:"358",arName:"\u0641\u0646\u0644\u0646\u062F\u0627",iso:"fi"},{country:"France",code:"33",arName:"\u0641\u0631\u0646\u0633\u0627",iso:"fr"},{country:"French Polynesia",code:"689",arName:"\u0628\u0648\u0644\u064A\u0646\u064A\u0632\u064A\u0627 \u0627\u0644\u0641\u0631\u0646\u0633\u064A\u0629",iso:"pf"},{country:"Gabon",code:"241",arName:"\u063A\u0627\u0628\u0648\u0646",iso:"ga"},{country:"Gambia",code:"220",arName:"\u063A\u0627\u0645\u0628\u064A\u0627",iso:"gm"},{country:"Georgia",code:"995",arName:"\u062C\u0648\u0631\u062C\u064A\u0627",iso:"ge"},{country:"Germany",code:"49",arName:"\u0623\u0644\u0645\u0627\u0646\u064A\u0627",iso:"de"},{country:"Ghana",code:"233",arName:"\u063A\u0627\u0646\u0627",iso:"gh"},{country:"Gibraltar",code:"350",arName:"\u063A\u064A\u0628\u0631\u062A\u0627\u0631",iso:"gi"},{country:"Greece",code:"30",arName:"\u0627\u0644\u064A\u0648\u0646\u0627\u0646",iso:"gr"},{country:"Greenland",code:"299",arName:"\u063A\u0631\u064A\u0646\u0644\u0627\u0646\u062F",iso:"gl"},{country:"Grenada",code:"1-473",arName:"\u063A\u0631\u064A\u0646\u0627\u062F\u0627",iso:"gd"},{country:"Guam",code:"1-671",arName:"\u063A\u0648\u0627\u0645",iso:"gu"},{country:"Guatemala",code:"502",arName:"\u063A\u0648\u0627\u062A\u064A\u0645\u0627\u0644\u0627",iso:"gt"},{country:"Guernsey",code:"441481",arName:"\u063A\u064A\u0631\u0646\u0632\u064A",iso:"gg"},{country:"Guinea",code:"224",arName:"\u063A\u064A\u0646\u064A\u0627",iso:"gn"},{country:"Guinea-Bissau",code:"245",arName:"\u063A\u064A\u0646\u064A\u0627 \u0628\u064A\u0633\u0627\u0648",iso:"gw"},{country:"Guyana",code:"592",arName:"\u063A\u064A\u0627\u0646\u0627",iso:"gy"},{country:"Haiti",code:"509",arName:"\u0647\u0627\u064A\u062A\u064A",iso:"ht"},{country:"Honduras",code:"504",arName:"\u0647\u0648\u0646\u062F\u0648\u0631\u0627\u0633",iso:"hn"},{country:"Hong Kong",code:"852",arName:"\u0647\u0648\u0646\u063A \u0643\u0648\u0646\u063A",iso:"hk"},{country:"Hungary",code:"36",arName:"\u0627\u0644\u0645\u062C\u0631",iso:"hu"},{country:"Iceland",code:"354",arName:"\u0622\u064A\u0633\u0644\u0646\u062F\u0627",iso:"is"},{country:"India",code:"91",arName:"\u0627\u0644\u0647\u0646\u062F",iso:"in"},{country:"Indonesia",code:"62",arName:"\u0625\u0646\u062F\u0648\u0646\u064A\u0633\u064A\u0627",iso:"id"},{country:"Iran",code:"98",arName:"\u0625\u064A\u0631\u0627\u0646",iso:"ir"},{country:"Iraq",code:"964",arName:"\u0627\u0644\u0639\u0631\u0627\u0642",iso:"iq"},{country:"Ireland",code:"353",arName:"\u0622\u064A\u0631\u0644\u0646\u062F\u0627",iso:"ie"},{country:"Isle of Man",code:"441624",arName:"\u062C\u0632\u064A\u0631\u0629 \u0645\u0627\u0646",iso:"im"},{country:"Italy",code:"39",arName:"\u0625\u064A\u0637\u0627\u0644\u064A\u0627",iso:"it"},{country:"Ivory Coast",code:"225",arName:"\u0633\u0627\u062D\u0644 \u0627\u0644\u0639\u0627\u062C",iso:"ci"},{country:"Jamaica",code:"1876",arName:"\u062C\u0627\u0645\u0627\u064A\u0643\u0627",iso:"jm"},{country:"Japan",code:"81",arName:"\u0627\u0644\u064A\u0627\u0628\u0627\u0646",iso:"jp"},{country:"Jersey",code:"441534",arName:"\u062C\u064A\u0631\u0632\u064A",iso:"je"},{country:"Jordan",code:"962",arName:"\u0627\u0644\u0623\u0631\u062F\u0646",iso:"jo"},{country:"Kazakhstan",code:"7",arName:"\u0643\u0627\u0632\u0627\u062E\u0633\u062A\u0627\u0646",iso:"kz"},{country:"Kenya",code:"254",arName:"\u0643\u064A\u0646\u064A\u0627",iso:"ke"},{country:"Kiribati",code:"686",arName:"\u0643\u064A\u0631\u064A\u0628\u0627\u062A\u064A",iso:"ki"},{country:"Kosovo",code:"383",arName:"\u0643\u0648\u0633\u0648\u0641\u0648",iso:"xk"},{country:"Kuwait",code:"965",arName:"\u0627\u0644\u0643\u0648\u064A\u062A",iso:"kw"},{country:"Kyrgyzstan",code:"996",arName:"\u0642\u064A\u0631\u063A\u064A\u0632\u0633\u062A\u0627\u0646",iso:"kg"},{country:"Laos",code:"856",arName:"\u0644\u0627\u0648\u0633",iso:"la"},{country:"Latvia",code:"371",arName:"\u0644\u0627\u062A\u0641\u064A\u0627",iso:"lv"},{country:"Lebanon",code:"961",arName:"\u0644\u0628\u0646\u0627\u0646",iso:"lb"}
11060,{country:"Lesotho",code:"266",arName:"\u0644\u064A\u0633\u0648\u062A\u0648",iso:"ls"},{country:"Liberia",code:"231",arName:"\u0644\u064A\u0628\u064A\u0631\u064A\u0627",iso:"lr"},{country:"Libya",code:"218",arName:"\u0644\u064A\u0628\u064A\u0627",iso:"ly"},{country:"Liechtenstein",code:"423",arName:"\u0644\u064A\u062E\u062A\u0646\u0634\u062A\u0627\u064A\u0646",iso:"li"},{country:"Lithuania",code:"370",arName:"\u0644\u064A\u062A\u0648\u0627\u0646\u064A\u0627",iso:"lt"},{country:"Luxembourg",code:"352",arName:"\u0644\u0648\u0643\u0633\u0645\u0628\u0648\u0631\u063A",iso:"lu"},{country:"Macau",code:"853",arName:"\u0645\u0627\u0643\u0627\u0648",iso:"mo"},{country:"Macedonia",code:"389",arName:"\u0645\u0642\u062F\u0648\u0646\u064A\u0627",iso:"mk"},{country:"Madagascar",code:"261",arName:"\u0645\u0627\u062F\u0627\u0642\u0627\u0633\u0643\u0627\u0631",iso:"mg"},{country:"Malawi",code:"265",arName:"\u0645\u0627\u0644\u0627\u0648\u064A",iso:"mw"},{country:"Malaysia",code:"60",arName:"\u0645\u0627\u0644\u064A\u0632\u064A\u0627",iso:"my"},{country:"Maldives",code:"960",arName:"\u0627\u0644\u0645\u0627\u0644\u062F\u064A\u0641",iso:"mv"},{country:"Mali",code:"223",arName:"\u0645\u0627\u0644\u064A",iso:"ml"},{country:"Malta",code:"356",arName:"\u0645\u0627\u0644\u0637\u0627",iso:"mt"},{country:"Marshall Islands",code:"692",arName:"\u062C\u0632\u0631 \u0645\u0627\u0631\u0634\u0627\u0644",iso:"mh"},{country:"Mauritania",code:"222",arName:"\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627",iso:"mr"},{country:"Mauritius",code:"230",arName:"\u0645\u0648\u0631\u064A\u0634\u064A\u0648\u0633",iso:"mu"},{country:"Mayotte",code:"262",arName:"\u0645\u0627\u064A\u0648\u062A",iso:"yt"},{country:"Mexico",code:"52",arName:"\u0645\u0643\u0633\u064A\u0643",iso:"mx"},{country:"Micronesia",code:"691",arName:"\u0645\u064A\u0643\u0631\u0648\u0646\u064A\u0632\u064A\u0627",iso:"fm"},{country:"Moldova",code:"373",arName:"\u0645\u0648\u0644\u062F\u0648\u0641\u0627",iso:"md"},{country:"Monaco",code:"377",arName:"\u0645\u0648\u0646\u0627\u0643\u0648",iso:"mc"},{country:"Mongolia",code:"976",arName:"\u0645\u0646\u063A\u0648\u0644\u064A\u0627",iso:"mn"},{country:"Montenegro",code:"382",arName:"\u0645\u0648\u0646\u062A\u064A\u0646\u064A\u063A\u0631\u0648",iso:"me"},{country:"Montserrat",code:"1664",arName:"\u0645\u0648\u0646\u062A\u0633\u0631\u0627\u062A",iso:"ms"},{country:"Morocco",code:"212",arName:"\u0627\u0644\u0645\u063A\u0631\u0628",iso:"ma"},{country:"Mozambique",code:"258",arName:"\u0645\u0648\u0632\u0645\u0628\u064A\u0642",iso:"mz"},{country:"Myanmar",code:"95",arName:"\u0645\u064A\u0627\u0646\u0645\u0627\u0631",iso:"mm"},{country:"Namibia",code:"264",arName:"\u0646\u0627\u0645\u064A\u0628\u064A\u0627",iso:"na"},{country:"Nauru",code:"674",arName:"\u0646\u0627\u0648\u0631\u0648",iso:"nr"},{country:"Nepal",code:"977",arName:"\u0646\u064A\u0628\u0627\u0644",iso:"np"},{country:"Netherlands",code:"31",arName:"\u0647\u0648\u0644\u0646\u062F\u0627",iso:"nl"},{country:"Netherlands Antilles",code:"599",arName:"\u062C\u0632\u0631 \u0627\u0644\u0623\u0646\u062A\u064A\u0644 \u0627\u0644\u0647\u0648\u0644\u0646\u062F\u064A\u0629",iso:""},{country:"New Caledonia",code:"687",arName:"\u0643\u0627\u0644\u064A\u062F\u0648\u0646\u064A\u0627 \u0627\u0644\u062C\u062F\u064A\u062F\u0629",iso:"nc"},{country:"New Zealand",code:"64",arName:"\u0646\u064A\u0648\u0632\u064A\u0644\u0646\u062F\u0627",iso:"nz"},{country:"Nicaragua",code:"505",arName:"\u0646\u064A\u0643\u0627\u0631\u0627\u063A\u0648\u0627",iso:"ni"},{country:"Niger",code:"227",arName:"\u0646\u064A\u062C\u064A\u0631",iso:"ne"},{country:"Nigeria",code:"234",arName:"\u0646\u064A\u062C\u064A\u0631\u064A\u0627",iso:"ng"},{country:"Niue",code:"683",arName:"\u0646\u064A\u0648\u064A",iso:"nu"},{country:"North Korea",code:"850",arName:"\u0643\u0648\u0631\u064A\u0627 \u0627\u0644\u0634\u0645\u0627\u0644\u064A\u0629",iso:"kp"},{country:"Northern Mariana Islands",code:"1670",arName:"\u062C\u0632\u0631 \u0645\u0627\u0631\u064A\u0627\u0646\u0627 \u0627\u0644\u0634\u0645\u0627\u0644\u064A\u0629",iso:"mp"},{country:"Norway",code:"47",arName:"\u0627\u0644\u0646\u0631\u0648\u064A\u062C",iso:"no"},{country:"Oman",code:"968",arName:"\u0639\u0645\u0627\u0646",iso:"om"},{country:"Pakistan",code:"92",arName:"\u0628\u0627\u0643\u0633\u062A\u0627\u0646",iso:"pk"},{country:"Palau",code:"680",arName:"\u0628\u0627\u0644\u0627\u0648",iso:"pw"},{country:"Palestine",code:"970",arName:"\u0641\u0644\u0633\u0637\u064A\u0646",iso:"ps"},{country:"Panama",code:"507",arName:"\u0628\u0646\u0627\u0645\u0627",iso:"pa"},{country:"Papua New Guinea",code:"675",arName:"\u0628\u0627\u0628\u0648\u0627 \u063A\u064A\u0646\u064A\u0627 \u0627\u0644\u062C\u062F\u064A\u062F\u0629",iso:"pg"},{country:"Paraguay",code:"595",arName:"\u0628\u0627\u0631\u0627\u063A\u0648\u0627\u064A",iso:"py"},{country:"Peru",code:"51",arName:"\u0628\u064A\u0631\u0648",iso:"pe"},{country:"Philippines",code:"63",arName:"\u0627\u0644\u0641\u0644\u0628\u064A\u0646",iso:"ph"},{country:"Pitcairn",code:"64",arName:"\u0628\u064A\u062A\u0643\u064A\u0631\u0646",iso:"pn"},{country:"Poland",code:"48",arName:"\u0628\u0648\u0644\u0646\u062F\u0627",iso:"pl"},{country:"Portugal",code:"351",arName:"\u0628\u0648\u0631\u062A\u063A\u0627\u0644",iso:"pt"},{country:"Puerto Rico",code:"1787, 1939",arName:"\u0628\u0631\u0648\u0643\u0633\u064A\u0644",iso:"pr"},{country:"Qatar",code:"974",arName:"\u0642\u0637\u0631",iso:"qa"},{country:"Republic of the Congo",code:"242",arName:"\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0643\u0648\u0646\u063A\u0648 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629",iso:"cg"},{country:"Reunion",code:"262",arName:"\u0631\u064A\u0648\u0646\u064A\u0648\u0646",iso:"re"},{country:"Romania",code:"40",arName:"\u0631\u0648\u0645\u0627\u0646\u064A\u0627",iso:"ro"},{country:"Russia",code:"7",arName:"\u0631\u0648\u0633\u064A\u0627",iso:"ru"},{country:"Rwanda",code:"250",arName:"\u0631\u0648\u0627\u0646\u062F\u0627",iso:"rw"},{country:"Saint Barthelemy",code:"590",arName:"\u0633\u0627\u0646 \u0628\u0627\u0631\u062A\u064A\u0644\u064A\u0645\u064A",iso:"bl"},{country:"Saint Helena",code:"290",arName:"\u0633\u0627\u0646 \u0647\u064A\u0644\u064A\u0646\u0627",iso:"sh"},{country:"Saint Kitts and Nevis",code:"1869",arName:"\u0633\u0627\u0646 \u0643\u064A\u062A\u0633 \u0648\u0646\u064A\u0641\u064A\u0633",iso:"kn"},{country:"Saint Lucia",code:"1758",arName:"\u0633\u0627\u0646 \u0644\u0648\u0633\u064A\u0627",iso:"lc"},{country:"Saint Martin",code:"590",arName:"\u0633\u0627\u0646 \u0645\u0627\u0631\u062A\u064A\u0646",iso:"mf"},{country:"Saint Pierre and Miquelon",code:"508",arName:"\u0633\u0627\u0646 \u0628\u064A\u064A\u0631 \u0648\u0645\u064A\u0643\u0644\u0648\u0646",iso:"pm"},{country:"Saint Vincent and the Grenadines",code:"1784",arName:"\u0633\u0627\u0646 \u0641\u064A\u0646\u0633\u0646\u062A \u0648\u0627\u0644\u063A\u0631\u064A\u0646\u0627\u062F\u064A\u0646",iso:"vc"},{country:"Samoa",code:"685",arName:"\u0633\u0627\u0645\u0648\u0627",iso:"ws"},{country:"San Marino",code:"378",arName:"\u0633\u0627\u0646 \u0645\u0627\u0631\u064A\u0646\u0648",iso:"sm"},{country:"Sao Tome and Principe",code:"239",arName:"\u0633\u0627\u0648 \u062A\u0648\u0645\u064A \u0648\u0628\u0631\u064A\u0646\u0633\u064A\u0628\u064A",iso:"st"},{country:"Saudi Arabia",code:"966",arName:"\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629",iso:"sa"},{country:"Senegal",code:"221",arName:"\u0633\u0646\u063A\u0627\u0644",iso:"sn"},{country:"Serbia",code:"381",arName:"\u0635\u0631\u0628\u064A\u0627",iso:"rs"},{country:"Seychelles",code:"248",arName:"\u0633\u064A\u0634\u064A\u0644",iso:"sc"},{country:"Sierra Leone",code:"232",arName:"\u0633\u064A\u0631\u0627\u0644\u064A\u0648\u0646",iso:"sl"},{country:"Singapore",code:"65",arName:"\u0633\u0646\u063A\u0627\u0641\u0648\u0631\u0629",iso:"sg"},{country:"Sint Maarten",code:"1-721",arName:"\u0633\u0627\u0646 \u0645\u0627\u0631\u062A\u064A\u0646",iso:"sx"},{country:"Slovakia",code:"421",arName:"\u0633\u0644\u0648\u0641\u0627\u0643\u064A\u0627",iso:"sk"},{country:"Slovenia",code:"386",arName:"\u0633\u0644\u0648\u0641\u064A\u0646\u064A\u0627",iso:"si"},{country:"Solomon Islands",code:"677",arName:"\u062C\u0632\u0631 \u0633\u0644\u064A\u0645\u0627\u0646",iso:"sb"},{country:"Somalia",code:"252",arName:"\u0635\u0648\u0645\u0627\u0644\u064A\u0644\u0627\u0646\u062F",iso:"so"},{country:"South Africa",code:"27",arName:"\u062C\u0646\u0648\u0628 \u0623\u0641\u0631\u064A\u0642\u064A\u0627",iso:"za"},{country:"South Korea",code:"82",arName:"\u0643\u0648\u0631\u064A\u0627 \u0627\u0644\u062C\u0646\u0648\u0628\u064A\u0629",iso:"kr"},{country:"South Sudan",code:"211",arName:"\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646",iso:"ss"},{country:"Spain",code:"34",arName:"\u0625\u0633\u0628\u0627\u0646\u064A\u0627",iso:"es"},{country:"Sri Lanka",code:"94",arName:"\u0633\u0631\u064A\u0644\u0627\u0646\u0643\u0627",iso:"l
11060k"},{country:"Sudan",code:"249",arName:"\u0627\u0644\u0633\u0648\u062F\u0627\u0646",iso:"sd"},{country:"Suriname",code:"597",arName:"\u0633\u0648\u0631\u064A\u0646\u0627\u0645",iso:"sr"},{country:"Svalbard and Jan Mayen",code:"47",arName:"\u0633\u0641\u0627\u0644\u0628\u0627\u0631\u062F \u0648\u062C\u0627\u0646 \u0645\u0627\u064A\u0646",iso:"sj"},{country:"Swaziland",code:"268",arName:"\u0633\u0648\u0627\u0632\u064A\u0644\u0627\u0646\u062F",iso:"sz"},{country:"Sweden",code:"46",arName:"\u0627\u0644\u0633\u0648\u064A\u062F",iso:"se"},{country:"Switzerland",code:"41",arName:"\u0633\u0648\u064A\u0633\u0631\u0627",iso:"ch"},{country:"Syria",code:"963",arName:"\u0633\u0648\u0631\u064A\u0627",iso:"sy"},{country:"Taiwan",code:"886",arName:"\u062A\u0627\u064A\u0648\u0627\u0646",iso:"tw"},{country:"Tajikistan",code:"992",arName:"\u0637\u0627\u062C\u064A\u0643\u0633\u062A\u0627\u0646",iso:"tj"},{country:"Tanzania",code:"255",arName:"\u062A\u0646\u0632\u0627\u0646\u064A\u0627",iso:"tz"},{country:"Thailand",code:"66",arName:"\u062A\u0627\u064A\u0644\u0627\u0646\u062F",iso:"th"},{country:"Togo",code:"228",arName:"\u062A\u0648\u063A\u0648",iso:"tg"},{country:"Tokelau",code:"690",arName:"\u062A\u0648\u0643\u064A\u0644\u0627\u0648",iso:"tk"},{country:"Tonga",code:"676",arName:"\u062A\u0648\u0646\u063A\u0627",iso:"to"},{country:"Trinidad and Tobago",code:"1868",arName:"\u062A\u0631\u064A\u0646\u064A\u062F\u0627\u062F \u0648\u062A\u0648\u0628\u0627\u063A\u0648",iso:"tt"},{country:"Tunisia",code:"216",arName:"\u062A\u0648\u0646\u0633",iso:"tn"},{country:"Turkey",code:"90",arName:"\u062A\u0631\u0643\u064A\u0627",iso:"tr"},{country:"Turkmenistan",code:"993",arName:"\u062A\u0631\u0643\u0645\u0627\u0646\u0633\u062A\u0627\u0646",iso:"tm"},{country:"Turks and Caicos Islands",code:"1649",arName:"\u062C\u0632\u0631 \u062A\u0648\u0631\u0643\u0633 \u0648\u0643\u0627\u064A\u0643\u0648\u0633",iso:"tc"},{country:"Tuvalu",code:"688",arName:"\u062A\u0648\u0641\u0627\u0644\u0648",iso:"tv"},{country:"U.S. Virgin Islands",code:"1340",arName:"\u062C\u0632\u0631 \u0627\u0644\u0625\u0646\u062C\u0644\u064A\u0632\u064A\u0629 \u0627\u0644\u0628\u064A\u0636\u0627\u0621",iso:"vi"},{country:"Uganda",code:"256",arName:"\u0623\u0648\u063A\u0646\u062F\u0627",iso:"ug"},{country:"Ukraine",code:"380",arName:"\u0623\u0648\u0643\u0631\u0627\u0646\u064A\u0627",iso:"ua"},{country:"United Arab Emirates",code:"971",arName:"\u0627\u0644\u0625\u0645\u0627\u0631\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629",iso:"ae"},{country:"United Kingdom",code:"44",arName:"\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629",iso:"gb"},{country:"United States",code:"1",arName:"\u0627\u0644\u0648\u0644\u0627\u064A\u0627\u062A \u0627\u0644\u0645\u062A\u062D\u062F\u0629",iso:"us"},{country:"Uruguay",code:"598",arName:"\u0623\u0648\u0631\u0648\u063A\u0648\u0627\u064A",iso:"uy"},{country:"Uzbekistan",code:"998",arName:"\u0623\u0632\u0628\u0643\u0633\u062A\u0627\u0646",iso:"uz"},{country:"Vanuatu",code:"678",arName:"\u0641\u0627\u0646\u0648\u0627\u062A\u0648",iso:"vu"},{country:"Vatican",code:"379",arName:"\u0641\u0627\u062A\u064A\u0643\u0627\u0646",iso:"va"},{country:"Venezuela",code:"58",arName:"\u0641\u0646\u0632\u0648\u064A\u0644\u0627",iso:"ve"},{country:"Vietnam",code:"84",arName:"\u0641\u064A\u062A\u0646\u0627\u0645",iso:"vn"},{country:"Wallis and Futuna",code:"681",arName:"\u0648\u0627\u0644\u064A\u0633 \u0648\u0641\u0648\u062A\u0648\u0646\u0627",iso:"wf"},{country:"Western Sahara",code:"212",arName:"\u0627\u0644\u0635\u062D\u0631\u0627\u0621 \u0627\u0644\u063A\u0631\u0628\u064A\u0629",iso:"eh"},{country:"Yemen",code:"967",arName:"\u0627\u0644\u064A\u0645\u0646",iso:"ye"},{country:"Zambia",code:"260",arName:"\u0632\u0627\u0645\u0628\u064A\u0627",iso:"zm"},{country:"Zimbabwe",code:"263",arName:"\u0632\u064A\u0645\u0628\u0627\u0628\u0648\u064A",iso:"zw"}];}}return a})();var d$1=(function(e){return e[e.Active=0]="Active",e[e.Inactive=1]="Inactive",e[e.Cancelled=2]="Cancelled",e[e.Completed=3]="Completed",e[e.Upgraded=4]="Upgraded",e[e.FutureRenew=5]="FutureRenew",e[e.Downgraded=6]="Downgraded",e})(d$1||{});var i={ADD_SUB_CLIENT:"AddSubscriptionClient",RENEW_SUB:"RenewSubscription",GET_COST_FOR_UPGRADE:"GetCostForSubscriptionUpgrade",
11060UPGRADE_SUB:"UpgradeSubscription",UPGRADE_SUB_TO_ANNUAL:"UpgradeSubscriptionToAnnual",CANCEL_SUB:"CancelSubscription",GET_FEATURES_USAGE:"GetFeaturesUsage",SEARCH_MY_SUB:"SearchMySubscriptions",RETRY_PAYMENT:"RetryPayment",SET_AUTO_RENEW:"SetSubscriptionAutoRenew",GET_SEAT_ALLOWANCE:"GetSeatAllowance",GET_UNPAID_INVOICE_STATUS:"GetUnpaidInvoiceStatus"},G=(()=>{class n extends se$2{constructor(t,e,r){super(t,e,r,"Subscription/");}getSeatAllowance(){return this.post(i.GET_SEAT_ALLOWANCE,{})}getUnpaidInvoiceStatus(){return this.post(i.GET_UNPAID_INVOICE_STATUS,{})}renewSubscription(t){return this.post(i.RENEW_SUB,{id:t})}setAutoRenew(t,e){return this.post(i.SET_AUTO_RENEW,{id:t,enabled:e})}renewSubscriptionWithPayment(t,e,r,a,A,U,T){return this.post(i.RENEW_SUB,{id:t,type:e,name:r,number:a,cvc:A,month:U,year:T})}cancelSubscription(t){return this.post(i.CANCEL_SUB,t)}getSubscriptionById(t){return this.get(i.SEARCH_MY_SUB,{id:t})}getMySubscriptions(){return this.get(i.SEARCH_MY_SUB)}getActiveSubscriptions(){return this.getMySubscriptions().pipe(ve$4(t=>(t?.succeeded?t.data||[]:[]).filter(r=>r.isActive&&r.subscriptionStatus===d$1.Active)))}getSubscriptionAppliedPromo(t){return this.get("GetSubscriptionAppliedPromo",{subscriptionId:t})}addSubscriptionFromClientByToken(t){return this.post(i.ADD_SUB_CLIENT,t)}addFreeSubscriptionFromClient(t){return this.post(i.ADD_SUB_CLIENT,{planId:t,isAutoRenew:true,paymentType:5})}upgradeSubscription(t){return this.post(i.UPGRADE_SUB,t)}getUpgradeCost(t,e){return this.get(i.GET_COST_FOR_UPGRADE,{id:t,newPlanId:e})}getCostForSubscriptionUpgrade(t,e,r){return this.get(i.GET_COST_FOR_UPGRADE,{id:t,newPlanId:e,isAnnual:r})}upgradeSubscriptionToAnnual(t){return this.post(i.UPGRADE_SUB_TO_ANNUAL,t)}getFeaturesUsage(t,e){return this.get(i.GET_FEATURES_USAGE,{subscriptionId:t,isCurrentSubscription:e})}renewSubscriptionWithSavedToken(t,e){return this.post(i.RENEW_SUB,{id:t,tokenId:e})}retryPayment(t,e){return this.post(i.RETRY_PAYMENT,{id:t,tokenId:e})}static{this.\u0275fac=function(e){return new(e||n)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:n,factory:n.\u0275fac,providedIn:"root"});}}return n})();var c=class i{static{this.UNITS=[{unit:"year",ms:31536e6},{unit:"month",ms:2628e6},{unit:"week",ms:6048e5},{unit:"day",ms:864e5},{unit:"hour",ms:36e5},{unit:"minute",ms:6e4},{unit:"second",ms:1e3}];}static{this.FORMATTERS=new Map;}constructor(t){this.translate=t;}static formatterFor(t){let e=i.FORMATTERS.get(t);return e||(e=new Intl.RelativeTimeFormat(t,{numeric:"auto"}),i.FORMATTERS.set(t,e)),e}transform(t){if(!t)return "";let e=new Date(t);if(isNaN(e.getTime()))return "";let u=this.translate.currentLang||this.translate.defaultLang||"en",f=i.formatterFor(u),r=e.getTime()-Date.now();for(let{unit:n,ms:s}of i.UNITS)if(Math.abs(r)>=s||n==="second")return f.format(Math.round(r/s),n);return ""}static{this.\u0275fac=function(e){return new(e||i)(V$3(O$5,16))};}static{this.\u0275pipe=Fe$4({name:"timeAgo",type:i,pure:false});}};var o={GET_TICKETS:"GetTickets",GET_TICKET:"GetTicket",GET_CATEGORIES:"GetCategories",GET_STATUSES:"GetStatuses",GET_MY_OPEN_COUNT:"GetMyOpenCount",CREATE:"CreateTicket",REPLY:"AddReply",INTERNAL_NOTE:"AddInternalNote",RATE:"Rate",DECIDE_QUOTE:"DecideQuote"},O=(()=>{class n extends se$2{constructor(t,e,r){super(t,e,r,"SupportTickets/");}getTickets(t){return this.post(o.GET_TICKETS,t)}getTicket(t,e=false){return this.get(o.GET_TICKET,{id:t,includeInternalNotes:e})}getCategories(){return this.get(o.GET_CATEGORIES)}getStatuses(){return this.get(o.GET_STATUSES)}getMyOpenCount(){return this.get(o.GET_MY_OPEN_COUNT)}createTicket(t){return this.post(o.CREATE,t)}addReply(t,e){return this.post(o.REPLY,{ticketId:t,body:e})}addInternalNote(t,e){return this.post(o.INTERNAL_NOTE,{ticketId:t,body:e})}rate(t,e,r){return this.post(o.RATE,{ticketId:t,rating:e,comment:r})}decideQuote(t,e){return this.post(o.DECIDE_QUOTE,{ticketId:t,approve:e})}uploadAttachment(t,e,r){let i=new FormData;i.append("ticketId",String(t)),r!=null&&i.append("commentId",String(r)),i.append("file",e);let s=new St$5({Authorization:`Bearer ${localStorage.getItem("token")}`});return this.http.post(`${this.baseUrl}SupportTickets/AddAttachment`,i,{headers:s})}downloadAttachment(t,e){let r=new St$5({Authorization:`Bearer ${localStorage.getItem("token")}`});return this.http.get(`${this.baseUrl}SupportTickets/DownloadAttachment?ticketId=${t}&attachmentId=${e}`,{headers:r,responseType:"blob"}).pipe(uc$1(i=>this.extractBlobError(i)))}extractBlobError(t){let e=t?.error;return e instanceof Blob?lt$3(e.text()).pipe(Bi$1(r=>{let i="";try{let s=JSON.parse(r);i=s?.errors?.[0]??s?.message??"";}catch(s){}return PD(()=>new Error(i))})):PD(()=>new Error(""))}static{this.\u0275fac=function(e){return new(e||n)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:n,factory:n.\u0275fac,providedIn:"root"});}}return n})();var r={GET_USERS:"GetUsers",CREATE_USER:"CreateUser",CREATE_CLIENT_USER:"CreateClientUser",DELETE_USER:"DeleteUser",UPDATE_USER_CLIENT:"UpdateUserClient",UPDATE_USER_CLIENT_ROLES:"UpdateUserClientRoles",UPDATE_USER_PROFILE:"UpdateUserProfile",CHANGE_PROFILE_PIC:"ChangeUserProfilePic",GET_ALL_ROLES:"GetAllRoles",GET_USER_ROLES:"GetUserRoles",TOGGLE_SUPER_ADMIN:"ToggleSuperAdmin",GET_USER_PROFILE:"GetUserProfile",CREATE_PERMISSION:"CreatePermission",DELETE_PERMISSION:"DeletePermission",GET_ALL_USERS_NAMES:"GetAllUsersNames",UNLOCK_USER:"UnlockUser",GET_USER_STATISTICS:"GetUserStatistics",GET_NOTIFICATION_SETTINGS:"GetNotificationSettings",UPDATE_NOTIFICATION_SETTINGS:"UpdateNotificationSettings",UPDATE_LANGUAGE:"UpdateUserLanguage",RESEND_VERIFICATION_EMAIL:"ResendVerificationEmail"},f=(()=>{class o extends se$2{constructor(e,t,s,a){super(e,t,s,"UserManagement/"),this.storageService=a,this.clearNamesCacheOnSuccess=N=>{N?.succeeded&&this.storageService.clearUsersCache();};}getProfile(e){return this.post(r.GET_USER_PROFILE,{id:e})}getProfilePath(e){return e||"/assets/images/profile/user-1.jpg"}getUserRoles(e){return this.post(r.GET_USER_ROLES,{id:e})}createUser(e){return this.post(r.CREATE_USER,{phoneNumber:e.phoneNumber.toString(),nickname:e.nickname,name:e.name,email:e.email,roles:e.roles,password:e.password,departmentId:e.departmentId}).pipe(Uf$1(this.clearNamesCacheOnSuccess))}createClientUser(e,t){return this.post(r.CREATE_CLIENT_USER,{phoneNumber:e.phoneNumber.toString(),nickname:e.nickname,name:e.name,email:e.email,roles:e.roles,password:e.password,clientId:t}).pipe(Uf$1(this.clearNamesCacheOnSuccess))}createPermission(e,t){return this.post(r.CREATE_PERMISSION,{roleId:e,name:t})}getAllRoles(){return this.post(r.GET_ALL_ROLES,{})}getUsers(e,t,s,a){return this.post(r.GET_USERS,{searchInput:e,clientId:t,pageNumber:s,pageSize:a})}getAllUsersNames(){return this.post(r.GET_ALL_USERS_NAMES,{})}getAllUsersNamesCached(){let e=this.storageService.getUsers(),t=this.getAllUsersNames().pipe(Yt$5(s=>!!s?.succeeded&&Array.isArray(s.data)),ve$4(s=>s.data),Uf$1(s=>
11060this.storageService.setUsers(s)),uc$1(()=>wn$2));return e?.length?dr$3(ki$3(e),t):t}updateUserClient(e,t,s){return this.post(r.UPDATE_USER_CLIENT,{id:e,nickname:t,departmentId:s}).pipe(Uf$1(this.clearNamesCacheOnSuccess))}updateUserClientRoles(e,t){return this.post(r.UPDATE_USER_CLIENT_ROLES,{id:e,roles:t})}updateUserProfile(e,t,s,a){return this.post(r.UPDATE_USER_PROFILE,{id:e,phoneNumber:t,email:s,name:a}).pipe(Uf$1(this.clearNamesCacheOnSuccess))}changeProfilePic(e,t){return this.post(r.CHANGE_PROFILE_PIC,{id:e.id,fileId:t})}deleteUser(e){return this.post(r.DELETE_USER,{id:e}).pipe(Uf$1(this.clearNamesCacheOnSuccess))}deletePermission(e,t){return this.post(r.DELETE_PERMISSION,{roleId:e,permission:t})}unlockUser(e){return this.post(r.UNLOCK_USER,{id:e})}resendVerificationEmail(e){return this.post(r.RESEND_VERIFICATION_EMAIL,{userId:e})}toggleSuperAdmin(e){return this.post(r.TOGGLE_SUPER_ADMIN,{id:e})}getUserStatistics(e){let t=this.baseUrl+"User/"+r.GET_USER_STATISTICS;return this.http.post(t,{userId:e.userId||null,fromDate:e.fromDate?e.fromDate.toISOString():null,toDate:e.toDate?e.toDate.toISOString():null},this.httpOptionsService.getHttpOptions()).pipe(uc$1(s=>this.handleError(s)))}getNotificationSettings(){return this.post(r.GET_NOTIFICATION_SETTINGS,{})}updateNotificationSettings(e){return this.post(r.UPDATE_NOTIFICATION_SETTINGS,e)}updateUserLanguage(e){let t=this.baseUrl+"User/"+r.UPDATE_LANGUAGE;return this.http.post(t,{language:e},this.httpOptionsService.getHttpOptions()).pipe(uc$1(s=>this.handleError(s)))}static{this.\u0275fac=function(t){return new(t||o)(M$6(ED),M$6(vt$3),M$6(G$5),M$6(J$2))};}static{this.\u0275prov=x$3({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();function qs(i){return new y$6(3e3,false)}function Wc(){return new y$6(3100,false)}function qc(){return new y$6(3101,false)}function Kc(i){return new y$6(3001,false)}function Hc(i){return new y$6(3003,false)}function Gc(i){return new y$6(3004,false)}function Hs(i,n){return new y$6(3005,false)}function Gs(){return new y$6(3006,false)}function Qs(){return new y$6(3007,false)}function Ys(i,n){return new y$6(3008,false)}function Xs(i){return new y$6(3002,false)}function Zs(i,n,t,e,o){return new y$6(3010,false)}function Js(){return new y$6(3011,false)}function tl(){return new y$6(3012,false)}function el(){return new y$6(3200,false)}function il(){return new y$6(3202,false)}function nl(){return new y$6(3013,false)}function ol(i){return new y$6(3014,false)}function al(i){return new y$6(3015,false)}function rl(i){return new y$6(3016,false)}function sl(i,n){return new y$6(3404,false)}function Qc(i){return new y$6(3502,false)}function ll(i){return new y$6(3503,false)}function cl(){return new y$6(3300,false)}function dl(i){return new y$6(3504,false)}function pl(i){return new y$6(3301,false)}function ml(i,n){return new y$6(3302,false)}function ul(i){return new y$6(3303,false)}function fl(i,n){return new y$6(3400,false)}function hl(i){return new y$6(3401,false)}function gl(i){return new y$6(3402,false)}function _l(i,n){return new y$6(3505,false)}function Ai(i){switch(i.length){case 0:return new l$3;case 1:return i[0];default:return new u$2(i)}}function Xo(i,n,t=new Map,e=new Map){let o=[],a=[],d=-1,p=null;if(n.forEach(h=>{let g=h.get("offset"),P=g==d,k=P&&p||new Map;h.forEach((R,F)=>{let I=F,B=R;if(F!=="offset")switch(I=i.normalizePropertyName(I,o),B){case g$3:B=t.get(F);break;case _$5:B=e.get(F);break;default:B=i.normalizeStyleValue(F,I,B,o);break}k.set(I,B);}),P||a.push(k),p=k,d=g;}),o.length)throw Qc();return a}function co(i,n,t,e){switch(n){case "start":i.onStart(()=>e(t&&Go(t,"start",i)));break;case "done":i.onDone(()=>e(t&&Go(t,"done",i)));break;case "destroy":i.onDestroy(()=>e(t&&Go(t,"destroy",i)));break}}function Go(i,n,t){let e=t.totalTime,o=!!t.disabled,a=po(i.element,i.triggerName,i.fromState,i.toState,n||i.phaseName,e??i.totalTime,o),d=i._data;return d!=null&&(a._data=d),a}function po(i,n,t,e,o="",a=0,d){return {element:i,triggerName:n,fromState:t,toState:e,phaseName:o,totalTime:a,disabled:!!d}}function we(i,n,t){let e=i.get(n);return e||i.set(n,e=t),e}function Zo(i){let n=i.indexOf(":"),t=i.substring(1,n),e=i.slice(n+1);return [t,e]}var Yc=typeof document>"u"?null:document.documentElement;function mo(i){let n=i.parentNode||i.host||null;return n===Yc?null:n}function Xc(i){return i.substring(1,6)=="ebkit"}var Zi=null,Ks=false;function Cl(i){Zi||(Zi=Zc()||{},Ks=Zi.style?"WebkitAppearance"in Zi.style:false);let n=true;return Zi.style&&!Xc(i)&&(n=i in Zi.style,!n&&Ks&&(n="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Zi.style)),n}function Zc(){return typeof document<"u"?document.body:null}function Jo(i,n){for(;n;){if(n===i)return true;n=mo(n);}return false}function ta(i,n,t){if(t)return Array.from(i.querySelectorAll(n));let e=i.querySelector(n);return e?[e]:[]}var Jc=1e3,ea="{{",td="}}",ia="ng-enter",uo="ng-leave",Pn="ng-trigger",kn=".ng-trigger",na="ng-animating",fo=".ng-animating";function Ii(i){if(typeof i=="number")return i;let n=i.match(/^(-?[\.\d]+)(m?s)/);return !n||n.length<2?0:Qo(parseFloat(n[1]),n[2])}function Qo(i,n){return n==="s"?i*Jc:i}function En(i,n,t){return i.hasOwnProperty("duration")?i:id(i,n,t)}var ed=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function id(i,n,t){let e,o=0,a="";if(typeof i=="string"){let d=i.match(ed);if(d===null)return n.push(qs()),{duration:0,delay:0,easing:""};e=Qo(parseFloat(d[1]),d[2]);let p=d[3];p!=null&&(o=Qo(parseFloat(p),d[4]));let h=d[5];h&&(a=h);}else e=i;if(!t){let d=false,p=n.length;e<0&&(n.push(Wc()),d=true),o<0&&(n.push(qc()),d=true),d&&n.splice(p,0,qs());}return {duration:e,delay:o,easing:a}}function vl(i){return i.length?i[0]instanceof Map?i:i.map(n=>new Map(Object.entries(n))):[]}
vendor: 15,167 bytes, line 11060
11060function bi(i,n,t){n.forEach((e,o)=>{let a=ho(o);t&&!t.has(o)&&t.set(o,i.style[a]),i.style[a]=e;});}function Ki(i,n){n.forEach((t,e)=>{let o=ho(e);i.style[o]="";});}function vn(i){return Array.isArray(i)?i.length==1?i[0]:y$3(i):i}function bl(i,n,t){let e=n.params||{},o=oa(i);o.length&&o.forEach(a=>{e.hasOwnProperty(a)||t.push(Kc());});}var Yo=new RegExp(`${ea}\\s*(.+?)\\s*${td}`,"g");function oa(i){let n=[];if(typeof i=="string"){let t;for(;t=Yo.exec(i);)n.push(t[1]);Yo.lastIndex=0;}return n}function bn(i,n,t){let e=`${i}`,o=e.replace(Yo,(a,d)=>{let p=n[d];return p==null&&(t.push(Hc()),p=""),p.toString()});return o==e?i:o}var nd=/-+([a-z0-9])/g;function ho(i){return i.replace(nd,(...n)=>n[1].toUpperCase())}function xl(i,n){return i===0||n===0}function Ml(i,n,t){if(t.size&&n.length){let e=n[0],o=[];if(t.forEach((a,d)=>{e.has(d)||o.push(d),e.set(d,a);}),o.length)for(let a=1;a<n.length;a++){let d=n[a];o.forEach(p=>d.set(p,go(i,p)));}}return n}function Te(i,n,t){switch(n.type){case r$4.Trigger:return i.visitTrigger(n,t);case r$4.State:return i.visitState(n,t);case r$4.Transition:return i.visitTransition(n,t);case r$4.Sequence:return i.visitSequence(n,t);case r$4.Group:return i.visitGroup(n,t);case r$4.Animate:return i.visitAnimate(n,t);case r$4.Keyframes:return i.visitKeyframes(n,t);case r$4.Style:return i.visitStyle(n,t);case r$4.Reference:return i.visitReference(n,t);case r$4.AnimateChild:return i.visitAnimateChild(n,t);case r$4.AnimateRef:return i.visitAnimateRef(n,t);case r$4.Query:return i.visitQuery(n,t);case r$4.Stagger:return i.visitStagger(n,t);default:throw Gc(n.type)}}function go(i,n){return window.getComputedStyle(i)[n]}var xa=(()=>{class i{validateStyleProperty(t){return Cl(t)}containsElement(t,e){return Jo(t,e)}getParentElement(t){return mo(t)}query(t,e,o){return ta(t,e,o)}computeStyle(t,e,o){return o||""}animate(t,e,o,a,d,p=[],h){return new l$3(o,a)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=x$3({token:i,factory:i.\u0275fac})}return i})(),tn=class{static NOOP=new xa},en=class{};var od=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"]),xo=class extends en{normalizePropertyName(n,t){return ho(n)}normalizeStyleValue(n,t,e,o){let a="",d=e.toString().trim();if(od.has(t)&&e!==0&&e!=="0")if(typeof e=="number")a="px";else {let p=e.match(/^[+-]?[\d\.]+([a-z]*)$/);p&&p[1].length==0&&o.push(Hs());}return d+a}};var Mo="*";function ad(i,n){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(e=>rd(e,t,n)):t.push(i),t}function rd(i,n,t){if(i[0]==":"){let h=sd(i,t);if(typeof h=="function"){n.push(h);return}i=h;}let e=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(e==null||e.length<4)return t.push(al()),n;let o=e[1],a=e[2],d=e[3];n.push(yl(o,d));let p=o==Mo&&d==Mo;a[0]=="<"&&!p&&n.push(yl(d,o));}function sd(i,n){switch(i){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,e)=>parseFloat(e)>parseFloat(t);case ":decrement":return (t,e)=>parseFloat(e)<parseFloat(t);default:return n.push(rl()),"* => *"}}var _o=new Set(["true","1"]),Co=new Set(["false","0"]);function yl(i,n){let t=_o.has(i)||Co.has(i),e=_o.has(n)||Co.has(n);return (o,a)=>{let d=i==Mo||i==o,p=n==Mo||n==a;return !d&&t&&typeof o=="boolean"&&(d=o?_o.has(i):Co.has(i)),!p&&e&&typeof a=="boolean"&&(p=a?_o.has(n):Co.has(n)),d&&p}}var Dl=":self",ld=new RegExp(`s*${Dl}s*,?`,"g");function Fl(i,n,t,e){return new da(i).build(n,t,e)}var Sl="",da=class{_driver;constructor(n){this._driver=n;}build(n,t,e){let o=new pa(t);return this._resetContextStyleTimingState(o),Te(this,vn(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector=Sl,n.collectedStyles=new Map,n.collectedStyles.set(Sl,new Map),n.currentTime=0;}visitTrigger(n,t){let e=t.queryCount=0,o=t.depCount=0,a=[],d=[];return n.name.charAt(0)=="@"&&t.errors.push(Gs()),n.definitions.forEach(p=>{if(this._resetContextStyleTimingState(t),p.type==r$4.State){let h=p,g=h.name;g.toString().split(/\s*,\s*/).forEach(P=>{h.name=P,a.push(this.visitState(h,t));}),h.name=g;}else if(p.type==r$4.Transition){let h=this.visitTransition(p,t);e+=h.queryCount,o+=h.depCount,d.push(h);}else t.errors.push(Qs());}),{type:r$4.Trigger,name:n.name,states:a,transitions:d,queryCount:e,depCount:o,options:null}}visitState(n,t){let e=this.visitStyle(n.styles,t),o=n.options&&n.options.params||null;if(e.containsDynamicStyles){let a=new Set,d=o||{};e.styles.forEach(p=>{p instanceof Map&&p.forEach(h=>{oa(h).forEach(g=>{d.hasOwnProperty(g)||a.add(g);});});}),a.size&&t.errors.push(Ys(n.name,[...a.values()]));}return {type:r$4.State,name:n.name,style:e,options:o?{params:o}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;let e=Te(this,vn(n.animation),t),o=ad(n.expr,t.errors);return {type:r$4.Transition,matchers:o,animation:e,queryCount:t.queryCount,depCount:t.depCount,options:Ji(n.options)}}visitSequence(n,t){return {type:r$4.Sequence,steps:n.steps.map(e=>Te(this,e,t)),options:Ji(n.options)}}visitGroup(n,t){let e=t.currentTime,o=0,a=n.steps.map(d=>{t.currentTime=e;let p=Te(this,d,t);return o=Math.max(o,t.currentTime),p});return t.currentTime=o,{type:r$4.Group,steps:a,options:Ji(n.options)}}visitAnimate(n,t){let e=md(n.timings,t.errors);t.currentAnimateTimings=e;let o,a=n.styles?n.styles:F$3({});if(a.type==r$4.Keyframes)o=this.visitKeyframes(a,t);else {let d=n.styles,p=false;if(!d){p=true;let g={};e.easing&&(g.easing=e.easing),d=F$3(g);}t.currentTime+=e.duration+e.delay;let h=this.visitStyle(d,t);h.isEmptyStep=p,o=h;}return t.currentAnimateTimings=null,{type:r$4.Animate,timings:e,style:o,options:null}}visitStyle(n,t){let e=this._makeStyleAst(n,t);return this._validateStyleAst(e,t),e}_makeStyleAst(n,t){let e=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let p of o)typeof p=="string"?p===_$5?e.push(p):t.errors.push(Xs()):e.push(new Map(Object.entries(p)));let a=false,d=null;return e.forEach(p=>{if(p instanceof Map&&(p.has("easing")&&(d=p.get("easing"),p.delete("easing")),!a)){for(let h of p.values())if(h.toString().indexOf(ea)>=0){a=true;break}}}),{type:r$4.Style,styles:e,easing:d,offset:n.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(n,t){let e=t.currentAnimateTimings,o=t.currentTime,a=t.currentTime;e&&a>0&&(a-=e.duration+e.delay),n.styles.forEach(d=>{typeof d!="string"&&d.forEach((p,h)=>{let g=t.collectedStyles.get(t.currentQuerySelector),P=g.get(h),k=true;P&&(a!=o&&a>=P.startTime&&o<=P.endTime&&(t.errors.push(Zs(h,P.startTime,P.endTime)),k=false),a=P.startTime),k&&g.set(h,{startTime:a,endTime:o}),t.options&&bl(p,t.options,t.errors);});});}visitKeyframes(n,t){let e={type:r$4.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Js()),e;let o=1,a=0,d=[],p=false,h=false,g=0,P=n.steps.map(zt=>{let $t=this._makeStyleAst(zt,t),Qt=$t.offset!=null?$t.offset:pd($t.styles),Wt=0;return Qt!=null&&(a++,Wt=$t.offset=Qt),h=h||Wt<0||Wt>1,p=p||Wt<g,g=Wt,d.push(Wt),$t});h&&t.errors.push(tl()),p&&t.errors.push(el());let k=n.steps.length,R=0;a>0&&a<k?t.errors.push(il()):a==0&&(R=o/(k-1));let F=k-1,I=t.currentTime,B=t.currentAnimateTimings,et=B.duration;return P.forEach((zt,$t)=>{let Qt=R>0?$t==F?1:R*$t:d[$t],Wt=Qt*et;t.currentTime=I+B.delay+Wt,B.duration=Wt,this._validateStyleAst(zt,t),zt.offset=Qt,e.styles.push(zt);}),e}visitReference(n,t){return {type:r$4.Reference,animation:Te(this,vn(n.animation),t),options:Ji(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:r$4.AnimateChild,options:Ji(n.options)}}visitAnimateRef(n,t){return {type:r$4.AnimateRef,animation:this.visitReference(n.animation,t),options:Ji(n.options)}}visitQuery(n,t){let e=t.currentQuerySelector,o=n.options||{};t.queryCount++,t.currentQuery=n;let[a,d]=cd(n.selector);t.currentQuerySelector=e.length?e+" "+a:a,we(t.collectedStyles,t.currentQuerySelector,new Map);let p=Te(this,vn(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=e,{type:r$4.Query,selector:a,limit:o.limit||0,optional:!!o.optional,includeSelf:d,animation:p,originalSelector:n.selector,options:Ji(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(nl());let e=n.timings==="full"?{duration:0,delay:0,easing:"full"}:En(n.timings,t.errors,true);return {type:r$4.Stagger,animation:Te(this,vn(n.animation),t),timings:e,options:null}}};function cd(i){let n=!!i.split(/\s*,\s*/).find(t=>t==Dl);return n&&(i=i.replace(ld,"")),i=i.replace(/@\*/g,kn).replace(/@\w+/g,t=>kn+"-"+t.slice(1)).replace(/:animating/g,fo),[i,n]}function dd(i){return i?D$6({},i):null}var pa=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n;}};function pd(i){if(typeof i=="string")return null;let n=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset");}});else if(i instanceof Map&&i.has("offset")){let t=i;n=parseFloat(t.get("offset")),t.delete("offset");}return n}function md(i,n){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let a=En(i,n).duration;return aa(a,0,"")}let t=i;if(t.split(/\s+/).some(a=>a.charAt(0)=="{"&&a.charAt(1)=="{")){let a=aa(0,0,"");return a.dynamic=true,a.strValue=t,a}let o=En(t,n);return aa(o.duration,o.delay,o.easing)}function Ji(i){return i?(i=D$6({},i),i.params&&(i.params=dd(i.params))):i={},i}function aa(i,n,t){return {duration:i,delay:n,easing:t}}function Ma(i,n,t,e,o,a,d=null,p=false){return {type:1,element:i,keyframes:n,preStyleProps:t,postStyleProps:e,duration:o,delay:a,totalTime:o+a,easing:d,subTimeline:p}}var On=class{_map=new Map;get(n){return this._map.get(n)||[]}append(n,t){let e=this._map.get(n);e||this._map.set(n,e=[]),e.push(...t);}has(n){return this._map.has(n)}clear(){this._map.clear();}},ud=1,fd=":enter",hd=new RegExp(fd,"g"),gd=":leave",_d=new RegExp(gd,"g");function Bl(i,n,t,e,o,a=new Map,d=new Map,p,h,g=[]){return new ma().buildKeyframes(i,n,t,e,o,a,d,p,h,g)}var ma=class{buildKeyframes(n,t,e,o,a,d,p,h,g,P=[]){g=g||new On;let k=new ua(n,t,g,o,a,P,[]);k.options=h;let R=h.delay?Ii(h.delay):0;k.currentTimeline.delayNextStep(R),k.currentTimeline.setStyles([d],null,k.errors,h),Te(this,e,k);let F=k.timelines.filter(I=>I.containsAnimation());if(F.length&&p.size){let I;for(let B=F.length-1;B>=0;B--){let et=F[B];if(et.element===t){I=et;break}}I&&!I.allowOnlyTimelineStyles()&&I.setStyles([p],null,k.errors,h);}return F.length?F.map(I=>I.buildKeyframes()):[Ma(t,[],[],[],0,R,"",false)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){let e=t.subInstructions.get(t.element);if(e){let o=t.createSubContext(n.options),a=t.currentTimeline.currentTime,d=this._visitSubInstructions(e,o,o.options);a!=d&&t.transformIntoNewTimeline(d);}t.previousNode=n;}visitAnimateRef(n,t){let e=t.createSubContext(n.options);e.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,e),this.visitReference(n.animation,e),t.transformIntoNewTimeline(e.currentTimeline.currentTime),t.previousNode=n;}_applyAnimationRefDelays(n,t,e){for(let o of n){let a=o?.delay;if(a){let d=typeof a=="number"?a:Ii(bn(a,o?.params??{},t.errors));e.delayNextStep(d);}}}_visitSubInstructions(n,t,e){let a=t.currentTimeline.currentTime,d=e.duration!=null?Ii(e.duration):null,p=e.delay!=null?Ii(e.delay):null;return d!==0&&n.forEach(h=>{let g=t.appendInstructionToTimeline(h,d,p);a=Math.max(a,g.duration+g.delay);}),a}visitReference(n,t){t.updateOptions(n.options,true),Te(this,n.animation,t),t.previousNode=n;}visitSequence(n,t){let e=t.subContextCount,o=t,a=n.options;if(a&&(a.params||a.delay)&&(o=t.createSubContext(a),o.transformIntoNewTimeline(),a.delay!=null)){o.previousNode.type==r$4.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=yo);let d=Ii(a.delay);o.delayNextStep(d);}n.steps.length&&(n.steps.forEach(d=>Te(this,d,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>e&&o.transformIntoNewTimeline()),t.previousNode=n;}visitGroup(n,t){let e=[],o=t.currentTimeline.currentTime,a=n.options&&n.options.delay?Ii(n.options.delay):0;n.steps.forEach(d=>{let p=t.createSubContext(n.options);a&&p.delayNextStep(a),Te(this,d,p),o=Math.max(o,p.currentTimeline.currentTime),e.push(p.currentTimeline);}),e.forEach(d=>t.currentTimeline.mergeTimelineCollectedStyles(d)),t.transformIntoNewTimeline(o),t.previousNode=n;}_visitTiming(n,t){if(n.dynamic){let e=n.strValue,o=t.params?bn(e,t.params,t.errors):e;return En(o,t.errors)}else return {duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){let e=t.currentAnimateTimings=this._visitTiming(n.timings,t),o=t.currentTimeline;e.delay&&(t.incrementTime(e.delay),o.snapshotCurrentStyles());let a=n.style;a.type==r$4.Keyframes?this.visitKeyframes(a,t):(t.incrementTime(e.duration),this.visitStyle(a,t),o.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n;}visitStyle(n,t){let e=t.currentTimeline,o=t.currentAnimateTimings;!o&&e.hasCurrentStyleProperties()&&e.forwardFrame();let a=o&&o.easing||n.easing;n.isEmptyStep?e.applyEmptyStep(a):e.setStyles(n.styles,a,t.errors,t.options),t.previousNode=n;}visitKeyframes(n,t){let e=t.currentAnimateTimings,o=t.currentTimeline.duration,a=e.duration,p=t.createSubContext().currentTimeline;p.easing=e.easing,n.styles.forEach(h=>{let g=h.offset||0;p.forwardTime(g*a),p.setStyles(h.styles,h.easing,t.errors,t.options),p.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(p),t.transformIntoNewTimeline(o+a),t.previousNode=n;}visitQuery(n,t){let e=t.currentTimeline.currentTime,o=n.options||{},a=o.delay?Ii(o.delay):0;a&&(t.previousNode.type===r$4.Style||e==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=yo);let d=e,p=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=p.length;let h=null;p.forEach((g,P)=>{t.currentQueryIndex=P;let k=t.createSubContext(n.options,g);a&&k.delayNextStep(a),g===t.element&&(h=k.currentTimeline),Te(this,n.animation,k),k.currentTimeline.applyStylesToKeyframe();let R=k.currentTimeline.currentTime;d=Math.max(d,R);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(d),h&&(t.currentTimeline.mergeTimelineCollectedStyles(h),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n;}visitStagger(n,t){let e=t.parentContext,o=t.currentTimeline,a=n.timings,d=Math.abs(a.duration),p=d*(t.currentQueryTotal-1),h=d*t.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case "reverse":h=p-h;break;case "full":h=e.currentStaggerTime;break}let P=t.currentTimeline;h&&P.delayNextStep(h);let k=P.currentTime;Te(this,n.animation,t),t.previousNode=n,e.currentStaggerTime=o.currentTime-k+(o.startTime-e.currentTimeline.startTime);}},yo={},ua=class i{_driver;element;
11060subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=yo;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,t,e,o,a,d,p,h){this._driver=n,this.element=t,this.subInstructions=e,this._enterClassName=o,this._leaveClassName=a,this.errors=d,this.timelines=p,this.currentTimeline=h||new So(this._driver,t,0),p.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(n,t){if(!n)return;let e=n,o=this.options;e.duration!=null&&(o.duration=Ii(e.duration)),e.delay!=null&&(o.delay=Ii(e.delay));let a=e.params;if(a){let d=o.params;d||(d=this.options.params={}),Object.keys(a).forEach(p=>{(!t||!d.hasOwnProperty(p))&&(d[p]=bn(a[p],d,this.errors));});}}_copyOptions(){let n={};if(this.options){let t=this.options.params;if(t){let e=n.params={};Object.keys(t).forEach(o=>{e[o]=t[o];});}}return n}createSubContext(n=null,t,e){let o=t||this.element,a=new i(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,e||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(n),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}transformIntoNewTimeline(n){return this.previousNode=yo,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,e){let o={duration:t??n.duration,delay:this.currentTimeline.currentTime+(e??0)+n.delay,easing:""},a=new fa(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(a),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n);}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n);}invokeQuery(n,t,e,o,a,d){let p=[];if(o&&p.push(this.element),n.length>0){n=n.replace(hd,"."+this._enterClassName),n=n.replace(_d,"."+this._leaveClassName);let h=e!=1,g=this._driver.query(this.element,n,h);e!==0&&(g=e<0?g.slice(g.length+e,g.length):g.slice(0,e)),p.push(...g);}return !a&&p.length==0&&d.push(ol()),p}},So=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,t,e,o){this._driver=n,this.element=t,this.startTime=e,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n;}fork(n,t){return this.applyStylesToKeyframe(),new i(this._driver,n,t||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+=ud,this._loadKeyframe();}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe();}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}
11060applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,e]of this._globalTimelineStyles)this._backFill.set(t,e||_$5),this._currentKeyframe.set(t,_$5);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(n,t,e,o){t&&this._previousKeyframe.set("easing",t);let a=o&&o.params||{},d=Cd(n,this._globalTimelineStyles);for(let[p,h]of d){let g=bn(h,a,e);this._pendingStyles.set(p,g),this._localTimelineStyles.has(p)||this._backFill.set(p,this._globalTimelineStyles.get(p)??_$5),this._updateStyle(p,g);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n);}));}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let t in this._currentKeyframe)n.push(t);return n}
11060mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,e)=>{let o=this._styleSummary.get(e);(!o||t.time>o.time)&&this._updateStyle(e,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,t=new Set,e=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((p,h)=>{let g=new Map([...this._backFill,...p]);g.forEach((P,k)=>{P===g$3?n.add(k):P===_$5&&t.add(k);}),e||g.set("offset",h/this.duration),o.push(g);});let a=[...n.values()],d=[...t.values()];if(e){let p=o[0],h=new Map(p);p.set("offset",0),h.set("offset",1),o=[p,h];}return Ma(this.element,o,a,d,this.duration,this.startTime,this.easing,false)}},fa=class extends So{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,t,e,o,a,d,p=false){super(n,t,d.delay),this.keyframes=e,this.preStyleProps=o,this.postStyleProps=a,this._stretchStartingKeyframe=p,this.timings={duration:d.duration,delay:d.delay,easing:d.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:e,easing:o}=this.timings;if(this._stretchStartingKeyframe&&t){let a=[],d=e+t,p=t/d,h=new Map(n[0]);h.set("offset",0),a.push(h);let g=new Map(n[0]);g.set("offset",wl(p)),a.push(g);let P=n.length-1;for(let k=1;k<=P;k++){let R=new Map(n[k]),F=R.get("offset"),I=t+F*e;R.set("offset",wl(I/d)),a.push(R);}e=d,t=0,o="",n=a;}return Ma(this.element,n,this.preStyleProps,this.postStyleProps,e,t,o,true)}};function wl(i,n=3){let t=Math.pow(10,n-1);return Math.round(i*t)/t}function Cd(i,n){let t=new Map,e;return i.forEach(o=>{if(o==="*"){e??=n.keys();for(let a of e)t.set(a,_$5);}else for(let[a,d]of o)t.set(a,d);}),t}function Tl(i,n,t,e,o,a,d,p,h,g,P,k,R){return {type:0,element:i,triggerName:n,isRemovalTransition:o,fromState:t,fromStyles:a,toState:e,toStyles:d,timelines:p,queriedElements:h,preStyleProps:g,postStyleProps:P,totalTime:k,errors:R}}var ra={},wo=class{_triggerName;ast;_stateStyles;constructor(n,t,e){this._triggerName=n,this.ast=t,this._stateStyles=e;}match(n,t,e,o){return vd(this.ast.matchers,n,t,e,o)}buildStyles(n,t,e){let o=this._stateStyles.get("*");return n!==void 0&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(t,e):new Map}build(n,t,e,o,a,d,p,h,g,P){let k=[],R=this.ast.options&&this.ast.options.params||ra,F=p&&p.params||ra,I=this.buildStyles(e,F,k),B=h&&h.params||ra,et=this.buildStyles(o,B,k),zt=new Set,$t=new Map,Qt=new Map,Wt=o==="void",Mi={params:Nl(B,R),delay:this.ast.options?.delay},Ce=P?[]:Bl(n,t,this.ast.animation,a,d,I,et,Mi,g,k),jt=0;return Ce.forEach(ae=>{jt=Math.max(ae.duration+ae.delay,jt);}),k.length?Tl(t,this._triggerName,e,o,Wt,I,et,[],[],$t,Qt,jt,k):(Ce.forEach(ae=>{let $=ae.element,yi=we($t,$,new Set);ae.preStyleProps.forEach(Qi=>yi.add(Qi));let Ea=we(Qt,$,new Set);ae.postStyleProps.forEach(Qi=>Ea.add(Qi)),$!==t&&zt.add($);}),Tl(t,this._triggerName,e,o,Wt,I,et,Ce,[...zt.values()],$t,Qt,jt))}};function vd(i,n,t,e,o){return i.some(a=>a(n,t,e,o))}function Nl(i,n){let t=D$6({},n);return Object.entries(i).forEach(([e,o])=>{o!=null&&(t[e]=o);}),t}var ha=class{styles;defaultParams;normalizer;constructor(n,t,e){this.styles=n,this.defaultParams=t,this.normalizer=e;}buildStyles(n,t){let e=new Map,o=Nl(n,this.defaultParams);return this.styles.styles.forEach(a=>{typeof a!="string"&&a.forEach((d,p)=>{d&&(d=bn(d,o,t));let h=this.normalizer.normalizePropertyName(p,t);d=this.normalizer.normalizeStyleValue(p,h,d,t),e.set(p,d);});}),e}};function bd(i,n,t){return new ga(i,n,t)}var ga=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,t,e){this.name=n,this.ast=t,this._normalizer=e,t.states.forEach(o=>{let a=o.options&&o.options.params||{};this.states.set(o.name,new ha(o.style,a,e));}),Pl(this.states,"true","1"),Pl(this.states,"false","0"),t.transitions.forEach(o=>{this.transitionFactories.push(new wo(n,o,this.states));}),this.fallbackTransition=xd(n,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,e,o){return this.transitionFactories.find(d=>d.match(n,t,e,o))||null}matchStyles(n,t,e){return this.fallbackTransition.buildStyles(n,t,e)}};function xd(i,n,t){let e=[(d,p)=>true],o={type:r$4.Sequence,steps:[],options:null},a={type:r$4.Transition,animation:o,matchers:e,options:null,queryCount:0,depCount:0};return new wo(i,a,n)}function Pl(i,n,t){i.has(n)?i.has(t)||i.set(t,i.get(n)):i.has(t)&&i.set(n,i.get(t));}var Md=new On,_a=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,t,e){this.bodyNode=n,this._driver=t,this._normalizer=e;}register(n,t){let e=[],o=[],a=Fl(this._driver,t,e,o);if(e.length)throw ll();this._animations.set(n,a);}_buildPlayer(n,t,e){let o=n.element,a=Xo(this._normalizer,n.keyframes,t,e);return this._driver.animate(o,a,n.duration,n.delay,n.easing,[],true)}create(n,t,e={}){let o=[],a=this._animations.get(n),d,p=new Map;if(a?(d=Bl(this._driver,t,a,ia,uo,new Map,new Map,e,Md,o),d.forEach(P=>{let k=we(p,P.element,new Map);P.postStyleProps.forEach(R=>k.set(R,null));})):(o.push(cl()),d=[]),o.length)throw dl();p.forEach((P,k)=>{P.forEach((R,F)=>{P.set(F,this._driver.computeStyle(k,F,_$5));});});let h=d.map(P=>{let k=p.get(P.element);return this._buildPlayer(P,new Map,k)}),g=Ai(h);return this._playersById.set(n,g),g.onDestroy(()=>this.destroy(n)),this.players.push(g),g}destroy(n){let t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);let e=this.players.indexOf(t);e>=0&&this.players.splice(e,1);}_getPlayer(n){let t=this._playersById.get(n);if(!t)throw pl();return t}listen(n,t,e,o){let a=po(t,"","","");return co(this._getPlayer(n),e,a,o),()=>{}}command(n,t,e,o){if(e=="register"){this.register(n,o[0]);return}if(e=="create"){let d=o[0]||{};this.create(n,t,d);return}let a=this._getPlayer(n);switch(e){case "play":a.play();break;case "pause":a.pause();break;case "reset":a.reset();break;case "restart":a.restart();break;case "finish":a.finish();break;case "init":a.init();break;case "setPosition":a.setPosition(parseFloat(o[0]));break;case "destroy":this.destroy(n);break}}},kl="ng-animate-queued",yd=".ng-animate-queued",sa="ng-animate-disabled",Sd=".ng-animate-disabled",wd="ng-star-inserted",Td=".ng-star-inserted",Pd=[],Rl={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},kd={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},xi="__ng_removed",An=class{namespaceId;value;options;get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;let e=n&&n.hasOwnProperty("value"),o=e?n.value:n;if(this.value=Id(o),e){let a=n,{value:d}=a,p=H$4(a,["value"]);this.options=p;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(n){let t=n.params;if(t){let e=this.options.params;Object.keys(t).forEach(o=>{e[o]==null&&(e[o]=t[o]);});}}},In="void",la=new An(In),Ca=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,t,e){this.id=n,this.hostElement=t,this._engine=e,this._hostClassName="ng-tns-"
11060+n,Ge(t,this._hostClassName);}listen(n,t,e,o){if(!this._triggers.has(t))throw ml();if(e==null||e.length==0)throw ul();if(!Od(e))throw fl();let a=we(this._elementListeners,n,[]),d={name:t,phase:e,callback:o};a.push(d);let p=we(this._engine.statesByElement,n,new Map);return p.has(t)||(Ge(n,Pn),Ge(n,Pn+"-"+t),p.set(t,la)),()=>{this._engine.afterFlush(()=>{let h=a.indexOf(d);h>=0&&a.splice(h,1),this._triggers.has(t)||p.delete(t);});}}register(n,t){return this._triggers.has(n)?false:(this._triggers.set(n,t),true)}_getTrigger(n){let t=this._triggers.get(n);if(!t)throw hl();return t}trigger(n,t,e,o=true){let a=this._getTrigger(t),d=new Dn(this.id,t,n),p=this._engine.statesByElement.get(n);p||(Ge(n,Pn),Ge(n,Pn+"-"+t),this._engine.statesByElement.set(n,p=new Map));let h=p.get(t),g=new An(e,this.id);if(!(e&&e.hasOwnProperty("value"))&&h&&g.absorbOptions(h.options),p.set(t,g),h||(h=la),!(g.value===In)&&h.value===g.value){if(!Fd(h.params,g.params)){let B=[],et=a.matchStyles(h.value,h.params,B),zt=a.matchStyles(g.value,g.params,B);B.length?this._engine.reportError(B):this._engine.afterFlush(()=>{Ki(n,et),bi(n,zt);});}return}let R=we(this._engine.playersByElement,n,[]);R.forEach(B=>{B.namespaceId==this.id&&B.triggerName==t&&B.queued&&B.destroy();});let F=a.matchTransition(h.value,g.value,n,g.params),I=false;if(!F){if(!o)return;F=a.fallbackTransition,I=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:F,fromState:h,toState:g,player:d,isFallbackTransition:I}),I||(Ge(n,kl),d.onStart(()=>{xn(n,kl);})),d.onDone(()=>{let B=this.players.indexOf(d);B>=0&&this.players.splice(B,1);let et=this._engine.playersByElement.get(n);if(et){let zt=et.indexOf(d);zt>=0&&et.splice(zt,1);}}),this.players.push(d),R.push(d),d}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,e)=>{this._elementListeners.set(e,t.filter(o=>o.name!=n));});}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let t=this._engine.playersByElement.get(n);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(n));}_signalRemovalForInnerTriggers(n,t){let e=this._engine.driver.query(n,kn,true);e.forEach(o=>{if(o[xi])return;let a=this._engine.fetchNamespacesByElement(o);a.size?a.forEach(d=>d.triggerLeaveAnimation(o,t,false,true)):this.clearElementCache(o);}),this._engine.afterFlushAnimationsDone(()=>e.forEach(o=>this.clearElementCache(o)));}triggerLeaveAnimation(n,t,e,o){let a=this._engine.statesByElement.get(n),d=new Map;if(a){let p=[];if(a.forEach((h,g)=>{if(d.set(g,h.value),this._triggers.has(g)){let P=this.trigger(n,g,In,o);P&&p.push(P);}}),p.length)return this._engine.markElementAsRemoved(this.id,n,true,t,d),e&&Ai(p).onDone(()=>this._engine.processLeaveNode(n)),true}return false}prepareLeaveAnimationListeners(n){let t=this._elementListeners.get(n),e=this._engine.statesByElement.get(n);if(t&&e){let o=new Set;t.forEach(a=>{let d=a.name;if(o.has(d))return;o.add(d);let h=this._triggers.get(d).fallbackTransition,g=e.get(d)||la,P=new An(In),k=new Dn(this.id,d,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:d,transition:h,fromState:g,toState:P,player:k,isFallbackTransition:true});});}}removeNode(n,t){let e=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,true))return;let o=false;if(e.totalAnimations){let a=e.players.length?e.playersByQueriedElement.get(n):[];if(a&&a.length)o=true;else {let d=n;for(;d=d.parentNode;)if(e.statesByElement.get(d)){o=true;break}}}if(this.prepareLeaveAnimationListeners(n),o)e.markElementAsRemoved(this.id,n,false,t);else {let a=n[xi];(!a||a===Rl)&&(e.afterFlush(()=>this.clearElementCache(n)),e.destroyInnerAnimations(n),e._onRemovalComplete(n,t));}}insertNode(n,t){Ge(n,this._hostClassName);}drainQueuedTransitions(n){let t=[];return this._queue.forEach(e=>{let o=e.player;if(o.destroyed)return;let a=e.element,d=this._elementListeners.get(a);d&&d.forEach(p=>{if(p.name==e.triggerName){let h=po(a,e.triggerName,e.fromState.value,e.toState.value);h._data=n,co(e.player,p.phase,h,p.callback);}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy();}):t.push(e);}),this._queue=[],t.sort((e,o)=>{let a=e.transition.ast.depCount,d=o.transition.ast.depCount;return a==0||d==0?a-d:this._engine.driver.containsElement(e.element,o.element)?1:-1})}
11060destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n);}},va=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,t)=>{};_onRemovalComplete(n,t){this.onRemovalComplete(n,t);}constructor(n,t,e){this.bodyNode=n,this.driver=t,this._normalizer=e;}get queuedPlayers(){let n=[];return this._namespaceList.forEach(t=>{t.players.forEach(e=>{e.queued&&n.push(e);});}),n}createNamespace(n,t){let e=new Ca(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(e,t):(this.newHostElements.set(t,e),this.collectEnterElement(t)),this._namespaceLookup[n]=e}_balanceNamespaceList(n,t){let e=this._namespaceList,o=this.namespacesByHostElement;if(e.length-1>=0){let d=false,p=this.driver.getParentElement(t);for(;p;){let h=o.get(p);if(h){let g=e.indexOf(h);e.splice(g+1,0,n),d=true;break}p=this.driver.getParentElement(p);}d||e.unshift(n);}else e.push(n);return o.set(t,n),n}register(n,t){let e=this._namespaceLookup[n];return e||(e=this.createNamespace(n,t)),e}registerTrigger(n,t,e){let o=this._namespaceLookup[n];o&&o.register(t,e)&&this.totalAnimations++;}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let e=this._fetchNamespace(n);this.namespacesByHostElement.delete(e.hostElement);let o=this._namespaceList.indexOf(e);o>=0&&this._namespaceList.splice(o,1),e.destroy(t),delete this._namespaceLookup[n];}));}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let t=new Set,e=this.statesByElement.get(n);if(e){for(let o of e.values())if(o.namespaceId){let a=this._fetchNamespace(o.namespaceId);a&&t.add(a);}}return t}trigger(n,t,e,o){if(vo(t)){let a=this._fetchNamespace(n);if(a)return a.trigger(t,e,o),true}return false}insertNode(n,t,e,o){if(!vo(t))return;let a=t[xi];if(a&&a.setForRemoval){a.setForRemoval=false,a.setForMove=true;let d=this.collectedLeaveElements.indexOf(t);d>=0&&this.collectedLeaveElements.splice(d,1);}if(n){let d=this._fetchNamespace(n);d&&d.insertNode(t,e);}o&&this.collectEnterElement(t);}collectEnterElement(n){this.collectedEnterElements.push(n);}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Ge(n,sa)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),xn(n,sa));}removeNode(n,t,e){if(vo(t)){let o=n?this._fetchNamespace(n):null;o?o.removeNode(t,e):this.markElementAsRemoved(n,t,false,e);let a=this.namespacesByHostElement.get(t);a&&a.id!==n&&a.removeNode(t,e);}else this._onRemovalComplete(t,e);}markElementAsRemoved(n,t,e,o,a){this.collectedLeaveElements.push(t),t[xi]={namespaceId:n,setForRemoval:o,hasAnimation:e,removedBeforeQueried:false,previousTriggersValues:a};}listen(n,t,e,o,a){return vo(t)?this._fetchNamespace(n).listen(t,e,o,a):()=>{}}_buildInstruction(n,t,e,o,a){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,e,o,n.fromState.options,n.toState.options,t,a)}destroyInnerAnimations(n){let t=this.driver.query(n,kn,true);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(n,fo,true),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)));}destroyActiveAnimationsForElement(n){let t=this.playersByElement.get(n);t&&t.forEach(e=>{e.queued?e.markedForDestroy=true:e.destroy();});}finishActiveQueriedAnimationOnElement(n){let t=this.playersByQueriedElement.get(n);t&&t.forEach(e=>e.finish());}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ai(this.players).onDone(()=>n());n();})}processLeaveNode(n){let t=n[xi];if(t&&t.setForRemoval){if(n[xi]=Rl,t.namespaceId){this.destroyInnerAnimations(n);let e=this._fetchNamespace(t.namespaceId);e&&e.clearElementCache(n);}this._onRemovalComplete(n,t.setForRemoval);}n.classList?.contains(sa)&&this.markElementAsDisabled(n,false),this.driver.query(n,Sd,true).forEach(e
11060=>{this.markElementAsDisabled(e,false);});}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,o)=>this._balanceNamespaceList(e,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){let o=this.collectedEnterElements[e];Ge(o,wd);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let e=[];try{t=this._flushAnimations(e,n);}finally{for(let o=0;o<e.length;o++)e[o]();}}else for(let e=0;e<this.collectedLeaveElements.length;e++){let o=this.collectedLeaveElements[e];this.processLeaveNode(o);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){let e=this._whenQuietFns;this._whenQuietFns=[],t.length?Ai(t).onDone(()=>{e.forEach(o=>o());}):e.forEach(o=>o());}}reportError(n){throw gl()}_flushAnimations(n,t){let e=new On,o=[],a=new Map,d=[],p=new Map,h=new Map,g=new Map,P=new Set;this.disabledNodes.forEach(E=>{P.add(E);let A=this.driver.query(E,yd,true);for(let N=0;N<A.length;N++)P.add(A[N]);});let k=this.bodyNode,R=Array.from(this.statesByElement.keys()),F=Ol(R,this.collectedEnterElements),I=new Map,B=0;F.forEach((E,A)=>{let N=ia+B++;
11060I.set(A,N),E.forEach(H=>Ge(H,N));});let et=[],zt=new Set,$t=new Set;for(let E=0;E<this.collectedLeaveElements.length;E++){let A=this.collectedLeaveElements[E],N=A[xi];N&&N.setForRemoval&&(et.push(A),zt.add(A),N.hasAnimation?this.driver.query(A,Td,true).forEach(H=>zt.add(H)):$t.add(A));}let Qt=new Map,Wt=Ol(R,Array.from(zt));Wt.forEach((E,A)=>{let N=uo+B++;Qt.set(A,N),E.forEach(H=>Ge(H,N));}),n.push(()=>{F.forEach((E,A)=>{let N=I.get(A);E.forEach(H=>xn(H,N));}),Wt.forEach((E,A)=>{let N=Qt.get(A);E.forEach(H=>xn(H,N));}),et.forEach(E=>{this.processLeaveNode(E);});});let Mi=[],Ce=[];for(let E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(t).forEach(N=>{let H=N.player,Yt=N.element;if(Mi.push(H),this.collectedEnterElements.length){let le=Yt[xi];if(le&&le.setForMove){if(le.previousTriggersValues&&le.previousTriggersValues.has(N.triggerName)){let Yi=le.previousTriggersValues.get(N.triggerName),je=this.statesByElement.get(N.element);if(je&&je.has(N.triggerName)){let Fn=je.get(N.triggerName);Fn.value=Yi,je.set(N.triggerName,Fn);}}H.destroy();return}}let Si=!k||!this.driver.containsElement(k,Yt),ke=Qt.get(Yt),Di=I.get(Yt),Ut=this._buildInstruction(N,e,Di,ke,Si);if(Ut.errors&&Ut.errors.length){Ce.push(Ut);return}if(Si){H.onStart(()=>Ki(Yt,Ut.fromStyles)),H.onDestroy(()=>bi(Yt,Ut.toStyles)),o.push(H);return}if(N.isFallbackTransition){H.onStart(()=>Ki(Yt,Ut.fromStyles)),H.onDestroy(()=>bi(Yt,Ut.toStyles)),o.push(H);return}let Aa=[];Ut.timelines.forEach(le=>{le.stretchStartingKeyframe=true,this.disabledNodes.has(le.element)||Aa.push(le);}),Ut.timelines=Aa,e.append(Yt,Ut.timelines);let $c={instruction:Ut,player:H,element:Yt};d.push($c),Ut.queriedElements.forEach(le=>we(p,le,[]).push(H)),Ut.preStyleProps.forEach((le,Yi)=>{if(le.size){let je=h.get(Yi);je||h.set(Yi,je=new Set),le.forEach((Fn,Ro)=>je.add(Ro));}}),Ut.postStyleProps.forEach((le,Yi)=>{let je=g.get(Yi);je||g.set(Yi,je=new Set),le.forEach((Fn,Ro)=>je.add(Ro));});});if(Ce.length){let E=[];Ce.forEach(A=>{E.push(_l(A.triggerName,A.errors));}),Mi.forEach(A=>A.destroy()),this.reportError(E);}let jt=new Map,ae=new Map;d.forEach(E=>{let A=E.element;e.has(A)&&(ae.set(A,A),this._beforeAnimationBuild(E.player.namespaceId,E.instruction,jt));}),o.forEach(E=>{let A=E.element;this._getPreviousPlayers(A,false,E.namespaceId,E.triggerName,null).forEach(H=>{we(jt,A,[]).push(H),H.destroy();});});let $=et.filter(E=>Al(E,h,g)),yi=new Map;Il(yi,this.driver,$t,g,_$5).forEach(E=>{Al(E,h,g)&&$.push(E);});let Qi=new Map;F.forEach((E,A)=>{Il(Qi,this.driver,new Set(E),h,g$3);}),$.forEach(E=>{let A=yi.get(E),N=Qi.get(E);yi.set(E,new Map([...A?.entries()??[],...N?.entries()??[]]));});let No=[],Ia=[],Oa={};d.forEach(E=>{let{element:A,player:N,instruction:H}=E;if(e.has(A)){if(P.has(A)){N.onDestroy(()=>bi(A,H.toStyles)),N.disabled=true,N.overrideTotalTime(H.totalTime),o.push(N);return}let Yt=Oa;if(ae.size>1){let ke=A,Di=[];for(;ke=ke.parentNode;){let Ut=ae.get(ke);if(Ut){Yt=Ut;break}Di.push(ke);}Di.forEach(Ut=>ae.set(Ut,Yt));}let Si=this._buildAnimation(N.namespaceId,H,jt,a,Qi,yi);if(N.setRealPlayer(Si),Yt===Oa)No.push(N);else {let ke=this.playersByElement.get(Yt);ke&&ke.length&&(N.parentPlayer=Ai(ke)),o.push(N);}}else Ki(A,H.fromStyles),N.onDestroy(()=>bi(A,H.toStyles)),Ia.push(N),P.has(A)&&o.push(N);}),Ia.forEach(E=>{let A=a.get(E.element);if(A&&A.length){let N=Ai(A);E.setRealPlayer(N);}}),o.forEach(E=>{E.parentPlayer?E.syncPlayerEvents(E.parentPlayer):E.destroy();});for(let E=0;E<et.length;E++){let A=et[E],N=A[xi];if(xn(A,uo),N&&N.hasAnimation)continue;let H=[];if(p.size){let Si=p.get(A);Si&&Si.length&&H.push(...Si);let ke=this.driver.query(A,fo,true);for(let Di=0;Di<ke.length;Di++){let Ut=p.get(ke[Di]);Ut&&Ut.length&&H.push(...Ut);}}let Yt=H.filter(Si=>!Si.destroyed);Yt.length?Ad(this,A,Yt):this.processLeaveNode(A);}return et.length=0,No.forEach(E=>{this.players.push(E),E.onDone(()=>{E.destroy();let A=this.players.indexOf(E);this.players.splice(A,1);}),E.play();}),No}afterFlush(n){this._flushFns.push(n);}afterFlushAnimationsDone(n){this._whenQuietFns.push(n);}_getPreviousPlayers(n,t,e,o,a){let d=[];if(t){let p=this.playersByQueriedElement.get(n);p&&(d=p);}else {let p=this.playersByElement.get(n);if(p){let h=!a||a==In;p.forEach(g=>{g.queued||!h&&g.triggerName!=o||d.push(g);});}}return (e||o)&&(d=d.filter(p=>!(e&&e!=p.namespaceId||o&&o!=p.triggerName))),d}_beforeAnimationBuild(n,t,e){let o=t.triggerName,a=t.element,d=t.isRemovalTransition?void 0:n,p=t.isRemovalTransition?void 0:o;for(let h of t.timelines){let g=h.element,P=g!==a,k=we(e,g,[]);this._getPreviousPlayers(g,P,d,p,t.toState).forEach(F=>{let I=F.getRealPlayer();I.beforeDestroy&&I.beforeDestroy(),F.destroy(),k.push(F);});}Ki(a,t.fromStyles);}_buildAnimation(n,t,e,o,a,d){let p=t.triggerName,h=t.element,g=[],P=new Set,k=new Set,R=t.timelines.map(I=>{let B=I.element;P.add(B);let et=B[xi];if(et&&et.removedBeforeQueried)return new l$3(I.duration,I.delay);let zt=B!==h,$t=Dd((e.get(B)||Pd).map(jt=>jt.getRealPlayer())).filter(jt=>{let ae=jt;return ae.element?ae.element===B:false}),Qt=a.get(B),Wt=d.get(B),Mi=Xo(this._normalizer,I.keyframes,Qt,Wt),Ce=this._buildPlayer(I,Mi,$t);
11060if(I.subTimeline&&o&&k.add(B),zt){let jt=new Dn(n,p,B);jt.setRealPlayer(Ce),g.push(jt);}return Ce});g.forEach(I=>{we(this.playersByQueriedElement,I.element,[]).push(I),I.onDone(()=>Ed(this.playersByQueriedElement,I.element,I));}),P.forEach(I=>Ge(I,na));let F=Ai(R);return F.onDestroy(()=>{P.forEach(I=>xn(I,na)),bi(h,t.toStyles);}),k.forEach(I=>{we(o,I,[]).push(F);}),F}_buildPlayer(n,t,e){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,e):new l$3(n.duration,n.delay)}},Dn=class{namespaceId;triggerName;element;_player=new l$3;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(n,t,e){this.namespaceId=n,this.triggerName=t,this.element=e;}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,e)=>{t.forEach(o=>co(n,e,void 0,o));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(n.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n;}syncPlayerEvents(n){let t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy());}_queueEvent(n,t){we(this._queuedCallbacks,n,[]).push(t);}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n);}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n);}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n);}init(){this._player.init();}hasStarted(){return this.queued?false: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=true,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(n){this.queued||this._player.setPosition(n);}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let t=this._player;t.triggerCallback&&t.triggerCallback(n);}};function Ed(i,n,t){let e=i.get(n);if(e){if(e.length){let o=e.indexOf(t);e.splice(o,1);}e.length==0&&i.delete(n);}return e}function Id(i){return i??null}function vo(i){return i&&i.nodeType===1}function Od(i){return i=="start"||i=="done"}function El(i,n){let t=i.style.display;return i.style.display=n??"none",t}function Il(i,n,t,e,o){let a=[];t.forEach(h=>a.push(El(h)));let d=[];e.forEach((h,g)=>{let P=new Map;h.forEach(k=>{let R=n.computeStyle(g,k,o);P.set(k,R),(!R||R.length==0)&&(g[xi]=kd,d.push(g));}),i.set(g,P);});let p=0;return t.forEach(h=>El(h,a[p++])),d}function Ol(i,n){let t=new Map;if(i.forEach(p=>t.set(p,[])),n.length==0)return t;let e=1,o=new Set(n),a=new Map;function d(p){if(!p)return e;let h=a.get(p);if(h)return h;let g=p.parentNode;return t.has(g)?h=g:o.has(g)?h=e:h=d(g),a.set(p,h),h}return n.forEach(p=>{let h=d(p);h!==e&&t.get(h).push(p);}),t}function Ge(i,n){i.classList?.add(n);}function xn(i,n){i.classList?.remove(n);}function Ad(i,n,t){Ai(t).onDone(()=>i.processLeaveNode(n));}function Dd(i){let n=[];return Ll(i,n),n}function Ll(i,n){for(let t=0;t<i.length;t++){let e=i[t];e instanceof u$2?Ll(e.players,n):n.push(e);}}function Fd(i,n){let t=Object.keys(i),e=Object.keys(n);if(t.length!=e.length)return false;for(let o=0;o<t.length;o++){let a=t[o];if(!n.hasOwnProperty(a)||i[a]!==n[a])return false}return true}function Al(i,n,t){let e=t.get(i);if(!e)return false;let o=n.get(i);return o?e.forEach(a=>o.add(a)):n.set(i,e),t.delete(i),true}var Mn=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,t)=>{};constructor(n,t,e){this._driver=t,this._normalizer=e,this._transitionEngine=new va(n.body,t,e),this._timelineEngine=new _a(n.body,t,e),this._transitionEngine.onRemovalComplete=(o,a)=>this.onRemovalComplete(o,a);}registerTrigger(n,t,e,o,a){let d=n+"-"+o,p=this._triggerCache[d];if(!p){let h=[],g=[],P=Fl(this._driver,a,h,g);if(h.length)throw sl();p=bd(o,P,this._normalizer),this._triggerCache[d]=p;}this._transitionEngine.registerTrigger(t,o,p);}register(n,t){this._transitionEngine.register(n,t);}destroy(n,t){this._transitionEngine.destroy(n,t);}
11060onInsert(n,t,e,o){this._transitionEngine.insertNode(n,t,e,o);}onRemove(n,t,e){this._transitionEngine.removeNode(n,t,e);}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t);}process(n,t,e,o){if(e.charAt(0)=="@"){let[a,d]=Zo(e),p=o;this._timelineEngine.command(a,t,d,p);}else this._transitionEngine.trigger(n,t,e,o);}listen(n,t,e,o,a){if(e.charAt(0)=="@"){let[d,p]=Zo(e);return this._timelineEngine.listen(d,t,p,a)}return this._transitionEngine.listen(n,t,e,o,a)}flush(n=-1){this._transitionEngine.flush(n);}get players(){return [...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n);}};function Bd(i,n){let t=null,e=null;return Array.isArray(n)&&n.length?(t=ca(n[0]),n.length>1&&(e=ca(n[n.length-1]))):n instanceof Map&&(t=ca(n)),t||e?new Nd(i,t,e):null}var Nd=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,e,o){this._element=t,this._startStyles=e,this._endStyles=o;let a=i.initialStylesByElement.get(t);a||i.initialStylesByElement.set(t,a=new Map),this._initialStyles=a;}start(){this._state<1&&(this._startStyles&&bi(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(bi(this._element,this._initialStyles),this._endStyles&&(bi(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(Ki(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ki(this._element,this._endStyles),this._endStyles=null),bi(this._element,this._initialStyles),this._state=3);}}return i})();function ca(i){let n=null;return i.forEach((t,e)=>{Rd(e)&&(n=n||new Map,n.set(e,t));}),n}function Rd(i){return i==="display"||i==="position"}var To=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(n,t,e,o){this.element=n,this.keyframes=t,this.options=e,this._specialStyles=o,this._duration=e.duration,this._delay=e.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let n=this.keyframes,t=this._triggerWebAnimation(this.element,n,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=n.length?n[n.length-1]:new Map;let e=()=>this._onFinish();return t.addEventListener("finish",e),this.onDestroy(()=>{t.removeEventListener("finish",e);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(n){let t=[];return n.forEach(e=>{t.push(Object.fromEntries(e));}),t}_triggerWebAnimation(n,t,e){let o=this._convertKeyframesToObject(t);try{return n.animate(o,e)}catch(a){return null}}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n);}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n);}onDestroy(n){this._onDestroyFns.push(n);}play(){let n=this._buildPlayer();n&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),n.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[]);}setPosition(n){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=n*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((e,o)=>{o!=="offset"&&n.set(o,this._finished?e:go(this.element,o));}),this.currentSnapshot=n;}triggerCallback(n){let t=n==="start"?this._onStartFns:this._onDoneFns;
11060t.forEach(e=>e()),t.length=0;}},Po=class{validateStyleProperty(n){return true}validateAnimatableStyleProperty(n){return true}containsElement(n,t){return Jo(n,t)}getParentElement(n){return mo(n)}query(n,t,e){return ta(n,t,e)}computeStyle(n,t,e){return go(n,t)}animate(n,t,e,o,a,d=[]){let p=o==0?"both":"forwards",h={duration:e,delay:o,fill:p};a&&(h.easing=a);let g=new Map,P=d.filter(F=>F instanceof To);xl(e,o)&&P.forEach(F=>{F.currentSnapshot.forEach((I,B)=>g.set(B,I));});let k=vl(t).map(F=>new Map(F));k=Ml(n,k,g);let R=Bd(n,k);return new To(n,k,h,R)}};var bo="@",Vl="@.disabled",ko=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(n,t,e,o){this.namespaceId=n,this.delegate=t,this.engine=e,this._onDestroy=o;}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,false);}insertBefore(n,t,e,o=true){this.delegate.insertBefore(n,t,e),this.engine.onInsert(this.namespaceId,t,n,o);}removeChild(n,t,e,o){if(o){this.delegate.removeChild(n,t,e,o);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,e,o){this.delegate.setAttribute(n,t,e,o);}removeAttribute(n,t,e){this.delegate.removeAttribute(n,t,e);}addClass(n,t){this.delegate.addClass(n,t);}removeClass(n,t){this.delegate.removeClass(n,t);}setStyle(n,t,e,o){this.delegate.setStyle(n,t,e,o);}removeStyle(n,t,e){this.delegate.removeStyle(n,t,e);}setProperty(n,t,e){t.charAt(0)==bo&&t==Vl?this.disableAnimations(n,!!e):this.delegate.setProperty(n,t,e);}setValue(n,t){this.delegate.setValue(n,t);}listen(n,t,e,o){return this.delegate.listen(n,t,e,o)}disableAnimations(n,t){this.engine.disableAnimations(n,t);}},ba=class extends ko{factory;constructor(n,t,e,o,a){super(t,e,o,a),this.factory=n,this.namespaceId=t;}setProperty(n,t,e){t.charAt(0)==bo?t.charAt(1)=="."&&t==Vl?(e=e===void 0?true:!!e,this.disableAnimations(n,e)):this.engine.process(this.namespaceId,n,t.slice(1),e):this.delegate.setProperty(n,t,e);}listen(n,t,e,o){if(t.charAt(0)==bo){let a=Ld(n),d=t.slice(1),p="";return d.charAt(0)!=bo&&([d,p]=Vd(d)),this.engine.listen(this.namespaceId,a,d,p,h=>{let g=h._data||-1;this.factory.scheduleListenerCallback(g,e,h);})}return this.delegate.listen(n,t,e,o)}};function Ld(i){switch(i){case "body":return document.body;case "document":return document;case "window":return window;default:return i}}function Vd(i){let n=i.indexOf("."),t=i.substring(0,n),e=i.slice(n+1);return [t,e]}var Eo=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(n,t,e){this.delegate=n,this.engine=t,this._zone=e,t.onRemovalComplete=(o,a)=>{a?.removeChild(null,o);};}createRenderer(n,t){let o=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){let g=this._rendererCache,P=g.get(o);if(!P){let k=()=>g.delete(o);P=new ko("",o,this.engine,k),g.set(o,P);}return P}let a=t.id,d=t.id+"-"+this._currentId;this._currentId++,this.engine.register(d,n);let p=g=>{Array.isArray(g)?g.forEach(p):this.engine.registerTrigger(a,d,n,g.name,g);};return t.data.animation.forEach(p),new ba(this,d,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(n,t,e){if(n>=0&&n<this._microtaskId){this._zone.run(()=>t(e));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(a=>{let[d,p]=a;d(p);}),this._animationCallbacksBuffer=[];});}),o.push([t,e]);}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()}componentReplaced(n){this.engine.flush(),this.delegate.componentReplaced?.(n);}};var jd=(()=>{class i extends Mn{constructor(t,e,o){super(t,e,o);}ngOnDestroy(){this.flush();}static \u0275fac=function(e){return new(e||i)(M$6(Y$3),M$6(tn),M$6(en))};static \u0275prov=x$3({token:i,factory:i.\u0275fac})}return i})();function Ud(){return new xo}function $d(){return new Eo(g$4(of$1),g$4(Mn),g$4(q$3))}var zl=[{provide:en,useFactory:Ud},{provide:Mn,useClass:jd},{provide:Kn$3,useFactory:$d}],Wd=[{provide:tn,useFactory:()=>new Po},{provide:aI,useFactory:()=>"BrowserAnimations"},...zl];function jl(){return Ne$4("NgEagerAnimations"),[...Wd]}var qd=(i,n,t,e,o,a)=>({sociallab_theme:i,orange_theme:n,aqua_theme:t,purple_theme:e,green_theme:o,cyan_theme:a}),Wl=(()=>{class i{constructor(t,e,o,a,d,p,h){this.settings=t,this.router=e,this.activatedRoute=o,this.translate=a,this.titleService=d,this.http=p,this.renderer=h,this.settingsSub
11060scription=W$4.EMPTY,this.routeSubscription=W$4.EMPTY,this.pageInfo=Object.create(null),this.widgetScriptEl=null,this.widgetLoading=false,this.destroy$=new ye$5,this.options=this.settings.getOptions(),this.htmlElement=document.querySelector("html"),this.receiveOptions(this.options),this.router.events.pipe(Yt$5(g=>g instanceof k$3),ve$4(()=>this.activatedRoute),ve$4(g=>{for(;g.firstChild;)g=g.firstChild;return g}),Yt$5(g=>g.outlet==="primary"),Ze$3(g=>g.data),Hf$1(this.destroy$)).subscribe(g=>{g.title?this.titleService.setTitle(g.title+" - Social Lab"):this.titleService.setTitle("Social Lab"),this.pageInfo=g;}),this.settingsSubscription=this.settings.notify.subscribe(g=>{g&&typeof g=="object"&&(this.options=D$6(D$6({},this.options),g),this.applyTheme(this.options));}),this.router.events.pipe(Yt$5(g=>g instanceof k$3),Hf$1(this.destroy$)).subscribe(g=>{this.updatePublicWidgetVisibility(g.urlAfterRedirects||g.url);}),this.updatePublicWidgetVisibility(this.router.url);}ngOnInit(){}ngOnDestroy(){this.settingsSubscription.unsubscribe(),this.routeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete(),this.removeWidget();}receiveOptions(t){this.options=t,this.applyTheme(t);}applyTheme(t){this.htmlElement.classList.remove("dark-theme"),this.htmlElement.classList.add("light-theme");let e=["sociallab_theme","orange_theme","aqua_theme","purple_theme","green_theme","cyan_theme"];e.forEach(o=>{this.htmlElement.classList.remove(o);}),t.activeTheme&&e.includes(t.activeTheme)&&this.htmlElement.classList.add(t.activeTheme),t.liquidGlassUI?this.htmlElement.classList.add("liquid-glass-theme"):this.htmlElement.classList.remove("liquid-glass-theme");}updatePublicWidgetVisibility(t){let e=t.startsWith("/booking/"),o="sl-widget-hide-style",a=document.getElementById(o);e?a||(a=document.createElement("style"),a.id=o,a.textContent="#sociallab-widget-container { display: none !important; }",document.head.appendChild(a)):(a&&a.remove(),this.widgetScriptEl||this.loadPublicWidget());}loadPublicWidget(){if(this.widgetLoading||this.widgetScriptEl)return;this.widgetLoading=true;let t=document.getElementById("sociallab-widget-container");t&&t.remove(),document.querySelectorAll('script[src*="WidgetJs"]').forEach(o=>o.remove());let e=ee$1.serverBaseUrlNoAPI;this.http.get(`${ee$1.serverBaseUrl}ChatWidget/PublicWidgetKey`).pipe(Hf$1(this.destroy$)).subscribe({next:o=>{if(this.widgetLoading=false,o?.succeeded&&o.data?.clientKey){let a=this.renderer.createElement("script");a.src=`${e}api/ChatWidget/WidgetJs?key=${encodeURIComponent(o.data.clientKey)}&isPublic=true&position=right`,a.async=true,this.widgetScriptEl=a,this.renderer.appendChild(document.body,a);}},error:()=>{this.widgetLoading=false;}});}removeWidget(){this.widgetScriptEl&&(this.renderer.removeChild(document.body,this.widgetScriptEl),this.widgetScriptEl=null);let t=document.getElementById("sociallab-widget-container");t&&t.remove();let e=document.getElementById("sociallab-chat-widget");e&&e.remove();}static{this.\u0275fac=function(e){return new(e||i)(V$3(d$6),V$3(G$5),V$3(V$2),V$3(O$5),V$3(Q8),V$3(ED),V$3(qo$1))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-blank"]],decls:2,vars:9,consts:[[3,"ngClass","dir"]],template:function(e,o){e&1&&(Js$2(0,"mat-sidenav-container",0),fy(1,"router-outlet"),gd$2()),e&2&&dy("ngClass",cS(2,qd,o.options.activeTheme=="sociallab_theme",o.options.activeTheme=="orange_theme",o.options.activeTheme=="aqua_theme",o.options.activeTheme=="purple_theme",o.options.activeTheme=="green_theme",o.options.activeTheme=="cyan_theme"))("dir",o.options.dir);},dependencies:[mr$1,Xv,RM],encapsulation:2,changeDetection:1});}}return i})();var ql=(()=>{class i{constructor(t){this.router=t,this.showClass=false,this.currentUrl=new Jr$1(void 0),this.router.events.subscribe(e=>{e instanceof k$3&&this.currentUrl.next(e.urlAfterRedirects);});}static{this.\u0275fac=function(e){return new(e||i)(M$6(G$5))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Hd=(i,n,t)=>({"mat-toolbar mat-primary activeMenu":i,expanded:n,disabled:t});function Gd(i,n){if(i&1&&(Js$2(0,"div",0),H_$1(1),pS(2,"translate"),gd$2()),i&2){let t=d_$1();
11060SC(),Ed$2(" ",gS$1(2,1,t.item.navCap),` 11061`);}}function Qd(i,n){if(i&1&&fy(0,"img",4),i&2){let t=d_$1(2);dy("alt",Y_$1(t.item.displayName))("src","/assets/images/icons/"+t.item.iconName+".png",zg$1);}}function Yd(i,n){if(i&1&&(Js$2(0,"mat-icon",5),H_$1(1),gd$2()),i&2){let t=d_$1(2);SC(),jy(t.item.iconName);}}function Xd(i,n){i&1&&(Js$2(0,"span",7),H_$1(1),pS(2,"translate"),gd$2()),i&2&&(SC(),jy(gS$1(2,1,"new")));}function Zd(i,n){if(i&1&&(Js$2(0,"span",8),fy(1,"span",9),Js$2(2,"mat-icon"),H_$1(3," expand_more "),gd$2()()),i&2){let t=d_$1(2);SC(2),xy("rotated",t.expanded);}}function Jd(i,n){if(i&1&&(Js$2(0,"span")(1,"span"),H_$1(2),gd$2()()),i&2){let t=d_$1(2);SC(),x_$1(Q_$1("",t.item.chipClass," p-x-8 p-y-4 item-chip f-w-500 rounded-pill ")),SC(),jy(t.item.chipContent);}}function tp(i,n){if(i&1){let t=i_$1();Js$2(0,"a",3),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.onItemSelected(o.item))}),ZT(1,Qd,1,3,"img",4)(2,Yd,2,1,"mat-icon",5),Js$2(3,"span",6),H_$1(4),pS(5,"translate"),gd$2(),ZT(6,Xd,3,3,"span",7),ZT(7,Zd,4,2,"span",8),ZT(8,Jd,3,4,"span"),gd$2();}if(i&2){let t=d_$1();dy("ngClass",iS(8,Hd,t.item.route?t.router.isActive(t.item.route,true):false,t.expanded,t.item.disabled)),SC(),YT(t.item.iconName=="salla"||t.item.iconName=="zid"||t.item.iconName=="whatsapp"||t.item.iconName=="instagram"||t.item.iconName=="messenger"||t.item.iconName=="tiktok"||t.item.iconName=="x"||t.item.iconName=="telegram"?1:2),SC(3),jy(gS$1(5,6,t.item.displayName)),SC(2),YT(t.item.isNew?6:-1),SC(),YT(t.item.children&&t.item.children.length?7:-1),SC(),YT(t.item.chip?8:-1);}}function ep(i,n){if(i&1){let t=i_$1();Js$2(0,"mat-list-item",10),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.onItemSelected(o.item))}),Js$2(1,"mat-icon",5),H_$1(2),gd$2(),Js$2(3,"span",6),H_$1(4),pS(5,"translate"),gd$2()();}if(i&2){let t=d_$1();SC(2),jy(t.item.iconName),SC(2),jy(gS$1(5,2,t.item.displayName));}}function ip(i,n){if(i&1){let t=i_$1();Js$2(0,"app-nav-item",12),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(2);return Hp$2(a.onSubItemSelected(o))}),gd$2();}if(i&2){let t=n.$implicit,e=d_$1(2);dy("item",t)("depth",e.depth+1);}}function np(i,n){if(i&1&&XT(0,ip,1,2,"app-nav-item",11,KT),i&2){let t=d_$1();JT(t.item.children);}}var Kl=(()=>{class i{constructor(t,e){this.navService=t,this.router=e,this.toggleMobileLink=new kt$3,this.notify=new kt$3,this.expanded=false,this.disabled=false,this.twoLines=false,this.ariaExpanded=this.expanded,this.platformId=g$4(So$3),this.isBrowser=_$(this.platformId),this.cdr=g$4(Od$2),this.depth===void 0&&(this.depth=0);}ngOnChanges(){this.urlSub?.unsubscribe(),this.urlSub=this.navService.currentUrl.subscribe(t=>{this.item.route&&t&&(this.expanded=t.indexOf(`/${this.item.route}`)===0,this.ariaExpanded=this.expanded,this.cdr.markForCheck());});}ngOnDestroy(){this.urlSub?.unsubscribe();}onItemSelected(t){if(!t.children||!t.children.length){if(t.external&&t.route){this.isBrowser&&(window.location.href=t.route),this.isBrowser&&window.innerWidth<1024&&this.notify.emit();return}t.route&&(this.router.navigate([t.route]),this.isBrowser&&window.innerWidth<1024&&this.notify.emit());}t.children&&t.children.length&&(this.expanded=!this.expanded),this.isBrowser&&window.scroll({top:0,left:0,behavior:"instant"});}onSubItemSelected(t){if(!t.children||!t.children.length){if(t.external&&t.route){this.isBrowser&&(window.location.href=t.route),this.isBrowser&&window.innerWidth<1024&&this.notify.emit();return}this.expanded&&this.isBrowser&&window.innerWidth<1024&&this.notify.emit();}}static{this.\u0275fac=function(e){return new(e||i)(V$3(ql),V$3(G$5))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-nav-item"]],hostVars:1,hostBindings:function(e,o){e&2&&ly("aria-expanded",o.ariaExpanded);},inputs:{item:"item",depth:"depth"},outputs:{toggleMobileLink:"toggleMobileLink",notify:"notify"},features:[El$2],decls:4,vars:4,consts:[[1,"nav-caption"],["mat-list-item","",1,"menu-list-item",3,"ngClass"],["target","_blank",1,"menu-list-item"],["mat-list-item","",1,"menu-list-item",3,"click","ngClass"],["width","19","height","19","matListItemIcon","",1,"menu-icon",2,"opacity","0.55",3,"src","alt"],["matListItemIcon","",1,"routeIcon"],[1,"hide-menu"],[1,"nav-item-new"],["fxFlex","",1,"arrow-icon"],["fxFlex",""],["target","_blank",1,"menu-list-item",3,"click"],[3,"item","depth"],[3,"click","item","depth"]],template:function(e,o){e&1&&(ZT(0,Gd,3,3,"div",0),ZT(1,tp,9,12,"a",1),ZT(2,ep,6,4,"mat-list-item",2),ZT(3,np,2,0)),e&2&&(YT(o.item.navCap?0:-1),SC(),YT(!o.item.navCap&&!o.item.external&&!o.item.twoLines?1:-1),SC(),YT(!o.item.navCap&&o.item.external?2:-1),SC(),YT(o.expanded?3:-1));},dependencies:[i,Tt$2,Xv,RM,Lb,Pb,km,us,ms,mt$4],styles:["mat-icon[_ngcontent-%COMP%]{transition:transform 225ms cubic-bezier(.25,.1,.25,1)}mat-icon.rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}mat-icon.routeIcon[_ngcontent-%COMP%]{font-size:19px;width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center}.menu-icon[_ngcontent-%COMP%]{width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;object-fit:contain}.hide-menu[_ngcontent-%COMP%]{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-size-sm);font-weight:500}.nav-caption[_ngcontent-%COMP%]{text-transform:uppercase;font-size:var(--font-size-2xs);font-weight:700;padding:9px 14px 2px;letter-spacing:1px;color:#2a354773;display:block}.nav-item-new[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-inline-start:3px;padding:1px 4px;font-size:var(--font-size-2xs);font-weight:700;text-transform:uppercase;letter-spacing:.04em;border-radius:var(--radius-full);background:var(--color-primary, var(--color-primary));color:#fffffff2}"]});}}return i})();var op=()=>["/dashboard"];function ap(i,n){if(i&1&&fy(0,"img",2),i&2){let t=d_$1(2);dy("src",t.getLogoUrl("assets/images/logos/newLogo.png"),zg$1);}}
11061function rp(i,n){if(i&1&&fy(0,"img",3),i&2){let t=d_$1(2);dy("src",t.getLogoUrl("assets/images/landingpage/sociallab/logo_ph.png"),zg$1);}}function sp(i,n){i&1&&(Js$2(0,"a",1),ZT(1,ap,1,1,"img",2)(2,rp,1,1,"img",3),gd$2()),i&2&&(dy("routerLink",nS(2,op)),SC(),YT(n.sidenavCollapsed?2:1));}var Hl=(()=>{class i{constructor(t,e){this.settings=t,this.router=e,this.imageVersion=Date.now(),this.options=this.settings.notify,this.imageVersion=Date.now();}ngOnInit(){this.routerSubscription=this.router.events.pipe(Yt$5(t=>t instanceof k$3)).subscribe(()=>{this.imageVersion=Date.now();});}ngOnDestroy(){this.routerSubscription&&this.routerSubscription.unsubscribe();}getLogoUrl(t){return `${t}?v=${this.imageVersion}`}static{this.\u0275fac=function(e){return new(e||i)(V$3(d$6),V$3(G$5))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-branding"]],decls:3,vars:3,consts:[[1,"branding"],[1,"branding-link",3,"routerLink"],["alt","Logo",1,"logo-full",3,"src"],["alt","Logo",1,"logo-mini",3,"src"]],template:function(e,o){if(e&1&&(Js$2(0,"div",0),ZT(1,sp,3,3,"a",1),pS(2,"async"),gd$2()),e&2){let a;SC(),YT((a=gS$1(2,1,o.options))?1:-1,a);}},dependencies:[ea$2,ai$2,Xv,VM],styles:["[_nghost-%COMP%]{display:block;width:100%;flex:1 1 auto;min-width:0}.branding[_ngcontent-%COMP%]{width:100%}.branding-link[_ngcontent-%COMP%]{display:block;width:100%;line-height:0}.logo-full[_ngcontent-%COMP%]{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}.logo-mini[_ngcontent-%COMP%]{display:block;width:44px;height:auto;margin:0 auto}"],changeDetection:1});}}return i})();function lp(i,n){if(i&1){let t=i_$1();Js$2(0,"a",3),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.toggleMobileNav.emit())}),Js$2(1,"mat-icon",4),H_$1(2,"close"),gd$2()();}}var Gl=(()=>{class i{constructor(){this.showToggle=true,this.toggleMobileNav=new kt$3,this.toggleCollapsed=new kt$3;}ngOnInit(){}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-sidebar"]],inputs:{showToggle:"showToggle"},outputs:{toggleMobileNav:"toggleMobileNav",toggleCollapsed:"toggleCollapsed"},decls:3,vars:1,consts:[[1,"d-flex","align-items-center","justify-content-between","w-100"],[1,"flex-grow-1"],["href","javascript:void(0)",1,"d-flex","justify-content-center","icon-40","align-items-center","mat-body-1","flex-shrink-0"],["href","javascript:void(0)",1,"d-flex","justify-content-center","icon-40","align-items-center","mat-body-1","flex-shrink-0",3,"click"],[1,"d-flex"]],template:function(e,o){e&1&&(Js$2(0,"div",0),fy(1,"app-branding",1),ZT(2,lp,3,0,"a",2),gd$2()),e&2&&(SC(2),YT(o.showToggle?2:-1));},dependencies:[Hl,us,ms],encapsulation:2,changeDetection:1});}}return i})();var dp=(i,n,t)=>({read:i,unread:n,clickable:t});function pp(i,n){if(i&1){let t=i_$1();Js$2(0,"a",13),pS(1,"translate"),pS(2,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1().$implicit,a=d_$1();return Hp$2(a.read(o.id))}),Js$2(3,"mat-icon",14),H_$1(4,"check"),gd$2()();}i&2&&(dy("matTooltip",gS$1(1,2,"Mark as read")),ly("aria-label",gS$1(2,4,"Mark as read")));}function mp(i,n){if(i&1){let t=i_$1();Js$2(0,"a",13),pS(1,"translate"),pS(2,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1().$implicit,a=d_$1();return Hp$2(a.delete(o.id))}),Js$2(3,"mat-icon",14),H_$1(4,"delete"),gd$2()();}i&2&&(dy("matTooltip",gS$1(1,2,"Delete")),ly("aria-label",gS$1(2,4,"Delete")));}function up(i,n){if(i&1){let t=i_$1();Js$2(0,"a",15),Ey("click",function(o){Vp$2(t);let a=d_$1().$implicit,d=d_$1();return Hp$2(d.muteType(a,o))}),Js$2(1,"mat-icon",14),H_$1(2,"notifications_off"),gd$2()();}if(i&2){let t=d_$1().$implicit,e=d_$1();dy("matTooltip",e.muteTooltip(t)),ly("aria-label",e.muteTooltip(t));}}function fp(i,n){if(i&1){let t=i_$1();Js$2(0,"a",16),Ey("click",function(o){Vp$2(t);let a=d_$1().$implicit,d=d_$1();return Hp$2(d.navigateToAction(a,o))}),Js$2(1,"mat-icon",12),H_$1(2,"open_in_new"),gd$2(),H_$1(3),pS(4,"translate"),gd$2();}i&2&&(SC(3),Ed$2(" ",gS$1(4,1,"View Details")," "));}function hp(i,n){if(i&1){let t=i_$1();Js$2(0,"div",1),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1();return Hp$2(a.onNotificationClick(o))}),Js$2(1,"div",2)(2,"div",3)(3,"h4")(4,"mat-icon",4),H_$1(5),gd$2(),H_$1(6),gd$2(),Js$2(7,"div",5),Ey("click",function(o){return o.stopPropagation()}),ZT(8,pp,5,6,"a",6),ZT(9,mp,5,6,"a",6),ZT(10,up,3,2,"a",7),gd$2()(),Js$2(11,"span",8),H_$1(12),pS(13,"plainText"),gd$2(),ZT(14,fp,5,3,"a",9),Js$2(15,"div",10)(16,"div",11),pS(17,"date"),Js$2(18,"mat-icon",12),H_$1(19,"schedule"),gd$2(),H_$1(20),pS(21,"timeAgo"),gd$2()()()();}if(i&2){let t=n.$implicit,e=d_$1();dy("ngClass",iS(17,dp,t.isRead,!t.isRead,t.customerId||e.getNotificationRoute(t))),SC(5),jy(e.getIcon(t.type)),SC(),Ed$2(" ",t.title," "),SC(2),YT(t.isRead?-1:8),SC(),YT(e.isUnread!=true?9:-1),SC(),YT(e.canMute(t)?10:-1),SC(2),jy(gS$1(13,10,t.message)),SC(2),YT(e.getNotificationRoute(t)?14:-1),SC(2),dy("title",mS(17,12,t.createdOn,"EEEE dd/MM/yyyy hh:mm a")),SC(4),Ed$2(" ",gS$1(21,15,t.createdOn)," ");}}var Yl=(()=>{class i{constructor(t,e,o,a,d,p,h,g){this.socialLabNotificationsService=t,this.loadingService=e,this.toastrService=o,this.errorService=a,this.storageService=d,this.router=p,this.muteService=h,this.translate=g,this.pageSize=10,this.pageIndex=0,this.isUnread=null;}ngOnInit(){T$(M$1),this.muteService.ensureLoaded().subscribe();}canMute(t){return this.muteService.canOfferMute(t.type)}muteTooltip(t){return this.translate.instant("Stop receiving \xAB{{name}}\xBB notifications",{name:this.muteService.labelFor(t.type)})}muteType(t,e){e.stopPropagation(),e.preventDefault(),this.muteService.promptMute(t.type);}getNotifications(){this.loadingService.loadingOn(),(this.isUnread==true?this.socialLabNotificationsService.getUnreadNotifications(this.pageIndex,this.pageSize):this.socialLabNotificationsService.getNotifications(this.pageIndex,this.pageSize)).subscribe({next:e=>{this.loadingService.loadingOff(),e.succeeded?(this.notifications=[...this.notifications,...e.data],this.pageIndex++):this.errorService.setError(e,"Failed to load");},error:e=>{this.errorService.setError(e,"Failed to load");}});}read(t){let e=this.notifications.findIndex(o=>o.id===t);e>-1&&this.notifications[e].isRead||(this.loadingService.loadingOn(),this.socialLabNotificationsService.readNotification(t).subscribe({next:o=>{this.loadingService.loadingOff(),o.succeeded?(this.toastrService.success("Updated Successfully"),e>-1&&(this.notifications[e].isRead=true),this.storageService.decrementNumberOfUnreadMsgs()):this.errorService.setError(o,"Failed to Update");},error:o=>{this.errorService.setError(o,"Failed to Update");}}));}delete(t){let e=!this.notifications.find(o=>o.id===t)?.isRead;this.loadingService.loadingOn(),this.socialLabNotificationsService.deleteNotification(t).subscribe({next:o=>{this.loadingService.loadingOff(),o.succeeded?(this.toastrService.success("Deleted Successfully"),this.notifications=this.notifications.filter(a=>a.id!==t),e&&this.storageService.decrementNumberOfUnreadMsgs()):this.errorService.setError(o,"Fail to delete!");},error:o=>{this.errorService.setError(o,"Fail to delete!");}});}getIcon(t){return p(t)}getNotificationRoute(t){return i$1(t)}go(t,e){t.isRead||this.read(t.id),e.external?window.open(e.path,"_blank"):this.router.navigate([e.path],e.queryParams?{queryParams:e.queryParams}:{});}navigateToAction(t,e){e.stopPropagation();let o=this.getNotificationRoute(t);o&&this.go(t,o);}onNotificationClick(t){let e=d(t);e&&this.go(t,e);}static{this.\u0275fac=function(e){return new(e||i)(V$3(p$5),V$3(P$2),V$3(ut$2),V$3(Gt),V$3(J$2),V$3(G$5),V$3(L$2),
vendor: 5,788 bytes, line 11061
11061V$3(O$5))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-sociallab-notifications"]],inputs:{notifications:"notifications",isUnread:"isUnread"},decls:2,vars:0,consts:[[1,"notification",3,"ngClass"],[1,"notification",3,"click","ngClass"],[1,"w-100"],[1,"notification-header"],[1,"icon-18"],[1,"notification-actions",3,"click"],["mat-icon-button","","href","javascript: void(0);",1,"d-flex","justify-content-center",3,"matTooltip"],["mat-icon-button","","href","javascript: void(0);",1,"d-flex","justify-content-center","notification-mute",3,"matTooltip"],[1,"f-s-16","f-w-500","notification-text"],["mat-button","","color","primary",1,"notification-action-link","f-s-12","m-t-4"],[1,"notification-date","f-s-14","m-t-4"],[1,"d-flex","align-items-center",3,"title"],[1,"icon-16"],["mat-icon-button","","href","javascript: void(0);",1,"d-flex","justify-content-center",3,"click","matTooltip"],[1,"icon-18","d-flex"],["mat-icon-button","","href","javascript: void(0);",1,"d-flex","justify-content-center","notification-mute",3,"click","matTooltip"],["mat-button","","color","primary",1,"notification-action-link","f-s-12","m-t-4",3,"click"]],template:function(e,o){e&1&&XT(0,hp,22,21,"div",0,KT),e&2&&JT(o.notifications);},dependencies:[Xv,RM,Ng,zg,Tt$2,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,Fi$2,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,go$2,Kd,on,XE,LT,mA,WM,mt$4,g$1,c],styles:['.notification-text[_ngcontent-%COMP%]{white-space:pre-line}.notification[_ngcontent-%COMP%]{position:relative;padding:.75rem 1rem;margin:.5rem 1rem;border-radius:var(--radius-lg);border:1px solid transparent;background:#fff;box-shadow:var(--shadow-card);transition:all .3s cubic-bezier(.4,0,.2,1);cursor:pointer;overflow:hidden}.notification[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:transparent;transition:background .3s ease}.notification[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:var(--shadow-raised);border-color:#e5eaef;transition:all .2s cubic-bezier(.4,0,.2,1)}.notification.clickable[_ngcontent-%COMP%]:hover{border-color:#1f9d4d;box-shadow:0 4px 16px #1f9d4d26}.notification.read[_ngcontent-%COMP%]{background:linear-gradient(to right,#f2f6fa,#fff);opacity:.85}.notification.read[_ngcontent-%COMP%]:before{background:#e5eaef}.notification.read[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#5d6b85}.notification.unread[_ngcontent-%COMP%]{background:linear-gradient(to right,#e8f6ee,#fff);border-left:4px solid #1f9d4d;box-shadow:0 3px 12px #1f9d4d26}.notification.unread[_ngcontent-%COMP%]:before{background:#1f9d4d}.notification.unread[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#2a3547;font-weight:600}.notification.unread[_ngcontent-%COMP%]:after{content:"";position:absolute;top:.5rem;right:.5rem;width:8px;height:8px;background:#1f9d4d;border-radius:50%;animation:_ngcontent-%COMP%_ping 2s cubic-bezier(0,0,.2,1) infinite}.notification[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;width:100%;gap:.5rem}@media(max-width:768px){.notification[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.5rem}}.notification[_ngcontent-%COMP%] .notification-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.25rem}.notification[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.75rem;font-size:var(--font-size-sm);font-weight:600;color:#2a3547;transition:color .3s ease;margin:0;line-height:1.3;flex:1;min-width:0}.notification[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.375rem;width:1.375rem;height:1.375rem;color:#1f9d4d;background:#e8f6ee;border-radius:var(--radius-card);padding:.375rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.notification[_ngcontent-%COMP%] .notification-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.notification[_ngcontent-%COMP%] .notification-mute[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:var(--color-warning)}.notification[_ngcontent-%COMP%] .f-s-16[_ngcontent-%COMP%]{font-size:var(--font-size-xs);line-height:1.6;color:#2a3547;display:block;margin:.25rem 0 0}.notification[_ngcontent-%COMP%] .f-w-500[_ngcontent-%COMP%]{font-weight:500}.notification[_ngcontent-%COMP%] .notification-date[_ngcontent-%COMP%]{padding-top:.5rem;margin-top:.5rem;border-top:1px solid #e5eaef;color:#5d6b85;display:flex;flex-wrap:wrap;gap:.5rem;font-size:var(--font-size-xs)}.notification[_ngcontent-%COMP%] .notification-date[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:inline-flex;display:flex;flex-direction:row;align-items:center;gap:.25rem;background:#f2f6fa;border-radius:var(--radius-card);padding:.25rem .5rem;transition:background .2s ease}.notification[_ngcontent-%COMP%] .notification-date[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]:hover{background:#f6f9fc}.notification[_ngcontent-%COMP%] .notification-date[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#5d6b85;font-size:.875rem;width:.875rem;height:.875rem}.notification[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{width:32px;height:32px;border-radius:var(--radius-card);transition:all .3s cubic-bezier(.4,0,.2,1);color:#5d6b85}.notification[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{background:#e8f6ee;color:#1f9d4d;transform:scale(1.1)}.notification[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:active{transform:scale(.95)}.notification[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.125rem;width:1.125rem;height:1.125rem}
11061@media(max-width:768px){.notification[_ngcontent-%COMP%]{padding:.625rem .75rem;margin:.375rem .75rem;border-radius:var(--radius-lg)}.notification[_ngcontent-%COMP%] .notification-header[_ngcontent-%COMP%]{gap:.5rem;margin-bottom:.25rem}.notification[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:var(--font-size-xs);gap:.5rem}.notification[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.125rem;width:1.125rem;height:1.125rem;padding:.25rem}.notification[_ngcontent-%COMP%] .notification-actions[_ngcontent-%COMP%]{gap:.125rem}.notification[_ngcontent-%COMP%] .f-s-16[_ngcontent-%COMP%]{font-size:var(--font-size-xs)}.notification[_ngcontent-%COMP%] .notification-date[_ngcontent-%COMP%]{gap:.375rem;font-size:var(--font-size-xs);padding-top:.375rem;margin-top:.375rem}.notification[_ngcontent-%COMP%] .notification-date[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{padding:.1875rem .375rem}.notification[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{width:28px;height:28px}.notification[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1rem;width:1rem;height:1rem}}@keyframes _ngcontent-%COMP%_ping{75%,to{transform:scale(1.5);opacity:0}}'],changeDetection:1});}}return i})();function gp(i,n){i&1&&H_$1(0," volume_off ");}function _p(i,n){i&1&&H_$1(0," volume_down ");}function Cp(i,n){i&1&&H_$1(0," volume_up ");}function vp(i,n){i&1&&(Js$2(0,"mat-icon"),H_$1(1,"volume_off"),gd$2());}function bp(i,n){i&1&&(Js$2(0,"mat-icon"),H_$1(1,"volume_up"),gd$2());}function xp(i,n){if(i&1&&(Js$2(0,"span"),H_$1(1),pS(2,"translate"),gd$2()),i&2){let t=d_$1().$implicit;SC(),jy(gS$1(2,1,t.label));}}function Mp(i,n){if(i&1&&(Js$2(0,"span"),H_$1(1),gd$2()),i&2){let t=d_$1().$implicit;SC(),jy(t.label);}}function yp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",15),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1();return Hp$2(a.selectAndPlaySound(o.value))}),ZT(1,vp,2,0,"mat-icon"),ZT(2,bp,2,0,"mat-icon"),Js$2(3,"span",16),ZT(4,xp,3,3,"span"),ZT(5,Mp,2,1,"span"),gd$2()();}if(i&2){let t=n.$implicit,e=d_$1();xy("selected",e.selectedSound===t.value)("silent-button",t.value==="silent"),SC(),YT(t.value==="silent"?1:-1),SC(),YT(t.value!=="silent"?2:-1),SC(2),YT(t.value==="silent"?4:-1),SC(),YT(t.value!=="silent"?5:-1);}}var Xl=(()=>{class i{constructor(t,e){this.dialogRef=t,this.storageService=e,this.selectedSound="notification2",this.volume=80,this.availableSounds=[{value:"silent",label:"Silent",extension:""}],this.audio=null,this.soundFiles=["notification1.mp3","notification2.mp3","notification3.mp3","notification4.mp3","notification5.mp3","mixkit-bell-notification-933.wav","mixkit-clear-announce-tones-2861.wav","mixkit-confirmation-tone-2867.wav","mixkit-correct-answer-tone-2870.wav","mixkit-elevator-tone-2863.wav","mixkit-gaming-lock-2848.wav","mixkit-happy-bells-notification-937.wav","mixkit-interface-option-select-2573.wav","mixkit-light-button-2580.wav","mixkit-long-pop-2358.wav","mixkit-magic-notification-ring-2344.wav","mixkit-message-pop-alert-2354.mp3","mixkit-positive-notification-951.wav","mixkit-sci-fi-click-900.wav","mixkit-software-interface-back-2575.wav","mixkit-software-interface-remove-2576.wav","mixkit-software-interface-start-2574.wav"];}ngOnInit(){this.initializeAvailableSounds(),this.volume=this.storageService.getNotificationVolume();let t=this.storageService.getNotificationSound();t&&t.includes(".")&&(t=t.replace(/\.(mp3|wav)$/,"")),t&&(t==="silent"||this.availableSounds.some(e=>e.value===t))?this.selectedSound=t:this.selectedSound="notification2";}initializeAvailableSounds(){this.soundFiles.forEach((t,e)=>{let o=t.replace(/\.(mp3|wav)$/,""),a=t.endsWith(".mp3")?".mp3":".wav";this.availableSounds.push({value:o,label:`${e+1}`,extension:a});});}selectAndPlaySound(t){this.selectedSound=t,t!=="silent"&&this.playSelectedSound();}onVolumeChange(){this.selectedSound!=="silent"&&this.audio&&(this.audio.volume=this.volume/100);}playSelectedSound(){this.audio&&(this.audio.pause(),this.audio.currentTime=0);let e=this.availableSounds.find(o=>o.value===this.selectedSound)?.extension||".mp3";this.audio=new Audio,this.audio.src=`assets/audio/notifications/${this.selectedSound}${e}`,this.audio.volume=this.volume/100,this.audio.load(),this.audio.play().catch(o=>{console.error("Error playing notification sound:",o);});}save(){let t=this.availableSounds.find(o=>o.value===this.selectedSound),e=this.selectedSound;t&&t.extension&&(e=`${this.selectedSound}${t.extension}`),this.storageService.setNotificationSound(e),this.storageService.setNotificationVolume(this.volume),this.dialogRef.close(true);}cancel(){this.dialogRef.close(false);}ngOnDestroy(){this.audio&&(this.audio.pause(),this.audio=null);}static{this.\u0275fac=function(e){return new(e||i)(V$3(an),V$3(J$2))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-notification-sound-settings-dialog"]],decls:31,vars:19,consts:[["mat-dialog-title",""],[1,"sound-settings-container"],[1,"mat-body-1","m-b-16"],[1,"volume-control-section"],[1,"volume-label-row"],[1,"volume-icon"],[1,"volume-label"],[1,"volume-value"],["min","0","max","100","step","5",1,"volume-slider",3,"disabled"],["matSliderThumb","",3,"ngModelChange","ngModel"],[1,"sound-selector-grid"],["mat-stroked-button","",1,"sound-button",3,"selected","silent-button"],["align","end",1,"p-t-16"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","primary",3,"click"],["mat-stroked-button","",1,"sound-button",3,"click"],[1,"m-l-8"]],template:function(e,o){e&1&&(Js$2(0,"h2",0),H_$1(1),pS(2,"translate"),gd$2(),Js$2(3,"mat-dialog-content")(4,"div",1)(5,"p",2),H_$1(6),pS(7,"translate"),gd$2(),Js$2(8,"div",3)(9,"div",4)(10,"mat-icon",5),ZT(11,gp,1,0)(12,_p,1,0)(13,Cp,1,0),gd$2(),Js$2(14,"span",6),H_$1(15),pS(16,"translate"),gd$2(),Js$2(17,"span",7),H_$1(18),gd$2()(),Js$2(19,"mat-slider",8)(20,"input",9),zy("ngModelChange",function(d){return W_$1(o.volume,d)||(o.volume=d),d}),Ey("ngModelChange",function(){return o.onVolumeChange()}),gd$2(),db(),gd$2()(),Js$2(21,"div",10),XT(22,yp,6,8,"button",11,KT),gd$2()()(),Js$2(24,"mat-dialog-actions",12)(25,"button",13),Ey("click",function(){return o.cancel()}
11061),H_$1(26),pS(27,"translate"),gd$2(),Js$2(28,"button",14),Ey("click",function(){return o.save()}),H_$1(29),pS(30,"translate"),gd$2()()),e&2&&(SC(),Ed$2(" ",gS$1(2,9,"Notification Sound Settings"),` 11062`),SC(5),Ed$2(" ",gS$1(7,11,"Choose your notification sound preference. Click a sound to select and preview it.")," "),SC(5),YT(o.volume===0||o.selectedSound==="silent"?11:o.volume<50?12:13),SC(4),jy(gS$1(16,13,"Notification Volume")),SC(3),Ed$2("",o.volume,"%"),SC(),dy("disabled",o.selectedSound==="silent"),SC(),$y("ngModel",o.volume),pb(),SC(2),JT(o.availableSounds),SC(4),Ed$2(" ",gS$1(27,15,"Cancel")," "),SC(3),Ed$2(" ",gS$1(30,17,"Save")," "));},dependencies:[Ng,Ts,Og,Gc$1,Tt$2,Xv,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,aC,mu$1,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,ey,iy,ty,go$2,Kd,XE,LT,mA,mt$4],styles:[".sound-settings-container[_ngcontent-%COMP%]{min-width:400px;padding:8px 0}.volume-control-section[_ngcontent-%COMP%]{margin-bottom:20px;padding:12px 16px;border-radius:var(--radius-card);background-color:#1f9d4d0a;border:1px solid rgba(31,157,77,.12)}.volume-label-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:4px}.volume-label-row[_ngcontent-%COMP%] .volume-icon[_ngcontent-%COMP%]{font-size:var(--font-size-xl);width:20px;height:20px;color:#1f9d4d;flex-shrink:0}.volume-label-row[_ngcontent-%COMP%] .volume-label[_ngcontent-%COMP%]{font-size:var(--font-size-sm);font-weight:500;color:#2a3547;flex:1}.volume-label-row[_ngcontent-%COMP%] .volume-value[_ngcontent-%COMP%]{font-size:var(--font-size-sm);font-weight:600;color:#1f9d4d;min-width:36px;text-align:end}.volume-slider[_ngcontent-%COMP%]{width:100%}.sound-selector-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-top:16px}.sound-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:48px;transition:all .2s ease}.sound-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:var(--font-size-xl);width:20px;height:20px}.sound-button.selected[_ngcontent-%COMP%]{background-color:#1f9d4d1a;border-color:#1f9d4d;border-width:2px;font-weight:600}.sound-button.selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#1f9d4d}.sound-button.silent-button.selected[_ngcontent-%COMP%]{background-color:#7a7a7a1a;border-color:var(--color-text-muted)}.sound-button.silent-button.selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--color-text-muted)}.sound-button[_ngcontent-%COMP%]:hover:not(.selected){background-color:#0000000a;transform:translateY(-2px)}@media(max-width:600px){.sound-settings-container[_ngcontent-%COMP%]{min-width:100%}.sound-selector-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}.sound-button[_ngcontent-%COMP%]{min-height:44px;font-size:var(--font-size-sm)}.sound-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:var(--font-size-lg);width:18px;height:18px}}"],changeDetection:1});}}return i})();function Sp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",17),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.loginAgain())}),Js$2(1,"mat-icon",14),H_$1(2,"login"),gd$2(),H_$1(3),pS(4,"translate"),gd$2();}if(i&2){let t=d_$1(2);dy("disabled",t.isSwitching),SC(3),Ed$2(" ",gS$1(4,2,"Login Again")," ");}}function wp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",18),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.dismissFailure())}),H_$1(1),pS(2,"translate"),gd$2();}if(i&2){let t=d_$1(2);dy("disabled",t.isSwitching),SC(),Ed$2(" ",gS$1(2,2,"Dismiss")," ");}}function Tp(i,n){if(i&1){let t=i_$1();Js$2(0,"div",2)(1,"mat-icon",9),H_$1(2,"error"),gd$2(),Js$2(3,"div",10)(4,"p",11),H_$1(5),gd$2(),Js$2(6,"div",12)(7,"button",13),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.resolveFailure())}),Js$2(8,"mat-icon",14),H_$1(9),gd$2(),H_$1(10),pS(11,"translate"),gd$2(),ZT(12,Sp,5,4,"button",15),ZT(13,wp,3,4,"button",16),gd$2()()();}if(i&2){let t=d_$1();SC(5),jy(t.failure.message),SC(2),dy("disabled",t.isSwitching),SC(2),jy(t.failureActionIcon),SC(),Ed$2(" ",gS$1(11,6,t.failureActionLabel)," "),SC(2),YT(t.failure.offerRelogin?12:-1),SC(),YT(t.failure.action!=="dism
11062iss"?13:-1);}}function Pp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",22),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.clearSearch())}),Js$2(1,"mat-icon"),H_$1(2,"close"),gd$2()();}}function kp(i,n){if(i&1){let t=i_$1();Js$2(0,"div",3)(1,"mat-form-field",19)(2,"input",20),pS(3,"translate"),zy("ngModelChange",function(o){Vp$2(t);let a=d_$1();return W_$1(a.searchTerm,o)||(a.searchTerm=o),Hp$2(o)}),Ey("ngModelChange",function(){Vp$2(t);let o=d_$1();return Hp$2(o.filterClients())}),gd$2(),db(),ZT(4,Pp,3,0,"button",21),gd$2()();}if(i&2){let t=d_$1();SC(2),$y("ngModel",t.searchTerm),dy("placeholder",gS$1(3,3,"Search businesses...")),pb(),SC(2),YT(t.searchTerm?4:-1);}}function Ep(i,n){if(i&1&&fy(0,"img",26),i&2){let t=d_$1().$implicit;dy("src",t.profilePicPath,zg$1)("alt",t.businessName);}}function Ip(i,n){if(i&1&&H_$1(0),i&2){let t=d_$1().$implicit;Ed$2(" ",t.businessName.charAt(0)," ");}}function Op(i,n){i&1&&(Js$2(0,"mat-icon",28),H_$1(1,"check_circle"),gd$2());}function Ap(i,n){if(i&1){let t=i_$1();Js$2(0,"mat-card",23),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1();return Hp$2(a.selectClient(o.clientId))}),Js$2(1,"div",24)(2,"div",25),ZT(3,Ep,1,2,"img",26)(4,Ip,1,1),gd$2(),Js$2(5,"span",27),H_$1(6),gd$2(),ZT(7,Op,2,0,"mat-icon",28),gd$2()();}if(i&2){let t=n.$implicit,e=d_$1();Ny("background-color",e.getCardColor(t)),xy("active-client",t.clientId===e.currentClientId)("disabled-card",e.isSwitching),SC(3),YT(t.profilePicPath?3:4),SC(3),jy(t.businessName),SC(),YT(t.clientId===e.currentClientId?7:-1);}}function Dp(i,n){i&1&&(Js$2(0,"div",6)(1,"mat-icon"),H_$1(2,"search_off"),gd$2(),Js$2(3,"span"),H_$1(4),pS(5,"translate"),gd$2()()),i&2&&(SC(4),jy(gS$1(5,1,"No businesses found")));}var Fp=["switch-session-expired","switch-user-not-found"],Bp=["switch-no-access","switch-seat-suspended"],Zl=(()=>{class i{constructor(t,e,o,a,d){this.data=t,this.translate=e,this.authService=o,this.loadingService=a,this.router=d,this.dialogRef=g$4(an),this.isRtl=false,this.clients=[],this.filteredClients=[],this.currentClientId="",this.searchTerm="",this.isSwitching=false,this.failure=null,this.colors=["#FFE5E5","#E5F3FF","#E5FFE5","#FFF5E5","#F0E5FF","#FFE5F0","#E5FFFF","#FFFFE5","#E5FFE5","#FFE5D9","#E5E5FF","#E5FFE5","#FFE5CC","#E5F0FF","#F5E5FF"],this.isRtl=this.translate.currentLang==="ar",this.clients=t.clients||[],this.currentClientId=t.currentClientId||"",this.filteredClients=[...this.clients];}filterClients(){if(!this.searchTerm||this.searchTerm.trim()===""){this.filteredClients=this.clients;return}let t=this.searchTerm.toLowerCase().trim();this.filteredClients=this.clients.filter(e=>e.businessName?.toLowerCase().includes(t));}clearSearch(){this.searchTerm="",this.filteredClients=this.clients;}selectClient(t){t===this.currentClientId||this.isSwitching||(this.isSwitching=true,this.failure=null,this.authService.switchClient(t).subscribe({next:e=>{this.isSwitching=false,e.succeeded?(this.dialogRef.close(true),window.location.href="/dashboard"):this.showFailure(e,t);},error:e=>{this.isSwitching=false,this.showFailure(e,t);}}));}get failureActionLabel(){switch(this.failure?.action){case "relogin":return "Login Again";case "retry":return "Try again";default:return "Choose another business"}}get failureActionIcon(){switch(this.failure?.action){case "relogin":return "login";case "retry":return "refresh";default:return "apps"}}loginAgain(){this.dialogRef.close(false),this.authService.logout(),this.router.navigate(["/authentication/login"]);}resolveFailure(){let t=this.failure;if(t)switch(t.action){case "relogin":this.loginAgain();break;case "retry":this.failure=null,this.selectClient(t.clientId);break;default:this.dismissFailure();}}dismissFailure(){this.failure=null;}showFailure(t,e){this.loadingService.loadingOff(),this.failure=this.describeFailure(t,e);}describeFailure(t,e){let o=t?.error??t,a=typeof t?.status=="number"?t.status:0,d=this.firstErrorCode(o),p=this.serverMessage(o);return d&&Fp.includes(d)||a===401?{message:p??this.translate.instant("Your session is no longer valid for switching businesses. Please sign in again."),action:"relogin",clientId:e}:d&&Bp.includes(d)?{message:p??this.translate.instant("You no longer have access to this business. Please contact the business administrator."),action:"dismiss",clientId:e}:a===0?{message:this.translate.instant("Could not reach the server. Check your internet connection and try again."),action:"retry",clientId:e}:a===429?{message:this.translate.instant("Too many attempts in a short time. Please wait a moment and try again."),action:"retry",clientId:e}:a>=500?{message:p??this.translate.instant("The server could not complete the switch. Please try again in a moment."),action:"retry",clientId:e}:{message:p??this.translate.instant("Switching businesses failed for an unknown reason. Please try again."),action:"retry",clientId:e,offerRelogin:true}}firstErrorCode(t){let e=t?.errorCodes??t?.ErrorCodes;return Array.isArray(e)&&e.length?e[0]?.code??null:null}serverMessage(t){let e=t?.errors??t?.Errors;return typeof e=="string"?e.trim()||null:Array.isArray(e)&&e.filter(a=>
11062typeof a=="string"&&a.trim()!=="").join(` 11063`)||null}getCardColor(t){let e=this.clients.findIndex(o=>o.clientId===t.clientId);return this.colors[e%this.colors.length]}onCancel(){this.dialogRef.close(false);}static{this.\u0275fac=function(e){return new(e||i)(V$3(Wm$1),V$3(O$5),V$3(Us$1),V$3(P$2),V$3(G$5))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-switch-client-dialog"]],decls:16,vars:10,consts:[["mat-dialog-title","",1,"dialog-title"],[1,"title-icon"],["role","alert",1,"switch-error"],[1,"search-container"],[1,"clients-grid"],[1,"client-card",3,"active-client","disabled-card","background-color"],[1,"no-results"],["align","end"],["mat-stroked-button","",3,"click","disabled"],[1,"switch-error__icon"],[1,"switch-error__body"],[1,"switch-error__message"],[1,"switch-error__actions"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],[1,"icon-18"],["type","button","mat-stroked-button","",3,"disabled"],["type","button","mat-button","",3,"disabled"],["type","button","mat-stroked-button","",3,"click","disabled"],["type","button","mat-button","",3,"click","disabled"],["appearance","outline",1,"search-field"],["matInput","",3,"ngModelChange","ngModel","placeholder"],["mat-icon-button","","matSuffix","","aria-label","close"],["mat-icon-button","","matSuffix","","aria-label","close",3,"click"],[1,"client-card",3,"click"],[1,"card-content"],[1,"logo-circle"],["alt","",3,"src","alt"],[1,"client-name"],[1,"current-badge"]],template:function(e,o){e&1&&(Js$2(0,"h2",0)(1,"mat-icon",1),H_$1(2,"swap_horiz"),gd$2(),H_$1(3),pS(4,"translate"),gd$2(),Js$2(5,"mat-dialog-content"),ZT(6,Tp,14,8,"div",2),ZT(7,kp,5,5,"div",3),Js$2(8,"div",4),XT(9,Ap,8,9,"mat-card",5,KT),gd$2(),ZT(11,Dp,6,3,"div",6),gd$2(),Js$2(12,"mat-dialog-actions",7)(13,"button",8),Ey("click",function(){return o.onCancel()}),H_$1(14),pS(15,"translate"),gd$2()()),e&2&&(SC(3),Ed$2(" ",gS$1(4,6,"Switch Business"),` 11064`),SC(3),YT(o.failure?6:-1),SC(),YT(o.clients.length>5?7:-1),SC(2),JT(o.filteredClients),SC(2),YT(o.filteredClients.length===0?11:-1),SC(2),dy("disabled",o.isSwitching),SC(),Ed$2(" ",gS$1(15,8,"Cancel")," "));},dependencies:[Ng,Ts,Og,Gc$1,Tt$2,Xv,zg,w0$1,H0,Zx,dn,da$1,Sh,zw,Nw,sk,nd$1,rC,wC,mv,GC,tD,vD,cD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,Fi$2,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,ey,iy,ty,go$2,Kd,XE,LT,mA,mt$4],styles:[".dialog-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin:0;padding:16px 24px 8px;font-size:var(--font-size-xl);font-weight:600}.title-icon[_ngcontent-%COMP%]{color:#5c6bc0}.switch-error[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px;padding:12px 14px;border-radius:var(--radius-lg);border:1px solid var(--color-error);background:var(--color-light-error)}.switch-error__icon[_ngcontent-%COMP%]{flex:0 0 auto;color:var(--color-error-text, var(--color-error))}.switch-error__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;min-width:0}.switch-error__message[_ngcontent-%COMP%]{margin:0;font-size:var(--font-size-sm);font-weight:600;line-height:1.6;color:var(--color-text);white-space:pre-line}.switch-error__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.search-container[_ngcontent-%COMP%]{margin-bottom:12px}.search-field[_ngcontent-%COMP%]{width:100%}.search-field[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}.clients-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;padding:4px 0}.client-card[_ngcontent-%COMP%]{border-radius:var(--radius-lg);padding:12px 16px;border:2px solid transparent;color:#2c3e50;cursor:pointer;transition:all .25s ease;box-shadow:var(--shadow-card)}.client-card[_ngcontent-%COMP%]:hover:not(.active-client):not(.disabled-card){transform:translateY(-2px);box-shadow:var(--shadow-raised)}.client-card.active-client[_ngcontent-%COMP%]{border-color:var(--color-primary);cursor:default;opacity:.85}.client-card.disabled-card[_ngcontent-%COMP%]{pointer-events:none;opacity:.6}.card-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}
11064.logo-circle[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;background:#fffc;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:1rem;overflow:hidden;flex-shrink:0}.logo-circle[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:50%}.client-name[_ngcontent-%COMP%]{font-size:var(--font-size-base);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.current-badge[_ngcontent-%COMP%]{color:var(--color-primary-dark);font-size:var(--font-size-xl);width:20px;height:20px;flex-shrink:0}.no-results[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:32px 16px;color:var(--color-text-muted)}.no-results[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:var(--font-size-5xl);width:48px;height:48px}.no-results[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:var(--font-size-base)}@media(max-width:500px){.clients-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}"],changeDetection:1});}}return i})();var tc=(i,n)=>n.id,ec=(i,n)=>n.target,Np=(i,n)=>n.customerId;function Rp(i,n){if(i&1){let t=i_$1();Js$2(0,"div",4),H_$1(1),pS(2,"translate"),gd$2(),Js$2(3,"button",5),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.sp.retry())}),Js$2(4,"mat-icon",6),H_$1(5,"refresh"),gd$2(),H_$1(6),pS(7,"translate"),gd$2();}i&2&&(SC(),jy(gS$1(2,2,"The phone could not connect. Check your setup or try again.")),SC(5),Ed$2("",gS$1(7,4,"Retry")," "));}function Lp(i,n){if(i&1&&(Js$2(0,"div",1)(1,"mat-icon",2),H_$1(2),gd$2(),Js$2(3,"div",3),H_$1(4),pS(5,"translate"),gd$2(),ZT(6,Rp,8,6),gd$2()),i&2){let t=d_$1();SC(2),jy(t.sp.state()==="connecting"?"sync":"phone_disabled"),SC(2),jy(gS$1(5,3,t.sp.statusText())),SC(2),YT(t.sp.state()==="offline"?6:-1);}}function Vp(i,n){if(i&1&&(Js$2(0,"div",12)(1,"mat-icon",13),H_$1(2),gd$2(),Js$2(3,"span",14)(4,"span",15)(5,"mat-icon"),H_$1(6,"headset_mic"),gd$2(),H_$1(7),gd$2(),Js$2(8,"span",16),H_$1(9),gd$2()(),Js$2(10,"span",17),H_$1(11),pS(12,"translate"),gd$2()()),i&2){let t=n.$implicit,e=d_$1(3);SC(2),jy(t.direction==="in"?"call_received":"call_made"),SC(5),jy(t.agentName),SC(2),jy(t.customerName||t.number),SC(),dy("ngClass","chip-"+t.status),SC(),jy(gS$1(12,5,e.otherStatusKey(t.status)));}}function zp(i,n){if(i&1&&(Js$2(0,"div",7)(1,"div",11),H_$1(2),pS(3,"translate"),gd$2(),XT(4,Vp,13,7,"div",12,QT),gd$2()),i&2){let t=d_$1(2);SC(2),jy(gS$1(3,1,"On call now")),SC(2),JT(t.sp.othersCalls());}}function jp(i,n){if(i&1&&(Js$2(0,"span",23),H_$1(1),gd$2()),i&2){let t=d_$1().$implicit;SC(),jy(t.number);}}function Up(i,n){if(i&1&&(Js$2(0,"span",24),H_$1(1),gd$2()),i&2){let t=d_$1().$implicit,e=d_$1(3);SC(),jy(e.sp.duration(t));}}function $p(i,n){if(i&1){let t=i_$1();Js$2(0,"button",31),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1().$implicit,a=d_$1(3);return Hp$2(a.hangup(o.id))}),Js$2(2,"mat-icon"),H_$1(3,"call_end"),gd$2()();}i&2&&dy("matTooltip",gS$1(1,1,"End this call on the server"));}function Wp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",34),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(2).$implicit,a=d_$1(3);return Hp$2(a.sp.ignore(o.id))}),Js$2(2,"mat-icon"),H_$1(3,"notifications_off"),gd$2()();}i&2&&dy("matTooltip",gS$1(1,1,"Silence on this device \u2014 it keeps ringing for your colleagues"));}function qp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",32),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1().$implicit,a=d_$1(3);return Hp$2(a.answer(o.id))}),Js$2(2,"mat-icon"),H_$1(3,"call"),gd$2()(),ZT(4,Wp,4,3,"button",33),Js$2(5,"button",31),pS(6,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1().$implicit,a=d_$1(3);return Hp$2(a.hangup(o.id))}),Js$2(7,"mat-icon"),H_$1(8,"call_end"),gd$2()();}if(i&2){let t=d_$1().$implicit;dy("matTooltip",gS$1(1,3,"Answer")),SC(4),YT(t.ignored?-1:4),SC(),dy("matTooltip",gS$1(6,5,"Decline"));}}function Kp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",34),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(2).$implicit,a=d_$1(3);return Hp$2(a.sp.toggleHold(o.id))}),Js$2(2,"mat-icon"),H_$1(3),gd$2()(),Js$2(4,"button",34),pS(5,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(2).$implicit,a=d_$1(3);return Hp$2(a.sp.toggleMute(o.id))}),Js$2(6,"mat-icon"),H_$1(7),gd$2()();}if(i&2){let t=d_$1(2).$implicit;xy("on",t.status==="held"),dy("matTooltip",gS$1(1,8,t.status==="held"?"Resume":"Hold")),SC(3),jy(t.status==="held"?"play_arrow":"pause"),SC(),xy("on",t.muted),dy("matTooltip",gS$1(5,10,t.muted?"Unmute":"Mute")),SC(3),jy(t.muted?"mic_off":"mic");}}function Hp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",34),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(3).$implicit,a=d_$1(3);return Hp$2(a.toggleTransfer(o.id))}),Js$2(2,"mat-icon"),H_$1(3,"phone_forwarded"),gd$2()(),Js$2(4,"button",34),pS(5,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(3).$implicit,a=d_$1(3);return Hp$2(a.toggleAdd(o.id))}),Js$2(6,"mat-icon"),H_$1(7,"person_add"),gd$2()();}if(i&2){let t=d_$1(3).$implicit,e=d_$1(3);xy("on",e.transferOpenId===t.id),dy("matTooltip",gS$1(1,6,"Transfer")),SC(4),xy("on",e.addOpe
11064nId===t.id),dy("matTooltip",gS$1(5,8,"Add another person to this call (three-way)"));}}function Gp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",34),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(2).$implicit,a=d_$1(3);return Hp$2(a.toggleDtmf(o.id))}),Js$2(2,"mat-icon"),H_$1(3,"dialpad"),gd$2()(),ZT(4,Hp,8,10);}if(i&2){let t=d_$1(2).$implicit,e=d_$1(3);xy("on",e.dtmfOpenId===t.id),dy("matTooltip",gS$1(1,4,"Keypad")),SC(4),YT(t.consultFor?-1:4);}}function Qp(i,n){if(i&1){let t=i_$1();ZT(0,Kp,8,12),ZT(1,Gp,5,6),Js$2(2,"button",31),pS(3,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1().$implicit,a=d_$1(3);return Hp$2(a.hangup(o.id))}),Js$2(4,"mat-icon"),H_$1(5,"call_end"),gd$2()();}if(i&2){let t=d_$1().$implicit;YT(t.status==="active"||t.status==="held"?0:-1),SC(),YT(t.status==="active"?1:-1),SC(),dy("matTooltip",gS$1(3,3,"Hang up"));}}function Yp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",35),Ey("click",function(){Vp$2(t);let o=d_$1().$implicit,a=d_$1(3);return Hp$2(a.sp.openCustomer(o.customerId))}),Js$2(1,"mat-icon"),H_$1(2,"person"),gd$2(),H_$1(3),pS(4,"translate"),gd$2();}i&2&&(SC(3),Ed$2(" ",gS$1(4,1,"View customer")," "));}function Xp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",38),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(2).$implicit,a=d_$1(3);return Hp$2(a.conference(o.id))}),Js$2(2,"mat-icon"),H_$1(3,"groups"),gd$2(),H_$1(4),pS(5,"translate"),gd$2(),Js$2(6,"button",39),pS(7,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(2).$implicit,a=d_$1(3);return Hp$2(a.completeTransfer(o.id))}),Js$2(8,"mat-icon"),H_$1(9,"merge_type"),gd$2(),H_$1(10),pS(11,"translate"),gd$2();}i&2&&(dy("matTooltip",gS$1(1,4,"Merge all three into one call (you, the customer and the colleague)")),SC(4),Ed$2(" ",gS$1(5,6,"Conference")," "),SC(2),dy("matTooltip",gS$1(7,8,"Connect the customer to this colleague and leave the call")),SC(4),Ed$2(" ",gS$1(11,10,"Connect them")," "));}function Zp(i,n){if(i&1){let t=i_$1();Js$2(0,"button",38),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(2).$implicit,a=d_$1(3);return Hp$2(a.completeTransfer(o.id))}),Js$2(2,"mat-icon"),H_$1(3,"merge_type"),gd$2(),H_$1(4),pS(5,"translate"),gd$2(),Js$2(6,"button",39),pS(7,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(2).$implicit,a=d_$1(3);return Hp$2(a.conference(o.id))}),Js$2(8,"mat-icon"),H_$1(9,"groups"),gd$2(),H_$1(10),pS(11,"translate"),gd$2();}i&2&&(dy("matTooltip",gS$1(1,4,"Connect the customer to this colleague and leave the call")),SC(4),Ed$2(" ",gS$1(5,6,"Connect them")," "),SC(2),dy("matTooltip",gS$1(7,8,"Merge all three into one call (you, the customer and the colleague)")),SC(4),Ed$2(" ",gS$1(11,10,"Conference")," "));}function Jp(i,n){if(i&1&&(Js$2(0,"div",28)(1,"mat-icon",36),H_$1(2,"support_agent"),gd$2(),Js$2(3,"span",37),H_$1(4),pS(5,"translate"),gd$2(),ZT(6,Xp,12,12)(7,Zp,12,12),gd$2()),i&2){let t=d_$1().$implicit,e=d_$1(3);SC(4),Ed$2(" ",gS$1(5,2,e.mergeIntentFor===t.consultFor?"CallCenterSettings_AddingParticipant":"Talking privately \u2014 the customer is on hold")," "),SC(2),YT(e.mergeIntentFor===t.consultFor?6:7);}}function tm(i,n){i&1&&(Js$2(0,"div",40),H_$1(1),pS(2,"translate"),gd$2()),i&2&&(SC(),jy(gS$1(2,1,"No colleagues or approved numbers to transfer to yet.")));}function em(i,n){if(i&1){let t=i_$1();Js$2(0,"div",41)(1,"mat-icon",42),H_$1(2),gd$2(),Js$2(3,"span",43),H_$1(4),gd$2(),Js$2(5,"button",44),pS(6,"translate"),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(3).$implicit,d=d_$1(3);return Hp$2(d.askFirst(a.id,o))}),H_$1(7),pS(8,"translate"),gd$2(),Js$2(9,"button",45),pS(10,"translate"),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(3).$implicit,d=d_$1(3);return Hp$2(d.sendNow(a.id,o))}),H_$1(11),pS(12,"translate"),gd$2()();}if(i&2){let t=n.$implicit;SC(2),jy(t.kind==="agent"?"headset_mic":"call"),SC(2),jy(t.name),SC(),dy("matTooltip",gS$1(6,6,"Talk to them privately first \u2014 the customer waits on hold")),SC(2),Ed$2(" ",gS$1(8,8,"Ask first")," "),SC(2),dy("matTooltip",gS$1(10,10,"Hand the call over immediately without speaking first")),SC(2),Ed$2(" ",gS$1(12,12,"Send now")," ");}}
11064function im(i,n){if(i&1&&XT(0,em,13,14,"div",41,ec),i&2){let t=d_$1(5);JT(t.sp.transferTargets());}}function nm(i,n){if(i&1&&(Js$2(0,"div",29),ZT(1,tm,3,3,"div",40)(2,im,2,0),gd$2()),i&2){let t=d_$1(4);SC(),YT(t.sp.transferTargets().length?2:1);}}function om(i,n){i&1&&(Js$2(0,"div",40),H_$1(1),pS(2,"translate"),gd$2()),i&2&&(SC(),jy(gS$1(2,1,"No colleagues or approved numbers to transfer to yet.")));}function am(i,n){if(i&1){let t=i_$1();Js$2(0,"div",41)(1,"mat-icon",42),H_$1(2),gd$2(),Js$2(3,"span",43),H_$1(4),gd$2(),Js$2(5,"button",45),pS(6,"translate"),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(3).$implicit,d=d_$1(3);return Hp$2(d.addParticipant(a.id,o))}),Js$2(7,"mat-icon"),H_$1(8,"person_add"),gd$2(),H_$1(9),pS(10,"translate"),gd$2()();}if(i&2){let t=n.$implicit;SC(2),jy(t.kind==="agent"?"headset_mic":"call"),SC(2),jy(t.name),SC(),dy("matTooltip",gS$1(6,4,"Add another person to this call (three-way)")),SC(4),Ed$2(" ",gS$1(10,6,"Add")," ");}}function rm(i,n){if(i&1&&XT(0,am,11,8,"div",41,ec),i&2){let t=d_$1(5);JT(t.sp.transferTargets());}}function sm(i,n){if(i&1&&(Js$2(0,"div",29)(1,"div",40),H_$1(2),pS(3,"translate"),gd$2(),ZT(4,om,3,3,"div",40)(5,rm,2,0),gd$2()),i&2){let t=d_$1(4);SC(2),jy(gS$1(3,2,"Pick who to add. They are called privately first \u2014 then tap Conference to merge everyone.")),SC(2),YT(t.sp.transferTargets().length?5:4);}}function lm(i,n){if(i&1){let t=i_$1();Js$2(0,"button",49),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(2).$implicit,d=d_$1(3);return Hp$2(d.pressDtmf(a.id,o))}),H_$1(1),gd$2();}if(i&2){let t=n.$implicit;SC(),jy(t);}}function cm(i,n){if(i&1&&(Js$2(0,"div",30)(1,"div",46),H_$1(2),pS(3,"translate"),gd$2(),Js$2(4,"div",47),XT(5,lm,2,1,"button",48,KT),gd$2()()),i&2){let t=d_$1(4);SC(2),jy(t.dtmfSent||gS$1(3,1,"Keypad")),SC(3),JT(t.keypad);}}function dm(i,n){if(i&1){let t=i_$1();Js$2(0,"div",18)(1,"span",19)(2,"mat-icon"),H_$1(3),gd$2()(),Js$2(4,"button",20),pS(5,"translate"),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(3);return Hp$2(o.status==="held"?a.sp.resume(o.id):null)}),Js$2(6,"span",21),H_$1(7),gd$2(),Js$2(8,"span",22)(9,"span",17),H_$1(10),pS(11,"translate"),gd$2(),ZT(12,jp,2,1,"span",23),ZT(13,Up,2,1,"span",24),gd$2()(),Js$2(14,"span",25),ZT(15,$p,4,3,"button",26)(16,qp,9,7)(17,Qp,6,5),gd$2(),ZT(18,Yp,5,3,"button",27),gd$2(),ZT(19,Jp,8,4,"div",28),ZT(20,nm,3,1,"div",29),ZT(21,sm,6,4,"div",29),ZT(22,cm,7,3,"div",30);}if(i&2){let t=n.$implicit,e=d_$1(3);xy("stale",t.stale),dy("ngClass","st-"+t.status),SC(),xy("in",t.direction==="in"),SC(2),jy(t.direction==="in"?"call_received":"call_made"),SC(),dy("matTooltip",gS$1(5,18,t.status==="held"?"Resume":"")),SC(3),jy(e.legLabel(t)),SC(2),dy("ngClass","chip-"+t.status),SC(),jy(gS$1(11,20,e.statusKey(t))),SC(2),YT(t.name&&t.number&&!e.sp.isAgentId(t.number)?12:-1),SC(),YT(t.answeredAt?13:-1),SC(2),YT(t.stale?15:t.status==="ringing"&&t.direction==="in"?16:17),SC(3),YT(t.customerId?18:-1),SC(),YT(t.consultFor!=null&&!t.merging?19:-1),SC(),YT(e.transferOpenId===t.id?20:-1),SC(),YT(e.addOpenId===t.id?21:-1),SC(),YT(e.dtmfOpenId===t.id&&t.status==="active"?22:-1);}}function pm(i,n){if(i&1&&(Js$2(0,"div",8),XT(1,dm,23,22,null,null,tc),gd$2()),i&2){let t=d_$1(2);SC(),JT(t.sp.calls());}}function mm(i,n){if(i&1){let t=i_$1();Js$2(0,"button",50),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.showDialer=!o.showDialer)}),Js$2(1,"mat-icon"),H_$1(2),gd$2(),H_$1(3),pS(4,"translate"),gd$2();}if(i&2){let t=d_$1(2);SC(2),jy(t.showDialer?"expand_less":"add_ic_call"),SC(),Ed$2(" ",gS$1(4,2,t.showDialer?"Hide dialpad":"New call")," ");}}function um(i,n){if(i&1&&(Js$2(0,"small",64),H_$1(1),gd$2()),i&2){let t=d_$1().$implicit;SC(),jy(t.did);}}function fm(i,n){i&1&&(Js$2(0,"small",65),H_$1(1),pS(2,"translate"),gd$2()),i&2&&(SC(),Ed$2("\xB7 ",gS$1(2,1,"Default")));}function hm(i,n){if(i&1){let t=i_$1();Js$2(0,"button",63),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(4);return Hp$2(a.sp.setFromNumber(o.id))}),Js$2(1,"mat-icon"),H_$1(2),gd$2(),Js$2(3,"span"),H_$1(4),gd$2(),ZT(5,um,2,1,"small",64),ZT(6,fm,3,3,"small",65),gd$2();}if(i&2){let t=n.$implicit,e=d_$1();
11064SC(2),jy(t.id===e.id?"radio_button_checked":"radio_button_unchecked"),SC(2),jy(t.label||t.did),SC(),YT(t.label?5:-1),SC(),YT(t.isDefaultOutbound?6:-1);}}function gm(i,n){if(i&1&&(Js$2(0,"button",57)(1,"mat-icon",58),H_$1(2,"sim_card"),gd$2(),Js$2(3,"span",59),H_$1(4),pS(5,"translate"),gd$2(),Js$2(6,"span",60),H_$1(7),gd$2(),Js$2(8,"mat-icon",61),H_$1(9,"arrow_drop_down"),gd$2()(),Js$2(10,"mat-menu",null,0),XT(12,hm,7,4,"button",62,tc),gd$2()),i&2){let t=D_$1(11),e=d_$1(3);dy("matMenuTriggerFor",t),SC(4),Ed$2("",gS$1(5,3,"From"),":"),SC(3),jy(n.did),SC(5),JT(e.sp.myNumbers());}}function _m(i,n){if(i&1){let t=i_$1();Js$2(0,"button",66),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(3);return Hp$2(o.backspace())}),Js$2(2,"mat-icon"),H_$1(3,"backspace"),gd$2()();}i&2&&ly("aria-label",gS$1(1,1,"Delete"));}function Cm(i,n){if(i&1){let t=i_$1();Js$2(0,"button",68),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(4);return Hp$2(a.pickSuggestion(o))}),Js$2(1,"mat-icon",69),H_$1(2,"person"),gd$2(),Js$2(3,"span",70)(4,"span",71),H_$1(5),gd$2(),Js$2(6,"span",72),H_$1(7),gd$2()(),Js$2(8,"mat-icon",73),H_$1(9,"call"),gd$2()();}if(i&2){let t=n.$implicit;SC(5),jy(t.name||t.phoneNumber),SC(2),jy(t.phoneNumber);}}function vm(i,n){if(i&1&&(Js$2(0,"div",54),XT(1,Cm,10,2,"button",67,Np),gd$2()),i&2){let t=d_$1(3);SC(),JT(t.suggestions);}}
11064function bm(i,n){if(i&1){let t=i_$1();Js$2(0,"button",49),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(3);return Hp$2(a.press(o))}),H_$1(1),gd$2();}if(i&2){let t=n.$implicit;SC(),jy(t);}}function xm(i,n){if(i&1){let t=i_$1();Js$2(0,"div",10),ZT(1,gm,14,5),Js$2(2,"div",51)(3,"input",52),pS(4,"translate"),zy("ngModelChange",function(o){Vp$2(t);let a=d_$1(2);return W_$1(a.dialNumber,o)||(a.dialNumber=o),Hp$2(o)}),Ey("ngModelChange",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.onDialInput())})("keyup.enter",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.dial())}),gd$2(),db(),ZT(5,_m,4,3,"button",53),gd$2(),ZT(6,vm,3,0,"div",54),Js$2(7,"div",55),XT(8,bm,2,1,"button",48,KT),gd$2(),Js$2(10,"button",56),pS(11,"translate"),pS(12,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.dial())}),Js$2(13,"mat-icon"),H_$1(14,"call"),gd$2()()();}if(i&2){let t,e=d_$1(2);SC(),YT((t=e.sp.myNumbers().length>1&&e.sp.selectedFrom())?1:-1,t),SC(2),$y("ngModel",e.dialNumber),dy("placeholder",gS$1(4,8,"Type a number or name")),pb(),SC(2),YT(e.dialNumber?5:-1),SC(),YT(e.suggestions.length?6:-1),SC(2),JT(e.keypad),SC(2),dy("disabled",!e.dialNumber)("matTooltip",gS$1(11,10,"Call")),ly("aria-label",gS$1(12,12,"Call"));}}function Mm(i,n){if(i&1&&(ZT(0,zp,6,3,"div",7),ZT(1,pm,3,0,"div",8),ZT(2,mm,5,4,"button",9),ZT(3,xm,15,14,"div",10)),i&2){let t=d_$1();YT(t.sp.othersCalls().length?0:-1),SC(),YT(t.sp.hasCalls()?1:-1),SC(),YT(t.sp.hasCalls()?2:-1),SC(),YT(t.showDialer||!t.sp.hasCalls()?3:-1);}}var ic=(()=>{class i{constructor(t,e,o,a){this.sp=t,this.cdr=e,this.toast=o,this.translate=a,this.dialNumber="",this.suggestions=[],this.pendingName=null,this.search$=new ye$5,this.sub=null,this.showDialer=false,this.dtmfOpenId=null,this.dtmfSent="",this.keypad=["1","2","3","4","5","6","7","8","9","*","0","#"],this.transferOpenId=null,this.addOpenId=null,this.mergeIntentFor=null;}toggleTransfer(t){this.transferOpenId=this.transferOpenId===t?null:t,this.addOpenId=null,this.transferOpenId!==null&&!this.sp.transferTargets().length&&this.sp.loadTransferTargets();}toggleAdd(t){this.addOpenId=this.addOpenId===t?null:t,this.transferOpenId=null,this.addOpenId!==null&&!this.sp.transferTargets().length&&this.sp.loadTransferTargets();}addParticipant(t,e){return L$7(this,null,function*(){if(this.addOpenId=null,!(yield this.sp.startConsult(t,e))){this.toast.error(this.translate.instant("Could not transfer the call. Please try again."));return}this.mergeIntentFor=t;})}sendNow(t,e){return L$7(this,null,function*(){this.transferOpenId=null,(yield this.sp.blindTransfer(t,e))||this.toast.error(this.translate.instant("Could not transfer the call. Please try again."));})}askFirst(t,e){return L$7(this,null,function*(){this.transferOpenId=null,(yield this.sp.startConsult(t,e))||this.toast.error(this.translate.instant("Could not transfer the call. Please try again."));})}completeTransfer(t){return L$7(this,null,function*(){(yield this.sp.completeConsult(t))||this.toast.error(this.translate.instant("Could not transfer the call. Please try again."));})}conference(t){return L$7(this,null,function*(){(yield this.sp.conference(t))?this.mergeIntentFor=null:this.toast.error(this.translate.instant("Could not start the conference. Please try again."));})}legLabel(t){return t.name&&!this.sp.isAgentId(t.name)?t.name:t.number&&!this.sp.isAgentId(t.number)?t.number:this.translate.instant("Colleague")}ngOnInit(){this.sub=this.search$.pipe(Bf$1(250),Vf$1(),Bi$1(t=>this.sp.searchContacts(t))).subscribe(t=>{this.suggestions=t;try{this.cdr.detectChanges();}catch(e){}});}ngOnDestroy(){this.sub?.unsubscribe();}press(t){this.dialNumber+=t,this.onDialInput();}backspace(){this.dialNumber=this.dialNumber.slice(0,-1),this.onDialInput();}onDialInput(){this.pendingName=null,this.search$.next(this.dialNumber);}pickSuggestion(t){this.dialNumber=(t.phoneNumber||"").replace(/[^\d+]/g,""),this.pendingName=t.name??null,this.suggestions=[];}dial(){return L$7(this,null,function*(){if((yield this.sp.call(this.dialNumber,this.pendingName))!==null){this.dialNumber="",this.pendingName=null,this.suggestions=[],this.showDialer=false;return}this.toast.error(this.translate.instant(this.sp.lastError()??"The call could not be started. Please try again.")),this.sp.lastError.set(null);})}answer(t){return L$7(this,null,function*(){let e=yield this.sp.answer(t);e&&(this.toast.error(this.translate.instant(e)),this.sp.lastError.set(null));})}toggleDtmf(t){this.dtmfOpenId=this.dtmfOpenId===t?null:t,this.dtmfSent="";}pressDtmf(t,e){this.sp.sendDtmf(t,e),this.dtmfSent+=e;}otherStatusKey(t){switch((t||"").toLowerCase()){case "ringing":return "Incoming";case "calling":return "Calling";case "held":return "On hold";case "active":return "In call";default:return t}}statusKey(t){if(t.stale)return "Connection lost";if(t.ignored&&t.status==="ringing")return "Silenced \u2014 still ringing for others";switch(t.status){case "ringing":return t.direction==="in"?"Incoming":"Ringing";case "calling":return "Calling";case "held":return "On hold";case "active":return "In call"}}hangup(t){return L$7(this,null,function*(){(yield this.sp.hangup(t))||this.toast.error(this.translate.instant("Could not end the call from here. Open Call Center \u2192 Live calls and end it there."));})}static{this.\u0275fac=function(e){return new(e||i)(V$3(Dd$1),V$3(Od$2),V$3(ut$2),V$3(O$5))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-softphone-panel"]],decls:2,vars:1,consts:[["fromMenu","matMenu"],[1,"offline-box"],[1,"offline-ico"],[1,"offline-msg"],[1,"offline-hint","text-muted"],["mat-stroked-button","","color","primary",3,"click"],[1,"m-r-4"],[1,"others-block"],[1,"call-stack"],["mat-stroked-button","",1,"new-call-toggle"],[1,"dialer"],[1,"others-title"],[1,"other-row"],[1,"other-dir"],[1,"other-main"],[1,"other-agent"],[1,"other-cust"],[1,"chip",3,"ngClass"],[1,"call-row",3,"ngClass"],[1,"dir-ico"],["type","button",1,"who",3,"click","matTooltip"],[1,"who-name"],[1,"who-sub"],[1,"who-num"],[1,"who-timer"],[1,"row-actions"],["mat-mini-fab","",1,"act","end",3,"matTooltip"],["mat-button","",1,"view-cust"],[1,"consult-bar"],[1,"transfer-pad"],[1,"dtmf-pad"],["mat-mini-fab","",1,"act","end",3,"click","matTooltip"],["mat-mini-fab","",1,"act","answer",3,"click","matTooltip"],["mat-icon-button","",1,"act",3,"matTooltip"],["mat-icon-button","",1,"act",3,"click","matTooltip"],["mat-button","",1,"view-cust",3,"click"],[1,"consult-ico"],[1,"consult-text"],["mat-flat-button","","color","primary",1,"consult-done",3,"click","matTooltip"],["mat-stroked-button","",1,"consult-conf",3,"click","matTooltip"],[1,"transfer-empty"],[1,"transfer-row"],[1,"t-ico"],[1,"t-name"],["mat-stroked-button","",1,"t-btn",3,"click","matTooltip"],["mat-flat-button","","color","primary",1,"t-btn",3,"click","matTooltip"],[1,"dtmf-sent"],[1,"keypad","small"],["type","button","mat-stroked-button",""],["type","button","mat-stroked-button","",3,"click"],["mat-stroked-button","",1,"new-call-toggle",3,"click"],[1,"dial-input-wrap"],["type","text","inputmode","tel",1,"dial-input",3,"ngModelChange","keyup.enter","ngModel","placeholder"],["mat-icon-button","",1,"dial-
11064del"],[1,"dial-suggestions"],[1,"keypad"],["mat-fab","","color","primary",1,"dial-call",3,"click","disabled","matTooltip"],["type","button",1,"from-picker",3,"matMenuTriggerFor"],[1,"from-ico"],[1,"from-label","text-muted"],[1,"from-did"],[1,"from-caret"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"text-muted","m-l-4"],[1,"text-primary","m-l-4"],["mat-icon-button","",1,"dial-del",3,"click"],["type","button",1,"sugg-row"],["type","button",1,"sugg-row",3,"click"],[1,"sugg-ico"],[1,"sugg-main"],[1,"sugg-name"],[1,"sugg-num"],[1,"sugg-call"]],template:function(e,o){e&1&&ZT(0,Lp,7,5,"div",1)(1,Mm,4,4),e&2&&YT(o.sp.state()!=="registered"?0:1);},dependencies:[Xv,RM,Ng,Ts,Og,Gc$1,Tt$2,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,ta$1,_r,cv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,Hs$2,Fi$2,js$1,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,go$2,Kd,on,XE,LT,mA,mt$4],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.offline-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 8px;text-align:center}.offline-box[_ngcontent-%COMP%] .offline-ico[_ngcontent-%COMP%]{font-size:34px;width:34px;height:34px;color:#90a4ae}.offline-box[_ngcontent-%COMP%] .offline-msg[_ngcontent-%COMP%]{font-size:var(--font-size-sm);font-weight:600}.offline-box[_ngcontent-%COMP%] .offline-hint[_ngcontent-%COMP%]{font-size:var(--font-size-xs);max-width:220px}.call-stack[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}.call-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"dir who actions";align-items:center;gap:8px;padding:8px 10px;border-radius:var(--radius-lg);background:#00000009;border:1px solid transparent;transition:background .15s,border-color .15s}.call-row.st-active[_ngcontent-%COMP%]{background:#2e7d321a;border-color:#2e7d3259}.call-row.st-held[_ngcontent-%COMP%]{background:#0000000d;opacity:.82}.call-row.st-ringing[_ngcontent-%COMP%]{background:#1e88e51f;border-color:#1e88e566;animation:_ngcontent-%COMP%_cc-pulse 1.3s infinite}.call-row.st-calling[_ngcontent-%COMP%]{background:#fb8c001a;border-color:#fb8c0059}.call-row.stale[_ngcontent-%COMP%]{background:#d32f2f14;border-color:#d32f2f59;border-style:dashed;animation:none}@keyframes _ngcontent-%COMP%_cc-pulse{0%,to{border-color:#1e88e566}50%{border-color:#1e88e5e6}}.dir-ico[_ngcontent-%COMP%]{grid-area:dir;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0000000f;color:var(--color-text-muted)}.dir-ico[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.dir-ico.in[_ngcontent-%COMP%]{color:var(--color-primary-dark);background:#2e7d3224}.who[_ngcontent-%COMP%]{grid-area:who;border:none;background:none;padding:0;text-align:start;cursor:default;min-width:0;display:flex;flex-direction:column;gap:2px}.st-held[_ngcontent-%COMP%] .who[_ngcontent-%COMP%]{cursor:pointer}.who[_ngcontent-%COMP%] .who-name[_ngcontent-%COMP%]{font-weight:600;font-size:var(--font-size-sm);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.who[_ngcontent-%COMP%] .who-sub[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:var(--font-size-xs)}.who[_ngcontent-%COMP%] .who-num[_ngcontent-%COMP%]{color:var(--color-text-muted)}.who[_ngcontent-%COMP%] .who-timer[_ngcontent-%COMP%]{color:var(--color-primary-dark);font-variant-numeric:tabular-nums;font-weight:600}.chip[_ngcontent-%COMP%]{font-size:var(--font-size-2xs);font-weight:700;letter-spacing:.2px;padding:1px 7px;border-radius:var(--radius-full);text-transform:uppercase}.chip.chip-active[_ngcontent-%COMP%]{background:#2e7d3229;color:var(--color-primary)}.chip.chip-held[_ngcontent-%COMP%]{background:#0000001a;color:var(--color-text-muted)}.chip.chip-ringing[_ngcontent-%COMP%]{background:#1e88e529;color:#1565c0}.chip.chip-calling[_ngcontent-%COMP%]{background:#fb8c0029;color:#e65100}.row-actions[_ngcontent-%COMP%]{grid-area:actions;display:flex;align-items:center;gap:4px}.row-actions[_ngcontent-%COMP%] .act.on[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--color-primary-dark)}.row-actions[_ngcontent-%COMP%] .act.on[_ngcontent-%COMP%]{background:#2e7d3224}.act[_ngcontent-%COMP%]{width:34px;height:34px;line-height:34px}.act[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.act.answer[_ngcontent-%COMP%]{background:var(--color-primary);color:#fff;box-shadow:none}.act.end[_ngcontent-%COMP%]{background:var(--color-error);color:#fff;box-shadow:none}button.mat-mini-fab.act[_ngcontent-%COMP%]{width:34px;height:34px}
11064.view-cust[_ngcontent-%COMP%]{grid-area:actions;grid-column:1/-1;justify-self:start;margin-top:2px;font-size:12px;min-height:28px;line-height:28px;padding:0 8px}.view-cust[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;margin-inline-end:2px}.call-row[_ngcontent-%COMP%]:has(.view-cust){grid-template-areas:"dir who actions" "cust cust cust"}.view-cust[_ngcontent-%COMP%]{grid-area:cust}.dtmf-pad[_ngcontent-%COMP%]{margin:-2px 0 10px;padding:8px;border-radius:var(--radius-lg);background:#2e7d320f;border:1px solid rgba(46,125,50,.18)}.dtmf-pad[_ngcontent-%COMP%] .dtmf-sent[_ngcontent-%COMP%]{text-align:center;font-variant-numeric:tabular-nums;letter-spacing:2px;font-size:var(--font-size-base);min-height:20px;margin-bottom:6px;color:var(--color-primary-dark)}.keypad.small[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:38px;font-size:16px}.new-call-toggle[_ngcontent-%COMP%]{width:100%;margin-bottom:8px;font-size:13px}.new-call-toggle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;margin-inline-end:4px}.dialer[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}.from-picker[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;border:1px solid rgba(0,0,0,.14);background:#00000005;border-radius:var(--radius-full);padding:3px 8px 3px 6px;font-size:12px;cursor:pointer;max-width:100%}.from-picker[_ngcontent-%COMP%] .from-ico[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:var(--color-primary)}.from-picker[_ngcontent-%COMP%] .from-label[_ngcontent-%COMP%]{font-size:var(--font-size-xs)}.from-picker[_ngcontent-%COMP%] .from-did[_ngcontent-%COMP%]{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.from-picker[_ngcontent-%COMP%] .from-caret[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.dial-input-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;max-width:260px;border:1px solid rgba(0,0,0,.18);border-radius:var(--radius-lg);padding-inline-start:8px}.dial-input-wrap[_ngcontent-%COMP%] .dial-input[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;border:none;outline:none;background:transparent;text-align:center;font-size:var(--font-size-xl);letter-spacing:1px;padding:8px 4px;color:inherit}.dial-input-wrap[_ngcontent-%COMP%] .dial-del[_ngcontent-%COMP%]{width:36px;height:36px;line-height:36px}.keypad[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;max-width:260px;direction:ltr}.keypad[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:0;height:44px;font-size:18px;padding:0}.dial-call[_ngcontent-%COMP%]{margin-top:2px}.others-block[_ngcontent-%COMP%]{padding:6px 8px 8px;margin-bottom:6px;border-bottom:1px solid rgba(0,0,0,.08)}.others-block[_ngcontent-%COMP%] .others-title[_ngcontent-%COMP%]{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.55;margin-bottom:4px}.others-block[_ngcontent-%COMP%] .other-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:4px 0}.others-block[_ngcontent-%COMP%] .other-row[_ngcontent-%COMP%] .other-dir[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;opacity:.6;flex:0 0 auto}.others-block[_ngcontent-%COMP%] .other-row[_ngcontent-%COMP%] .other-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.others-block[_ngcontent-%COMP%] .other-row[_ngcontent-%COMP%] .other-main[_ngcontent-%COMP%] .other-agent[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:600}.others-block[_ngcontent-%COMP%] .other-row[_ngcontent-%COMP%] .other-main[_ngcontent-%COMP%] .other-agent[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:13px;width:13px;height:13px;opacity:.7}.others-block[_ngcontent-%COMP%] .other-row[_ngcontent-%COMP%] .other-main[_ngcontent-%COMP%] .other-cust[_ngcontent-%COMP%]{font-size:11px;opacity:.65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dial-suggestions[_ngcontent-%COMP%]{max-height:168px;overflow-y:auto;border:1px solid rgba(0,0,0,.1);border-radius:var(--radius-lg);margin:6px 0 2px}.dial-suggestions[_ngcontent-%COMP%] .sugg-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;background:transparent;border:0;cursor:pointer;text-align:start;color:inherit}.dial-suggestions[_ngcontent-%COMP%] .sugg-row[_ngcontent-%COMP%] + .sugg-row[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.06)}.dial-suggestions[_ngcontent-%COMP%] .sugg-row[_ngcontent-%COMP%]:hover{background:#0000000d}.dial-suggestions[_ngcontent-%COMP%] .sugg-row[_ngcontent-%COMP%] .sugg-ico[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;opacity:.6;flex:0 0 auto}.dial-suggestions[_ngcontent-%COMP%] .sugg-row[_ngcontent-%COMP%] .sugg-call[_ngcontent-%COMP%]{font-size:17px;width:17px;height:17px;opacity:.7;flex:0 0 auto}.dial-suggestions[_ngcontent-%COMP%] .sugg-row[_ngcontent-%COMP%] .sugg-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.dial-suggestions[_ngcontent-%COMP%] .sugg-row[_ngcontent-%COMP%] .sugg-main[_ngcontent-%COMP%] .sugg-name[_ng
11064content-%COMP%]{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dial-suggestions[_ngcontent-%COMP%] .sugg-row[_ngcontent-%COMP%] .sugg-main[_ngcontent-%COMP%] .sugg-num[_ngcontent-%COMP%]{font-size:11px;opacity:.6}.transfer-pad[_ngcontent-%COMP%]{margin:4px 0 8px;border:1px solid rgba(0,0,0,.1);border-radius:var(--radius-lg);overflow:hidden}.transfer-pad[_ngcontent-%COMP%] .transfer-empty[_ngcontent-%COMP%]{padding:10px;font-size:12px;opacity:.7}.transfer-pad[_ngcontent-%COMP%] .transfer-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;padding:6px 8px}.transfer-pad[_ngcontent-%COMP%] .transfer-row[_ngcontent-%COMP%] + .transfer-row[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.06)}.transfer-pad[_ngcontent-%COMP%] .transfer-row[_ngcontent-%COMP%] .t-ico[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;opacity:.6;flex:0 0 auto}.transfer-pad[_ngcontent-%COMP%] .transfer-row[_ngcontent-%COMP%] .t-name[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.transfer-pad[_ngcontent-%COMP%] .transfer-row[_ngcontent-%COMP%] .t-btn[_ngcontent-%COMP%]{font-size:11px;line-height:26px;min-width:0;padding:0 10px}.consult-bar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin:4px 0 8px;padding:8px 10px;border-radius:var(--radius-lg);background:#2e7d321f}.consult-bar[_ngcontent-%COMP%] .consult-ico[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.consult-bar[_ngcontent-%COMP%] .consult-text[_ngcontent-%COMP%]{flex:1 1 auto;font-size:12px;font-weight:600}.consult-bar[_ngcontent-%COMP%] .consult-done[_ngcontent-%COMP%]{font-size:11px;line-height:28px}'],changeDetection:1});}}return i})();function ym(i,n){if(i&1&&(Js$2(0,"span",8),H_$1(1),gd$2()),i&2){let t=d_$1(3);SC(),jy(t.sp.callCount());}}function Sm(i,n){if(i&1){let t=i_$1();Js$2(0,"div",5)(1,"div",6),fy(2,"span",3),Js$2(3,"span",7),H_$1(4),pS(5,"translate"),gd$2(),ZT(6,ym,2,1,"span",8),fy(7,"span",9),Js$2(8,"button",10),pS(9,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.close())}),Js$2(10,"mat-icon"),H_$1(11,"expand_less"),gd$2()()(),Js$2(12,"div",11),fy(13,"app-softphone-panel"),gd$2()();}if(i&2){let t=d_$1(2);ly("dir",t.isRtl?"rtl":"ltr"),SC(2),dy("ngClass",t.dotClass),SC(2),jy(gS$1(5,5,t.label())),SC(2),YT(t.sp.hasCalls()?6:-1),SC(2),ly("aria-label",gS$1(9,7,"Minimize"));}}function wm(i,n){if(i&1){let t=i_$1();Js$2(0,"button",1,0),pS(2,"translate"),pS(3,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.toggle())}),Js$2(4,"mat-icon",2),H_$1(5),gd$2(),fy(6,"span",3),gd$2(),ey$1(7,Sm,14,9,"ng-template",4),Ey("backdropClick",function(){Vp$2(t);let o=d_$1();return Hp$2(o.close())})("detach",function(){Vp$2(t);let o=d_$1();return Hp$2(o.close())})("overlayKeydown",function(o){Vp$2(t);let a=d_$1();return Hp$2(o.key==="Escape"&&a.close())});}if(i&2){let t=D_$1(1),e=d_$1();xy("ringing",e.sp.ringingIn())("oncall",e.sp.hasCalls())("unavailable",e.unavailable),dy("matTooltip",gS$1(2,18,e.label())),ly("aria-label",gS$1(3,20,"Open phone"))("aria-expanded",e.sp.dockExpanded()),SC(4),dy("matBadge",e.sp.callCount())("matBadgeHidden",!e.sp.hasCalls()),SC(),jy(e.icon),SC(),dy("ngClass",e.dotClass),SC(),dy("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.sp.dockExpanded())("cdkConnectedOverlayPositions",e.positions)("cdkConnectedOverlayHasBackdrop",true)("cdkConnectedOverlayPush",true);}}var nc=(()=>{class i{constructor(t){this.sp=t,this.positions=[{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:8},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:8},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-8},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-8}];}get visible(){return this.sp.hasCalls()?this.sp.canUse():this.sp.canUse()?this.sp.myNumbers().length>0:false}get unavailable(){return this.sp.state()==="offline"}get isRtl(){return (localStorage.getItem("lang")||"").toLowerCase()==="ar"}toggle(){this.sp.toggleDock();}close(){this.sp.setDockExpanded(false);}get icon(){return this.sp.ringingIn()?"phone_in_talk":this.unavailable?"ph
11064one_disabled":"call"}label(){return this.sp.ringingIn()?"Incoming call":this.sp.hasCalls()?"On call":this.sp.statusText()}get dotClass(){if(this.sp.ringingIn()||this.sp.hasCalls())return "dot-active";switch(this.sp.state()){case "registered":return "dot-ready";case "connecting":return "dot-connecting";default:return "dot-offline"}}static{this.\u0275fac=function(e){return new(e||i)(V$3(Dd$1))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-topbar-phone"]],decls:1,vars:1,consts:[["phoneTrigger","cdkOverlayOrigin"],["mat-icon-button","","cdkOverlayOrigin","",1,"m-r-5","cc-topbar-btn",3,"click","matTooltip"],["matBadgeColor","primary","aria-hidden","false",1,"d-flex",3,"matBadge","matBadgeHidden"],[1,"cc-dot",3,"ngClass"],["cdkConnectedOverlay","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","detach","overlayKeydown","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayPush"],[1,"cc-pop","cardWithShadow"],[1,"cc-head"],[1,"cc-title"],[1,"cc-count","sm"],[1,"cc-spacer"],["mat-icon-button","",1,"cc-min",3,"click"],[1,"cc-body"]],template:function(e,o){e&1&&ZT(0,wm,8,22),e&2&&YT(o.visible?0:-1);},dependencies:[Xv,RM,Jt$3,ti$1,Gt$3,Tt$2,ic,Ng,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,Fi$2,GS,iI,tI,RI,us,ms,UI,tE,Dn$1,ME,ny,go$2,Kd,on,XE,LT,mA,mt$4],styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center}.cc-topbar-btn[_ngcontent-%COMP%]{position:relative;overflow:visible}.cc-topbar-btn[_ngcontent-%COMP%] .cc-dot[_ngcontent-%COMP%]{position:absolute;bottom:6px;inset-inline-end:6px;width:8px;height:8px;border-radius:50%;box-shadow:0 0 0 2px var(--mat-sys-surface, #fff)}.cc-topbar-btn.oncall[_ngcontent-%COMP%], .cc-topbar-btn.ringing[_ngcontent-%COMP%]{color:var(--mat-sys-primary, var(--color-primary))}.cc-topbar-btn.ringing[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_cc-topbar-ring 1s ease-in-out infinite}.cc-topbar-btn.unavailable[_ngcontent-%COMP%]{opacity:.7}@keyframes _ngcontent-%COMP%_cc-topbar-ring{0%,to{transform:scale(1)}50%{transform:scale(1.15)}}.cc-pop[_ngcontent-%COMP%]{width:340px;max-width:94vw;max-height:78vh;border-radius:var(--radius-xl);overflow:hidden;display:flex;flex-direction:column;background:var(--mat-sys-surface, #fff)}.cc-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 6px 8px 14px;background:var(--mat-sys-primary, var(--color-primary));color:#fff;flex:0 0 auto}.cc-head[_ngcontent-%COMP%] .cc-title[_ngcontent-%COMP%]{font-weight:600;font-size:var(--font-size-sm)}.cc-head[_ngcontent-%COMP%] .cc-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.cc-head[_ngcontent-%COMP%] .cc-min[_ngcontent-%COMP%]{color:#fff}.cc-head[_ngcontent-%COMP%] .cc-count.sm[_ngcontent-%COMP%]{min-width:18px;height:18px;padding:0 5px;border-radius:var(--radius-full);background:#ffffffe6;color:var(--color-primary);font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.cc-head[_ngcontent-%COMP%] .cc-dot[_ngcontent-%COMP%]{box-shadow:0 0 0 2px #ffffff80}.cc-body[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto;padding:14px}.cc-dot[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;display:inline-block;flex:0 0 auto}.cc-dot.dot-ready[_ngcontent-%COMP%]{background:var(--color-primary)}.cc-dot.dot-active[_ngcontent-%COMP%]{background:#90caf9}.cc-dot.dot-connecting[_ngcontent-%COMP%]{background:#ffb74d}.cc-dot.dot-offline[_ngcontent-%COMP%]{background:var(--color-border-form)}"],changeDetection:1});}}return i})();var Em=["notificationIcon"],Im=()=>["/faq"],Om=()=>["/apps/sociallab-notifications"],Am=()=>["/authentication/login"],rc=i=>[i],oc=(i,n)=>n.title,Dm=(i,n)=>n.icon;function Fm(i,n){if(i&1){let t=i_$1();Js$2(0,"button",62),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.toggleCollapsed.emit())}),Js$2(1,"mat-icon",30),H_$1(2),gd$2()();}if(i&2){let t=d_$1();SC(2),jy(t.isSidebarOpened?"menu_open":"menu");}}function Bm(i,n){if(i&1){let t=i_$1();Js$2(0,"button",63),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.toggleMobileNav.emit())}),Js$2(1,"mat-icon",30),H_$1(2,"menu"),gd$2()();}}
11064function Nm(i,n){if(i&1&&fy(0,"img",65),i&2){let t=d_$1().$implicit;dy("src","/assets/images/icons/"+t.icon+".png",zg$1)("alt",t.title);}}function Rm(i,n){if(i&1&&(Js$2(0,"mat-icon",66),H_$1(1),gd$2()),i&2){let t=d_$1().$implicit;SC(),jy(t.icon);}}function Lm(i,n){if(i&1&&(Js$2(0,"a",18)(1,"div",64),ZT(2,Nm,1,2,"img",65)(3,Rm,2,1,"mat-icon",66),gd$2(),Js$2(4,"span",67),H_$1(5),pS(6,"translate"),gd$2()()),i&2){let t=n.$implicit;dy("routerLink",rS(5,rc,t.link)),SC(2),YT(t.icon=="salla"||t.icon=="zid"||t.icon=="whatsapp"||t.icon=="instagram"||t.icon=="tiktok"||t.icon=="messenger"?2:3),SC(3),jy(gS$1(6,3,t.title));}}function Vm(i,n){if(i&1&&(Js$2(0,"a",68)(1,"mat-icon"),H_$1(2,"stars"),gd$2(),Js$2(3,"span",69),H_$1(4),pS(5,"number"),gd$2()(),Js$2(6,"a",70),pS(7,"translate"),pS(8,"translate"),Js$2(9,"mat-icon",30),H_$1(10,"sell"),gd$2()()),i&2){let t=d_$1();SC(4),Ed$2(" ",mS(5,3,t.pointsBalance,"1.0-2")," "),SC(2),dy("matTooltip",gS$1(7,6,"Services & prices")),ly("aria-label",gS$1(8,8,"Services & prices"));}}function zm(i,n){if
11064(i&1){let t=i_$1();Js$2(0,"button",71),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.openCartDialog())}),Js$2(1,"mat-icon",33),H_$1(2,"shopping_cart"),gd$2()();}if(i&2){let t=d_$1();SC(),dy("matBadge",t.getCartCount())("matBadgeHidden",t.cartItemsCount===0);}}function jm(i,n){if(i&1){let t=i_$1();Js$2(0,"button",72),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.openNotificationSoundSettings())}),Js$2(2,"mat-icon",73),H_$1(3,"settings"),gd$2()();}i&2&&(dy("matTooltip",Y_$1(gS$1(1,3,"Notification Sound Settings"))),ly("aria-label","Open notification sound settings"));}function Um(i,n){if(i&1){let t=i_$1();Js$2(0,"div",39)(1,"button",74),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.markAllNotificationsAsRead())}),H_$1(2),pS(3,"translate"),gd$2(),Js$2(4,"button",75),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.deleteAllNotifications())}),H_$1(5),pS(6,"translate"),gd$2()();}i&2&&(SC(2),Ed$2(" ",gS$1(3,2,"Mark all as read")," "),SC(3),Ed$2(" ",gS$1(6,4,"Delete All")," "));}function $m(i,n){if(i&1&&fy(0,"app-sociallab-notifications",40),i&2){let t=d_$1();dy("notifications",t.notifications)("isUnread",true);}}function Wm(i,n){i&1&&(Js$2(0,"div",41)(1,"span",76),H_$1(2),pS(3,"translate"),gd$2()()),i&2&&(SC(2),jy(gS$1(3,1,"No notifications available")));}function qm(i,n){if(i&1&&(Js$2(0,"button",44),fy(1,"img",77),gd$2()),i&2){let t=d_$1(),e=D_$1(71);dy("matMenuTriggerFor",e),ly("aria-label","User profile menu for "+t.user.name),SC(),dy("src",t.getUserProfileImg(t.user.profilePicPath),zg$1);}}function Km(i,n){i&1&&H_$1(0," ... ");}function Hm(i,n){if(i&1){let t=i_$1();Js$2(0,"div",46)(1,"div",78)(2,"button",79),Ey("click",function(o){return o.stopPropagation()}),fy(3,"img",80),Js$2(4,"span",81)(5,"mat-icon"),H_$1(6,"photo_camera"),gd$2()()(),Js$2(7,"mat-menu",null,4)(9,"button",82),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.changeProfilePicDialog())}),Js$2(10,"mat-icon"),H_$1(11,"cloud"),gd$2(),Js$2(12,"span"),H_$1(13),pS(14,"translate"),gd$2()(),Js$2(15,"app-local-file-upload",83,5),Ey("uploaded",function(o){Vp$2(t);let a=d_$1();return Hp$2(a.onProfileFileUploaded(o))}),Js$2(17,"button",84),Ey("click",function(){Vp$2(t);let o=D_$1(16);return Hp$2(o.open())}),Js$2(18,"mat-icon"),H_$1(19,"computer"),gd$2(),Js$2(20,"span"),H_$1(21),pS(22,"translate"),gd$2()()()(),Js$2(23,"div",55)(24,"h6",85),H_$1(25),gd$2(),Js$2(26,"span",86),H_$1(27),gd$2(),Js$2(28,"span",87)(29,"mat-icon",88),H_$1(30,"mail"),gd$2(),H_$1(31),pS(32,"slice"),ZT(33,Km,1,0),gd$2()()()();}if(i&2){let t=D_$1(8),e=d_$1();SC(2),dy("matMenuTriggerFor",t),SC(),dy("src",e.getUserProfileImg(e.user.profilePicPath),zg$1),SC(10),jy(gS$1(14,10,"Server File")),SC(2),dy("config",e.profileUploadConfig),SC(6),jy(gS$1(22,12,"Local File")),SC(4),jy(e.user.name),SC(2),jy(e.user.phoneNumber),SC(),dy("matTooltip",e.user.email||""),SC(3),Ed$2(" ",e.user.email?yS$1(32,14,e.user.email,0,15):""," "),SC(2),YT(e.user.email&&e.user.email.length>15?33:-1);}}function Gm(i,n){if(i&1){let t=i_$1();Js$2(0,"button",89),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1();return Hp$2(a.changeLanguage(o))}),fy(1,"img",90),Js$2(2,"span",91),H_$1(3),gd$2()();}if(i&2){let t=n.$implicit,e=d_$1();xy("active",e.selectedLanguage.language===t.language),ly("aria-label","Change language to "+t.language),SC(),dy("src",t.icon,zg$1)("alt",t.language),SC(2),jy(t.language);}}function Qm(i,n){if(i&1){let t=i_$1();Js$2(0,"mat-slide-toggle",96),Ey("change",function(o){Vp$2(t);let a=d_$1(2);return Hp$2(a.toggleAvailability(o))}),gd$2();}if(i&2){let t=d_$1(2);dy("checked",t.userDetails.isAvaliableForChat);}}function Ym(i,n){if(i&1&&(Js$2(0,"div",49)(1,"div",92)(2,"div",11)(3,"mat-icon",93),H_$1(4),gd$2(),Js$2(5,"span",94),H_$1(6),pS(7,"translate"),pS(8,"translate"),gd$2()(),ZT(9,Qm,1,1,"mat-slide-toggle",95),gd$2()()),i&2){let t=d_$1();SC(3),Ny("color",t.userDetails.isAvaliableForChat?"#4caf50":"#f44336"),SC(),Ed$2(" ",t.userDetails.isAvaliableForChat?"check_circle":"cancel"," "),SC(2),Ed$2(" ",t.userDetails.isAvaliableForChat?gS$1(7,5,"You are available for customer replies"):gS$1(8,7,"You are not available for replies")," "),SC(3),YT(t.isSupportUser?-1:9);}}
11064function Xm(i,n){if(i&1){let t=i_$1();Js$2(0,"div",49)(1,"a",97),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.openThemeCustomizer())}),Js$2(2,"div",92)(3,"div",11)(4,"div",53)(5,"mat-icon",98),H_$1(6,"color_lens"),gd$2()(),Js$2(7,"div",55)(8,"h5",99),H_$1(9),pS(10,"translate"),gd$2()()(),Js$2(11,"mat-icon",98),H_$1(12,"arrow_forward"),gd$2()()()();}i&2&&(SC(9),Ed$2(" ",gS$1(10,1,"Theme Customizer")," "));}function Zm(i,n){if(i&1&&(Js$2(0,"a",51)(1,"div",11)(2,"div",53),fy(3,"img",100),gd$2(),Js$2(4,"div",55)(5,"h5",99),H_$1(6),pS(7,"translate"),gd$2()()()()),i&2){let t=n.$implicit;dy("routerLink",rS(5,rc,t.link)),SC(3),dy("src",t.img,zg$1),SC(3),Ed$2(" ",gS$1(7,3,t.title)," ");}}function Jm(i,n){if(i&1){let t=i_$1();Js$2(0,"div",49)(1,"a",97),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.openSwitchClientDialog())}),Js$2(2,"div",92)(3,"div",11)(4,"div",53)(5,"mat-icon",101),H_$1(6,"swap_horiz"),gd$2()(),Js$2(7,"div",55)(8,"h5",99),H_$1(9),pS(10,"translate"),gd$2(),Js$2(11,"span",102),H_$1(12),gd$2()()(),Js$2(13,"mat-icon",101),H_$1(14,"arrow_forward"),gd$2()()()();}if(i&2){let t=d_$1();SC(9),Ed$2(" ",gS$1(10,2,"Switch Business")," "),SC(3),jy(t.currentClientName);}}var sc=(()=>{class i{ngOnInit(){let t=this.authService.getUser();t&&(this.user=t),this.updateNotificationSoundState(),this.appInitSubscription=this.appInitService.appInitData$.subscribe(e=>{e&&(this.storageService.setNumberOfUnreadMsgs(e.unreadNotificationsCount),this.cartStateService.updateCartCount(e.cartItemsCount),e.userProfile&&(this.userDetails=e.userProfile),e.clientStatus&&(this.isPointsBased=e.clientStatus.billingMode===s$1.PointsBased,this.isPointsBased&&this.loadPointsBalance()));}),this.cartStateService.cartCount$.subscribe(e=>{this.cartItemsCount=e;}),this.pointsStateService.balance$.subscribe(e=>{this.pointsBalance=e;}),this.availabilitySubscription=this.availabilityService.availabilityChanged$.subscribe(()=>{this.user?.id&&this.loadUserDetails(this.user.id);}),this.signalrService.connectionStatus.subscribe(e=>{this.signalrStatus=e;});}getAvaliability(){this.loadingService.loadingOn(),this.authService.getUser()?.isAvaliableForChat;}ngAfterViewInit(){setTimeout(()=>{if(this.notificationIcon?.nativeElement){let t=this.notificationIcon.nativeElement;t.setAttribute("aria-hidden","false");let e=t.closest(".mat-badge");e&&e.setAttribute("aria-hidden","false");}},0);}loadUserDetails(t){this.usersService.getProfile(t).subscribe({next:e=>{e.succeeded&&(this.userDetails=e.data);},error:e=>{this.errorService.setError(e,"Failed to load");}});}updateNotificationSoundState(){let t=this.storageService.getNotificationSound();this.isNotificationSoundSilent=t==="silent";}openNotificationSoundSettings(){let t=this.dialogConfigService.getDefaultDialogConfig();this.dialog.open(Xl,E$7(D$6({},t),{width:"500px",disableClose:false})).afterClosed().subscribe(o=>{o&&(this.updateNotificationSoundState(),this.toastr.success("Notification sound settings updated"));});}getUnreadCount(){return localStorage.getItem("unredNotificationsCount")||"0"}getUnreadNotificationsCount(){this.sociallabService.getUnreadCount().subscribe({next:t=>{t.succeeded&&this.storageService.setNumberOfUnreadMsgs(t.data);},error:()=>{}});}loadUnreadNotifications(){this.getUnreadNotificationsCount(),this.sociallabService.getUnreadNotifications(0,10).subscribe({next:t=>{t.succeeded&&(this.notifications=t.data);},error:t=>{this.errorService.setError(t,"Failed");}});}markAllNotificationsAsRead(){this.loadingService.loadingOn(),this.sociallabService.readAllNotifications().subscribe({next:t=>{this.loadingService.loadingOff(),t.succeeded?(this.notifications?.forEach(e=>e.isRead=true),this.storageService.setNumberOfUnreadMsgs(0),this.toastr.success("All notifications marked as read successfully")):this.errorService.setError(t,"FailedUpdate");},error:t=>{this.errorService.setError(t,"FailedUpdate");}});}deleteAllNotifications(){let t={title:this.translate.instant("Delete all notifications"),message:this.translate.instant("This permanently deletes every notification in your inbox. This cannot be undone."),confirmText:this.translate.instant("Delete All"),cancelText:this.translate.instant("Cancel"),confirmColor:"warn",icon:"delete_forever"};this.dialog.open(Ft,E$7(D$6({},this.dialogConfigService.getDefaultDialogConfig()),{width:"460px",data:t})).afterClosed().subscribe(e=>{e&&this.doDeleteAllNotifications();});}doDeleteAllNotifications(){this.loadingService.loadingOn(),this.sociallabService.deleteAllNotifications().subscribe({next:t=>{this.loadingService.loadingOff(),t.succeeded?(this.notifications=[],this.storageService.setNumberOfUnreadMsgs(0),this.toastr.success("All notifications deleted successfully")):this.errorService.setError(t,"FailedU
11064pdate");},error:t=>{this.errorService.setError(t,"FailedUpdate");}});}getAvailabilityClass(){return this.userDetails?this.userDetails.isAvaliableForChat?"available-bg":"unavailable-bg":""}getMode(){return this.settings.getMode()}toggleMode(){this.settings.setMode(this.settings.getMode()==="easy"?"full":"easy");}get isSupportUser(){return this.user?.email?.toLowerCase()==="[email protected]"}get hasMultipleClients(){return !!this.user?.clients&&this.user.clients.length>1}get currentClientName(){return !this.user?.clients||!this.user?.clientId?"":this.user.clients.find(e=>e.clientId===this.user.clientId)?.businessName||""}openSwitchClientDialog(){if(!this.user?.clients||!this.user?.clientId)return;let t=this.dialogConfigService.getDefaultDialogConfig();this.dialog.open(Zl,E$7(D$6({},t),{width:"600px",disableClose:false,data:{clients:this.user.clients,currentClientId:this.user.clientId}}));}openThemeCustomizer(){this.toggleCustomizer.emit();}toggleAvailability(t){if(!this.userDetails)return;let e=t.checked,o=!e;if(!e){let a=this.dialogConfigService.getDefaultDialogConfig();this.dialog.open($i,E$7(D$6({},a),{width:"500px",maxWidth:"90vw",disableClose:true})).afterClosed().subscribe(p=>{p===true?this.updateAvailability(e):(this.user.isAvaliableForChat=o,t.source.checked=o);});return}this.updateAvailability(e);}updateAvailability(t){this.loadingService.loadingOn(),this.authService.changeMyOnlineStatus(t).subscribe({next:e=>{this.loadingService.loadingOff(),e.succeeded?(this.loadUserDetails(this.userDetails.id),this.toastr.success(t?"Availability enabled successfully":"Availability disabled successfully"),this.availabilityService.notifyAvailabilityChanged()):this.errorService.setError(e,"FailedUpdate");},error:e=>{this.loadingService.loadingOff(),this.errorService.setError(e,"FailedUpdate");}});}constructor(t,e$1,o,a,d,p,h,g,P,k,R,F,I,B,et,zt,$t,Qt,Wt,Mi){this.settings=t,this.dialog=e$1,this.translate=o,this.authService=a,this.storageService=d,this.toastr=p,this.errorService=h,this.loadingService=g,this.sociallabService=P,this.usersService=k,this.availabilityService=R,this.dialogConfigService=F,this.router=I,this.cartService=B,this.cartStateService=et,this.pointsService=zt,this.pointsStateService=$t,this.clientsService=Qt,this.appInitService=Wt,this.signalrService=Mi,this.showToggle=true,this.toggleChecked=false,this.isSidebarOpened=false,this.toggleMobileNav=new kt$3,this.toggleMobileFilterNav=new kt$3,this.toggleCollapsed=new kt$3,this.toggleCustomizer=new kt$3,this.isTablet=false,this.isNotificationSoundSilent=false,this.showFiller=false,this.notifications=[],this.selectedProfileFile=null,this.profileUploadConfig={categories:["image"],multiple:false},this.cartItemsCount=0,this.isPointsBased=false,this.pointsBalance=0,this.signalrStatus="Disconnected",this.languages=e.languages,this.optionsChange=new kt$3,this.androidAppUrl="https://play.google.com/store/apps/details?id=com.social.lab.app&pcampaignid=web_share",this.iosAppUrl="https://apps.apple.com/sa/app/social-lab-grow-your-business/id6745023855",this.profiledd=e.profiledd;let Ce=this.authService.getPermissions();this.filteredApps=e.allApps.filter(jt=>!jt.permission||Ce.includes(jt.permission)),this.options=this.settings.getOptions(),this.selectedLanguage=this.languages.find(jt=>jt.code===this.options.language);}changeLanguage(t){this.translate.use(t.code),localStorage.setItem("lang",t.code),this.selectedLanguage=t,this.options.language=t.code,t.code=="ar"?this.options.dir="rtl":this.options.dir="ltr",this.settings.setOptions(this.options),window.location.reload();}readNotification(t){this.sociallabService.readNotification(t.id);}getUserProfileImg(t){return this.authService.getProfilePath(t)}changeProfilePicDialog(){if(!this.userDetails)return;this.dialog.open(Kt,{width:"700px",maxHeight:"80vh",data:this.selectedProfileFile}).afterClosed().subscribe(e=>{e&&(this.selectedProfileFile=e,this.updateProfilePicture(this.selectedProfileFile));});}onProfileFileUploaded(t){this.updateProfilePicture(t);}updateProfilePicture(t){this.userDetails&&this.usersService.changeProfilePic(this.userDetails,t.id).subscribe({next:e=>{if(!e.succeeded){this.toastr.error("Failed to Update");return}this.authService.updatePrifilePic(t.fullPath),this.user.profilePicPath=t.fullPath,this.userDetails.profilePicPath=t.fullPath,this.toastr.success("Updated Successfully");},error:e=>{this.errorService.setError(e,"Failed to Update");}});}loadClientStatusForBilling(){this.user?.clientId&&this.clientsService.getClientStatus(null,null,null).subscribe({next:t=>{if(t.succeeded&&t.data&&Array.isArray(t.data)&&t.data.length>0){let e=t.data[0];this.isPointsBased=e.billingMode===s$1.PointsBased,this.isPointsBased&&this.loadPointsBalance();}},error:()=>{}});}loadPointsBalance(){this.pointsService.getMyWallet().subscribe({next:t=>{t.succeeded&&t.data&&(this.pointsBalance=t.data.currentBalance,this.pointsStateService.updateBalance(t.data.currentBalance));},error:()=>{}});}loadCartCount(){this.cartService.getCartItems().subscribe({next:t=>{t.succeeded&&t.data?this.cartStateService.updateCartCount(t.data.length):this.cartStateService.updateCartCount(0);},error:()=>{this.cartStateService.updateCartCount(0);}});}getCartCount(){return this.cartItemsCount>0?this.cartItemsCount.toString():"0"}getSignalrStatusColor(){switch(this.signalrStatus){case "Connected":return "#4caf50";case "Connecting":return "#ff9800";case "Disconnected":return "#f44336"}}openCartDialog(){this.router.navigate(["/apps/cart"]);}openAppStore(t){let e=t==="android"?this.androidAppUrl:this.iosAppUrl;window.open(e,"_blank");}openCommandPalette(){window.dispatchEvent(new Event("open-command-palette"));}ngOnDestroy(){this.availabilitySubscription&&this.availabilitySubscription.unsubscribe(),this.appInitSubscription&&this.appInitSubscription.unsubscribe();}static{this.\u0275fac=function(e){return new(e||i)(V$3(d$6),V$3(vr$1),V$3(O$5),V$3(Us$1),V$3(J$2),V$3(ut$2),V$3(Gt),V$3(P$2),V$3(p$5),V$3(f),V$3(c$1),V$3(f$5),V$3(G$5),V$3(f$2),V$3(l$2),V$3(p$3),V$3(o$3),V$3(b$1),V$3(d$3),V$3(Ct$2))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-header"]],viewQuery:function(e,o){if(e&1&&by(Em,5),e&2){let a;m_$1(a=y_$1())&&(o.notificationIcon=a.first);}},inputs:{showToggle:"showToggle",toggleChecked:"toggleChecked",isSidebarOpened:"isSidebarOpened",isTablet:"isTablet"},outputs:{toggleMobileNav:"toggleMobileNav",toggleMobileFilterNav:"toggleMobileFilterNav",toggleCollapsed:"toggleCollapsed",toggleCustomizer:"toggleCustomizer",optionsChange:"optionsChange"},decls:100,vars:61,consts:[["appsmenu","matMenu"],["notificationIcon",""],["notificationmenu","matMenu"],["profilemenu","matMenu"],["dropdownProfileUploadMenu","matMenu"],["dropdownProfileUploader",""],[1,"topbar",3,"ngClass"],["mat-icon-button","","aria-label","Toggle sidebar",1,"d-flex","justify-content-center"],["mat-icon-button","","aria-label","Toggle mobile menu",1,"d-flex","justify-content-center"],[1,"d-none","d-lg-flex"],["mat-button","","aria-label","Apps menu",3,"matMenuTriggerFor"],[1,"d-flex","align-items-center"],[1,"icon-16","m-l-4"],[1,"apps-dd","cardWithShadow"],[1,"row"],[1,"col-sm-12","b-r-1","p-r-0"],[1,"apps-menu-wrapper"],[1,"apps-grid"],[1,"app-item-link",3,"routerLink"],[1,"b-t-1","p-24","d-none","d-lg-flex","align-items-center","justify-content-between",3,"routerLink"],[1,"d-flex","align-items-center","mat-subtitle-1","f-s-16","f-w-500"],[1,"m-r-8"],["mat-flat-button","","href","https://s.sociallab.sa/landing.html","target","_blank",1,"earn-link"],[1,"f-w-600","f-s-14"],[1,"flex-1-auto"],[1,"cmd-trigger",3,"click"],[1,"cmd-trigger__icon"],[1,"cmd-trigger__text"],[1,"cmd-trigger__kbd"],["mat-icon-button","",1,"m-r-5",3,"click","matTooltip"],[1,"d-flex"],["mat-icon-button","","aria-label","Shopping Cart",1,"m-r-5"],["mat-icon-button","","aria-label","Notifications",3,"click","matMenuTriggerFor","matTooltip"],["matBadgeColor","primary","aria-hidden","false",1,"d-flex",3,"matBadge","matBadgeHidden"],[1,"topbar-dd","cardWithShadow"],[1,"d-flex","align-items-center","p-x-32","p-y-16"],[1,"f-s-16","f-w-600","m-0","mat-subtitle-1"],["mat-icon-button","",3,"matTooltip"],[1,"m-l-auto","bg-primary","text-white","p-x-8","p-y-4","f-w-500","rounded","f-s-12"],[1,"mark-all-wrapper"],[3,"notifications","isUnread"],[1,"p-x-32","p-y-16","text-center"],[1,"p-y-12","p-x-32"],["mat-stroked-button","","color","primary",1,"w-100",3,"routerLink"],["mat-icon-button","",3,"matMenuTriggerFor"],["overlapTrigger","false","panelClass","custom-profile-menu-panel",1,"topbar-dd","cardWithShadow"],[1,"p-x-32","p-y-16"],[1,"language-switcher"],[1,"lang-btn",3,"active"],[1,"p-x-32","p-y-16","b-b-1"],[1,"p-x-16"],[1,"p-y-8","text-decoration-none","d-block","text-hover-primary",3,"routerLink"],[1,"d-flex","align-items-center","m-b-8"],[1,"text-primary","bg-light-primary","shadow-none","rounded","d-flex","justify-content-center","align-items-center",2,"width","35px","height","35px"],[2,"color","#43a047"],[1,"m-l-16"],[1,"f-s-14","f-w-600","m-0","textprimary","mat-subtitle-1"],[1,"d-flex","gap-8","m-l-8"],["matTooltip","Google Play",2,"cursor","pointer",3,"click"],["src","/assets/images/newLandingpage/sociallab2.png","alt","Google Play",2,"height","36px","border-radius","6px"],["matTooltip","App Store",2,"cursor","pointer",3,"click"],["src","/assets/images/newLandingpage/sociallab1.png","alt","App Store",2,"height","36px","border-radius","6px"],["mat-icon-button","","aria-label","Toggle sidebar",1,"d-flex","justify-content-center",3,"click"],["mat-icon-button","","aria-label","Toggle mobile menu",1,"d-flex","justify-content-center",3,"click"],[1,"app-icon-box"],["alt","",1,"app-icon-image",3,"src","alt"],[1,"app-icon-material"],[1,"app-item-title"],["routerLink","/apps/points/wallet","mat-button","","aria-label","Points Balance",1,"points-balance-btn"],[1,"desktop-content"],["routerLink","/apps/moreServices","mat-icon-button","",1,"m-r-5",3,"matTooltip"],["mat-icon-button","","aria-label","Shopping Cart",1,"m-r-5",3,"click"],["mat-icon-button","",3,"click","matTooltip"],[1,"icon-22"],["mat-stroked-button","","color","primary",1,"mark-all-btn",3,"click"],["mat-stroked-button","","color","warn",1,"mark-all-btn","m-l-8",3,"click"],[1,"text-muted","f-s-14"],["
11064width","35","alt","Profile picture",1,"rounded-circle","object-cover","icon-35","profile-dd",3,"src"],[1,"d-flex","align-items-center","p-b-24","b-b-1","m-t-16"],["type","button","aria-label","Edit profile picture",1,"dropdown-avatar-edit",3,"click","matMenuTriggerFor"],["alt","Profile picture",1,"dropdown-avatar-image","rounded-circle",3,"src"],["aria-hidden","true",1,"dropdown-avatar-overlay"],["mat-menu-item","",3,"click"],[3,"uploaded","config"],["type","button","mat-menu-item","",3,"click"],[1,"f-s-14","f-w-600","m-0","mat-subtitle-1"],[1,"f-s-14","d-block","m-b-4"],["matTooltipPosition","above",1,"d-flex","align-items-center",3,"matTooltip"],[1,"icon-15","m-r-4"],[1,"lang-btn",3,"click"],["width","18","height","18","alt","",1,"lang-flag",3,"src","alt"],[1,"lang-text"],[1,"d-flex","align-items-center","justify-content-between"],[1,"m-r-12"],[1,"f-s-14","f-w-600","mat-subtitle-1"],["color","primary",3,"checked"],["color","primary",3,"change","checked"],[1,"text-decoration-none","d-block","text-hover-primary",2,"cursor","pointer",3,"click"],[2,"color","#9c27b0"],[1,"f-s-14","f-w-600","m-0","textprimary","mat-subtitle-1","hover-text"],["width","20","alt","",3,"src"],[2,"color","#5c6bc0"],[1,"mat-body-1","f-s-12",2,"color","#6c757d"]],template:function(e,o){if(e&1&&(Js$2(0,"mat-toolbar",6),ZT(1,Fm,3,1,"button",7),ZT(2,Bm,3,0,"button",8),Js$2(3,"div",9)(4,"button",10)(5,"div",11),H_$1(6),pS(7,"translate"),Js$2(8,"mat-icon",12),H_$1(9,"expand_more"),gd$2()()(),Js$2(10,"mat-menu",13,0)(12,"div",14)(13,"div",15)(14,"div",16)(15,"div",17),XT(16,Lm,7,7,"a",18,oc),gd$2()(),Js$2(18,"a",19)(19,"span",20)(20,"mat-icon",21),H_$1(21,"help"),gd$2(),H_$1(22),pS(23,"translate"),gd$2()()()()(),Js$2(24,"a",22)(25,"div",11)(26,"mat-icon",21),H_$1(27,"card_giftcard"),gd$2(),Js$2(28,"span",23),H_$1(29),pS(30,"translate"),gd$2()()()(),fy(31,"span",24),Js$2(32,"div",25),Ey("click",function(){return o.openCommandPalette()}),Js$2(33,"mat-icon",26),H_$1(34,"search"),gd$2(),Js$2(35,"span",27),H_$1(36),pS(37,"translate"),gd$2(),Js$2(38,"kbd",28),H_$1(39,"Ctrl+Space"),gd$2()(),ZT(40,Vm,11,10),Js$2(41,"button",29),pS(42,"translate"),pS(43,"translate"),Ey("click",function(){return o.toggleMode()}),Js$2(44,"mat-icon",30),H_$1(45),gd$2()(),fy(46,"app-topbar-phone"),ZT(47,zm,3,2,"button",31),Js$2(48,"button",32),pS(49,"translate"),Ey("click",function(){return o.loadUnreadNotifications()}),Js$2(50,"mat-icon",33,1),H_$1(52,"notifications"),gd$2()(),Js$2(53,"mat-menu",34,2)(55,"div",35)(56,"h6",36),H_$1(57),pS(58,"translate"),gd$2(),ZT(59,jm,4,5,"button",37),Js$2(60,"span",38),H_$1(61),gd$2()(),ZT(62,Um,7,6,"div",39),ZT(63,$m,1,2,"app-sociallab-notifications",40),ZT(64,Wm,4,3,"div",41),Js$2(65,"div",42)(66,"a",43),H_$1(67),pS(68,"translate"),gd$2()()(),ZT(69,qm,2,3,"button",44),Js$2(70,"mat-menu",45,3),ZT(72,Hm,34,18,"div",46),Js$2(73,"div",47),XT(74,Gm,4,6,"button",48,Dm),gd$2(),ZT(76,Ym,10,9,"div",49),ZT(77,Xm,13,3,"div",49),Js$2(78,"div",50),XT(79,Zm,8,7,"a",51,oc),gd$2(),Js$2(81,"div",49)(82,"div",52)(83,"div",53)(84,"mat-icon",54),H_$1(85,"android"),gd$2()(),Js$2(86,"div",55)(87,"h5",56),H_$1(88),pS(89,"translate"),gd$2()()(),Js$2(90,"div",57)(91,"a",58),Ey("click",function(){return o.openAppStore("android")}),fy(92,"img",59),gd$2(),Js$2(93,"a",60),Ey("click",function(){return o.openAppStore("ios")}),fy(94,"img",61),gd$2()()(),ZT(95,Jm,15,4,"div",49),Js$2(96,"div",42)(97,"a",43),H_$1(98),pS(99,"translate"),gd$2()()()()),e&2){let a=D_$1(11),d=D_$1(54);dy("ngClass",o.getAvailabilityClass()),SC(),YT(o.showToggle?1:-1),SC(),YT(o.showToggle?-1:2),SC(2),dy("matMenuTriggerFor",a),SC(2),Ed$2(" ",gS$1(7,36,"Apps")," "),SC(10),JT(o.filteredApps),SC(2),dy("routerLink",nS(58,Im)),SC(4),Ed$2(" ",gS$1(23,38,"Frequently Asked Questions")," "),SC(7),Ed$2("",gS$1(30,40,"Refer and Earn up to 1,600 SAR")," "),SC(7),jy(gS$1(37,42,"Search...")),SC(4),YT(o.isPointsBased?40:-1),SC(),dy("matTooltip",gS$1(42,44,o.getMode()==="easy"?"Easy mode on \u2014 switch to Full":"Switch to Easy mode")),ly("aria-label",gS$1(43,46,o.getMode()==="easy"?"Switch to Full mode":"Switch to Easy mode")),SC(4),jy(o.getMode()==="easy"?"toggle_on":"toggle_off"),SC(2),YT(o.isPointsBased?-1:47),SC(),dy("matMenuTriggerFor",d)("matTooltip",gS$1(49,48,o.signalrStatus==="Connected"?"Connected":o.signalrStatus==="Connecting"?"Connecting":"Disconnected")),SC(2),Ny("color",o.getSignalrStatusColor()),dy("matBadge",o.getUnreadCount())("matBadgeHidden",o.getUnreadCount()==="0"),SC(7),jy(gS$1(58,50,"Notifications")),SC(2),YT(o.userDetails?59:-1),SC(2),Ed$2(" ",o.getUnreadCount()," "),SC(),YT(o.getUnreadCount()!="0"?62:-1),SC(),YT(o.notifications?63:-1),SC(),YT(!o.notifications||o.notifications.length==0?64:-1),SC(2),dy("routerLink",nS(59,Om)),SC(),Ed$2(" ",gS$1(68,52,"See all notifications")," "),SC(2),YT(o.user?69:-1),SC(3),YT(
11064o.user?72:-1),SC(2),JT(o.languages),SC(2),YT(o.userDetails?76:-1),SC(),YT(o.isTablet?-1:77),SC(2),JT(o.profiledd),SC(9),Ed$2(" ",gS$1(89,54,"Get the Mobile App")," "),SC(7),YT(o.hasMultipleClients?95:-1),SC(2),dy("routerLink",nS(60,Am)),SC(),jy(gS$1(99,56,"Logout"));}},dependencies:[ea$2,ai$2,Xv,RM,Ke$3,Tt$2,mv,ta$1,_r,cv,M$2,Yl,tD,eD,Vs$1,zs$1,Fi$2,us,ms,iI,tI,Kd,on,wC,fu$1,nc,JM,QM,mt$4],styles:[`.custom-profile-menu-panel.mat-menu-panel{max-height:none!important;height:auto!important;overflow:visible!important;min-width:300px}.mark-all-wrapper{display:flex;justify-content:center;margin-bottom:8px}.mark-all-wrapper .mark-all-btn{font-size:var(--font-size-xs);padding:2px 12px;min-height:28px;line-height:1;border-radius:var(--radius-xl);text-transform:none}.topbar{position:relative;transition:background-color .3s ease}.topbar.available-bg{background-color:#4caf500d!important}.topbar.unavailable-bg{background-color:#f443360d!important}.points-balance-btn{background:linear-gradient(135deg,#e3f2fd,#bbdefb)!important;border-radius:var(--radius-xl)!important;color:#1565c0!important;display:inline-flex!important;align-items:center;justify-content:center;min-width:auto!important;padding:4px 8px!important}@media(max-width:991px){.points-balance-btn{width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important}.desktop-content,.points-number{display:none!important}.points-balance-btn .mat-icon,.points-balance-btn .points-icon{margin:0!important;color:#1565c0;font-size:25px!important}}.dropdown-avatar-edit{position:relative;width:95px;height:95px;flex:0 0 95px;padding:0;overflow:hidden;background:transparent;border:0;border-radius:50%;cursor:pointer}.dropdown-avatar-edit:hover .dropdown-avatar-overlay,.dropdown-avatar-edit:focus-visible .dropdown-avatar-overlay{opacity:1}.dropdown-avatar-edit:hover .dropdown-avatar-image,.dropdown-avatar-edit:focus-visible .dropdown-avatar-image{transform:scale(1.04)}.dropdown-avatar-edit:focus-visible{outline:2px solid var(--mat-sys-primary);outline-offset:2px}.dropdown-avatar-image{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}.dropdown-avatar-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;background:#0000007a;opacity:0;transition:opacity .2s ease}.dropdown-avatar-overlay mat-icon{width:28px;height:28px;font-size:28px}.language-switcher{display:flex;width:100%;align-items:center;background-color:#f1f5f9;padding:4px;border-radius:50px;box-shadow:inset 0 1px 2px #0000000d;gap:4px}.lang-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:none;padding:8px 12px;border-radius:50px;cursor:pointer;font-size:var(--font-size-sm);font-weight:500;color:#64748b;transition:all .3s cubic-bezier(.4,0,.2,1)}.lang-btn:hover:not(.active){color:#334155;background-color:#ffffff80}.lang-btn.active{background-color:#fff;color:#0f172a;font-weight:600;box-shadow:var(--shadow-card);transform:translateY(-1px)}.lang-flag{border-radius:50%;object-fit:cover;box-shadow:var(--shadow-subtle)}@media(max-width:480px){.language-switcher{gap:2px;padding:2px}}.earn-link{background-color:#f3e8ff!important;color:#6b46c1!important;border-radius:50px!important;padding:0 20px!important;margin:0 8px!important}.cmd-trigger{display:flex;align-items:center;gap:8px;padding:6px 14px;border-radius:var(--radius-lg);background:#f1f5f9;border:1px solid #e2e8f0;cursor:pointer;transition:all .2s ease;margin-inline-end:8px}.cmd-trigger:hover{background:#e2e8f0;border-color:#cbd5e1}.cmd-trigger__icon{font-size:var(--font-size-lg);width:18px;height:18px;color:#94a3b8}.cmd-trigger__text{font-size:var(--font-size-sm);color:#94a3b8;font-weight:400;white-space:nowrap}.cmd-trigger__kbd{padding:2px 6px;border-radius:var(--radius-sm);background:#fff;border:1px solid #e2e8f0;font-size:var(--font-size-2xs);font-weight:600;color:#94a3b8;font-family:inherit;line-height:1.4}@media(max-width:991px){.cmd-trigger:hover,.cmd-trigger:focus,.cmd-trigger:active{background:transparent!important;border:none!important;box-shadow:none!important}.cmd-trigger__text,.cmd-trigger__kbd{display:none!important}.cmd-trigger__icon{margin:0!important;width:24px;height:24px;font-size:var(--font-size-2xl)}.cmd-trigger{width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;background:transparent!important;border:none!important;border-radius:0!important;box-shadow:none!important}} 11065`],encapsulation:2,changeDetection:1});}}return i})();var tu=(i,n)=>n.url;
11065function eu(i,n){if(i&1&&fy(0,"img",7),i&2){let t=d_$1(3);dy("src","/assets/images/icons/"+t.activeIcon+".png",zg$1);}}function iu(i,n){if(i&1&&(Js$2(0,"mat-icon"),H_$1(1),gd$2()),i&2){let t=d_$1(3);SC(),jy(t.activeIcon);}}function nu(i,n){if(i&1&&(Js$2(0,"div",2),ZT(1,eu,1,1,"img",7)(2,iu,2,1,"mat-icon"),gd$2()),i&2){let t=d_$1(2);SC(),YT(t.pageInfo?.isCustomIcon?1:2);}}function ou(i,n){if(i&1&&(Js$2(0,"a",9),H_$1(1),pS(2,"translate"),gd$2(),Js$2(3,"mat-icon",10),H_$1(4,"arrow_forward_ios"),gd$2()),i&2){let t=d_$1().$implicit;dy("routerLink",t.url),SC(),jy(gS$1(2,2,t.title));}}function au(i,n){if(i&1&&(Js$2(0,"span",8),H_$1(1),pS(2,"translate"),gd$2()),i&2){let t=d_$1().$implicit;SC(),jy(gS$1(2,1,t.title));}}function ru(i,n){if(i&1&&ZT(0,ou,5,4)(1,au,3,3,"span",8),i&2){let t=n.$index,e=n.$count;YT(t!==e-1?0:1);}}function su(i,n){if(i&1&&(Js$2(0,"p",6),H_$1(1),pS(2,"translate"),gd$2()),i&2){let t=d_$1(2);SC(),jy(gS$1(2,1,t.activeDescription));}}function lu(i,n){if(i&1){let t=i_$1();Js$2(0,"div")(1,"a",11),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.BackButtonClick())}),Js$2(2,"mat-icon"),H_$1(3,"arrow_forward"),gd$2(),H_$1(4),pS(5,"translate"),gd$2()();}i&2&&(SC(4),Ed$2(" ",gS$1(5,1,"Back")," "));}function cu(i,n){if(i&1&&(Js$2(0,"div",0)(1,"div",1),ZT(2,nu,3,1,"div",2),Js$2(3,"div",3)(4,"nav",4),XT(5,ru,2,1,null,null,tu),gd$2(),Js$2(7,"h2",5),H_$1(8),pS(9,"translate"),gd$2(),ZT(10,su,3,3,"p",6),gd$2(),ZT(11,lu,6,3,"div"),gd$2()()),i&2){let t=d_$1();SC(2),YT(t.activeIcon?2:-1),SC(3),JT(t.pageInfo?.urls),SC(3),Ed$2(" ",gS$1(9,4,t.pageInfo==null?null:t.pageInfo.title)," "),SC(2),YT(t.activeDescription?10:-1),SC(),YT(t.canGoBack?11:-1);}}var lc=(()=>{class i{constructor(t,e,o,a,d,p){this.router=t,this.activatedRoute=e,this.titleService=o,this.breadcrumbService=a,this.translate=d,this.navigationHistory=p,this.pageInfo=Object.create(null),this.dynamicIcon=null,this.dynamicDescription=null,this.subs=[],this.subs.push(this.router.events.pipe(Yt$5(h=>h instanceof te$6)).subscribe(()=>this.breadcrumbService.clear())),this.router.events.pipe(Yt$5(h=>h instanceof k$3)).pipe(ve$4(()=>this.activatedRoute)).pipe(ve$4(h=>{for(;h.firstChild;)h=h.firstChild;return h})).pipe(Yt$5(h=>h.outlet==="primary")).pipe(Ze$3(h=>h.data)).subscribe(h=>{h.title?(this.titleSub?.unsubscribe(),this.titleSub=this.translate.stream(h.title).subscribe(g=>{this.titleService.setTitle((g||h.title)+" - Social Lab");})):(this.titleSub?.unsubscribe(),this.titleService.setTitle("Social Lab")),this.pageInfo=h;}),this.subs.push(this.breadcrumbService.icon$.subscribe(h=>this.dynamicIcon=h),this.breadcrumbService.description$.subscribe(h=>this.dynamicDescription=h));}get activeIcon(){return this.dynamicIcon||this.pageInfo?.icon||null}get activeDescription(){return this.dynamicDescription||this.pageInfo?.description||null}ngOnDestroy(){this.subs.forEach(t=>t.unsubscribe()),this.titleSub?.unsubscribe();}get parentUrl(){let t=this.pageInfo?.urls;if(!t?.length)return null;for(let e=t.length-2;e>=0;e--)if(t[e]?.url)return t[e].url;return null}get canGoBack(){return this.navigationHistory.canGoBack()||this.parentUrl!==null}BackButtonClick(){this.navigationHistory.back(this.parentUrl);}static{this.\u0275fac=function(e){return new(e||i)(V$3(G$5),V$3(V$2),V$3(Q8),V$3(r$3),V$3(O$5),V$3(I$2))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-breadcrumb"]],decls:1,vars:1,consts:[[1,"page-header"],[1,"ph-body"],[1,"ph-icon"],[1,"ph-text"],[1,"ph-trail"],[1,"ph-title"],[1,"ph-description"],["width","22","height","22","alt","",2,"object-fit","contain",3,"src"],[1,"ph-trail-current"],[1,"ph-trail-link",3,"routerLink"],[1,"ph-trail-sep"],["mat-stroked-button","",1,"ph-back-button",3,"click"]],template:function(e,o){e&1&&ZT(0,cu,12,6,"div",0),e&2&&YT(o.pageInfo?.title?0:-1);},dependencies:[ea$2,ai$2,Tt$2,Xv,Ng,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,go$2,Kd,XE,LT,mA,mt$4],styles:["@keyframes _ngcontent-%COMP%_phFadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.page-header[_ngcontent-%COMP%]{padding:14px 18px;margin-bottom:16px;border-radius:var(--radius-lg);background:linear-gradient(135deg,var(--color-light-primary) 0%,var(--color-white) 90%);border:1px solid rgba(31,157,77,.12);animation:_ngcontent-%COMP%_phFadeIn .3s ease-out}.ph-body[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.ph-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;border-radius:var(--radius-card);background:var(--gradient-primary);box-shadow:var(--shadow-card)}.ph-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:22px;width:22px;height:22px;color:var(--color-white)}.ph-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.ph-trail[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:2px}.ph-trail-link[_ngcontent-%COMP%]{font-size:var(--font-size-xs);font-weight:500;color:var(--color-text-muted);text-decoration:none;padding:1px 4px;border-radius:var(--radius-sm);transition:color .2s,background-color .2s}.ph-trail-link[_ngcontent-%COMP%]:hover{color:var(--color-primary);background-color:var(--color-light-primary)}.ph-trail-sep[_ngcontent-%COMP%]{font-size:13px;width:13px;height:13px;color:var(--color-text-muted);opacity:.55}.ph-trail-current[_ngcontent-%COMP%]{font-size:var(--font-size-xs);font-weight:600;color:var(--color-text-muted);padding:1px 4px}.ph-title[_ngcontent-%COMP%]{font-size:var(--font-size-xl);font-weight:700;margin:0;line-height:1.3;color:var(--color-text);display:flex;align-items:center;gap:8px}.ph-description[_ngcontent-%COMP%]{margin:0;font-size:var(--font-size-sm);font-weight:400;color:var(--color-text-muted);line-height:1.5}.ph-info-btn[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;justify-content:center;background:var(--color-light-primary);border:none;border-radius:var(--radius-card);padding:4px;cursor:pointer;transition:background-color .2s}.ph-info-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;color:var(--color-primary)}.ph-info-btn--new[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_phInfoPulse 2s ease-in-out infinite}.ph-info-dot[_ngcontent-%COMP%]{position:absolute;top:-2px;inset-inline-end:-2px;width:7px;height:7px;border-radius:50%;background:var(--color-error)}@keyframes _ngcontent-%COMP%_phInfoPulse{0%,to{box-shadow:0 0 #1f9d4d00}50%{box-shadow:0 0 0 5px #1f9d4d2e}}[dir=rtl][_ngcontent-%COMP%] .ph-trail-sep[_ngcontent-%COMP%]{transform:scale
11065X(-1)}@media(max-width:768px){.page-header[_ngcontent-%COMP%]{margin-bottom:12px}.ph-icon[_ngcontent-%COMP%]{width:34px;height:34px;min-width:34px}.ph-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}.ph-title[_ngcontent-%COMP%]{font-size:var(--font-size-lg)}}"],changeDetection:1});}}return i})();var cc=(()=>{class i{constructor(t){this.settings=t,this.optionsChange=new kt$3,this.hideSingleSelectionIndicator=Es$1(true),this.options=this.settings.getOptions();}setColor(){this.optionsChange.emit(this.options),this.settings.setOptions(this.options);}setDir(){this.optionsChange.emit(this.options),this.settings.setOptions(this.options);}setSidebar(){this.optionsChange.emit(this.options),this.settings.setOptions(this.options);}setBoxed(){this.optionsChange.emit(this.options),this.settings.setOptions(this.options);}setLiquidGlass(){this.optionsChange.emit(this.options),this.settings.setOptions(this.options);}static{this.\u0275fac=function(e){return new(e||i)(V$3(d$6))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-customizer"]],outputs:{optionsChange:"optionsChange"},decls:75,vars:47,consts:[["group","matButtonToggleGroup"],[1,"customizerNav"],[1,"position-relative","customizer-content"],[1,"p-16"],[1,"f-s-16","f-w-600","mat-subtitle-1","m-b-12","m-t-16"],[1,"customizer-button-group","theme-colors",3,"ngModelChange","change","ngModel","hideSingleSelectionIndicator"],[3,"value"],["matTooltipClass","text-uppercase","matTooltipPosition","above",1,"theme-circle","sociallab_theme"],[1,"icon-16","theme-icon"],["matTooltipClass","text-uppercase","matTooltipPosition","above",1,"theme-circle","aqua_theme"],["matTooltipClass","text-uppercase","matTooltipPosition","above",1,"theme-circle","purple_theme"],["matTooltipClass","text-uppercase","matTooltipPosition","above",1,"theme-circle","green_theme"],["matTooltipClass","text-uppercase","matTooltipPosition","above",1,"theme-circle","cyan_theme"],["matTooltipClass","text-uppercase","matTooltipPosition","above",1,"theme-circle","orange_theme"],[1,"f-s-16","f-w-600","mat-subtitle-1","f-s-16","m-b-16","m-t-24"],[1,"customizer-button-group","gap-16",3,"ngModelChange","change","ngModel","hideSingleSelectionIndicator"],[1,"d-flex","align-items-center","f-w-500"],[1,"d-flex","m-r-8","fill-icon"],[1,"d-flex","align-items-center","justify-content-between","m-b-16"],[1,"mat-body-2"],["color","primary",3,"ngModelChange","change","ngModel"]],template:function(e,o){if(e&1){let a=i_$1();Js$2(0,"div",1)(1,"div",2)(2,"div",3)(3,"h6",4),H_$1(4),pS(5,"translate"),gd$2(),Js$2(6,"mat-button-toggle-group",5,0),zy("ngModelChange",function(p){return Vp$2(a),W_$1(o.options.activeTheme,p)||(o.options.activeTheme=p),Hp$2(p)}),Ey("change",function(){return o.setColor()}),Js$2(8,"mat-button-toggle",6)(9,"span",7)(10,"mat-icon",8),H_$1(11,"check"),gd$2()()(),Js$2(12,"mat-button-toggle",6)(13,"span",9)(14,"mat-icon",8),H_$1(15,"check"),gd$2()()(),Js$2(16,"mat-button-toggle",6)(17,"span",10)(18,"mat-icon",8),H_$1(19,"check"),gd$2()()(),Js$2(20,"mat-button-toggle",6)(21,"span",11)(22,"mat-icon",8),H_$1(23,"check"),gd$2()()(),Js$2(24,"mat-button-toggle",6)(25,"span",12)(26,"mat-icon",8),H_$1(27,"check"),gd$2()()(),Js$2(28,"mat-button-toggle",6)(29,"span",13)(30,"mat-icon",8),H_$1(31,"check"),gd$2()()()(),db(),Js$2(32,"h6",14),H_$1(33),pS(34,"translate"),gd$2(),Js$2(35,"mat-button-toggle-group",15,0),zy("ngModelChange",function(p){return Vp$2(a),W_$1(o.options.sidenavCollapsed,p)||(o.options.sidenavCollapsed=p),Hp$2(p)}),Ey("change",function(){return o.setSidebar()}),Js$2(37,"mat-button-toggle",6)(38,"div",16)(39,"mat-icon",17),H_$1(40,"view_sidebar"),gd$2(),H_$1(41),pS(42,"translate"),gd$2()(),Js$2(43,"mat-button-toggle",6)(44,"div",16)(45,"mat-icon",17),H_$1(46,"view_sidebar"),gd$2(),H_$1(47),pS(48,"translate"),gd$2()()(),db(),Js$2(49,"h6",14),H_$1(50),pS(51,"translate"),gd$2(),Js$2(52,"mat-button-toggle-group",15,0),zy("ngModelChange",function(p){return Vp$2(a),W_$1(o.options.boxed,p)||(o.options.boxed=p),Hp$2(p)}),Ey("change",function(){return o.setBoxed()}),Js$2(54,"mat-button-toggle",6)(55,"div",16)(56,"mat-icon",17),H_$1(57,"view_headline"),gd$2(),H_$1(58),pS(59,"translate"),gd$2()(),Js$2(60,"mat-button-toggle",6)(61,"div",16)(62,"mat-icon",17),H_$1(63,"view_sidebar"),gd$2(),H_$1(64),pS(65,"translate"),gd$2()()(),db(),Js$2(66,"h6",14),H_$1(67),pS(68,"translate"),gd$2(),Js$2(69,"div",18)(70,"span",19),H_$1(71),pS(72,"translate"),gd$2(),Js$2(73,"mat-slide-toggle",20),pS(74,"translate"),zy("ngModelChange",function(p){return Vp$2(a),W_$1(o.options.liquidGlassUI,p)||(o.options.liquidGlassUI=p),Hp$2(p)}),Ey("change",function(){return o.setLiquidGlass()}),gd$2(),db(),gd$2()()()();}e&2&&(SC(4),jy(gS$1(5,27,"Theme Colors")),SC(2),$y("ngModel",o.options.activeTheme),dy("hideSingleSelectionIndicator",o.hideSingleSelectionIndicator()),pb(),SC(2),dy("value","sociallab_theme"),SC(4),dy("value","aqua_theme"),SC(4),dy("value","purple_theme"),SC(4),dy("value","green_theme"),SC(4),dy("value","cyan_theme"),SC(4),dy("value","orange_theme"),SC(5),Ed$2(" ",gS$1(34,29,"Sidebar type")," "),SC(2),$y("ngModel",o.options.sidenavCollapsed),dy("hideSingleSelectionIndicator",o.hideSingleSelectionIndicator()),pb(),SC(2),dy("value",false),SC(4),Ed$2(" ",gS$1(42,31,"Full")," "),SC(2),dy("value",true),SC(4),Ed$2(" ",gS$1(48,33,"Minisidebar")," "),SC(3),Ed$2(" ",gS$1(51,35,"Container Option")," "),SC(2),$y("ngModel",o.options.boxed),dy("hideSingleSelectionIndicator",o.hideSingleSelectionIndicator()),pb(),SC(2),dy("value",false),SC(4),Ed$2(" ",gS$1(59,37,"Full")," "),SC(2),dy("value",true),SC(4),Ed$2(" ",gS$1(65,39,"Boxed")," "),SC(3),Ed$2(" ",gS$1(68,41,"Glass UI")," "),SC(4),jy(gS$1(72,43,"Smooth, powerful interface with translucent glass and fluid motion")),SC(2),$y("ngModel",o.options.liquidGlassUI),ly("aria-label",gS$1(74,45,"Glass UI")),pb());},dependencies:[Tt$2,Xv,Ng,Og,Gc$1,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,fu$1,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,GS,rf,Od$1,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,go$2,Kd,XE,LT,mA,mt$4],styles:[`.customizerNav{width:320px;overflow:hidden}.customizer-content{overflow-y:auto;overflow-x:hidden}.customizer-button-group.theme-colors{display:flex;flex-wrap:wrap;gap:12px;width:100%}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard{padding:9px;display:flex;align-items:center;justify-content:center;flex:0 0 calc(25% - 9px);margin:0}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard .mat-button-toggle-button{display:flex;justify-content:center}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard.mat-button-toggle-checked .theme-circle .theme-icon{display:flex;color:#fff}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard .theme-circle{width:25px;height:25px;border-radius:100%;color:#fff;display:flex;align-items:center;justify-content:center}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard .theme-circle .theme-icon{display:none}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard .theme-circle.sociallab_theme{background-color:#1fea2e}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard .theme-circle.orange_theme{background-color:#fa896b}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard .theme-circle.aqua_theme{background-color:#0074ba}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard .theme-circle.purple_theme{background-color:#763ebd}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard .theme-circle.green_theme{background-color:#0a7ea4}.customizer-button-group.theme-colors .mat-button-toggle-appearance-standard .theme-circle.cyan_theme{background-color:#01c0c8} 11066`],encapsulation:2,changeDetection:1});}}return i})();
11066function du(i,n){if(i&1){let t=i_$1();Js$2(0,"button",1),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.scrollToTop())}),Js$2(1,"mat-icon"),H_$1(2,"arrow_upward"),gd$2()();}if(i&2){let t=d_$1();ly("aria-hidden",!t.showButton);}}var dc=(()=>{class i{constructor(){this.document=g$4(Y$3),this.destroy$=new ye$5,this.showButton=false,this.threshold=400;}onWindowScroll(){this.checkScrollPosition();}ngOnInit(){pc$2(this.document,"scroll",{passive:true}).pipe(np$2(100),Hf$1(this.destroy$)).subscribe(()=>this.checkScrollPosition());}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete();}checkScrollPosition(){let t=this.document.documentElement.scrollTop||this.document.body.scrollTop;this.showButton=t>this.threshold;}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"});}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-scroll-to-top"]],hostBindings:function(e,o){e&1&&Ey("scroll",function(){return o.onWindowScroll()},_w);},decls:1,vars:1,consts:[["mat-mini-fab","","color","primary","aria-label","Scroll to top",1,"scroll-to-top-button"],["mat-mini-fab","","color","primary","aria-label","Scroll to top",1,"scroll-to-top-button",3,"click"]],template:function(e,o){e&1&&ZT(0,du,3,1,"button",0),e&2&&YT(o.showButton?0:-1);},dependencies:[Vs$1,Hs$2,us,ms],styles:[".scroll-to-top-button[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:1000;animation:_ngcontent-%COMP%_fadeInUp .3s ease-out;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b}.scroll-to-top-button[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 14px 28px #00000040,0 10px 10px #00000038}@keyframes _ngcontent-%COMP%_fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.dark-theme[_ngcontent-%COMP%] .scroll-to-top-button[_ngcontent-%COMP%]{box-shadow:#51bd9c26 0 0 1px,#6f829603 0 6px 12px -2px}@media(max-width:768px){.scroll-to-top-button[_ngcontent-%COMP%]{bottom:16px;right:16px}}"],changeDetection:1});}}return i})();function mu(i,n){if(i&1&&(H_$1(0),pS(1,"translate"),Js$2(2,"b"),H_$1(3),pS(4,"date"),gd$2(),H_$1(5),pS(6,"translate"),Js$2(7,"b"),H_$1(8),pS(9,"number"),gd$2(),H_$1(10,". ")),i&2){let t=d_$1(2);Ed$2(" ",gS$1(1,4,"On renewal on")," "),SC(3),jy(mS(4,6,t.allowance.renewalDate,"yyyy-MM-dd")),SC(2),Ed$2(" ",gS$1(6,9,"the most recently added users will be suspended:")," "),SC(3),jy(gS$1(9,11,t.allowance.excess));}}function uu(i,n){if(i&1&&(H_$1(0),pS(1,"translate"),Js$2(2,"b"),H_$1(3),pS(4,"number"),gd$2(),H_$1(5,". ")),i&2){let t=d_$1(2);Ed$2(" ",gS$1(1,2,"The most recently added users will be suspended on renew
11066al:")," "),SC(3),jy(gS$1(4,4,t.allowance.excess));}}function fu(i,n){if(i&1&&(Js$2(0,"div",0)(1,"mat-icon",1),H_$1(2,"group_off"),gd$2(),Js$2(3,"span",2),H_$1(4),pS(5,"translate"),Js$2(6,"b"),H_$1(7),pS(8,"number"),gd$2(),H_$1(9),pS(10,"translate"),Js$2(11,"b"),H_$1(12),pS(13,"number"),gd$2(),H_$1(14,". "),ZT(15,mu,11,13)(16,uu,6,6),gd$2(),Js$2(17,"a",3),H_$1(18),pS(19,"translate"),gd$2(),Js$2(20,"a",4),H_$1(21),pS(22,"translate"),gd$2()()),i&2){let t=d_$1();SC(4),Ed$2(" ",gS$1(5,7,"You have")," "),SC(3),jy(gS$1(8,9,t.allowance.used)),SC(2),Ed$2(" ",gS$1(10,11,"users, and your plan allows")," "),SC(3),jy(gS$1(13,13,t.allowance.limit)),SC(3),YT(t.allowance.renewalDate?15:16),SC(3),Ed$2(" ",gS$1(19,15,"Upgrade plan")," "),SC(3),Ed$2(" ",gS$1(22,17,"Manage users")," ");}}var pc=(()=>{class i{constructor(t,e){this.subscriptionService=t,this.cdr=e,this.allowance=null;}ngOnInit(){this.subscriptionService.getSeatAllowance().subscribe({next:t=>{this.allowance=t?.succeeded?t.data:null,this.cdr.detectChanges();},error:()=>{this.allowance=null;}});}static{this.\u0275fac=function(e){return new(e||i)(V$3(G),V$3(Od$2))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-seat-limit-banner"]],decls:1,vars:1,consts:[["role","status",1,"seat-limit-banner"],[1,"icon-18"],[1,"seat-limit-banner__text"],["mat-stroked-button","","color","primary","routerLink","/apps/subscriptions"],["mat-button","","routerLink","/apps/users"]],template:function(e,o){e&1&&ZT(0,fu,23,19,"div",0),e&2&&YT(o.allowance?.isOver?0:-1);},dependencies:[Xv,ea$2,ai$2,Tt$2,Ng,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,go$2,Kd,XE,LT,mA,QM,WM,mt$4],styles:[".seat-limit-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 16px;background:#fff4e5;color:#7a4100;border-bottom:1px solid #ffd8a8;font-size:13px}.seat-limit-banner__text[_ngcontent-%COMP%]{flex:1 1 320px;min-width:0}.dark-theme[_nghost-%COMP%] .seat-limit-banner[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .seat-limit-banner[_ngcontent-%COMP%]{background:#3a2a12;color:#ffcf99;border-bottom-color:#6b4a1c}"],changeDetection:1});}}return i})();function hu(i,n){if(i&1&&(H_$1(0),pS(1,"translate"),Js$2(2,"b"),H_$1(3),pS(4,"number"),gd$2(),H_$1(5),pS(6,"translate")),i&2){let t=d_$1(2);Ed$2(" ",gS$1(1,3,"You have")," "),SC(3),jy(gS$1(4,5,t.status.invoiceCount)),SC(2),Ed$2(" ",gS$1(6,7,"invoices past their due date.")," ");}}function gu(i,n){i&1&&(H_$1(0),pS(1,"translate")),i&2&&Ed$2(" ",gS$1(1,1,"You have an invoice past its due date.")," ");}function _u(i,n){if(i&1&&(H_$1(0),pS(1,"translate"),Js$2(2,"b"),H_$1(3),pS(4,"number"),gd$2(),H_$1(5),pS(6,"translate")),i&2){let t=d_$1(2);Ed$2(" ",gS$1(1,3,"Outstanding:")," "),SC(3),jy(mS(4,5,t.status.outstandingAmount,"1.2-2")),SC(2),Ed$2(" ",gS$1(6,8,"SAR"),". ");}}function Cu(i,n){if(i&1&&(Js$2(0,"div",0)(1,"mat-icon",1),H_$1(2,"receipt_long"),gd$2(),Js$2(3,"span",2),ZT(4,hu,7,9)(5,gu,2,3),ZT(6,_u,7,10),H_$1(7),pS(8,"translate"),gd$2(),Js$2(9,"a",3),H_$1(10),pS(11,"translate"),gd$2()()),i&2){let t=d_$1();SC(4),YT(t.status.invoiceCount>1?4:5),SC(2),YT(t.status.canSeeAmount&&t.status.outstandingAmount!==null?6:-1),SC(),Ed$2(" ",gS$1(8,4,"Some actions are unavailable until it is settled.")," "),SC(3),Ed$2(" ",gS$1(11,6,"View invoices")," ");}}var mc=(()=>{class i{constructor(t,e){this.subscriptionService=t,this.cdr=e,this.status=null;}ngOnInit(){this.subscriptionService.getUnpaidInvoiceStatus().subscribe({next:t=>{this.status=t?.succeeded?t.data:null,this.cdr.detectChanges();},error:()=>{this.status=null;}});}static{this.\u0275fac=function(e){return new(e||i)(V$3(G),V$3(Od$2))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-unpaid-invoice-banner"]],decls:1,vars:1,consts:[["role","status",1,"unpaid-banner"],[1,"icon-18"],[1,"unpaid-banner__text"],["mat-stroked-button","","color","primary","routerLink","/apps/subscriptions"]],template:function(e,o){e&1&&ZT(0,Cu,12,8,"div",0),e&2&&YT(o.status?.hasUnpaid?0:-1);},dependencies:[Xv,ea$2,ai$2,Tt$2,Ng,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,go$2,Kd,XE,LT,mA,QM,mt$4],styles:[".unpaid-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 16px;background:#fdecea;color:#7f1d1d;border-bottom:1px solid #f5c2c0;font-size:13px}.unpaid-banner__text[_ngcontent-%COMP%]{flex:1 1 320px;min-width:0}.dark-theme[_nghost-%COMP%] .unpaid-banner[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .unpaid-banner[_ngcontent-%COMP%]{background:#3b1a1a;color:#ffb4ac;border-bottom-color:#6b2a2a}"],changeDetection:1});}}return i})();
11066function vu(i,n){if(i&1&&(Js$2(0,"div",9)(1,"mat-icon",8),H_$1(2,"workspace_premium"),gd$2(),Js$2(3,"span"),H_$1(4),pS(5,"translate"),Js$2(6,"b"),H_$1(7),gd$2(),H_$1(8),pS(9,"translate"),Js$2(10,"b"),H_$1(11),pS(12,"number"),gd$2(),H_$1(13),pS(14,"translate"),gd$2()()),i&2){let t=d_$1(2);SC(4),Ed$2(" ",gS$1(5,5,"Your plan becomes")," "),SC(3),jy(t.planName),SC(),Ed$2(", ",gS$1(9,7,"including")," "),SC(3),jy(mS(12,9,t.offer.monthlyPointsIncluded,"1.0-0")),SC(2),Ed$2(" ",gS$1(14,12,"points every month"),". ");}}function bu(i,n){i&1&&(Js$2(0,"b"),H_$1(1),pS(2,"translate"),gd$2()),i&2&&(SC(),jy(gS$1(2,1,"On your current usage you would need to top up most months \u2014 talk to us before deciding.")));}function xu(i,n){if(i&1&&(Js$2(0,"div",9)(1,"mat-icon",8),H_$1(2),gd$2(),Js$2(3,"span"),H_$1(4),pS(5,"translate"),Js$2(6,"b"),H_$1(7),pS(8,"number"),gd$2(),H_$1(9),pS(10,"translate"),Js$2(11,"b"),H_$1(12),pS(13,"number"),gd$2(),H_$1(14,". "),ZT(15,bu,3,3,"b"),gd$2()()),i&2){let t=d_$1(2);xy("mod__row--good",!t.offer.usageExceedsIncluded)("mod__row--warn",t.offer.usageExceedsIncluded),SC(2),jy(t.offer.usageExceedsIncluded?"warning_amber":"insights"),SC(2),Ed$2(" ",gS$1(5,10,"Your usage over the last 3 months averages")," "),SC(3),jy(mS(8,12,t.offer.estimatedMonthlyUsagePoints,"1.0-0")),SC(2),Ed$2(" ",gS$1(10,15,"points a month, and this plan includes")," "),SC(3),jy(mS(13,17,t.offer.monthlyPointsIncluded,"1.0-0")),SC(3),YT(t.offer.usageExceedsIncluded?15:-1);}}function Mu(i,n){if(i&1&&(Js$2(0,"div",11)(1,"mat-icon",8),H_$1(2,"schedule"),gd$2(),Js$2(3,"span"),H_$1(4),pS(5,"translate"),Js$2(6,"b"),H_$1(7),pS(8,"date"),gd$2(),H_$1(9,"."),gd$2()()),i&2){let t=d_$1(2);SC(4),Ed$2("",gS$1(5,2,"This offer is available until")," "),SC(3),jy(mS(8,4,t.offer.expiresOn,"d MMM y"));}}function yu(i,n){i&1&&(Js$2(0,"div",11)(1,"mat-icon",8),H_$1(2,"info"),gd$2(),Js$2(3,"span"),H_$1(4),pS(5,"translate"),gd$2()()),i&2&&(SC(4),jy(gS$1(5,1,"Only an admin user on this account can accept the offer.")));}function Su(i,n){if(i&1&&(Js$2(0,"div",4),H_$1(1),pS(2,"translate"),Js$2(3,"b",5),H_$1(4),pS(5,"number"),gd$2(),H_$1(6),pS(7,"translate"),Js$2(8,"span",6),H_$1(9),pS(10,"number"),pS(11,"translate"),gd$2()(),Js$2(12,"div",7)(13,"mat-icon",8),H_$1(14,"check_circle"),gd$2(),Js$2(15,"span"),H_$1(16),pS(17,"translate"),gd$2()(),ZT(18,vu,15,14,"div",9),ZT(19,xu,16,20,"div",10),ZT(20,Mu,10,7,"div",11),ZT(21,yu,6,3,"div",11)),i&2){let t=d_$1();SC(),Ed$2(" ",gS$1(2,10,"Move now and get")," "),SC(3),jy(mS(5,12,t.offer.incentivePoints,"1.0-0")),SC(2),Ed$2(" ",gS$1(7,15,"free points")," "),SC(3),By(" (",mS(10,17,t.monthlyInstalment,"1.0-0")," ",gS$1(11,20,"points a month for a year"),") "),SC(7),jy(gS$1(17,22,"Your monthly fee stays the same \u2014 and from now on you pay for what you actually use.")),SC(2),YT(t.planName?18:-1),SC(),YT(t.offer.monthlyPointsIncluded>0?19:-1),SC(),YT(t.offer.expiresOn?20:-1),SC(),YT(t.offer.canAccept?-1:21);}}function wu(i,n){if(i&1){let t=i_$1();Js$2(0,"mat-form-field",15)(1,"mat-label"),H_$1(2),pS(3,"translate"),gd$2(),Js$2(4,"input",16),zy("ngModelChange",function(o){Vp$2(t);let a=d_$1(2);return W_$1(a.requestedPoints,o)||(a.requestedPoints=o),Hp$2(o)}),gd$2(),db(),gd$2();}if(i&2){let t=d_$1(2);SC(2),jy(gS$1(3,2,"How many points would it take?")),SC(2),$y("ngModel",t.requestedPoints),pb();}}function Tu(i,n){if(i&1){let t=i_$1();Js$2(0,"mat-form-field",15)(1,"mat-label"),H_$1(2),pS(3,"translate"),gd$2(),Js$2(4,"textarea",17),zy("ngModelChange",function(o){Vp$2(t);let a=d_$1(2);return W_$1(a.notes,o)||(a.notes=o),Hp$2(o)}),gd$2(),db(),gd$2();}if(i&2){let t=d_$1(2);SC(2),jy(gS$1(3,2,"Tell us why")),SC(2),$y("ngModel",t.notes),pb();}}
11066function Pu(i,n){if(i&1){let t=i_$1();Js$2(0,"p",12),H_$1(1),pS(2,"translate"),gd$2(),Js$2(3,"mat-radio-group",13),zy("ngModelChange",function(o){Vp$2(t);let a=d_$1();return W_$1(a.rejectReason,o)||(a.rejectReason=o),Hp$2(o)}),Js$2(4,"mat-radio-button",14),H_$1(5),pS(6,"translate"),gd$2(),Js$2(7,"mat-radio-button",14),H_$1(8),pS(9,"translate"),gd$2()(),db(),ZT(10,wu,5,4,"mat-form-field",15)(11,Tu,5,4,"mat-form-field",15);}if(i&2){let t=d_$1();SC(),jy(gS$1(2,7,"Before you go \u2014 what would change your mind?")),SC(2),$y("ngModel",t.rejectReason),pb(),SC(),dy("value",t.EnumMigrationRejectReason.WantsMorePoints),SC(),Ed$2(" ",gS$1(6,9,"I would move for more points")," "),SC(2),dy("value",t.EnumMigrationRejectReason.Other),SC(),Ed$2(" ",gS$1(9,11,"Another reason")," "),SC(2),YT(t.rejectReason===t.EnumMigrationRejectReason.WantsMorePoints?10:11);}}function ku(i,n){if(i&1){let t=i_$1();Js$2(0,"button",23),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.accept())}),H_$1(1),pS(2,"translate"),gd$2();}if(i&2){let t=d_$1(2);dy("disabled",t.busy),SC(),Ed$2(" ",gS$1(2,2,"Move me now")," ");}}function Eu(i,n){if(i&1){let t=i_$1();Js$2(0,"button",22),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.remindTomorrow())}),H_$1(1),pS(2,"translate"),gd$2();}if(i&2){let t=d_$1(2);dy("disabled",t.busy),SC(),Ed$2(" ",gS$1(2,2,"Remind me tomorrow")," ");}}function Iu(i,n){if(i&1){let t=i_$1();ZT(0,ku,3,4,"button",18),Js$2(1,"button",19),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.showRejectForm=true)}),H_$1(2),pS(3,"translate"),gd$2(),fy(4,"span",20),ZT(5,Eu,3,4,"button",21),Js$2(6,"button",22),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.dontRemind())}),H_$1(7),pS(8,"translate"),gd$2();}if(i&2){let t=d_$1();YT(t.offer.canAccept?0:-1),SC(),dy("disabled",t.busy),SC(),Ed$2(" ",gS$1(3,6,"No thanks")," "),SC(3),YT(t.offer.snoozesRemaining>0?5:-1),SC(),dy("disabled",t.busy),SC(),Ed$2(" ",gS$1(8,8,"Do not remind me")," ");}}function Ou(i,n){if(i&1){let t=i_$1();Js$2(0,"button",22),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.showRejectForm=false)}),H_$1(1),pS(2,"translate"),gd$2(),fy(3,"span",20),Js$2(4,"button",23),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.submitReject())}),H_$1(5),pS(6,"translate"),gd$2();}if(i&2){let t=d_$1();dy("disabled",t.busy),SC(),Ed$2(" ",gS$1(2,4,"Back")," "),SC(3),dy("disabled",t.busy||!t.canSubmitReject),SC(),Ed$2(" ",gS$1(6,6,"Send")," ");}}var Do=(()=>{class i{constructor(t,e,o,a,d,p){this.offer=t,this.dialogRef=e,this.service=o,this.toastr=a,this.errorService=d,this.translate=p,this.EnumMigrationRejectReason=y$4,this.showRejectForm=false,this.rejectReason=y$4.WantsMorePoints,this.requestedPoints=null,this.notes="",this.busy=false;}get isArabic(){return this.translate.getCurrentLang()?.startsWith("ar")??true}get planName(){return this.isArabic?this.offer.targetPlanNameAr:this.offer.targetPlanNameEn}get monthlyInstalment(){return Math.round(this.offer.incentivePoints/12)}get canSubmitReject(){return this.rejectReason===y$4.WantsMorePoints?(this.requestedPoints??0)>0:this.notes.trim().length>0}accept(){this.send({response:C$3.Accept},"Welcome to the points system");}submitReject(){this.send({response:C$3.Reject,rejectReason:this.rejectReason,requestedPoints:this.rejectReason===y$4.WantsMorePoints?this.requestedPoints:null,notes:this.rejectReason===y$4.Other?this.notes.trim():null},"Thanks \u2014 we have recorded your answer");}remindTomorrow(){this.send({response:C$3.RemindTomorrow});}dontRemind(){this.send({response:C$3.DoNotRemind});}send(t,e){this.busy=true,this.service.respond(t).subscribe({next:o=>{this.busy=false,o?.succeeded?(this.service.clearMyOfferCache(),e&&this.toastr.success(e),this.dialogRef.close(t.response)):this.errorService.setError(o,"Failed");},error:o=>{this.busy=false,this.errorService.setError(o,"Failed");}});}static{this.\u0275fac=function(e){return new(e||i)(V$3(Wm$1),V$3(an),V$3(j$1),V$3(ut$2),V$3(Gt),V$3(O$5))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-migration-offer-dialog"]],decls:11,vars:5,consts:[["mat-dialog-title","",1,"mod__title"],[1,"mod__title-icon"],[1,"mod__content"],[1,"mod__actions"],[1,"mod__headline"],[1,"mod__points"],[1,"mod__sub"],[1,"mod__row","mod__row--good"],[1,"icon-16"],[1,"mod__row"],[1,"mod__row",3,"mod__row--good","mod__row--warn"],[1,"mod__row","mod__row--muted"],[1,"mod__ask"],[1,"mod__reasons",3,"ngModelChange","ngModel"],[3,"value"],["appearance","outline",1,"w-100"],["matInput","","type","number","min","1",3,"ngModelChange","ngModel"],["matInput","","rows","3",3,"ngModelChange","ngModel"],["mat-flat-button","","color","primary","type","button",3,"disabled"],["mat-stroked-button","","type","button",3,"click","disabled"],[1,"spacer"],["mat-button","","type","button",3,"disabled"],["mat-button","","type","button",3,"click","disabled"],["mat-flat-button","","color","primary","type","button",3,"click","disabled"]],template:function(e,o){e&1&&(Js$2(0,"h2",0)(1,"mat-icon",1),H_$1(2,"auto_awesome"),gd$2(),H_$1(3),pS(4,"translate"),gd$2(),Js$2(5,"mat-dialog-content",2),ZT(6,Su,22,24)(7,Pu,12,13),gd$2(),Js$2(8,"mat-dialog-actions",3),ZT(9,Iu,9,10)(10,Ou,7,8),gd$2()),e&2&&(SC(3),Ed$2(" ",gS$1(4,3,"Move to the points system"),`
11067`),SC(3),YT(o.showRejectForm?7:6),SC(3),YT(o.showRejectForm?10:9));},dependencies:[Ng,Ts,Wc$1,Og,xc$1,Gc$1,Tt$2,Xv,zg,w0$1,H0,Zx,dn,da$1,xr$1,zw,Nw,sk,Hp$1,ed$1,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,ey,iy,ty,go$2,Kd,XE,LT,mA,mt$4,QM,WM],styles:[".mod__title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.mod__title-icon[_ngcontent-%COMP%]{color:var(--color-primary)}.mod__content[_ngcontent-%COMP%]{padding-top:8px;max-width:560px}.mod__headline[_ngcontent-%COMP%]{padding:14px 16px;margin-bottom:12px;border-radius:12px;background:#2e7d3214;font-size:var(--font-size-lg)}.mod__points[_ngcontent-%COMP%]{font-size:1.35em;color:#2e7d32}.mod__sub[_ngcontent-%COMP%]{display:block;margin-top:2px;font-size:var(--font-size-sm);color:var(--color-text-muted)}.mod__row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:7px 0;font-size:var(--font-size-base)}.mod__row--good[_ngcontent-%COMP%]{color:#2e7d32}.mod__row--good[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#2e7d32}.mod__row--warn[_ngcontent-%COMP%]{color:#b45309}.mod__row--warn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#b45309}.mod__row--muted[_ngcontent-%COMP%]{color:var(--color-text-muted)}.mod__row--muted[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--color-text-muted)}.mod__ask[_ngcontent-%COMP%]{margin:0 0 12px;font-size:var(--font-size-lg)}.mod__reasons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.w-100[_ngcontent-%COMP%]{width:100%}.mod__actions[_ngcontent-%COMP%]{gap:8px;padding:8px 16px 16px;flex-wrap:wrap}.mod__actions[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1 1 auto}"],changeDetection:1});}}return i})();function Au(i,n){if(i&1&&(Js$2(0,"span",3),H_$1(1),pS(2,"translate"),pS(3,"date"),gd$2()),i&2){let t=d_$1(2);SC(),By("",gS$1(2,2,"Available until")," ",mS(3,4,t.offer.expiresOn,"d MMM"),".");}}function Du(i,n){if(i&1){let t=i_$1();Js$2(0,"div",0)(1,"mat-icon",1),H_$1(2,"auto_awesome"),gd$2(),Js$2(3,"span",2),H_$1(4),pS(5,"translate"),Js$2(6,"b"),H_$1(7),pS(8,"number"),gd$2(),H_$1(9),pS(10,"translate"),ZT(11,Au,4,7,"span",3),gd$2(),Js$2(12,"button",4),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.open())}),H_$1(13),pS(14,"translate"),gd$2()();}if(i&2){let t=d_$1();SC(4),Ed$2(" ",gS$1(5,5,"You have an offer to move to the points system")," \u2014 "),SC(3),jy(mS(8,7,t.offer.incentivePoints,"1.0-0")),SC(2),Ed$2(" ",gS$1(10,10,"free points"),". "),SC(2),YT(t.offer.expiresOn?11:-1),SC(2),Ed$2(" ",gS$1(14,12,"View offer")," ");}}var fc=(()=>{class i{constructor(t,e,o,a){this.service=t,this.dialog=e,this.dialogConfigService=o,this.cdr=a,this.offer=null;}ngOnInit(){this.service.getMyOffer().subscribe({next:t=>{this.offer=t&&!t.showModal?t:null,this.cdr.detectChanges();},error:()=>{}});}open(){if(!this.offer)return;let t=this.dialogConfigService.getDefaultDialogConfig();this.dialog.open(Do,E$7(D$6({},t),{width:"600px",autoFocus:false,data:this.offer})).afterClosed().subscribe(o=>{(o===0||o===1)&&(this.offer=null,this.cdr.detectChanges());});}static{this.\u0275fac=function(e){return new(e||i)(V$3(j$1),V$3(vr$1),V$3(f$5),V$3(Od$2))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-migration-offer-banner"]],decls:1,vars:1,consts:[["role","status",1,"mob"],[1,"mob__icon"],[1,"mob__text"],[1,"mob__until"],["mat-flat-button","","color","primary","type","button",1,"mob__cta",3,"click"]],template:function(e,o){e&1&&ZT(0,Du,15,14,"div",0),e&2&&YT(o.offer?0:-1);},dependencies:[Xv,Tt$2,Ng,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,go$2,Kd,XE,LT,mA,QM,WM,mt$4],styles:[".mob[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px 16px;background:#2e7d3214;border-bottom:1px solid rgba(46,125,50,.24);font-size:var(--font-size-sm)}.mob__icon[_ngcontent-%COMP%]{color:#2e7d32;flex-shrink:0}.mob__text[_ngcontent-%COMP%]{flex:1 1 auto;
11067min-width:200px;color:var(--color-text)}.mob__until[_ngcontent-%COMP%]{color:var(--color-text-muted);margin-inline-start:4px}.mob__cta[_ngcontent-%COMP%]{flex-shrink:0}"],changeDetection:1});}}return i})();function Bu(i,n){if(i&1){let t=i_$1();Js$2(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),pS(4,"translate"),pS(5,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.close())}),Js$2(6,"mat-icon"),H_$1(7,"close"),gd$2()(),Js$2(8,"div",4)(9,"h4",5),H_$1(10),pS(11,"translate"),gd$2(),Js$2(12,"p",6),H_$1(13),pS(14,"translate"),gd$2()()(),Js$2(15,"div",7)(16,"div",8)(17,"mat-icon",9),H_$1(18,"android"),gd$2()(),Js$2(19,"button",10),pS(20,"translate"),pS(21,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.openAndroidApp())}),fy(22,"img",11),gd$2(),Js$2(23,"button",12),pS(24,"translate"),pS(25,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.openIosApp())}),fy(26,"img",13),gd$2()()()();}i&2&&(SC(3),dy("matTooltip",Y_$1(gS$1(4,14,"Close"))),uy("aria-label",Y_$1(gS$1(5,16,"Close"))),SC(7),jy(gS$1(11,18,"For better browsing experience")),SC(3),jy(gS$1(14,20,"Download Social Lab mobile app")),SC(6),dy("matTooltip",Y_$1(gS$1(20,22,"Download for Android"))),uy("aria-label",Y_$1(gS$1(21,24,"Download for Android"))),SC(4),dy("matTooltip",Y_$1(gS$1(24,26,"Download for iOS"))),uy("aria-label",Y_$1(gS$1(25,28,"Download for iOS"))));}var hc=(()=>{class i{get isVisible(){return this._isVisible}set isVisible(t){this._isVisible=t,_$(this.platformId)&&document.body.classList.toggle("app-promo-open",t);}constructor(t,e){this.breakpointObserver=t,this.platformId=e,this._isVisible=false,this.isMobile=false,this.STORAGE_KEY="mobileAppPromotionClosed",this.HOUR_IN_MS=3600*1e3,this.androidAppUrl="https://play.google.com/store/apps/details?id=com.social.lab.app&pcampaignid=web_share",this.iosAppUrl="https://apps.apple.com/sa/app/social-lab-grow-your-business/id6745023855";}ngOnInit(){_$(this.platformId)&&this.breakpointObserver.observe([qi$2.Handset,qi$2.Tablet]).subscribe(t=>{this.isMobile=t.matches,this.isMobile?this.checkShouldShow():this.isVisible=false;});}ngOnDestroy(){_$(this.platformId)&&document.body.classList.remove("app-promo-open");}checkShouldShow(){if(!_$(this.platformId))return;let t=localStorage.getItem(this.STORAGE_KEY);if(!t){this.isVisible=true;return}let e=parseInt(t,10);Date.now()-e>=this.HOUR_IN_MS?this.isVisible=true:this.isVisible=false;}close(){_$(this.platformId)&&(this.isVisible=false,localStorage.setItem(this.STORAGE_KEY,Date.now().toString()));}openAndroidApp(){window.open(this.androidAppUrl,"_blank");}openIosApp(){window.open(this.iosAppUrl,"_blank");}static{this.\u0275fac=function(e){return new(e||i)(V$3(Zt$3),V$3(So$3))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-mobile-app-promotion"]],decls:1,vars:1,consts:[[1,"mobile-app-promotion"],[1,"promotion-content"],[1,"promotion-header"],["mat-icon-button","",1,"close-button",3,"click","matTooltip","aria-label"],[1,"promotion-text"],[1,"promotion-title"],[1,"promotion-subtitle"],[1,"promotion-actions"],[1,"promotion-icon"],[1,"app-icon"],["mat-icon-button","",1,"store-button","android-button",3,"click","matTooltip","aria-label"],["src","/assets/images/newLandingpage/sociallab2.png","alt","Google Play",1,"store-icon"],["mat-icon-button","",1,"store-button","ios-button",3,"click","matTooltip","aria-label"],["src","/assets/images/newLandingpage/sociallab1.png","alt","App Store",1,"store-icon"]],template:function(e,o){e&1&&ZT(0,Bu,27,30,"div",0),e&2&&YT(o.isVisible&&o.isMobile?0:-1);},dependencies:[Tt$2,Xv,Ng,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,Fi$2,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,go$2,Kd,on,XE,LT,mA,mt$4],styles:[".mobile-app-promotion[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;z-index:10000;min-height:15vh;max-height:20vh;padding:12px;background:linear-gradient(135deg,#1f9d4d,#19e3c2);box-shadow:var(--shadow-raised);animation:_ngcontent-%COMP%_slideUp .3s ease-out;border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl);display:flex;align-items:center}@keyframes _ngcontent-%COMP%_slideUp{0%{transform:translateY(100%);opacity:0}
11067to{transform:translateY(0);opacity:1}}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:10px;max-width:100%;width:100%;height:100%}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;width:100%;gap:8px}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-text[_ngcontent-%COMP%]{flex:1;min-width:0;text-align:center}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-text[_ngcontent-%COMP%] .promotion-title[_ngcontent-%COMP%]{margin:0;font-size:var(--font-size-base);font-weight:600;color:#fff;line-height:1.3}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-text[_ngcontent-%COMP%] .promotion-subtitle[_ngcontent-%COMP%]{margin:4px 0 0;font-size:var(--font-size-xs);color:#fffffff2;line-height:1.2}.mobile-app-promotion[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{width:56px;height:56px;color:#fff;opacity:.9;transition:all .2s ease;flex-shrink:0}.mobile-app-promotion[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{opacity:1;background:#fff3}.mobile-app-promotion[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;width:100%}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-icon[_ngcontent-%COMP%]{flex-shrink:0}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-icon[_ngcontent-%COMP%] .app-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#fff;animation:_ngcontent-%COMP%_pulse 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.mobile-app-promotion[_ngcontent-%COMP%] .store-button[_ngcontent-%COMP%]{width:72px;height:72px;padding:0;background:#fff3;border-radius:var(--radius-lg);transition:all .2s ease}.mobile-app-promotion[_ngcontent-%COMP%] .store-button[_ngcontent-%COMP%]:hover{background:#ffffff4d;transform:scale(1.05)}.mobile-app-promotion[_ngcontent-%COMP%] .store-button[_ngcontent-%COMP%] .store-icon[_ngcontent-%COMP%]{width:64px;height:64px;object-fit:contain;border-radius:var(--radius-lg)}@media(min-width:960px){.mobile-app-promotion[_ngcontent-%COMP%]{display:none!important}}@media(max-width:360px){.mobile-app-promotion[_ngcontent-%COMP%]{padding:10px 8px;min-height:12vh;max-height:16vh}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-content[_ngcontent-%COMP%]{gap:8px}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-icon[_ngcontent-%COMP%] .app-icon[_ngcontent-%COMP%]{font-size:56px;width:56px;height:56px}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-text[_ngcontent-%COMP%] .promotion-title[_ngcontent-%COMP%]{font-size:var(--font-size-sm)}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-text[_ngcontent-%COMP%] .promotion-subtitle[_ngcontent-%COMP%]{font-size:var(--font-size-xs)}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-actions[_ngcontent-%COMP%]{gap:8px}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-actions[_ngcontent-%COMP%] .store-button[_ngcontent-%COMP%]{width:64px;height:64px}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-actions[_ngcontent-%COMP%] .store-button[_ngcontent-%COMP%] .store-icon[_ngcontent-%COMP%]{width:56px;height:56px}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-actions[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{width:48px;height:48px}.mobile-app-promotion[_ngcontent-%COMP%] .promotion-actions[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px}}"],changeDetection:1});}}return i})();var Nu=()=>[];function Ru(i,n){if(i&1){let t=i_$1();Js$2(0,"button",15),Ey("click",function(){Vp$2(t);let o=d_$1(2);return Hp$2(o.prev())}),H_$1(1),pS(2,"translate"),gd$2();}i&2&&(SC(),Ed$2(" ",gS$1(2,1,"Back")," "));}function Lu(i,n){i&1&&(H_$1(0),pS(1,"translate")),i&2&&Ed$2(" ",gS$1(1,1,"Finis
11067h")," ");}function Vu(i,n){i&1&&(H_$1(0),pS(1,"translate")),i&2&&Ed$2(" ",gS$1(1,1,"Next")," ");}function zu(i,n){if(i&1&&fy(0,"span",16),i&2){let t=n.$index,e=d_$1(2);xy("active",t===e.currentIndex)("done",t<e.currentIndex);}}function ju(i,n){if(i&1){let t=i_$1();Js$2(0,"div",0),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.skip())}),gd$2(),fy(1,"div",1),Js$2(2,"div",2)(3,"div",3)(4,"mat-icon",4),H_$1(5),gd$2(),Js$2(6,"h4",5),H_$1(7),pS(8,"translate"),gd$2(),Js$2(9,"button",6),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.skip())}),Js$2(10,"mat-icon"),H_$1(11,"close"),gd$2()()(),Js$2(12,"p",7),H_$1(13),pS(14,"translate"),gd$2(),Js$2(15,"div",8)(16,"span",9),H_$1(17),gd$2(),Js$2(18,"div",10),ZT(19,Ru,3,3,"button",11),Js$2(20,"button",12),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.next())}),ZT(21,Lu,2,3)(22,Vu,2,3),gd$2()()(),Js$2(23,"div",13),XT(24,zu,1,4,"span",14,QT),gd$2()();}if(i&2){let t=d_$1();SC(),dy("ngStyle",t.spotlightStyle),SC(),dy("ngStyle",t.tooltipStyle),SC(3),jy(t.currentStop.icon),SC(2),jy(gS$1(8,9,t.currentStop.title)),SC(6),jy(gS$1(14,11,t.currentStop.description)),SC(4),By("",t.currentIndex+1," / ",t.totalStops),SC(2),YT(t.currentIndex>0?19:-1),SC(2),YT(t.currentIndex===t.totalStops-1?21:22),SC(3),JT(nS(13,Nu).constructor(t.totalStops));}}var gc=(()=>{class i{constructor(t){this.tourService=t,this.active=false,this.currentIndex=0,this.currentStop=null,this.totalStops=0,this.spotlightStyle={},this.tooltipStyle={},this.subs=new W$4;}ngOnInit(){this.subs.add(this.tourService.active$.subscribe(t=>{this.active=t,t&&(this.totalStops=this.tourService.totalStops,this.updatePosition());})),this.subs.add(this.tourService.currentIndex$.subscribe(t=>{this.currentIndex=t,this.currentStop=this.tourService.currentStop,this.active&&this.updatePosition();}));}ngOnDestroy(){this.subs.unsubscribe();}onResize(){this.active&&this.updatePosition();}next(){this.tourService.next();}prev(){this.tourService.prev();}skip(){this.tourService.skip();}updatePosition(){this.currentStop&&requestAnimationFrame(()=>{let t=document.querySelector(this.currentStop.targetSelector);if(!t){this.spotlightStyle={display:"none"},this.tooltipStyle={top:"50%",left:"50%",transform:"translate(-50%, -50%)"};return}let e=t.getBoundingClientRect(),o=8,a=document.documentElement.dir==="rtl"||document.body.dir==="rtl";this.spotlightStyle={top:`${e.top-o}px`,left:`${e.left-o}px`,width:`${e.width+o*2}px`,height:`${e.height+o*2}px`};let d=320,p=16,h=window.innerWidth,g=this.currentStop.position;switch(a&&(g==="left"?g="right":g==="right"&&(g="left")),g){case "bottom":this.tooltipStyle={top:`${e.bottom+p}px`,left:`${Math.max(16,Math.min(e.left+e.width/2-d/2,h-d-16))}px`};break;case "top":this.tooltipStyle={bottom:`${window.innerHeight-e.top+p}px`,left:`${Math.max(16,Math.min(e.left+e.width/2-d/2,h-d-16))}px`};break;case "right":this.tooltipStyle={top:`${Math.max(16,e.top+e.height/2-60)}px`,left:`${e.right+p}px`},e.right+p+d>h-16&&(this.tooltipStyle={top:`${Math.max(16,e.top+e.height/2-60)}px`,left:`${Math.max(16,e.left-d-p)}px`});break;case "left":this.tooltipStyle={top:`${Math.max(16,e.top+e.height/2-60)}px`,left:`${Math.max(16,e.left-d-p)}px`},e.left-d-p<16&&(this.tooltipStyle={top:`${Math.max(16,e.top+e.height/2-60)}px`,left:`${e.right+p}px`});break}});}static{this.\u0275fac=function(e){return new(e||i)(V$3(c$4))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-spotlight-tour"]],hostBindings:function(e,o){e&1&&Ey("resize",function(){return o.onResize()},_w);},decls:1,vars:1,consts:[[1,"spotlight-overlay",3,"click"],[1,"spotlight-cutout",3,"ngStyle"],[1,"spotlight-tooltip",3,"ngStyle"],[1,"tooltip-header"],[1,"tooltip-icon"],[1,"tooltip-title"],["mat-icon-button","","aria-label","close",1,"tooltip-close",3,"click"],[1,"tooltip-desc"],[1,"tooltip-footer"],[1,"tooltip-counter"],[1,"tooltip-actions"],["mat-button","",1,"tooltip-prev"],["mat-flat-button","","color","primary",1,"tooltip-next",3,"click"],[1,"tooltip-dots"],[1,"tdot",3,"active","done"],["mat-button","",1,"tooltip-prev",3,"click"],[1,"tdot"]],template:function(e,o){e&1&&ZT(0,ju,26,14),e&2&&YT(o.active&&o.currentStop?0:-1);},dependencies:[Xv,PM,Tt$2,Ng,zg,w0$1,H0,Zx,dn,zw,sk,nd$1,rC,wC,mv,GC,tD,vD,al$1,tM,dM,Lb,r1,P1,xS,Vs$1,zs$1,Fi$2,GS,iI,RI,us,ms,UI,tE,Dn$1,ME,ny,go$2,Kd,XE,LT,mA,mt$4],styles:[".spotlight-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0009;z-index:9998;cursor:pointer}.spotlight-cutout[_ngcontent-%COMP%]{position:fixed;z-index:9999;border-radius:var(--radius-lg);box-shadow:0 0 0 9999px #0009;pointer-events:none;transition:all .4s ease;border:2px solid var(--color-primary, #1f9d4d)}.spotlight-tooltip[_ngcontent-%COMP%]{position:fixed;z-index:10000;width:320px;background:#fff;border-radius:var(--radius-xl);box-shadow:var(--shadow-float);padding:20px;animation:_ngcontent-%COMP%_tooltipFadeIn .3s ease-out}@keyframes _ngcontent-%COMP%_tooltipFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.tooltip-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-bottom:8px}.tooltip-icon[_ngcontent-%COMP%]{font-size:var(--font-size-2xl);width:24px;height:24px;color:var(--color-primary, #1f9d4d)}.tooltip-title[_ngcontent-%COMP%]{margin:0;font-size:var(--font-size-base);font-weight:700;color:#2a3547;flex:1}.tooltip-close[_ngcontent-%COMP%]{margin:-8px -8px 0 0;color:#5d6b85}.tooltip-close[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:var(--font-size-lg);width:18px;height:18px}.tooltip-desc[_ngcontent-%COMP%]{margin:0 0 16px;font-size:var(--font-size-sm);color:#5d6b85;line-height:1.5}.tooltip-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.tooltip-counter[_ngcontent-%COMP%]{font-size:var(--font-size-xs);color:#5d6b85;font-weight:500}.tooltip-actions[_ngcontent-%COMP%]{display:flex;gap:8px}.tooltip-prev[_ngcontent-%COMP%]{color:#5d6b85;font-size:var(--font-size-sm)}.tooltip-next[_ngcontent-%COMP%]{font-size:var(--font-size-sm)}.tooltip-dots[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:6px;margin-top:12px}.tdot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#0000001a;transition:all .3s ease}.tdot.active[_ngcontent-%COMP%]{width:18px;border-radius:var(--radius-sm);background:var(--color-primary, #1f9d4d)}.tdot.done[_ngcontent-%COMP%]{background:#1f9d4d4d}"],changeDetection:1});}}return i})();
11067function Uu(i,n){if(i&1){let t=i_$1();Js$2(0,"button",8),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.go())}),H_$1(1),pS(2,"translate"),gd$2();}i&2&&(SC(),jy(gS$1(2,1,"Go")));}var _c=(()=>{class i{constructor(t,e){this.dialogRef=t,this.data=e;}close(){this.dialogRef.close({action:"close"});}go(){this.dialogRef.close({action:"go",linkUrl:this.data.linkUrl});}static{this.\u0275fac=function(e){return new(e||i)(V$3(an),V$3(Wm$1))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-did-you-know-dialog"]],decls:15,vars:8,consts:[[1,"did-you-know-dialog"],["mat-dialog-title","",1,"dialog-title"],[1,"title-icon"],[1,"dialog-content"],[1,"tip-text"],["align","end",1,"dialog-actions"],["mat-button","",3,"click"],["mat-flat-button","","color","primary"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,o){e&1&&(Js$2(0,"div",0)(1,"h2",1)(2,"mat-icon",2),H_$1(3,"lightbulb"),gd$2(),Js$2(4,"span"),H_$1(5),pS(6,"translate"),gd$2()(),Js$2(7,"mat-dialog-content",3)(8,"p",4),H_$1(9),gd$2()(),Js$2(10,"mat-dialog-actions",5)(11,"button",6),Ey("click",function(){return o.close()}),H_$1(12),pS(13,"translate"),gd$2(),ZT(14,Uu,3,3,"button",7),gd$2()()),e&2&&(SC(5),jy(gS$1(6,4,"Did you know?")),SC(4),jy(o.data.title),SC(3),jy(gS$1(13,6,"Close")),SC(2),YT(o.data.linkUrl?14:-1));},dependencies:[ny,ey,iy,ty,Vs$1,zs$1,us,ms,Tt$2,mt$4],styles:[".did-you-know-dialog[_ngcontent-%COMP%] .dialog-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin:0;font-size:1.25rem;font-weight:600;color:#2a3547}.did-you-know-dialog[_ngcontent-%COMP%] .dialog-title[_ngcontent-%COMP%] .title-icon[_ngcontent-%COMP%]{color:#ffae1f;font-size:28px;width:28px;height:28px}.did-you-know-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding-block:16px}.did-you-know-dialog[_ngcontent-%COMP%] .tip-text[_ngcontent-%COMP%]{font-size:var(--font-size-base);line-height:1.6;color:#5d6b85;margin:0}.did-you-know-dialog[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%]{padding-block-end:8px;gap:8px}"],changeDetection:1});}}return i})();var Fo=[{id:"operate",label:"Operate",icon:"bolt",groups:[{cap:"",routes:["/dashboard","/apps/setup-journey","/apps/statistics"]},{cap:"Conversations",routes:["/apps/messages","/apps/promotions","/apps/publishing","/apps/contacts","/apps/ticket-management","/apps/follow-up-reminders"]},{cap:"Calls",routes:["/apps/call-center"]},{cap:"Tools",routes:["/apps/orders-management","/apps/calendar","/apps/taskboard","/apps/files-manager"]}]},{id:"manage",label:"Administration",icon:"tune",groups:[{cap:"",routes:["/admin/social-lab-management"]},{cap:"AI",routes:["/apps/ai"]},{cap:"Channels",routes:["/apps/whatsapp","/apps/instagram","/apps/messenger","/apps/tiktok","/apps/x","/apps/telegram","/apps/email"]},{cap:"E-commerce",routes:["/apps/salla","/apps/zid"]},{cap:"Settings",routes:["/apps/settings","/apps/pricing"]},{cap:"Help & More",routes:["/apps/support-tickets","/apps/suggestions-board","apps/whats-new","/help","https://blog.sociallab.sa/","apps/moreServices","contact-us","/faq"]}]}],Bo="operate",wa="manage",Cc="Help & More";function bc(i){return i==="operate"||i==="manage"}function xc(i){let n=i.filter(a=>!!a.route),t=new Set,e={operate:[],manage:[]};for(let a of Fo)for(let d of a.groups){let p=d.routes.map(h=>n.find(g=>g.route===h&&!t.has(g))).filter(h=>!!h);if(p.length){d.cap&&e[a.id].push({navCap:d.cap,permissions:[]});for(let h of p)e[a.id].push(h),t.add(h);}}let o=n.filter(a=>!t.has(a));return o.length&&(e[wa].some(a=>a.navCap===Cc)||e[wa].push({navCap:Cc,permissions:[]}),e[wa].push(...o)),e}function Mc(i,n){let t=vc(i.split("?")[0].split("#")[0]),e=null;for(let o of Fo)for(let a of n[o.id]){if(!a.route||$u(a.route))continue;let d=vc(a.route);d!=="/"&&(t!==d&&!t.startsWith(d+"/")||(!e||d.length>e.length)&&(e={tab:o.id,length:d.length}));}return e?.tab??null}function $u(i){return /^https?:\/\//i.test(i)}function vc(i){let n=i.replace(/\/+$/,"");return n.startsWith("/")?n:"/"+n}var Wu=["searchInput"],qu=["listContainer"],Ku=(i,n)=>n.route;
11067function Hu(i,n){i&1&&(Js$2(0,"div",10)(1,"mat-icon"),H_$1(2,"search_off"),gd$2(),Js$2(3,"span"),H_$1(4),pS(5,"translate"),gd$2()()),i&2&&(SC(4),jy(gS$1(5,1,"No results found")));}function Gu(i,n){if(i&1&&fy(0,"img",14),i&2){let t=d_$1().$implicit;dy("src","/assets/images/icons/"+t.icon+".png",zg$1)("alt",t.label);}}function Qu(i,n){if(i&1&&(Js$2(0,"mat-icon",15),H_$1(1),gd$2()),i&2){let t=d_$1().$implicit;SC(),jy(t.icon);}}function Yu(i,n){i&1&&(Js$2(0,"mat-icon",18),H_$1(1,"keyboard_return"),gd$2());}function Xu(i,n){if(i&1){let t=i_$1();Js$2(0,"div",13),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(2);return Hp$2(a.selectItem(o))})("mouseenter",function(){let o=Vp$2(t).$index,a=d_$1(2);return Hp$2(a.activeIndex=o)}),ZT(1,Gu,1,2,"img",14)(2,Qu,2,1,"mat-icon",15),Js$2(3,"span",16),H_$1(4),pS(5,"translate"),gd$2(),Js$2(6,"span",17),H_$1(7),gd$2(),ZT(8,Yu,2,0,"mat-icon",18),gd$2();}if(i&2){let t=n.$implicit,e=n.$index,o=d_$1(2);xy("cmd-palette__item--active",e===o.activeIndex),SC(),YT(t.isImgIcon?1:2),SC(3),jy(gS$1(5,6,t.label)),SC(3),jy(t.route),SC(),YT(e===o.activeIndex?8:-1);}}function Zu(i,n){if(i&1){let t=i_$1();Js$2(0,"div",3),Ey("click",function(o){Vp$2(t);let a=d_$1();return Hp$2(a.onBackdropClick(o))}),Js$2(1,"div",4)(2,"div",5)(3,"mat-icon",6),H_$1(4,"search"),gd$2(),Js$2(5,"input",7,0),pS(7,"translate"),zy("ngModelChange",function(o){Vp$2(t);let a=d_$1();return W_$1(a.query,o)||(a.query=o),Hp$2(o)}),Ey("ngModelChange",function(){Vp$2(t);let o=d_$1();return Hp$2(o.onQueryChange())}),gd$2(),db(),Js$2(8,"kbd",8),H_$1(9,"ESC"),gd$2()(),Js$2(10,"div",9,1),ZT(12,Hu,6,3,"div",10),XT(13,Xu,9,8,"div",11,Ku),gd$2(),Js$2(15,"div",12)(16,"span")(17,"kbd"),H_$1(18,"\u2191"),gd$2(),Js$2(19,"kbd"),H_$1(20,"\u2193"),gd$2(),H_$1(21),pS(22,"translate"),gd$2(),Js$2(23,"span")(24,"kbd"),H_$1(25,"\u21B5"),gd$2(),H_$1(26),pS(27,"translate"),gd$2(),Js$2(28,"span")(29,"kbd"),H_$1(30,"esc"),gd$2(),H_$1(31),pS(32,"translate"),gd$2()()()();}if(i&2){let t=d_$1();SC(5),dy("placeholder",gS$1(7,6,"Search pages and actions...")),$y("ngModel",t.query),pb(),SC(7),YT(t.filteredItems.length===0?12:-1),SC(),JT(t.filteredItems),SC(8),Ed$2(" ",gS$1(22,8,"to navigate")),SC(5),Ed$2(" ",gS$1(27,10,"to open")),SC(5),Ed$2(" ",gS$1(32,12,"to close"));}}var Ju=[{label:"Dashboard",icon:"analytics",route:"/dashboard",keywords:["home","main","\u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629"]},{label:"Messages",icon:"chat_bubble",route:"/apps/messages",keywords:["inbox","chat","\u0631\u0633\u0627\u0626\u0644"],permission:"Read_Messages"},{label:"Customers",icon:"people",route:"/apps/customers",keywords:["clients","crm","\u0639\u0645\u0644\u0627\u0621"],permission:"Read_Customers"},{label:"Contacts",icon:"phone",route:"/apps/contacts",keywords:["phone","\u062C\u0647\u0627\u062A \u0627\u062A\u0635\u0627\u0644"],permission:"Read_Contacts"},{label:"Upload Contacts",icon:"upload_file",route:"/apps/contacts/upload-contacts",keywords:["import","csv","\u0631\u0641\u0639"],permission:"Read_Contacts"},{label:"Promotions",icon:"schedule",route:"/apps/promotions",keywords:["broadcast","\u062D\u0645\u0644\u0627\u062A"],permission:"Read_Promotions"},{label:"Create Promotion",icon:"add_circle",route:"/apps/api-promotions/create-promotion",keywords:["broadcast","new","\u0625\u0646\u0634\u0627\u0621 \u062D\u0645\u0644\u0629"],permission:"Read_Promotions"},{label:"Templates",icon:"description",route:"/apps/whatsapp-api/templates",keywords:["whatsapp","\u0642\u0648\u0627\u0644\u0628"],permission:"Read_Templates"},{label:"Add Template",icon:"note_add",route:"/apps/whatsapp-api/templates/add-template-wizard",keywords:["create","new","\u0625\u0636\u0627\u0641\u0629 \u0642\u0627\u0644\u0628"],permission:"Manage_Templates"},{label:"AI Agents",icon:"psychology",route:"/apps/ai/agents",keywords:["bot","automation","\u0630\u0643\u0627\u0621 \u0627\u0635\u0637\u0646\u0627\u0639\u064A"],permission:"Read_Messages"},{label:"Create AI Agent",icon:"add_circle",route:"/apps/ai/create-ai-agent",keywords:["bot","new","\u0625\u0646\u0634\u0627\u0621"],permission:"Read_Messages"},{label:"Files Manager",icon:"folder",route:"/apps/files-manager",keywords:["media","upload","\u0645\u0644\u0641\u0627\u062A"],permission:"Read_Files"},{label:"Calendar",icon:"calendar_today",route:"/apps/calendar",keywords:["schedule","\u062A\u0642\u0648\u064A\u0645"],permission:"Read_Calendar"},{label:"Tickets",icon:"confirmation_number",route:"/apps/ticket-management",keywords:["support","\u062A\u0630\u0627\u0643\u0631"]},{label:"Taskboard",icon:"checklist",route:"/apps/taskboard",keywords:["tasks","tasks board","\u0645\u062A\u0627\u0628\u0639\u0629"]},{label:"Settings",icon:"settings",route:"/apps/settings",keywords:["config","preferences","\u0625\u0639\u062F\u0627\u062F\u0627\u062A"],permission:"Send_Messages"},{label:"Users",icon:"group",route:"/apps/users",keywords:["team","\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646"],permission:"Read_Users"},{label:"Subscriptions",icon:"card_membership",route:"/apps/subscriptions",keywords:["billing","plan","\u0627\u0634\u062A\u0631\u0627\u0643\u0627\u062A"]},{label:"WhatsApp",icon:"whatsapp",route:"/apps/whatsapp",keywords:["\u0648\u0627\u062A\u0633\u0627\u0628"],permission:"Read_Templates",isImgIcon:true},{label:"Instagram",icon:"instagram",route:"/apps/instagram",keywords:["\u0627\u0646\u0633\u062A\u0642\u0631\u0627\u0645"],permission:"Read_Templates",isImgIcon:true},{label:"Orders",icon:"request_quote",route:"/apps/orders-management",keywords:["\u0637\u0644\u0628\u0627\u062A","products"],permission:"Read_Products"},{label:"Account Settings",icon:"manage_accounts",route:"/apps/users/account-settings",keywords:["profile","\u062D\u0633\u0627\u0628"]},{label:"Notifications",icon:"notifications",route:"/apps/sociallab-notifications",keywords:["alerts","\u0625\u0634\u0639\u0627\u0631\u0627\u062A"]},{label:"Health Status",icon:"vital_signs",route:"/apps/client-health",keywords:["status","\u0635\u062D\u0629"]},{label:"TikTok",icon:"tiktok",route:"/apps/tiktok",keywords:["\u062A\u064A\u0643\u062A\u0648\u0643","\u062A\u064A\u0643 \u062A\u0648\u0643","tiktok"],isImgIcon:true,permission:"Read_Templates"},{label:"Integrations",icon:"webhook",route:"/apps/settings/manage-api-phones",keywords:["\u0631\u0628\u0637","api"],permission:"Read_Messages"},{label:"New Message",icon:"add_comment",route:"/apps/messages",keywords:["\u0631\u0633\u0627\u0644\u0629 \u062C\u062F\u064A\u062F\u0629","\u0627\u0631\u0633\u0627\u0644 \u0631\u0633\u0627\u0644\u0629","send message"],permission:"Read_Messages"},{label:"Add Event",icon:"edit_calendar",route:"/apps/calendar",keywords:["\u0627\u0636\u0627\u0641\u0629 \u062D\u062F\u062B","\u0645\u0648\u0639\u062F \u062C\u062F\u064A\u062F","create event","appointment"],permission:"Manage_Calendar"},{label:"Add Task",icon:"add_task",route:"/apps/taskboard",keywords:["\u0627\u0636\u0627\u0641\u0629 \u0645\u0647\u0645\u0629","\u0645\u0647\u0645\u0629 \u062C\u062F\u064A\u062F\u0629","create task","todo"]}],yc=(()=>{class i{constructor(t,e,o){this.router=t,this.authService=e,this.translate=o,this.isOpen=false,this.query="",this.filteredItems=[],this.activeIndex=0,this.userPermissions=[],this.allItems=[],this.openHandler=()=>this.open();}ngOnInit(){this.userPermissions=this.authService.getPermissions(),this.allItems=Ju.filter(t=>!t.permission||this.userPermissions.includes(t.permission)),this.filteredItems=this.allItems,window.addEventListener("open-command-palette",this.openHandler);}ngOnDestroy(){window.removeEventListener("open-command-palette",this.openHandler);}onKeydown(t){if((t.ctrlKey||t.metaKey)&&t.key===" "){t.preventDefault(),this.toggle();return}this.isOpen&&(t.key==="Escape"?this.close():t.key==="ArrowDown"?(t.preventDefault(),this.activeIndex=Math.min(this.activeIndex+1,this.filteredItems.length-1),this.scrollActiveIntoView()):t.key==="ArrowUp"?(t.preventDefault(),this.activeIndex=Math.max(this.activeIndex-1,0),this.scrollActiveIntoView()):t.key==="Enter"&&this.filteredItems.length>0&&(t.preventDefault(),this.selectItem(this.filteredItems[this.activeIndex])));}toggle(){this.isOpen?this.close():this.open();}open(){this.isOpen=true,this.query="",this.filteredItems=this.allItems,this.activeIndex=0,setTimeout(()=>this.searchInput?.nativeElement?.focus(),50);}close(){this.isOpen=false,this.query="";}onQueryChange(){if(this.activeIndex=0,!this.query.trim()){this.filteredItems=this.allItems;return}let t=this.query.toLowerCase().trim();this.filteredItems=this.allItems.filter(e=>{let o=this.translate.instant(e.label).toLowerCase();return e.label.toLowerCase().includes(t)||o.includes(t)||e.route.toLowerCase().includes(t)||e.keywords.some(a=>a.toLowerCase().includes(t))});}scrollActiveIntoView(){setTimeout(()=>{let t=this.listContainer?.nativeElement;if(!t)return;let e=t.children[this.activeIndex];e&&e.scrollIntoView({block:"nearest"});});}selectItem(t){this.close(),this.router.navigate([t.route]);}onBackdropClick(t){t.target.classList.contains("cmd-palette-backdrop")&&this.close();}static{this.\u0275fac=function(e){return new(e||i)(V$3(G$5),V$3(Us$1),V$3(O$5))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-command-palette"]],viewQuery:function(e,o){if(e&1&&by(Wu,5)(qu,5),e&2){let a;m_$1(a=y_$1())&&(o.searchInput=a.first),m_$1(a=y_$1())&&(o.listContainer=a.first);}},hostBindings:function(e,o){e&1&&Ey("keydown",function(d){return o.onKeydown(d)},Sw);},decls:1,vars:1,consts:[["searchInput",""],["listContainer",""],[1,"cmd-palette-backdrop"],[1,"cmd-palette-backdrop",3,"click"],[1,"cmd-palette"],[1,"cmd-palette__header"],[1,"cmd-palette__search-icon"],["type","text","autocomplete","off",1,"cmd-palette__input",3,"ngModelChange","placeholder","ngModel"],[1,"cmd-palette__kbd"],[1,"cmd-palette__list"],[1,"cmd-palette__empty"],[1,"cmd-palette__item",3,"cmd-palette__item--active"],[1,"cmd-palette__footer"],[1,"cmd-palette__item",3,"click","mouseenter"],["alt","",1,"cmd-palette__item-img",3,"src","alt"],[1,"cmd-palette__item-icon"],[1,"cmd-palette__item-label"],[1,"cmd-palette__item-route"],[1,"cmd-palette__item-enter"]],template:function(e,o){e&1&&ZT(0,Zu,33,14,"div",2),e&2&&YT(o.isOpen?0:-1);},dependencies:[Ng,Ts,Og,Gc$1,us,ms,Tt$2,ea$2,mt$4],styles:[".cmd-palette-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:9999;background:#00000073;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:flex-start;justify-content:center;padding-top:12vh;animation:_ngcontent-%COMP%_cmdFadeIn .15s ease-out}.cmd-palette[_ngcontent-%COMP%]{width:560px;max-width:94vw;max-height:70vh;background:#fff;border-radius:var(--radius-xl);box-shadow:var(--shadow-float);display:flex;flex-direction:column;overflow:hidden;animation:_ngcontent-%COMP%_cmdSlideIn .2s cubic-bezier(.16,1,.3,1)}.cmd-palette__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid rgba(0,0,0,.07)}.cmd-palette__search-icon[_ngcontent-%COMP%]{color:#94a3b8;font-size:22px;width:22px;height:22px;flex-shrink:0}.cmd-palette__input[_ngcontent-%COMP%]{flex:1;border:none;outline:none;font-size:var(--font-size-base);font-weight:500;color:#1e293b;background:transparent;font-family:inherit}.cmd-palette__input[_ngcontent-%COMP%]::placeholder{color:#94a3b8;font-weight:400}.cmd-palette__kbd[_ngcontent-%COMP%]{padding:2px 8px;border-radius:var(--radius-card);background:#f1f5f9;border:1px solid #e2e8f0;font-size:var(--font-size-xs);font-weight:600;color:#64748b;font-family:inherit;flex-shrink:0}.cmd-palette__list[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:6px;scrollbar-width:thin}.cmd-palette__empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:32px 16px;color:#94a3b8}.cmd-palette__empty[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:var(--font-size-4xl);width:36px;height:36px;opacity:.5}.cmd-palette__empty[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:var(--font-size-sm);font-weight:500}.cmd-palette__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:var(--radius-lg);cursor:pointer;transition:background .12s}.cmd-palette__item--active[_ngcontent-%COMP%], .cmd-palette__item[_ngcontent-%COMP%]:hover{background:#f1f5f9}.cmd-palette__item-img[_ngcontent-%COMP%]{width:20px;height:20px;object-fit:contain;flex-shrink:0;border-radius:var(--radius-sm)}.cmd-palette__item-icon[_ngcontent-%COMP%]{font-size:var(--font-size-xl);width:20px;height:20px;color:#64748b;flex-shrink:0}.cmd-palette__item--active[_ngcontent-%COMP%] .cmd-palette__item-icon[_ngcontent-%COMP%]{color:var(--color-primary)}.cmd-palette__item-label[_ngcontent-%COMP%]{font-size:var(--font-size-sm);font-weight:500;color:#1e293b;flex:1}.cmd-palette__item-route[_ngcontent-%COMP%]{font-size:var(--font-size-xs);color:#94a3b8;direction:ltr;flex-shrink:0;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmd-palette__item-enter[_ngcontent-%COMP%]{font-size:var(--font-size-base);width:16px;height:16px;color:#94a3b8;flex-shrink:0}.cmd-palette__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;padding:10px 18px;border-top:1px solid rgba(0,0,0,.07);background:#fafbfc;border-radius:0 0 var(--radius-xl) var(--radius-xl)}.cmd-palette__footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:var(--font-size-xs);color:#94a3b8;display:flex;align-items:center;gap:4px}.cmd-palette__footer[_ngcontent-%COMP%] kbd[_ngcontent-%COMP%]{padding:1px 5px;border-radius:var(--radius-sm);background:#e2e8f0;font-size:var(--font-size-2xs);font-weight:600;color:#64748b;font-family:inherit;border:1px solid #cbd5e1}@keyframes _ngcontent-%COMP%_cmdFadeIn{0%{opacity:0}
11067to{opacity:1}}@keyframes _ngcontent-%COMP%_cmdSlideIn{0%{opacity:0;transform:scale(.96) translateY(-8px)}to{opacity:1;transform:scale(1) translateY(0)}}"],changeDetection:1});}}return i})();var Hi=(function(i){return i[i.Started=0]="Started",i[i.Progress=1]="Progress",i[i.Completed=2]="Completed",i[i.Failed=3]="Failed",i})(Hi||{}),Sc=["Importing contacts","Removing duplicate numbers","Deleting empty groups","Syncing Salla abandoned carts","Syncing Zid abandoned carts","Importing Salla customers","Importing Zid customers","Syncing Salla orders","Syncing Zid orders","Sending campaign","Syncing templates","Creating campaign","Preparing your contacts file"];var wc=(()=>{class i{static{this.FINISHED_TTL_MS=8e3;}constructor(t,e,o){this.signalr=t,this.toast=e,this.translate=o,this._tasks=Es$1([]),this.tasks=this._tasks.asReadonly(),this.hasTasks=wS(()=>this._tasks().length>0),this.dismissTimers=new Map,this.signalr.backgroundTask$.subscribe(a=>this.handle(a));}dismiss(t){this.clearTimer(t),this._tasks.update(e=>e.filter(o=>o.taskId!==t));}handle(t){if(!t?.taskId)return;let e=t.backgroundTaskStatus??Hi.Progress,o=t.total??null,a=t.processed??null,d=o&&o>0&&a!=null?Math.min(100,Math.round(a/o*100)):null,p={taskId:t.taskId,type:t.backgroundTaskType??0,status:e,processed:a,total:o,message:t.message??null,percent:d};this._tasks.update(h=>{let g=h.findIndex(k=>k.taskId===p.taskId);if(g===-1)return [p,...h];let P=[...h];return P[g]=p,P}),(e===Hi.Completed||e===Hi.Failed)&&(this.notifyDone(p),this.scheduleDismiss(p.taskId));}label(t){let e=Sc[t];return this.translate.instant(e??"Background tasks")}notifyDone(t){let e=this.label(t.type);if(t.status===Hi.Failed){this.toast.error(`${e} \u2014 ${this.translate.instant("Failed")}`);return}let o=t.message?` (${t.message})`:"";this.toast.success(`${e} \u2014 ${this.translate.instant("Completed")}${o}`);}scheduleDismiss(t){this.clearTimer(t),this.dismissTimers.set(t,setTimeout(()=>this.dismiss(t),i.FINISHED_TTL_MS));}clearTimer(t){let e=this.dismissTimers.get(t);e&&(clearTimeout(e),this.dismissTimers.delete(t));}static{this.\u0275fac=function(e){return new(e||i)(M$6(Ct$2),M$6(ut$2),M$6(O$5))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();function e0(i,n){i&1&&(Js$2(0,"span"),H_$1(1),pS(2,"translate"),gd$2()),i&2&&(SC(),jy(gS$1(2,1,"Completed")));}function i0(i,n){i&1&&(Js$2(0,"span"),H_$1(1),pS(2,"translate"),gd$2()),i&2&&(SC(),jy(gS$1(2,1,"Failed")));}function n0(i,n){if(i&1&&(vd$2(0),H_$1(1),Ea$1()),i&2){let t=d_$1(2).$implicit;SC(),By(" \u2014 ",t.processed,"/",t.total);}}function o0(i,n){if(i&1&&(Js$2(0,"span"),H_$1(1),pS(2,"translate"),ey$1(3,n0,2,2,"ng-container",18),gd$2()),i&2){let t=d_$1().$implicit;SC(),Ed$2(" ",gS$1(2,2,"Processing")," "),SC(2),dy("ngIf",t.total&&t.processed!=null);}}function a0(i,n){if(i&1&&fy(0,"mat-progress-bar",19),i&2){let t=d_$1().$implicit;dy("mode",t.percent!=null?"determinate":"indeterminate")("value",t.percent??0);}}function r0(i,n){if(i&1){let t=i_$1();Js$2(0,"div",7)(1,"div",8)(2,"mat-icon",9),H_$1(3),gd$2(),Js$2(4,"div",10)(5,"div",11),H_$1(6),gd$2(),Js$2(7,"div",12),vd$2(8,13),ey$1(9,e0,3,3,"span",14)(10,i0,3,3,"span",14)(11,o0,4,4,"span",15),Ea$1(),gd$2()(),Js$2(12,"button",16),pS(13,"translate"),Ey("click",function(){let o=Vp$2(t).$implicit,a=d_$1(2);return Hp$2(a.svc.dismiss(o.taskId))}),Js$2(14,"mat-icon"),H_$1(15,"close"),gd$2()()(),ey$1(16,a0,1,2,"mat-progress-bar",17),gd$2();}if(i&2){let t=n.$implicit,e=d_$1(2);SC(2),xy("done",t.status===e.Status.Completed)("failed",t.status===e.Status.Failed),SC(),Ed$2(" ",t.status===e.Status.Completed?"check_circle":t.status===e.Status.Failed?"error":"sync"," "),SC(3),jy(e.svc.label(t.type)),SC(2),dy("ngSwitch",t.status),SC(),dy("ngSwitchCase",e.Status.Completed),SC(),dy("ngSwitchCase",e.Status.Failed),SC(2),dy("matTooltip",gS$1(13,11,"Dismiss")),SC(4),dy("ngIf",t.status===e.Status.Started||t.status===e.Status.Progress);}}function s0(i,n){if(i&1&&(Js$2(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-icon",4),H_$1(4,"autorenew"),gd$2(),Js$2(5,"span",5),H_$1(6),pS(7,"translate"),gd$2()(),ey$1(8,r0,17,13,"div",6),gd$2()()),i&2){let t=d_$1();
11067SC(6),jy(gS$1(7,3,"Background tasks")),SC(2),dy("ngForOf",t.svc.tasks())("ngForTrackBy",t.trackById);}}var Tc=(()=>{class i{constructor(t){this.svc=t,this.Status=Hi,this.trackById=(e,o)=>o.taskId;}static{this.\u0275fac=function(e){return new(e||i)(V$3(wc))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-background-tasks-tray"]],decls:1,vars:1,consts:[["class","bg-tasks-tray",4,"ngIf"],[1,"bg-tasks-tray"],[1,"bg-tasks-card"],[1,"bg-tasks-header"],[1,"bg-tasks-header-icon"],[1,"bg-tasks-title"],["class","bg-task",4,"ngFor","ngForOf","ngForTrackBy"],[1,"bg-task"],[1,"bg-task-row"],[1,"bg-task-status-icon"],[1,"bg-task-body"],[1,"bg-task-label"],[1,"bg-task-sub"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","",1,"bg-task-dismiss",3,"click","matTooltip"],[3,"mode","value",4,"ngIf"],[4,"ngIf"],[3,"mode","value"]],template:function(e,o){e&1&&ey$1(0,s0,9,5,"div",0),e&2&&dy("ngIf",o.svc.hasTasks());},dependencies:[Xv,Yv,OM,Gd$2,kM,FM,us,ms,Vs$1,Fi$2,Kd,on,tE,eE,Tt$2,mt$4],styles:[".bg-tasks-tray[_ngcontent-%COMP%]{position:fixed;bottom:24px;inset-inline-start:24px;z-index:1200;max-width:340px;width:calc(100vw - 48px);pointer-events:none}.bg-tasks-card[_ngcontent-%COMP%]{pointer-events:auto;background:var(--mat-sys-surface, #fff);border:1px solid rgba(0,0,0,.08);border-radius:12px;box-shadow:0 8px 24px #00000029;overflow:hidden}.bg-tasks-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:10px 14px;font-weight:600;border-bottom:1px solid rgba(0,0,0,.06)}.bg-tasks-header-icon[_ngcontent-%COMP%]{color:#13deb9}.bg-tasks-title[_ngcontent-%COMP%]{font-size:14px}.bg-task[_ngcontent-%COMP%]{padding:10px 14px;border-bottom:1px solid rgba(0,0,0,.04)}.bg-task[_ngcontent-%COMP%]:last-child{border-bottom:none}.bg-task-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.bg-task-status-icon[_ngcontent-%COMP%]{color:#5d87ff}.bg-task-status-icon.done[_ngcontent-%COMP%]{color:#13deb9}.bg-task-status-icon.failed[_ngcontent-%COMP%]{color:#fa896b}.bg-task-body[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.bg-task-label[_ngcontent-%COMP%]{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bg-task-sub[_ngcontent-%COMP%]{font-size:12px;opacity:.7}.bg-task-dismiss[_ngcontent-%COMP%]{flex:0 0 auto}mat-progress-bar[_ngcontent-%COMP%]{margin-top:8px;border-radius:4px}"]});}}return i})();var Pc=(()=>{class i extends se$2{constructor(t,e,o){super(t,e,o,"DidYouKnowTip/");}getNextTip(){return this.get("GetNextTip")}static{this.\u0275fac=function(e){return new(e||i)(M$6(ED),M$6(vt$3),M$6(G$5))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var p0=["leftsidenav"],m0=["filterNavRight"],u0=["content"],f0=(i,n,t,e,o,a,d,p)=>({"sidebarNav-mini":i,"sidebarNav-opened":n,sociallab_theme:t,orange_theme:e,aqua_theme:o,purple_theme:a,green_theme:d,cyan_theme:p}),h0=()=>["/apps/client-health"],g0=i=>({maxWidth:i}),_0=()=>["/dashboard"],C0=()=>["Read_Messages"],v0=()=>["Read_Files"],b0=()=>[],x0=()=>["/authentication/login"],M0=i=>[i],y0=()=>["/apps/messages"],S0=()=>["/apps/files-manager"],w0=(i,n)=>n.id;function T0(i,n){i&1&&fy(0,"span",45);}function P0(i,n){if(i&1){let t=i_$1();Js$2(0,"button",43),pS(1,"translate"),Ey("click",function(){Vp$2(t);let o=d_$1().$implicit,a=d_$1(2);return Hp$2(a.selectTab(o.id))}),Js$2(2,"mat-icon"),H_$1(3),gd$2(),Js$2(4,"span",44),H_$1(5),pS(6,"translate"),gd$2(),ZT(7,T0,1,0,"span",45),gd$2();}if(i&2){let t=d_$1().$implicit,e=d_$1(2);xy("active",e.activeTab===t.id),dy("matTooltip",gS$1(1,7,t.label)),ly("aria-selected",e.activeTab===t.id),SC(3),jy(t.icon),SC(2),jy(gS$1(6,9,t.label)),SC(2),YT(e.tabHighlight[t.id]?7:-1);}}function k0(i,n){if(i&1&&ZT(0,P0,8,11,"button",42),i&2){let t=n.$implicit,e=d_$1(2);YT(e.navItemsByTab[t.id].length?0:-1);}}function E0(i,n){if(i&1&&(Js$2(0,"div",13),XT(1,k0,1,1,null,null,w0),gd$2()),i&2){let t=d_$1();SC(),JT(t.menuTabs);}}function I0(i,n){if(i&1){let t=i_$1();Js$2(0,"app-nav-item",47),Ey("notify",function(){Vp$2(t);let o=d_$1(2);
11067return Hp$2(o.sidenav.toggle())}),gd$2();}if(i&2){let t=d_$1().$implicit;dy("item",t);}}function O0(i,n){if(i&1&&ey$1(0,I0,1,1,"app-nav-item",46),i&2){let t=n.$implicit;dy("ngxPermissionsOnly",t.permissions??nS(1,b0));}}function A0(i,n){if(i&1&&(Js$2(0,"div",20)(1,"div",48),fy(2,"img",49),Js$2(3,"div",50)(4,"span",51),H_$1(5),gd$2(),Js$2(6,"span",52),H_$1(7),gd$2()(),Js$2(8,"a",53)(9,"mat-icon"),H_$1(10,"power_settings_new"),gd$2()()()()),i&2){let t=d_$1();SC(2),dy("src",t.getUserProfileImg(t.user.profilePicPath),zg$1),SC(3),jy(t.user.name),SC(2),jy(t.user.phoneNumber),SC(),dy("routerLink",nS(4,x0));}}function D0(i,n){if(i&1&&fy(0,"img",56),i&2){let t=d_$1().$implicit;dy("src","/assets/images/icons/"+t.icon+".png",zg$1)("alt",t.title);}}function F0(i,n){if(i&1&&(Js$2(0,"mat-icon",57),H_$1(1),gd$2()),i&2){let t=d_$1().$implicit;SC(),jy(t.icon);}}function B0(i,n){if(i&1){let t=i_$1();Js$2(0,"div",38)(1,"a",54),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.onAppDrawerLinkClick())}),Js$2(2,"div",55),ZT(3,D0,1,2,"img",56)(4,F0,2,1,"mat-icon",57),gd$2(),Js$2(5,"span",58),H_$1(6),pS(7,"translate"),gd$2()()();}if(i&2){let t=n.$implicit;SC(),dy("routerLink",rS(5,M0,t.link)),SC(2),YT(t.icon=="salla"||t.icon=="zid"||t.icon=="whatsapp"||t.icon=="instagram"||t.icon=="tiktok"||t.icon=="messenger"?3:4),SC(3),jy(gS$1(7,3,t.title));}}function N0(i,n){if(i&1){let t=i_$1();Js$2(0,"a",59),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.onAppDrawerLinkClick())}),Js$2(1,"span",60),H_$1(2),pS(3,"translate"),gd$2()();}i&2&&(dy("routerLink",nS(4,y0)),SC(2),jy(gS$1(3,2,"Messages")));}function R0(i,n){if(i&1){let t=i_$1();Js$2(0,"a",61),Ey("click",function(){Vp$2(t);let o=d_$1();return Hp$2(o.onAppDrawerLinkClick())}),Js$2(1,"span",60),H_$1(2),pS(3,"translate"),gd$2()();}i&2&&(dy("routerLink",nS(4,S0)),SC(2),jy(gS$1(3,2,"Files")));}var L0="screen and (max-width: 768px)",kc="screen and (min-width: 769px) and (max-width: 1024px)",Ec="screen and (min-width: 1024px)",Ta="screen and (max-width: 1023px)",Ic=(()=>{class i{get isOver(){return this.isMobileScreen}get isTablet(){return this.resView}getIsSidebarOpened(){return this.sidenav?this.sidenav.opened:this.options.sidenavOpened&&!this.isOver&&!this.resView}trackItem(t,e){return e.id}static{this.ACTIVE_TAB_STORAGE_KEY="sl_sidebar_tab";}constructor(t,e$1,o,a,d,p,h,g,P,k$1,R,F,I,B,et,zt,$t,Qt,Wt,Mi,Ce){this.settings=t,this.router=e$1,this.breakpointObserver=o,this.authService=a,this.signalRService=d,this.cdr=p,this.dialog=h,this.translate=g,this.clientsService=P,this.appInitService=k$1,this.httpOptions=R,this.http=F,this.renderer=I,this.didYouKnowService=B,this.migrationCampaignService=et,this.menuPrefService=zt,this.dialogConfigService=$t,this.presenceService=Qt,this.aiActionCountService=Wt,this.featureGate=Mi,this.tikTokCommentsCountService=Ce,this.resView=false,this.options=this.settings.getOptions(),this.layoutChangesSubscription=W$4.EMPTY,this.settingsSubscription=W$4.EMPTY,this.subscriptionCheckSubscription=W$4.EMPTY,this.accountStateChangedSub=W$4.EMPTY,this.connectionStatusSub=W$4.EMPTY,this.aiActionCountSub=W$4.EMPTY,this.tikTokCommentsCountSub=W$4.EMPTY,this.featureGateSub=new W$4,this.aiActionCount=0,this.tikTokCommentsAwaitingReply=0,this.permissionOnlyItems=[],this.permissionFilteredItems=[],this.allowedFeatures=new Set,this.subscriptionCheckInterval=null,this.isMobileScreen=false,this.isContentWidthFixed=true,this.isCollapsedWidthFixed=false,this.isMessageRoute=false,this.connectionStatus="Disconnected",this.isSidebarOpened=false,this.navItemsData=[],this.menuTabs=Fo,this.activeTab=Bo,this.tabsEnabled=false,this.navItemsByTab={operate:[],manage:[]},this.tabHighlight={operate:false,manage:false},this.viewReady=false,this.widgetScriptEl=null,this.widgetLoading=false,this.widgetConfigListener=()=>this.reloadChatWidget(),this.menuPrefChangedListener=null,this.modeChangedListener=null,this.SHOW_AI_ACTION_CHIP=false,this.htmlElement=document.querySelector("html"),this.layoutChangesSubscription=this.breakpointObserver.observe([L0,kc,Ec,Ta]).subscribe($=>{this.options.sidenavOpened=true,this.isMobileScreen=$.breakpoints[Ta],this.options.sidenavCollapsed==false&&(this.options.sidenavCollapsed=$.breakpoints[kc]),this.isContentWidthFixed=$.breakpoints[Ec],this.resView=$.breakpoints[Ta];}),this.receiveOptions(this.options),this.isSidebarOpened=this.options.sidenavOpened&&!this.isOver&&!this.resView,this.router.events.pipe(Yt$5($=>$ instanceof k$3)).subscribe($=>{this.content.scrollTo({top:0}),this.isMessageRoute=$.urlAfterRedirects.includes("/apps/messages"),this.updateChatWidgetVisibility(),this.syncTabToUrl($.urlAfterRedirects);}),this.activeTab=this.readStoredTab();let jt=this.authService.getPermissions();this.permissionOnlyItems=k.filter($=>$.displayName&&($.permissions?.length===0||$.permissions?.some(yi=>jt.includes(yi))));let ae=_$3(this.permissionOnlyItems,this.allowedFeatures);this.permissionFilteredItems=ae,this.navItemsData=this.buildNavItems(ae),this.syncTabToUrl(this.router.url);for(let $ of f$4(this.permissionOnlyItems))this.featureGateSub.add(this.featureGate.canUse($).subscribe(yi=>{yi&&(this.allowedFeatures.add($),this.permissionFilteredItems=_$3(this.permissionOnlyItems,this.allowedFeatures),this.navItemsData=this.buildNavItems(this.permissionFilteredItems),this.syncTabToUrl(this.router.url),this.viewReady&&this.cdr.detectChanges());}));this.aiActionCountService.loadOnce(),this.aiActionCountSub=this.aiActionCountService.count$.subscribe($=>{this.aiActionCount=$,this.navItemsData=this.buildNavItems(this.permissionFilteredItems),this.viewReady&&this.cdr.detectChanges();}),this.tikTokCommentsCountService.loadOnce(),this.tikTokCommentsCountSub=this.tikTokCommentsCountService.count$.subscribe($=>{$!==this.tikTokCommentsAwaitingReply&&(this.tikTokCommentsAwaitingReply=$,this.navItemsData=this.buildNavItems(this.permissionFilteredItems),this.viewReady&&this.cdr.detectChanges());}),this.filteredApps=e.allApps.filter($=>!$.permission||jt.includes($.permission)),this.modeChangedListener=()=>{this.navItemsData=this.buildNavItems(this.permissionFilteredItems),this.syncTabToUrl(this.router.url),this.cdr.detectChanges();},window.addEventListener("app-mode-changed",this.modeChangedListener),this.connectionStatusSub=this.signalRService.connectionStatus.subscribe($=>
11067this.connectionStatus=$),this.settingsSubscription=this.settings.notify.subscribe($=>{$&&typeof $=="object"&&(this.options=D$6(D$6({},this.options),$),this.applyTheme(this.options));}),this.menuPrefChangedListener=()=>this.reloadMenuPreferences(this.permissionFilteredItems),window.addEventListener("menu-preferences-changed",this.menuPrefChangedListener);}buildNavItems(t){if(this.settings.getMode()==="easy")return this.tabsEnabled=false,this.navItemsByTab={operate:[],manage:[]},this.tabHighlight={operate:false,manage:false},this.withTikTokCommentsBadge(this.withAiActionBadge(h$2(t,"easy")));let e=this.withTikTokCommentsBadge(this.withAiActionBadge(this.applyMenuPreferences(t)));this.navItemsByTab=xc(e),this.tabHighlight={operate:this.hasHighlight(this.navItemsByTab.operate),manage:this.hasHighlight(this.navItemsByTab.manage)};let o=this.menuTabs.filter(a=>this.navItemsByTab[a.id].length);return this.tabsEnabled=o.length>1,this.tabsEnabled?(this.navItemsByTab[this.activeTab].length||(this.activeTab=o[0].id),this.navItemsByTab[this.activeTab]):[...this.navItemsByTab.operate,...this.navItemsByTab.manage]}hasHighlight(t){return t.some(e=>!!e.route&&(e.isNew||e.chip))}selectTab(t){this.activeTab!==t&&(this.activeTab=t,this.navItemsData=this.navItemsByTab[t],this.storeTab(t),this.cdr.detectChanges());}syncTabToUrl(t){if(!this.tabsEnabled)return;let e=Mc(t,this.navItemsByTab);!e||e===this.activeTab||(this.activeTab=e,this.navItemsData=this.navItemsByTab[e],this.storeTab(e),this.viewReady&&this.cdr.detectChanges());}readStoredTab(){try{let t=localStorage.getItem(i.ACTIVE_TAB_STORAGE_KEY);return bc(t)?t:Bo}catch(t){return Bo}}storeTab(t){try{localStorage.setItem(i.ACTIVE_TAB_STORAGE_KEY,t);}catch(e){}}withAiActionBadge(t){return !this.SHOW_AI_ACTION_CHIP||this.aiActionCount<=0?t:t.map(e=>e.route==="/apps/ai"?E$7(D$6({},e),{chip:true,chipContent:this.aiActionCount>9?"9+":String(this.aiActionCount),chipClass:"bg-light-error text-error"}):e)}withTikTokCommentsBadge(t){let e=this.tikTokCommentsAwaitingReply;return e<=0?t:t.map(o=>o.route==="/apps/tiktok"?E$7(D$6({},o),{chip:true,chipContent:e>99?"99+":String(e),chipClass:"bg-light-error text-error"}):o)}applyMenuPreferences(t){let e=this.menuPrefService.getCached();if(!e||!e.menuItems||e.menuItems.length===0)return t;let o=e.menuItems,a=new Map;for(let h of t)h.route&&a.set(h.route,h);let d=[];for(let h of o){let g=a.get(h);g&&d.push(g);}for(let h=0;h<S$3.length;h++){let g=S$3[h];if(d.find(R=>R.route===g))continue;let P=a.get(g);if(!P)continue;let k=0;for(let R=h-1;R>=0;R--){let F=d.findIndex(I=>I.route===S$3[R]);if(F!==-1){k=F+1;break}}d.splice(k,0,P);}for(let h of t)h.isNew&&h.route&&!d.find(g=>g.route===h.route)&&d.push(h);if(this.authService.getPermissions().includes("Read_Clients")){for(let h of w$2)if(!d.find(g=>g.route===h)){let g=a.get(h);g&&d.unshift(g);}}return d}reloadMenuPreferences(t){this.navItemsData=this.buildNavItems(t),this.syncTabToUrl(this.router.url),this.cdr.detectChanges();}reconnect(){this.signalRService.restartConnection();}ngOnInit(){return L$7(this,null,function*(){var t=this.authService.getUser();t&&(this.user=t),this.menuPrefService.getFromApi().subscribe({next:e=>{e.succeeded&&e.data&&window.dispatchEvent(new CustomEvent("menu-preferences-changed"));}}),this.appInitService.loadAppInit().subscribe({next:e=>{e.succeeded&&e.data?.clientStatus&&(e.data.clientStatus.hasActiveSubscribtion||this.showSubscriptionReminderDialog());}}),this.subscriptionCheckInterval=setInterval(()=>{this.checkSubscriptionStatus();},3e5),this.isMessageRoute=this.router.url.includes("/apps/messages"),this.isMessageRoute||this.loadChatWidget(),window.addEventListener("sociallab-widget-config-saved",this.widgetConfigListener),this.accountStateChangedSub=this.signalRService.accountStateChanged$.subscribe(()=>{this.appInitService.loadAppInit().subscribe(),this.authService.refreshFromServer();}),this.checkDidYouKnowTip(),this.checkMigrationOffer();})}checkMigrationOffer(){this.migrationCampaignService.getMyOffer().subscribe({next:t=>{t?.showModal&&setTimeout(()=>{if(this.dialog.openDialogs.length>0)return;let e=this.dialogConfigService.getDefaultDialogConfig();this.dialog.open(Do,E$7(D$6({}
11067,e),{width:"600px",autoFocus:false,data:t}));},1200);},error:()=>{}});}checkDidYouKnowTip(){let t=new Date().toISOString().slice(0,10);localStorage.getItem("lastTipDate")!==t&&this.didYouKnowService.getNextTip().subscribe({next:e=>{!e.succeeded||!e.data||(localStorage.setItem("lastTipDate",t),setTimeout(()=>{if(this.dialog.openDialogs.length>0)return;let o=this.dialogConfigService.getDefaultDialogConfig();this.dialog.open(_c,E$7(D$6({},o),{width:"440px",disableClose:true,autoFocus:false,data:{title:e.data.title,linkUrl:e.data.linkUrl}})).afterClosed().subscribe(d=>{d?.action==="go"&&d.linkUrl&&(d.linkUrl.startsWith("http")?window.open(d.linkUrl,"_blank"):this.router.navigate([d.linkUrl]));});},2e3));}});}ngAfterViewInit(){this.viewReady=true,this.sidenav&&(this.isSidebarOpened=this.sidenav.opened,this.cdr.detectChanges());}ngOnDestroy(){this.layoutChangesSubscription.unsubscribe(),this.settingsSubscription.unsubscribe(),this.subscriptionCheckSubscription.unsubscribe(),this.accountStateChangedSub.unsubscribe(),this.connectionStatusSub.unsubscribe(),this.aiActionCountSub.unsubscribe(),this.tikTokCommentsCountSub.unsubscribe(),this.featureGateSub.unsubscribe(),this.subscriptionCheckInterval&&clearInterval(this.subscriptionCheckInterval),this.removeChatWidget(),document.getElementById("sl-widget-hide-style")?.remove(),window.removeEventListener("sociallab-widget-config-saved",this.widgetConfigListener),this.menuPrefChangedListener&&window.removeEventListener("menu-preferences-changed",this.menuPrefChangedListener),this.modeChangedListener&&window.removeEventListener("app-mode-changed",this.modeChangedListener);}startSubscriptionCheck(){this.checkSubscriptionStatus(),this.subscriptionCheckInterval=setInterval(()=>{this.checkSubscriptionStatus();},3e5);}checkSubscriptionStatus(){let t=this.authService.getUser();!t||!t.clientId||(this.subscriptionCheckSubscription=this.clientsService.getClientStatus(t.clientId,null,null).subscribe({next:e=>{e?.succeeded&&e?.data&&Array.isArray(e.data)&&e.data.length>0&&(e.data[0].hasActiveSubscribtion||this.showSubscriptionReminderDialog());},error:e=>{console.debug("Subscription check failed:",e);}}));}reloadChatWidget(){this.removeChatWidget(),this.loadChatWidget();}loadChatWidget(){if(this.widgetLoading||this.widgetScriptEl)return;this.widgetLoading=true;let t=document.getElementById("sociallab-widget-container");t&&t.remove(),document.querySelectorAll('script[src*="WidgetJs"]').forEach(o=>o.remove());let e=ee$1.serverBaseUrlNoAPI;this.http.get(`${ee$1.serverBaseUrl}ChatWidget/PublicWidgetKey`,this.httpOptions.getHttpOptions()).subscribe({next:o=>{if(this.widgetLoading=false,o?.succeeded&&o.data?.clientKey){let a=this.renderer.createElement("script");a.src=`${e}api/ChatWidget/WidgetJs?key=${encodeURIComponent(o.data.clientKey)}&isPublic=true`,a.async=true,a.onerror=()=>{this.widgetScriptEl=null;},this.widgetScriptEl=a,this.renderer.appendChild(document.body,a);}},error:()=>{this.widgetLoading=false;}});}removeChatWidget(){let t=document.getElementById("sociallab-chat-widget");t?.contentWindow&&t.contentWindow.postMessage("sociallab-widget-clear-session","*"),this.widgetScriptEl&&(this.renderer.removeChild(document.body,this.widgetScriptEl),this.widgetScriptEl=null);let e=document.getElementById("sociallab-widget-container");e&&e.remove(),t&&t.remove();}updateChatWidgetVisibility(){let t="sl-widget-hide-style",e=document.getElementById(t);this.isMessageRoute?e||(e=document.createElement("style"),e.id=t,e.textContent="#sociallab-widget-container { display: none !important; }",document.head.appendChild(e)):(e&&e.remove(),this.widgetScriptEl||this.loadChatWidget());}showSubscriptionReminderDialog(){if(this.dialog.openDialogs.length>0)return;this.dialog.open(Ft,{data:{title:this.translate.instant("Subscription Reminder"),message:this.translate.instant("You do not have an active subscription. Please renew your subscription to continue using all features."),confirmText:this.translate.instant("View Subscriptions"),cancelText:this.translate.instant("Close"),confirmColor:"primary",cancelColor:"primary",showDefaultMessage:false},width:"400px",disableClose:false}).afterClosed().subscribe(e=>{e&&this.router.navigate(["/apps/subscriptions"]);});}toggleCollapsed(){this.isContentWidthFixed=false,this.options.sidenavCollapsed=!this.options.sidenavCollapsed,this.sidenav&&(this.isSidebarOpened=this.sidenav.opened,this.cdr.detectChanges()),this.resetCollapsedState();}resetCollapsedState(t=10){setTimeout(()=>this.settings.setOptions(this.options),t);}onSidenavClosedStart(){this.isContentWidthFixed=false;}onSidenavOpenedChange(t){this.isCollapsedWidthFixed=!this.isOver,this.options.sidenavOpened=t,this.isSidebarOpened=t,this.settings.setOptions(this.options),this.cdr.detectChanges();}receiveOptions(t){this.options=t,this.applyTheme(t);}applyTheme(t){this.htmlElement.classList.remove("dark-theme"),this.htmlElement.classList.add("light-theme");let e=["sociallab_theme","orange_theme","aqua_theme","purple_theme","green_theme","cyan_theme"];e.forEach(o=>{this.htmlElement.classList.remove(o);}),t.activeTheme&&e.includes(t.activeTheme)&&this.htmlElement.classList.add(t.activeTheme),t.liquidGlassUI?this.htmlElement.classList.add("liquid-glass-theme"):this.htmlElement.classList.remove("liquid-glass-theme");}getUserProfileImg(t){return this.authService.getProfilePath(t)}onAppDrawerLinkClick(){window.innerWidth<1024&&this.filterNavRight.close();}static{this.\u0275fac=function(e){return new(e||i)(V$3(d$6),V$3(G$5),V$3(Zt$3),V$3(Us$1),V$3(Ct$2),V$3(Od$2),V$3(vr$1),V$3(O$5),V$3(b$1),V$3(d$3),V$3(vt$3),V$3(ED),V$3(qo$1),V$3(Pc),V$3(j$1),V$3(A$4),V$3(f$5),V$3(Ke$1),V$3(S$4),V$3(j),V$3(y$2))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-full"]],viewQuery:function(e,o){if(e&1&&by(p0,5)(m0,5)(u0,7),e&2){let a;m_$1(a=y_$1())&&(o.sidenav=a.first),m_$1(a=y_$1())&&(o.filterNavRight=a.first),m_$1(a=y_$1())&&(o.content=a.first);}},decls:73,vars:42,consts:[["leftsidenav",""],["content",""],["customizerRight",""],["filterNavRight",""],[3,"dir"],["autosize","","autoF
11067ocus","",1,"mainWrapper","w-100",3,"ngClass"],["position","start",1,"sidebarNav",3,"openedChange","closedStart","mode","opened"],[1,"flex-layout"],[3,"toggleMobileNav","showToggle"],[1,"p-8","b-b-1","guide-list-button-wrapper"],["mat-stroked-button","","color","primary",1,"w-100","guide-list-button",3,"routerLink"],[1,"m-r-4","icon-14"],[1,"f-s-12"],["role","tablist",1,"sidebar-tabs"],[1,"position-relative",2,"height","100%"],[1,"sidebar-list"],[3,"item"],[1,"customize-menu-link",2,"padding","4px 10px","flex-shrink","0"],["mat-button","","routerLink","/apps/settings/customize-menu",1,"w-100","customize-menu-btn"],[1,"icon-14"],[1,"profile-bar",2,"padding","6px 10px 8px","flex-shrink","0"],[1,"contentWrapper"],[3,"toggleCollapsed","toggleMobileNav","toggleMobileFilterNav","toggleCustomizer","showToggle","isSidebarOpened","isTablet"],["id","main-content",1,"pageWrapper","page-content",3,"ngClass"],["mode","over","position","end"],[1,"p-x-16","p-y-20","d-flex","align-items-center","justify-content-between"],[1,"mat-subtitle-1","f-s-21","f-w-600"],["mat-icon-button","","aria-label","close",3,"click"],[3,"optionsChange"],["mode","over","position","end",1,"filter-sidebar",2,"overflow-x","hidden"],[1,"d-flex","justify-content-between","align-items-center"],[1,"branding"],[3,"routerLink"],["src","./assets/images/logos/newLogo.png","alt","logo",1,"align-middle","m-2",2,"max-width","200px"],[1,"icon-18","d-flex"],[1,"shadow-none"],[1,"f-s-16","f-w-500"],[1,"apps-menu-container"],[1,"app-menu-item"],[1,"p-x-24"],["class","d-flex align-items-center text-decoration-none mat-body-1 p-y-16",3,"routerLink","click",4,"ngxPermissionsOnly"],["class","d-flex align-items-center text-decoration-none mat-body-1 p-y-16 gap-8",3,"routerLink","click",4,"ngxPermissionsOnly"],["type","button","role","tab","matTooltipPosition","right",1,"sidebar-tab",3,"active","matTooltip"],["type","button","role","tab","matTooltipPosition","right",1,"sidebar-tab",3,"click","matTooltip"],[1,"hide-menu"],[1,"sidebar-tab-dot"],[3,"item","notify",4,"ngxPermissionsOnly"],[3,"notify","item"],[1,"glass-profile-card"],["routerLink","/apps/users/account-settings","alt","",1,"profile-avatar",3,"src"],[1,"profile-info"],[1,"profile-name"],[1,"profile-phone"],["mat-icon-button","","aria-label","power settings new",1,"profile-logout",3,"routerLink"],[1,"app-menu-link",3,"click","routerLink"],[1,"app-icon-wrapper"],["alt","",1,"app-icon-img",3,"src","alt"],[1,"app-icon"],[1,"app-title"],[1,"d-flex","align-items-center","text-decoration-none","mat-body-1","p-y-16",3,"click","routerLink"],[1,"f-s-15","f-w-500","m-l-8"],[1,"d-flex","align-items-center","text-decoration-none","mat-body-1","p-y-16","gap-8",3,"click","routerLink"]],template:function(e,o){if(e&1){let a=i_$1();Js$2(0,"span",4)(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,0),Ey("openedChange",function(p){return o.onSidenavOpenedChange(p)})("closedStart",function(){return o.onSidenavClosedStart()}),Js$2(4,"div",7)(5,"app-sidebar",8),Ey("toggleMobileNav",function(){return o.sidenav.toggle()}),gd$2(),Js$2(6,"div",9)(7,"a",10)(8,"mat-icon",11),H_$1(9,"vital_signs"),gd$2(),Js$2(10,"span",12),H_$1(11),pS(12,"translate"),gd$2()()(),ZT(13,E0,3,0,"div",13),Js$2(14,"ng-scrollbar",14)(15,"mat-nav-list",15),XT(16,O0,1,2,"app-nav-item",16,KT),gd$2()(),Js$2(18,"div",17)(19,"a",18)(20,"mat-icon",19),H_$1(21,"edit_note"),gd$2(),Js$2(22,"span",12),H_$1(23),pS(24,"translate"),gd$2()()(),ZT(25,A0,11,5,"div",20),gd$2()(),Js$2(26,"mat-sidenav-content",21,1)(28,"app-header",22),Ey("toggleCollapsed",function(){return o.toggleCollapsed()})("toggleMobileNav",function(){return o.sidenav.toggle()})("toggleMobileFilterNav",function(){Vp$2(a);let p=D_$1(48);return Hp$2(p.toggle())})("toggleCustomizer",function(){Vp$2(a);let p=D_$1(37);return Hp$2(p.toggle())}),gd$2(),fy(29,"app-seat-limit-banner")(30,"app-unpaid-invoice-banner")(31,"app-migration-offer-banner"),Js$2(32,"main",23),fy(33,"app-breadcrumb")(34,"router-outlet")(35,"app-scroll-to-top"),gd$2()(),Js$2(36,"mat-sidenav",24,2)(38,"div",25)(39,"h3",26),H_$1(40),pS(41,"translate"),gd$2(),Js$2(42,"button",27),Ey("click",function(){Vp$2(a);let p=D_$1(37);return Hp$2(p.toggle())}),Js$2(43,"mat-icon"),H_$1(44,"close"),gd$2()()(),fy(45,"mat-divider"),Js$2(46,"app-customizer",28),Ey("optionsChange",function(p){return o.receiveOptions(p)}),gd$2()()(),Js$2(47,"mat-drawer",29,3)(49,"div")(50,"div",30)(51,"div",31)(52,"a",32),fy(53,"img",33),gd$2(),Js$2(54,"button",27),Ey("click",function(){Vp$2(a);let p=D_$1(48);return Hp$2(p.toggle())}),Js$2(55,"mat-icon",34),H_$1(56,"close"),gd$2()()()(),Js$2(57,"mat-accordion")(58,"mat-expansion-panel",35)(59,"mat-expansion-panel-header")(60,"mat-panel-title",36),H_$1(61),pS(62,"translate"),gd$2()(),Js$2(63,"div",37),XT(64,B0,8,7,"div",38,KT),gd$2()()(),Js$2(66,"div",39),ey$1(67,N0,4,5,"a",40)(68,R0,4,5,"a",41),gd$2()()(),fy(69,"app-mobile-app-promotion")(70,"app-spotlight-tour")(71,"app-command-palette")(72,"app-background-tasks-tray"),gd$2();}e&2&&(dy("dir",o.options.dir),SC(),dy("ngClass",lS(27,f0,o.options.sidenavCollapsed&&o.options.navPos!=="top"&&!o.resView,o.options.sidenavOpened&&!o.isOver&&!o.resView,o.options.activeTheme=="sociallab_theme",o.options.activeTheme=="orange_theme",o.options.activeTheme=="aqua_theme",o.options.activeTheme=="purple_theme",o.options.activeTheme=="green_theme",o.options.activeTheme=="cyan_theme")),SC(),dy("mode",o.isOver?"over":"side")("opened",o.options.navPos==="side"&&o.options.sidenavOpened&&!o.isOver&&!o.resView),SC(3),dy("showToggle",o.isOver),SC(2),dy("routerLink",nS(36,h0)),SC(4),jy(gS$1(12,19,"Health Status")),SC(2),YT(o.tabsEnabled?13:-1),SC(3),JT(o.navItemsData),SC(7),jy(gS$1(24,21,"Customize Menu")),SC(2),YT(o.user?25:-1),SC(3),dy("showToggle",!o.isOver)("isSidebarOpened",o.isSidebarOpened)("isTablet",o.isTablet),SC(4),dy("ngClass",rS(37,g0,o.options.boxed)),SC(8),Ed$2(" ",gS$1(41,23,"Settings")," "),SC(12),dy("routerLink",nS(39,_0)),SC(9),Ed$2(" ",gS$1(62,25,"Apps")," "),SC(3),JT(o.filteredApps),SC(3),dy("ngxPermissionsOnly",nS(40,C0)),SC(),dy("ngxPermissionsOnly",nS(41,v0
11067)));},dependencies:[ea$2,mr$1,ai$2,Kl,Xv,RM,Gl,Ke$3,Je$2,sc,lc,cc,pe$5,Pe$3,Tt$2,dc,pc,mc,fc,hc,gc,GC,co$2,Gr,Cu$1,jC,od$1,Lb,Vb,Wg,us,ms,Vs$1,zs$1,Fi$2,al$1,tM,eM,Hu$1,ju$1,JD,Kd,on,yc,Tc,mt$4],encapsulation:2,changeDetection:1});}}return i})();var Oc=[{canActivateChild:[d$4],path:"",component:Ic,children:[{path:"",redirectTo:"/landingpage",pathMatch:"full"},{path:"dashboard",loadChildren:()=>import('./chunk-SmHydpi8.js').then(i=>i.DashboardsRoutes)},{path:"apps",loadChildren:()=>import('./chunk-exGq3Fsx.js').then(function(n){return n.c}).then(i=>i.AppsRoutes)},{path:"admin",loadChildren:()=>import('./chunk-B6CEZmoP.js').then(i=>i.AdminRoutes)}]},{path:"",component:Wl,children:[{path:"authentication",loadChildren:()=>import('./chunk-B7lh-YK3.js').then(i=>i.AuthenticationRoutes)},{path:"landingpage",loadChildren:()=>import('./chunk-COwSAZY3.js').then(i=>i.LandingPageV5Routes)},{path:"",loadChildren:()=>import('./chunk-DfDN7eGA.js').then(i=>i.PublicPagesRoutes)}]},{path:"**",redirectTo:"authentication/error"}];var V0=["common","auth","messaging","templates","contacts","promotions","integrations","subscriptions","admin","ai","calendar","landingpage","guide","products","callcenter","points","channelhealth","platformstats","pagehelp","webhooks","lead-qualification","channelaccounts","tiktok","notifications","marketing-consent","email","telegram","customer-app","custom-plans","publishing"],Ac=(()=>{try{for(let i of Array.from(document.querySelectorAll("script[src]"))){let n=/\/main[.-]([A-Za-z0-9]{6,})\.js/.exec(i.src)?.[1];if(n)return n}}catch(i){}return ""})(),Pa=class{constructor(n){this.http=n;}getTranslation(n){let t=Ac?`?v=${Ac}`:"";return zD(V0.map(e=>this.http.get(`/assets/i18n/${n}/${e}.json${t}`).pipe(uc$1(()=>ki$3({}))))).pipe(ve$4(e=>Object.assign({},...e)))}},Dc={providers:[Ct$2,rT(()=>(g$4(Ct$2).startConnection(),Promise.resolve())),EU({eventCoalescing:true}),jl(),Jo$1(Oc,vi$1(),gi$2(Zo$1),Xo$1({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"})),BN(HN(),VN()),Sp$2(Ng,zg,Ke$3,pe$5.forRoot(),Tt$2.forRoot({fallbackLang:"ar",loader:{provide:b$3,useFactory:i=>new Pa(i),deps:[ED]}})),Lf(),{provide:Tl$1,useValue:{appearance:"outline"}},ut$2,{provide:gt$1,useExisting:U$1}]};var Fc=(()=>{class i{static{this.CHUNK_RELOAD_KEY="chunk-reload-ts";}constructor(t,e){this.errorDialogService=t,this.zone=e;}handleError(t){let e=t?.rejection||t;if(!(t?.name==="NotSupportedError"||t?.message?.includes("Failed to load because no supported source was found")||t?.message?.includes("NotSupportedError"))){if(this.isChunkLoadError(e))try{let o=Number(sessionStorage.getItem(i.CHUNK_RELOAD_KEY)||0);if(Date.now()-o>1e4){sessionStorage.setItem(i.CHUNK_RELOAD_KEY,String(Date.now())),location.reload();return}}catch(o){location.reload();return}console.error("Error from global error handler1",t),t instanceof _t$5||(t=t?.rejection||t),this.zone.run(()=>this.errorDialogService.openDialog(t?.message||"Undefined client error",t?.status)),console.error("Error from global error handler",t);}}isChunkLoadError(t){let e=t?.name??"",o=t?.message??"";return e==="ChunkLoadError"||/Loading chunk \d+ failed/i.test(o)||/Failed to fetch dynamically imported module/i.test(o)||/error loading dynamically imported module/i.test(o)||/Importing a module script failed/i.test(o)}static{this.\u0275fac=function(e){return new(e||i)(M$6(Gt),M$6(q$3))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac});}}return i})();var z0=["loading"];function j0(i,n){i&1&&gy(0);}function U0(i,n){if(i&1&&ey$1(0,j0,1,0,"ng-container",2),i&2){let t=d_$1(2);dy("ngTemplateOutlet",t.customLoadingIndicator);}}function $0(i,n){i&1&&(Js$2(0,"div",1)(1,"div",3),fy(2,"img",4)(3,"div",5)(4,"div",6)(5,"div",7),gd$2(),Js$2(6,"div",8),H_$1(7),pS(8,"translate"),gd$2()()),i&2&&(SC(7),jy(gS$1(8,1,"Loading...")));}function W0(i,n){if(i&1&&(Js$2(0,"div",0),ZT(1,U0,1,1,"ng-container")(2,$0,9,3,"div",1),gd$2()),i&2){let t=d_$1();SC(),YT(t.customLoadingIndicator?1:2);}}var Bc=(()=>{class i{constructor(t,e){this.loadingService=t,this.router=e,this.destroy$=new ye$5,this.detectRouteTransitions=false,this.customLoadingIndicator=null,this.loading$=this.loadingService.loading$;}ngOnInit(){this.detectRouteTransitions&&this.router.events.pipe(Hf$1(this.destroy$),Uf$1(t=>{t instanceof yt$3?this.loadingService.loadingOn():t instanceof Rt$4&&this.loadingService.loadingOff();})).subscribe();}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete();}static{this.\u0275fac=function(e){return new(e||i)(V$3(P$2),V$3(G$5))};}static{this.\u0275cmp=Xb({type:i,selectors:[["loading-indicator"]],contentQueries:function(e,o,a){if(e&1&&Cy(a,z0,5),e&2){let d;m_$1(d=y_$1())&&(o.customLoadingIndicator=d.first);}},inputs:{detectRouteTransitions:"detectRouteTransitions"},decls:2,vars:3,consts:[[1,"spinner-container"],[1,"sociallab-loader"],[4,"ngTemplateOutlet"],[1,"loader-logo-container"],["src","./assets/images/logos/newLogo.png","alt","Social Lab",1,"loader-logo"],[1,"loader-ring"],[1,"loader-ring","loader-ring-2"],[1,"loader-pulse"],[1,"loader-text"]],template:function(e,o){e&1&&(ZT(0,W0,3,1,"div",0),pS(1,"async")),e&2&&YT(gS$1(1,1,o.loading$)?0:-1);},dependencies:[UI,LM,Tt$2,VM,mt$4],styles:['.spinner-container[_ngcontent-%COMP%]{position:fixed;height:100%;width:100%;display:flex;justify-content:center;align-items:center;top:0;left:0;background:#0006;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:2000}.sociallab-loader[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;position:relative}.loader-logo-container[_ngcontent-%COMP%]{position:relative;width:120px;height:120px;
11067display:flex;align-items:center;justify-content:center}.loader-logo[_ngcontent-%COMP%]{width:80px;height:80px;object-fit:contain;z-index:3;animation:_ngcontent-%COMP%_logo-pulse 2s ease-in-out infinite;filter:drop-shadow(0 4px 8px rgba(0,0,0,.2))}.loader-ring[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;border:3px solid transparent;border-top-color:var(--color-primary, #1f9d4d);border-right-color:var(--color-accent, #19e3c2);border-radius:50%;animation:_ngcontent-%COMP%_ring-rotate 1.5s linear infinite;z-index:1}.loader-ring-2[_ngcontent-%COMP%]{width:110%;height:110%;border-top-color:var(--color-accent, #19e3c2);border-right-color:var(--color-primary, #1f9d4d);animation:_ngcontent-%COMP%_ring-rotate 1.2s linear infinite reverse;opacity:.7}.loader-pulse[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;border-radius:50%;background:radial-gradient(circle,rgba(0,0,0,.1) 0%,rgba(0,0,0,.05) 50%,transparent 100%);animation:_ngcontent-%COMP%_pulse-ring 2s ease-in-out infinite;z-index:0}.loader-pulse[_ngcontent-%COMP%]:before{content:"";position:absolute;width:100%;height:100%;border-radius:50%;background:radial-gradient(circle,var(--color-primary, #1f9d4d) 0%,transparent 70%);opacity:.15;animation:_ngcontent-%COMP%_pulse-ring 2s ease-in-out infinite}.loader-text[_ngcontent-%COMP%]{color:#fff;font-size:var(--font-size-base);font-weight:500;letter-spacing:1px;text-transform:uppercase;animation:_ngcontent-%COMP%_text-fade 2s ease-in-out infinite;text-shadow:0 2px 4px rgba(0,0,0,.3)}@keyframes _ngcontent-%COMP%_ring-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_logo-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.9}}@keyframes _ngcontent-%COMP%_pulse-ring{0%,to{transform:scale(1);opacity:.6}50%{transform:scale(1.2);opacity:.3}}@keyframes _ngcontent-%COMP%_text-fade{0%,to{opacity:1}50%{opacity:.6}}.sociallab-loader[_ngcontent-%COMP%] .loader-ring[_ngcontent-%COMP%]{border-top-color:var(--color-primary, #1f9d4d);border-right-color:var(--color-accent, #19e3c2)}.sociallab-loader[_ngcontent-%COMP%] .loader-ring-2[_ngcontent-%COMP%]{border-top-color:var(--color-accent, #19e3c2);border-right-color:var(--color-primary, #1f9d4d)}.dark-theme[_ngcontent-%COMP%] .spinner-container[_ngcontent-%COMP%]{background:#0009}.dark-theme[_ngcontent-%COMP%] .loader-text[_ngcontent-%COMP%]{color:#ffffffe6}@media(max-width:768px){.loader-logo-container[_ngcontent-%COMP%]{width:100px;height:100px}.loader-logo[_ngcontent-%COMP%]{width:60px;height:60px}.loader-text[_ngcontent-%COMP%]{font-size:var(--font-size-sm)}}'],changeDetection:1});}}return i})();var q0=["remoteAudio"],Nc=(()=>{class i{constructor(t,e,o,a,d){this.sp=t,this.router=e,this.push=o,this.toast=a,this.translate=d,this.push.callForceEnded$.subscribe(p=>{let h=p||this.translate.instant("a colleague");this.toast.info(this.translate.instant("Your call was ended by {{name}}.",{name:h}));}),ih$1(()=>{this.sp.ringingIn()&&this.sp.setDockExpanded(true);}),ih$1(()=>{let p=this.sp.audioIssue();p&&(p==="Audio is back."||p==="Your voice is reaching the call again."?this.toast.success(p):this.toast.warning(p),this.sp.audioIssue.set(null));});}ngAfterViewInit(){this.sp.attachAudio(this.remoteAudioRef.nativeElement),this.sp.startIfEligible(),this.router.events.pipe(Yt$5(t=>t instanceof k$3)).subscribe(()=>this.sp.startIfEligible());}static{this.\u0275fac=function(e){return new(e||i)(V$3(Dd$1),V$3(G$5),V$3(Ct$2),V$3(ut$2),V$3(O$5))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-global-softphone"]],viewQuery:function(e,o){if(e&1&&by(q0,5),e&2){let a;m_$1(a=y_$1())&&(o.remoteAudioRef=a.first);}},decls:2,vars:0,consts:[["remoteAudio",""],["autoplay",""]],template:function(e,o){e&1&&py(0,"audio",1,0);},dependencies:[Xv],styles:["[_nghost-%COMP%] audio[_ngcontent-%COMP%]{display:none}"],changeDetection:1});}}return i})();var Rc=(()=>{class i{constructor(){}detectTimezone(){return Intl.DateTimeFormat().resolvedOptions().timeZone}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Lc=(()=>{class i{constructor(t){this.ngZone=t,this.CHECK_INTERVAL_MS=7200*1e3,this.INITIAL_DELAY_MS=30*1e3,this.initialFingerprint=null;}init(){this.ngZone.runOutsideAngular(()=>{this.fetchFingerprint().then(t=>{this.initialFingerprint=t,setTimeout(()=>this.checkVersion(),this.INITIAL_DELAY_MS),setInterval(()=>this.checkVersion(),this.CHECK_INTERVAL_MS);});});}fetchFingerprint(){return L$7(this,null,function*(){try{let t=yield fetch(`/index.html?_v=${Date.now()}`,{cache:"no-store",headers:{Accept:"text/html"}});if(!t.ok)return null;let e=yield t.text();return Array.from(e.matchAll(/<script[^>]+src="([^"]+)"/gi)).map(a=>a[1]).sort().join("|")||null}catch(t){return null}})}checkVersion(){return L$7(this,null,function*(){if(!this.initialFingerprint)return;let t=yield this.fetchFingerprint();t&&t!==this.initialFingerprint&&(console.log("[VersionCheck] New deployment detected. Reloading\u2026"),this.forceReload());})}forceReload(){let t=()=>location.reload();typeof caches<"u"?caches.keys().then(e=>Promise.all(e.map(o=>caches.delete(o)))).then(t,t):t();}static{this.\u0275fac=function(e){return new(e||i)(M$6(q$3))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Gi="https://sociallab.sa",G0={title:"Social Lab | \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 - \u0625\u062F\u0627\u0631\u0629 \u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0645\u0639 \u0627\u0644\u0639\u0645\u0644\u0627\u0621",description:"\u0633\u0648\u0634\u0644 \u0644\u0627\u0628 - \u0645\u0646\u0635\u0629 \u0645\u062A\u0643\u0627\u0645\u0644\u0629 \u0644\u0625\u062F\u0627\u0631\u0629 \u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0645\u0639 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0639\u0628\u0631 \u0648\u0627\u062A\u0633\u0627\u0628\u060C \u0627\u0646\u0633\u062A\u0642\u0631\u0627\u0645 \u0648\u062A\u064A\u0643 \u062A\u0648\u0643. \u
110670631\u062F\u0648\u062F \u0641\u0648\u0631\u064A\u0629\u060C \u062D\u0645\u0644\u0627\u062A \u062A\u0633\u0648\u064A\u0642\u064A\u0629\u060C \u062A\u0642\u0627\u0631\u064A\u0631 \u062F\u0642\u064A\u0642\u0629\u060C \u0648\u0625\u062F\u0627\u0631\u0629 \u0627\u0644\u0637\u0644\u0628\u0627\u062A."},ka={"/landingpage":{title:"Social Lab | \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 - \u0645\u0646\u0635\u0629 \u0625\u062F\u0627\u0631\u0629 \u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0645\u0639 \u0627\u0644\u0639\u0645\u0644\u0627\u0621",description:"\u0633\u0648\u0634\u0644 \u0644\u0627\u0628 - \u0645\u0646\u0635\u0629 \u0645\u062A\u0643\u0627\u0645\u0644\u0629 \u0644\u0625\u062F\u0627\u0631\u0629 \u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0645\u0639 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0639\u0628\u0631 \u0648\u0627\u062A\u0633\u0627\u0628\u060C \u0627\u0646\u0633\u062A\u0642\u0631\u0627\u0645 \u0648\u062A\u064A\u0643 \u062A\u0648\u0643. \u0631\u062F\u0648\u062F \u0641\u0648\u0631\u064A\u0629\u060C \u062D\u0645\u0644\u0627\u062A \u062A\u0633\u0648\u064A\u0642\u064A\u0629\u060C \u062A\u0642\u0627\u0631\u064A\u0631 \u062F\u0642\u064A\u0642\u0629\u060C \u0648\u0625\u062F\u0627\u0631\u0629 \u0627\u0644\u0637\u0644\u0628\u0627\u062A. \u0643\u0644 \u0645\u0627 \u062A\u062D\u062A\u0627\u062C\u0647 \u0644\u062A\u0646\u0645\u064A\u0629 \u0623\u0639\u0645\u0627\u0644\u0643 \u0641\u064A \u0645\u0643\u0627\u0646 \u0648\u0627\u062D\u062F."},"/authentication/login":{title:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 | Social Lab \u0633\u0648\u0634\u0644 \u0644\u0627\u0628",description:"\u0633\u062C\u0651\u0644 \u062F\u062E\u0648\u0644\u0643 \u0625\u0644\u0649 \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 \u0644\u0625\u062F\u0627\u0631\u0629 \u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0648\u0627\u0644\u062D\u0645\u0644\u0627\u062A \u0627\u0644\u062A\u0633\u0648\u064A\u0642\u064A\u0629 \u0639\u0628\u0631 \u0648\u0627\u062A\u0633\u0627\u0628 \u0648\u0627\u0646\u0633\u062A\u0642\u0631\u0627\u0645 \u0648\u062A\u064A\u0643 \u062A\u0648\u0643."},"/authentication/side-register":{title:"\u0625\u0646\u0634\u0627\u0621 \u062D\u0633\u0627\u0628 \u062C\u062F\u064A\u062F | Social Lab \u0633\u0648\u0634\u0644 \u0644\u0627\u0628",description:"\u0623\u0646\u0634\u0626 \u062D\u0633\u0627\u0628\u0643 \u0627\u0644\u0645\u062C\u0627\u0646\u064A \u0641\u064A \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 \u0648\u0627\u0628\u062F\u0623 \u0628\u0625\u062F\u0627\u0631\u0629 \u062A\u0648\u0627\u0635\u0644\u0643 \u0645\u0639 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0639\u0628\u0631 \u0648\u0627\u062A\u0633\u0627\u0628\u060C \u0627\u0646\u0633\u062A\u0642\u0631\u0627\u0645 \u0648\u062A\u064A\u0643 \u062A\u0648\u0643."},"/faq":{title:"\u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0634\u0627\u0626\u0639\u0629 | Social Lab \u0633\u0648\u0634\u0644 \u0644\u0627\u0628",description:"\u0625\u062C\u0627\u0628\u0627\u062A \u0639\u0644\u0649 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0634\u0627\u0626\u0639\u0629 \u062D\u0648\u0644 \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 - \u0643\u064A\u0641\u064A\u0629 \u0631\u0628\u0637 \u0648\u0627\u062A\u0633\u0627\u0628\u060C \u0625\u062F\u0627\u0631\u0629 \u0627\u0644\u062D\u0645\u0644\u0627\u062A\u060C \u0627\u0644\u0623\u0633\u0639\u0627\u0631\u060C \u0648\u0627\u0644\u0645\u0632\u064A\u062F."},"/help":{title:"\u0645\u0631\u0643\u0632 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 | Social Lab \u0633\u0648\u0634\u0644 \u0644\u0627\u0628",description:"\u0645\u0631\u0643\u0632 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 \u0648\u0627\u0644\u062F\u0639\u0645 \u0627\u0644\u0641\u0646\u064A \u0644\u0633\u0648\u0634\u0644 \u0644\u0627\u0628 - \u0623\u062F\u0644\u0629 \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645\u060C \u0627\u0644\u0634\u0631\u0648\u062D\u0627\u062A\u060C \u0648\u062D\u0644 \u0627\u0644\u0645\u0634\u0643\u0644\u0627\u062A."},"/privacy":{title:"\u0633\u064A\u0627\u0633\u0629 \u0627\u0644\u062E\u0635\u0648\u0635\u064A\u0629 | Social Lab \u0633\u0648\u0634\u0644 \u0644\u0627\u0628",description:"\u0633\u064A\u0627\u0633\u0629 \u0627\u0644\u062E\u0635\u0648\u0635\u064A\u0629 \u0644\u0645\u0646\u0635\u0629 \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 - \u0643\u064A\u0641 \u0646\u062D\u0645\u064A \u0628\u064A\u0627\u0646\u0627\u062A\u0643 \u0648\u0646\u062A\u0639\u0627\u0645\u0644 \u0645\u0639 \u0645\u0639\u0644\u0648\u0645\u0627\u062A\u0643 \u0627\u0644\u0634\u062E\u0635\u064A\u0629."},"/terms":{title:"\u0627\u0644\u0634\u0631\u0648\u0637 \u0648\u0627\u0644\u0623\u062D\u0643\u0627\u0645 | Social Lab \u0633\u0648\u0634\u0644 \u0644\u0627\u0628",description:"\u0627\u0644\u0634\u0631\u0648\u0637 \u0648\u0627\u0644\u0623\u062D\u0643\u0627\u0645 \u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0645\u0646\u0635\u0629 \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 - \u062D\u0642\u0648\u0642 \u0648\u0648\u0627\u062C\u0628\u0627\u062A \u0627\u0644\u0645\u0634\u062A\u0631\u0643\u060C \u0627\u0644\u0627\u0634\u062A\u0631\u0627\u0643\u0627\u062A \u0648\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A\u060C \u0648\u062D\u062F\u0648\u062F \u0627\u0644\u0645\u0633\u0624\u0648\u0644\u064A\u0629."},"/contact-us":{title:"\u062A\u0648\u0627\u0635\u0644 \u0645\u0639\u0646\u0627 | Social Lab \u0633\u0648\u0634\u0644 \u0644\u0627\u0628",description:"\u062A\u0648\u0627\u0635\u0644 \u0645\u0639 \u0641\u0631\u064A\u0642 \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 \u0644\u0644\u0627\u0633\u062A\u0641\u0633\u0627\u0631\u0627\u062A\u060C \u0627\u0644\u062F\u0639\u0645 \u0627\u0644\u0641\u0646\u064A\u060C \u0623\u0648 \u0637\u0644\u0628 \u0639\u0631\u0636 \u062A\u062C\u0631\u064A\u0628\u064A \u0644\u0645\u0646\u0635\u0629 \u0625\u062F\u0627\u0631\u0629 \u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0645\u0639 \u0627\u0644\u0639\u0645\u0644\u0627\u0621."},"/cost-estimator":{title:"\u062D\u0627\u0633\u0628\u0629 \u0627\u0644\u062A\u0643\u0644\u0641\u0629 | Social Lab \u0633\u0648\u0634\u0644 \u0644\u0627\u0628",description:"\u0627\u062D\u0633\u0628 \u062A\u0643\u0644\u0641\u0629 \u0627\u0634\u062A\u0631\u0627\u0643\u0643 \u0641\u064A \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 \u062D\u0633\u0628 \u0639\u062F\u062F \u0627\u0644\u0631\u0633\u0627\u0626\u0644 \u0648\u0627\u0644\u0642\u0646\u0648\u0627\u062A \u0648\u0627\u0644\u0645\u0632\u0627\u064A\u0627 \u0627\u0644\u062A\u064A \u062A\u062D\u062A\u0627\u062C\u0647\u0627\u060C \u0642\u0628\u0644 \u0645\u0627 \u062A\u0633\u062
11067C\u0651\u0644."}},Q0={"/faq":{"@context":"https://schema.org","@type":"FAQPage",name:"\u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0634\u0627\u0626\u0639\u0629 - Social Lab",url:`${Gi}/faq`,description:"\u0625\u062C\u0627\u0628\u0627\u062A \u0639\u0644\u0649 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0634\u0627\u0626\u0639\u0629 \u062D\u0648\u0644 \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 - \u0643\u064A\u0641\u064A\u0629 \u0631\u0628\u0637 \u0648\u0627\u062A\u0633\u0627\u0628\u060C \u0625\u062F\u0627\u0631\u0629 \u0627\u0644\u062D\u0645\u0644\u0627\u062A\u060C \u0627\u0644\u0623\u0633\u0639\u0627\u0631\u060C \u0648\u0627\u0644\u0645\u0632\u064A\u062F."},"/contact-us":{"@context":"https://schema.org","@type":"ContactPage",name:"\u062A\u0648\u0627\u0635\u0644 \u0645\u0639\u0646\u0627 - Social Lab",url:`${Gi}/contact-us`,description:"\u062A\u0648\u0627\u0635\u0644 \u0645\u0639 \u0641\u0631\u064A\u0642 \u0633\u0648\u0634\u0644 \u0644\u0627\u0628 \u0644\u0644\u0627\u0633\u062A\u0641\u0633\u0627\u0631\u0627\u062A \u0648\u0627\u0644\u062F\u0639\u0645 \u0627\u0644\u0641\u0646\u064A \u0623\u0648 \u0637\u0644\u0628 \u0639\u0631\u0636 \u062A\u062C\u0631\u064A\u0628\u064A."},"/help":{"@context":"https://schema.org","@type":"WebPage","@id":`${Gi}/help`,name:"\u0645\u0631\u0643\u0632 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 - Social Lab",url:`${Gi}/help`,description:"\u0645\u0631\u0643\u0632 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 \u0648\u0627\u0644\u062F\u0639\u0645 \u0627\u0644\u0641\u0646\u064A \u0644\u0633\u0648\u0634\u0644 \u0644\u0627\u0628 - \u0623\u062F\u0644\u0629 \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0648\u0627\u0644\u0634\u0631\u0648\u062D\u0627\u062A."},"/terms":{"@context":"https://schema.org","@type":"WebPage","@id":`${Gi}/terms`,name:"\u0627\u0644\u0634\u0631\u0648\u0637 \u0648\u0627\u0644\u0623\u062D\u0643\u0627\u0645 - Social Lab",url:`${Gi}/terms`,description:"\u0627\u0644\u0634\u0631\u0648\u0637 \u0648\u0627\u0644\u0623\u062D\u0643\u0627\u0645 \u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0645\u0646\u0635\u0629 \u0633\u0648\u0634\u0644 \u0644\u0627\u0628."}},Vc=(()=>{class i{constructor(t,e,o,a){this.meta=t,this.titleService=e,this.router=o,this.activatedRoute=a;}init(){this.router.events.pipe(Yt$5(t=>t instanceof k$3),ve$4(()=>this.activatedRoute),ve$4(t=>{for(;t.firstChild;)t=t.firstChild;return t}),Ze$3(t=>t.url.pipe(ve$4(()=>this.router.url)))).subscribe(t=>{let e=this.normalizePath(t),o=ka[e]??G0,a=e in ka;this.updateMetaTags(o,e,a),this.updateRobots(a),this.updateCanonical(e,a),this.updateStructuredData(e);});}normalizePath(t){let e=t.split("?")[0].split("#")[0];return e.length>1?e.replace(/\/+$/,""):e}updateMetaTags(t,e,o){this.titleService.setTitle(t.title),this.meta.updateTag({name:"description",content:t.description});let a=t.ogTitle??t.title,d=t.ogDescription??t.description;this.meta.updateTag({property:"og:title",content:a}),this.meta.updateTag({property:"og:description",content:d}),this.meta.updateTag({property:"og:url",content:`${Gi}${o?e:"/landingpage"}`}),this.meta.updateTag({name:"twitter:title",content:a}),this.meta.updateTag({name:"twitter:description",content:d});}updateRobots(t){t?this.meta.removeTag('name="robots"'):this.meta.updateTag({name:"robots",content:"noindex, follow"});}updateCanonical(t,e){let o=document.querySelector('link[rel="canonical"]');if(!e){o?.remove();return}o||(o=document.createElement("link"),o.rel="canonical",document.head.appendChild(o)),o.href=`${Gi}${t}`;}updateStructuredData(t){let e="page-ld-json",o=document.getElementById(e),a=Q0[t]??null;if(!a){o?.remove();return}o||(o=document.createElement("script"),o.id=e,o.type="application/ld+json",document.head.appendChild(o)),o.textContent=JSON.stringify(a);}static{this.\u0275fac=function(e){return new(e||i)(M$6(Y8),M$6(Q8),M$6(G$5),M$6(V$2))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var zc=(()=>{class i{static{this.INTERVAL_MS=7200*1e3;}static{this.FIRST_DELAY_MS=60*1e3;}static{this.STAFF_PERMISSIONS=["Admin_ManageSupportTickets","Admin_HandleAssignedSupportTickets"];}constructor(t,e,o,a){this.auth=t,this.supportTickets=e,this.toast=o,this.translate=a,this.platformId=g$4(So$3),this.isBrowser=_$(this.platformId),this.started=false;}init(){!this.isBrowser||this.started||(this.started=true,this.pollSub=xt$2(i.FIRST_DELAY_MS,i.INTERVAL_MS).subscribe(()=>this.check()),this.auth.loginEvent$.subscribe(()=>this.check()));}isStaff(){return i.STAFF_PERMISSIONS.some(t=>this.auth.hasPermission(t))}check(){!this.auth.isAuthenticatedUser||!this.isStaff()||this.supportTickets.getMyOpenCount().subscribe({next:t=>{let e=t?.succeeded?t.data?.openCount??0:0;e>0&&this.showReminder(e);},error:()=>{}});}showReminder(t){let e=t===1?this.translate.instant("You have 1 open support ticket awaiting your reply"):this.translate.instant("You have {{count}} open support tickets awaiting your reply",{count:t});this.toast.warning(e,"Support reminder");}static{this.\u0275fac=function(e){return new(e||i)(M$6(Us$1),M$6(O),M$6(ut$2),M$6(O$5))};}static{this.\u0275prov=x$3({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Z0=["ar","en"],jc="ar",Uc=(()=>{class i{constructor(t,e,o,a,d,p,h){this.timezoneService=t,this.signalRService=e,this.translate=o,this.versionCheckService=a,this.seoService=d,this.supportReminderService=p,this.presenceService=h,this.title="Social Lab",this.localTimezone=this.timezoneService.detectTimezone(),this.versionCheckService.init(),this.seoService.init(),this.supportReminderService.init();}ngOnInit(){return L$7(this,null,function*(){let t=localStorage.getItem("lang"),e=localStorage.getItem("appSett
11067ings"),o=jc,a=null;if(e)try{a=JSON.parse(e);}catch(p){console.warn("Failed to parse appSettings:",p);}if(t?o=t:a&&a.language&&(o=a.language),Z0.includes(o)||(o=jc),localStorage.setItem("lang",o),a)a.language=o,a.dir=o==="ar"?"rtl":"ltr",localStorage.setItem("appSettings",JSON.stringify(a));else {let p={dir:o==="ar"?"rtl":"ltr",theme:"light",sidenavOpened:false,sidenavCollapsed:false,boxed:true,activeTheme:"sociallab_theme",language:o,navPos:"side"};localStorage.setItem("appSettings",JSON.stringify(p));}let d=o==="ar"?"rtl":"ltr";document.documentElement.setAttribute("dir",d),document.documentElement.setAttribute("lang",o),this.translate.setFallbackLang(o);try{yield oE(this.translate.use(o));}catch(p){console.error("Error loading translations:",p);}})}static{this.\u0275fac=function(e){return new(e||i)(V$3(Rc),V$3(Ct$2),V$3(O$5),V$3(Lc),V$3(Vc),V$3(zc),V$3(Ke$1))};}static{this.\u0275cmp=Xb({type:i,selectors:[["app-root"]],features:[tS([{provide:Le$4,useClass:Fc}])],decls:3,vars:0,template:function(e,o){e&1&&fy(0,"router-outlet")(1,"loading-indicator")(2,"app-global-softphone");},dependencies:[mr$1,Bc,Nc],encapsulation:2,changeDetection:1});}}return i})();pN(Uc,Dc).catch(i=>console.error(i)); 11068export{Dn$1 as $,r1 as A,xS as B,Vs$1 as C,D$6 as D,E$7 as E,zs$1 as F,G,H0 as H,Fi$2 as I,GS as J,iI as K,Lb as L,RI as M,Ng as N,O$5 as O,P1 as P,us as Q,RM as R,ms as S,Tt$2 as T,Us$1 as U,V$3 as V,W$4 as W,Xb as X,UI as Y,Zx as Z,tE as _,G$5 as a,y_$1 as a$,ME as a0,ny as a1,go$2 as a2,Kd as a3,XE as a4,LT as a5,mA as a6,mt$4 as a7,fy as a8,ZT as a9,LM as aA,ey$1 as aB,DS as aC,By as aD,ut$2 as aE,ta$1 as aF,_r as aG,cv as aH,iE as aI,ve$4 as aJ,Vf$1 as aK,co$2 as aL,QM as aM,Od$2 as aN,cD as aO,hD as aP,Fe$4 as aQ,i_$1 as aR,Vp$2 as aS,d_$1 as aT,Hp$2 as aU,KT as aV,pD as aW,mD as aX,Hs$2 as aY,by as aZ,m_$1 as a_,Js$2 as aa,Ey as ab,H_$1 as ac,gd$2 as ad,pS as ae,XT as af,SC as ag,YT as ah,dy as ai,jy as aj,Ed$2 as ak,gS$1 as al,JT as am,x$3 as an,Vt$3 as ao,bt$6 as ap,El$2 as aq,kt$3 as ar,p as as,d as at,p$5 as au,on as av,o$2 as aw,g$1 as ax,o$1 as ay,Ke$1 as az,b$1 as b,ji$2 as b$,_D as b0,ei as b1,da$1 as b2,id$1 as b3,$M as b4,ly as b5,Es$1 as b6,wS as b7,an as b8,Wm$1 as b9,Nw as bA,rf as bB,Od$1 as bC,db as bD,pb as bE,So$3 as bF,_$ as bG,L$7 as bH,Gt as bI,V$2 as bJ,P$2 as bK,Sh as bL,Ic$1 as bM,Gc$1 as bN,jh as bO,Dh as bP,Zs$1 as bQ,Mc$1 as bR,Y_$1 as bS,GI as bT,Tc$1 as bU,zy as bV,W_$1 as bW,$y as bX,ee$1 as bY,M$6 as bZ,Jr$1 as b_,xy as ba,QT as bb,x_$1 as bc,K_$1 as bd,Q_$1 as be,Ny as bf,mS as bg,rS as bh,D_$1 as bi,Xp$2 as bj,gy as bk,zg$1 as bl,d$4 as bm,nS as bn,e as bo,Di as bp,Xi as bq,ht$1 as br,d$6 as bs,Lg as bt,Ts as bu,Og as bv,Pg as bw,Gt$1 as bx,Jc$1 as by,Mh as bz,c$1 as c,zD as c$,lt$3 as c0,wn$2 as c1,ki$3 as c2,Xr$1 as c3,ED as c4,J$2 as c5,eE as c6,Jp$2 as c7,Vy as c8,$N as c9,se$2 as cA,vt$3 as cB,St$5 as cC,vS$1 as cD,vd$2 as cE,Ea$1 as cF,Gg as cG,q$3 as cH,H$4 as cI,ye$5 as cJ,ih$1 as cK,Bf$1 as cL,Bi$1 as cM,Ft as cN,A$1 as cO,Dd$1 as cP,G_ as cQ,O1 as cR,ey as cS,iy as cT,ty as cU,fu$1 as cV,O as cW,Yv as cX,OM as cY,j_ as cZ,A$5 as c_,py as ca,vy as cb,ww as cc,md$2 as cd,yd$2 as ce,eM as cf,Hu$1 as cg,ju$1 as ch,JD as ci,PM as cj,$e$3 as ck,WD as cl,uc$1 as cm,pe$5 as cn,Bg as co,xr$1 as cp,T$ as cq,M$1 as cr,Ue$2 as cs,Yx as ct,Yl$1 as cu,Ip$1 as cv,sE as cw,WM as cx,eD as cy,Wg as cz,d$1 as d,nA as d$,Jv as d0,x0$1 as d1,Vh as d2,_w as d3,Pe$3 as d4,d$3 as d5,Hp$1 as d6,ed$1 as d7,Hf$1 as d8,s$1 as d9,Jt$4 as dA,tM$1 as dB,tS as dC,Ct$6 as dD,R$4 as dE,Jg as dF,N$3 as dG,bn$3 as dH,Uf$1 as dI,nM as dJ,we$6 as dK,Y$3 as dL,G$3 as dM,P$3 as dN,Kn$3 as dO,qo$1 as dP,Et$3 as dQ,GD as dR,tE$1 as dS,Qt$3 as dT,F$5 as dU,bt$4 as dV,pt$2 as dW,aE as dX,_$4 as dY,Zt$3 as dZ,tA as d_,wr$1 as da,Wy as db,q_$1 as dc,Z_$1 as dd,bv as de,Wc$1 as df,xc$1 as dg,vc$1 as dh,it$2 as di,aC as dj,mu$1 as dk,Hy as dl,oS as dm,p$3 as dn,o$3 as dp,Qo$2 as dq,Ir$3 as dr,Ht$3 as ds,tt$1 as dt,qe$4 as du,I$4 as dv,re$4 as dw,Ee$4 as dx,Jf as dy,Ft$2 as dz,f$5 as e,a$1 as e$,sA as e0,aA as e1,iA as e2,lA as e3,rA as e4,oA as e5,dA as e6,cA as e7,fD as e8,Cy as e9,Zl$1 as eA,c as eB,Lf as eC,XM as eD,ac as eE,w as eF,l$2 as eG,f$2 as eH,uy as eI,p$2 as eJ,$v as eK,gn$2 as eL,Xf$1 as eM,Kt as eN,dt$2 as eO,TI as eP,Cf as eQ,Ob as eR,Pb as eS,S$7 as eT,jt$1 as eU,M$2 as eV,L$2 as eW,l as eX,u as eY,n$1 as eZ,t$1 as e_,Sw as ea,WT as eb,hU as ec,pU as ed,mU as ee,nC as ef,_y as eg,v_$1 as eh,p_$1 as ei,h_$1 as ej,Xc$1 as ek,VM as el,Xm$2 as em,L$3 as en,Yt$5 as eo,te$6 as ep,B$5 as eq,oE as er,mn as es,E
11068I as et,Ud$1 as eu,Fe$1 as ev,ns as ew,Ct$2 as ex,sc$1 as ey,xw as ez,f,B$2 as f$,$i as f0,U$1 as f1,Cc$1 as f2,zM as f3,HM as f4,uD as f5,$t$4 as f6,Sm$1 as f7,Dm$1 as f8,sl$1 as f9,j as fA,y$2 as fB,qD as fC,C$1 as fD,Mf as fE,kf as fF,C$2 as fG,E$2 as fH,I$2 as fI,k as fJ,w$2 as fK,S$3 as fL,M$4 as fM,A$4 as fN,Ct$4 as fO,K$3 as fP,I$5 as fQ,k$3 as fR,mr$1 as fS,S$4 as fT,r$3 as fU,z_ as fV,Ep$1 as fW,Kx as fX,$x as fY,Xx as fZ,KM as f_,JM as fa,yS$1 as fb,x_ as fc,w_ as fd,a1 as fe,Ke$3 as ff,Zf as fg,AI as fh,qi$2 as fi,Cu$1 as fj,jC as fk,od$1 as fl,Vb as fm,YM as fn,ZD as fo,iS as fp,Ye$2 as fq,vt$2 as fr,qe$2 as fs,G$7 as ft,sS as fu,js$1 as fv,km as fw,ll$1 as fx,Xr as fy,n1 as fz,g$4 as g,j$1 as g$,Ye$3 as g0,aS as g1,Uy as g2,v_ as g3,Vk as g4,F$8 as g5,xt$2 as g6,le$2 as g7,j$2 as g8,b$4 as g9,a$2 as gA,S$5 as gB,F$3 as gC,c$3 as gD,gD as gE,Z$1 as gF,Er$1 as gG,Lr as gH,dS as gI,DE as gJ,yc$2 as gK,Ze$3 as gL,eo$2 as gM,vE as gN,hE as gO,pc$2 as gP,uS as gQ,ks$1 as gR,r$2 as gS,c$4 as gT,XD as gU,p$6 as gV,ty$1 as gW,UT as gX,$T as gY,v$3 as gZ,y$4 as g_,PD as ga,A$3 as gb,dr$3 as gc,YD as gd,Md$1 as ge,Td$1 as gf,Ad$1 as gg,gS as gh,bS as gi,yS as gj,vS as gk,fS as gl,yg as gm,my as gn,o_$1 as go,wa$2 as gp,yU as gq,Ty as gr,gU as gs,G0$1 as gt,vU as gu,br$3 as gv,pa$1 as gw,bD as gx,ih as gy,tI as gz,ea$2 as h,h as h0,M$7 as h1,N$7 as h2,C$5 as h3,_$2 as h4,Gd$2 as h5,kM as h6,ne$3 as h7,Je$2 as h8,dv as h9,S$1 as ha,Yc$1 as hb,ti as hc,Ke$4 as hd,mg as he,VT as hf,qM as hg,ai$2 as i,Xv as j,dn as k,zw as l,wC as m,nd$1 as n,mv as o,GC as p,vD as q,rC as r,sk as s,tD as t,al$1 as u,vr$1 as v,w0$1 as w,tM as x,dM as y,zg as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.