diff --git a/policy-playground/index.html b/policy-playground/index.html index 2917675b..8c230439 100644 --- a/policy-playground/index.html +++ b/policy-playground/index.html @@ -29,8 +29,8 @@ - + - + diff --git a/policy-playground/main.9d7534f5d4625f55.js b/policy-playground/main.9d7534f5d4625f55.js new file mode 100644 index 00000000..086574c5 --- /dev/null +++ b/policy-playground/main.9d7534f5d4625f55.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkedc_policy_playground=self.webpackChunkedc_policy_playground||[]).push([[792],{536:()=>{let Ot=null,ya=!1,wa=1;const ns=Symbol("SIGNAL");function we(i){const e=Ot;return Ot=i,e}const $D={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function WD(i){if((!wc(i)||i.dirty)&&(i.dirty||i.lastCleanEpoch!==wa)){if(!i.producerMustRecompute(i)&&!y_(i))return i.dirty=!1,void(i.lastCleanEpoch=wa);i.producerRecomputeValue(i),i.dirty=!1,i.lastCleanEpoch=wa}}function YD(i){i.dirty=!0,function GD(i){if(void 0===i.liveConsumerNode)return;const e=ya;ya=!0;try{for(const t of i.liveConsumerNode)t.dirty||YD(t)}finally{ya=e}}(i),i.consumerMarkedDirty?.(i)}function KD(i){return i&&(i.nextProducerIndex=0),we(i)}function XD(i,e){if(we(e),i&&void 0!==i.producerNode&&void 0!==i.producerIndexOfThis&&void 0!==i.producerLastReadVersion){if(wc(i))for(let t=i.nextProducerIndex;ti.nextProducerIndex;)i.producerNode.pop(),i.producerLastReadVersion.pop(),i.producerIndexOfThis.pop()}}function y_(i){xa(i);for(let e=0;e0}function xa(i){i.producerNode??=[],i.producerIndexOfThis??=[],i.producerLastReadVersion??=[]}let ek=null;const x_=()=>{},wj={...$D,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:i=>{null!==i.schedule&&i.schedule(i.ref)},hasRun:!1,cleanupFn:x_};function je(i){return"function"==typeof i}function ik(i){const t=i(n=>{Error.call(n),n.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const C_=ik(i=>function(t){i(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function uh(i,e){if(i){const t=i.indexOf(e);0<=t&&i.splice(t,1)}}class Ze{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:n}=this;if(je(n))try{n()}catch(o){e=o instanceof C_?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{ok(o)}catch(s){e=e??[],s instanceof C_?e=[...e,...s.errors]:e.push(s)}}if(e)throw new C_(e)}}add(e){var t;if(e&&e!==this)if(this.closed)ok(e);else{if(e instanceof Ze){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&uh(t,e)}remove(e){const{_finalizers:t}=this;t&&uh(t,e),e instanceof Ze&&e._removeParent(this)}}Ze.EMPTY=(()=>{const i=new Ze;return i.closed=!0,i})();const nk=Ze.EMPTY;function rk(i){return i instanceof Ze||i&&"closed"in i&&je(i.remove)&&je(i.add)&&je(i.unsubscribe)}function ok(i){je(i)?i():i.unsubscribe()}const rs={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},hh={setTimeout(i,e,...t){const{delegate:n}=hh;return n?.setTimeout?n.setTimeout(i,e,...t):setTimeout(i,e,...t)},clearTimeout(i){const{delegate:e}=hh;return(e?.clearTimeout||clearTimeout)(i)},delegate:void 0};function sk(i){hh.setTimeout(()=>{const{onUnhandledError:e}=rs;if(!e)throw i;e(i)})}function fh(){}const xj=D_("C",void 0,void 0);function D_(i,e,t){return{kind:i,value:e,error:t}}let os=null;function mh(i){if(rs.useDeprecatedSynchronousErrorHandling){const e=!os;if(e&&(os={errorThrown:!1,error:null}),i(),e){const{errorThrown:t,error:n}=os;if(os=null,t)throw n}}else i()}class k_ extends Ze{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,rk(e)&&e.add(this)):this.destination=Tj}static create(e,t,n){return new xc(e,t,n)}next(e){this.isStopped?S_(function Dj(i){return D_("N",i,void 0)}(e),this):this._next(e)}error(e){this.isStopped?S_(function Cj(i){return D_("E",void 0,i)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?S_(xj,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ej=Function.prototype.bind;function E_(i,e){return Ej.call(i,e)}class Sj{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){ph(n)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){ph(n)}else ph(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){ph(t)}}}class xc extends k_{constructor(e,t,n){let r;if(super(),je(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let o;this&&rs.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&E_(e.next,o),error:e.error&&E_(e.error,o),complete:e.complete&&E_(e.complete,o)}):r=e}this.destination=new Sj(r)}}function ph(i){rs.useDeprecatedSynchronousErrorHandling?function kj(i){rs.useDeprecatedSynchronousErrorHandling&&os&&(os.errorThrown=!0,os.error=i)}(i):sk(i)}function S_(i,e){const{onStoppedNotification:t}=rs;t&&hh.setTimeout(()=>t(i,e))}const Tj={closed:!0,next:fh,error:function Mj(i){throw i},complete:fh},M_="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ca(i){return i}let bt=(()=>{class i{constructor(t){t&&(this._subscribe=t)}lift(t){const n=new i;return n.source=this,n.operator=t,n}subscribe(t,n,r){const o=function Ij(i){return i&&i instanceof k_||function Aj(i){return i&&je(i.next)&&je(i.error)&&je(i.complete)}(i)&&rk(i)}(t)?t:new xc(t,n,r);return mh(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return new(n=lk(n))((r,o)=>{const s=new xc({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)}[M_](){return this}pipe(...t){return function ak(i){return 0===i.length?Ca:1===i.length?i[0]:function(t){return i.reduce((n,r)=>r(n),t)}}(t)(this)}toPromise(t){return new(t=lk(t))((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return i.create=e=>new i(e),i})();function lk(i){var e;return null!==(e=i??rs.Promise)&&void 0!==e?e:Promise}const Oj=ik(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Z=(()=>{class i extends bt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const n=new ck(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new Oj}next(t){mh(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(t)}})}error(t){mh(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){mh(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:n,isStopped:r,observers:o}=this;return n||r?nk:(this.currentObservers=null,o.push(t),new Ze(()=>{this.currentObservers=null,uh(o,t)}))}_checkFinalizedStatuses(t){const{hasError:n,thrownError:r,isStopped:o}=this;n?t.error(r):o&&t.complete()}asObservable(){const t=new bt;return t.source=this,t}}return i.create=(e,t)=>new ck(e,t),i})();class ck extends Z{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)}error(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:nk}}class dk extends Z{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}}function ii(i){return e=>{if(function Rj(i){return je(i?.lift)}(e))return e.lift(function(t){try{return i(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function qt(i,e,t,n,r){return new Nj(i,e,t,n,r)}class Nj extends k_{constructor(e,t,n,r,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){e.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function Vt(i,e){return ii((t,n)=>{let r=0;t.subscribe(qt(n,o=>{n.next(i.call(e,o,r++))}))})}const uk="https://g.co/ng/security#xss";class k extends Error{constructor(e,t){super(function Da(i,e){return`NG0${Math.abs(i)}${e?": "+e:""}`}(e,t)),this.code=e}}function qr(i){return{toString:i}.toString()}const Ea="__parameters__";function Ma(i,e,t){return qr(()=>{const n=function T_(i){return function(...t){if(i){const n=i(...t);for(const r in n)this[r]=n[r]}}}(e);function r(...o){if(this instanceof r)return n.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,d){const u=l.hasOwnProperty(Ea)?l[Ea]:Object.defineProperty(l,Ea,{value:[]})[Ea];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=i,r.annotationCls=r,r})}const tt=globalThis;function Qe(i){for(let e in i)if(i[e]===Qe)return e;throw Error("Could not find renamed property on target object.")}function Pj(i,e){for(const t in e)e.hasOwnProperty(t)&&!i.hasOwnProperty(t)&&(i[t]=e[t])}function Yt(i){if("string"==typeof i)return i;if(Array.isArray(i))return"["+i.map(Yt).join(", ")+"]";if(null==i)return""+i;if(i.overriddenName)return`${i.overriddenName}`;if(i.name)return`${i.name}`;const e=i.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function A_(i,e){return null==i||""===i?null===e?"":e:null==e||""===e?i:i+" "+e}const Fj=Qe({__forward_ref__:Qe});function Je(i){return i.__forward_ref__=Je,i.toString=function(){return Yt(this())},i}function ee(i){return _h(i)?i():i}function _h(i){return"function"==typeof i&&i.hasOwnProperty(Fj)&&i.__forward_ref__===Je}function L(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function De(i){return{providers:i.providers||[],imports:i.imports||[]}}function bh(i){return pk(i,yh)||pk(i,gk)}function pk(i,e){return i.hasOwnProperty(e)?i[e]:null}function vh(i){return i&&(i.hasOwnProperty(I_)||i.hasOwnProperty(zj))?i[I_]:null}const yh=Qe({\u0275prov:Qe}),I_=Qe({\u0275inj:Qe}),gk=Qe({ngInjectableDef:Qe}),zj=Qe({ngInjectorDef:Qe});class S{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=L({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function F_(i){return i&&!!i.\u0275providers}const Cc=Qe({\u0275cmp:Qe}),L_=Qe({\u0275dir:Qe}),B_=Qe({\u0275pipe:Qe}),bk=Qe({\u0275mod:Qe}),Yr=Qe({\u0275fac:Qe}),Dc=Qe({__NG_ELEMENT_ID__:Qe}),vk=Qe({__NG_ENV_ID__:Qe});function he(i){return"string"==typeof i?i:null==i?"":String(i)}function V_(i,e){throw new k(-201,!1)}var Re=function(i){return i[i.Default=0]="Default",i[i.Host=1]="Host",i[i.Self=2]="Self",i[i.SkipSelf=4]="SkipSelf",i[i.Optional=8]="Optional",i}(Re||{});let H_;function yk(){return H_}function Ki(i){const e=H_;return H_=i,e}function wk(i,e,t){const n=bh(i);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&Re.Optional?null:void 0!==e?e:void V_()}const kc={},z_="__NG_DI_FLAG__",wh="ngTempTokenPath",qj=/\n/gm,xk="__source";let Ta;function wo(i){const e=Ta;return Ta=i,e}function Xj(i,e=Re.Default){if(void 0===Ta)throw new k(-203,!1);return null===Ta?wk(i,void 0,e):Ta.get(i,e&Re.Optional?null:void 0,e)}function C(i,e=Re.Default){return(yk()||Xj)(ee(i),e)}function O(i,e=Re.Default){return C(i,xh(e))}function xh(i){return typeof i>"u"||"number"==typeof i?i:(i.optional&&8)|(i.host&&1)|(i.self&&2)|(i.skipSelf&&4)}function j_(i){const e=[];for(let t=0;tArray.isArray(t)?Ia(t,e):e(t))}function Dk(i,e,t){e>=i.length?i.push(t):i.splice(e,0,t)}function Dh(i,e){return e>=i.length-1?i.pop():i.splice(e,1)[0]}function sn(i,e,t){let n=Oa(i,e);return n>=0?i[1|n]=t:(n=~n,function kk(i,e,t,n){let r=i.length;if(r==e)i.push(t,n);else if(1===r)i.push(n,i[0]),i[0]=t;else{for(r--,i.push(i[r-1],i[r]);r>e;)i[r]=i[r-2],r--;i[e]=t,i[e+1]=n}}(i,n,e,t)),n}function $_(i,e){const t=Oa(i,e);if(t>=0)return i[1|t]}function Oa(i,e){return function Ek(i,e,t){let n=0,r=i.length>>t;for(;r!==n;){const o=n+(r-n>>1),s=i[o<e?r=o:n=o+1}return~(r<e){s=o-1;break}}}for(;o-1){let o;for(;++ro?"":r[d+1].toLowerCase(),2&n&&c!==u){if(Zn(n))return!1;s=!0}}}}else{if(!s&&!Zn(n)&&!Zn(l))return!1;if(s&&Zn(l))continue;s=!1,n=l|1&n}}return Zn(n)||s}function Zn(i){return!(1&i)}function l3(i,e,t,n){if(null===e)return-1;let r=0;if(n||!t){let o=!1;for(;r-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&n?r+="."+s:4&n&&(r+=" "+s);else""!==r&&!Zn(s)&&(e+=Rk(o,r),r=""),n=s,o=o||!Zn(n);t++}return""!==r&&(e+=Rk(o,r)),e}function Ee(i){return qr(()=>{const e=Pk(i),t={...e,decls:i.decls,vars:i.vars,template:i.template,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,onPush:i.changeDetection===Sh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&i.dependencies||null,getStandaloneInjector:null,signals:i.signals??!1,data:i.data||{},encapsulation:i.encapsulation||Xn.Emulated,styles:i.styles||ze,_:null,schemas:i.schemas||null,tView:null,id:""};Fk(t);const n=i.dependencies;return t.directiveDefs=Mh(n,!1),t.pipeDefs=Mh(n,!0),t.id=function v3(i){let e=0;const t=[i.selectors,i.ngContentSelectors,i.hostVars,i.hostAttrs,i.consts,i.vars,i.decls,i.encapsulation,i.standalone,i.signals,i.exportAs,JSON.stringify(i.inputs),JSON.stringify(i.outputs),Object.getOwnPropertyNames(i.type.prototype),!!i.contentQueries,!!i.viewQuery].join("|");for(const r of t)e=Math.imul(31,e)+r.charCodeAt(0)|0;return e+=2147483648,"c"+e}(t),t})}function g3(i){return ke(i)||Kt(i)}function _3(i){return null!==i}function Se(i){return qr(()=>({type:i.type,bootstrap:i.bootstrap||ze,declarations:i.declarations||ze,imports:i.imports||ze,exports:i.exports||ze,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null}))}function Nk(i,e){if(null==i)return fr;const t={};for(const n in i)if(i.hasOwnProperty(n)){const r=i[n];let o,s,a=Ra.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),e?(t[o]=a!==Ra.None?[n,a]:n,e[o]=s):t[o]=n}return t}function R(i){return qr(()=>{const e=Pk(i);return Fk(e),e})}function ke(i){return i[Cc]||null}function Kt(i){return i[L_]||null}function ci(i){return i[B_]||null}function Pk(i){const e={};return{type:i.type,providersResolver:null,factory:null,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:i.inputs||fr,exportAs:i.exportAs||null,standalone:!0===i.standalone,signals:!0===i.signals,selectors:i.selectors||ze,viewQuery:i.viewQuery||null,features:i.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Nk(i.inputs,e),outputs:Nk(i.outputs),debugInfo:null}}function Fk(i){i.features?.forEach(e=>e(i))}function Mh(i,e){if(!i)return null;const t=e?ci:g3;return()=>("function"==typeof i?i():i).map(n=>t(n)).filter(_3)}function y3(...i){return{\u0275providers:Y_(0,i),\u0275fromNgModule:!0}}function Y_(i,...e){const t=[],n=new Set;let r;const o=s=>{t.push(s)};return Ia(e,s=>{const a=s;Ah(a,o,[],n)&&(r||=[],r.push(a))}),void 0!==r&&Lk(r,o),t}function Lk(i,e){for(let t=0;t{e(o,n)})}}function Ah(i,e,t,n){if(!(i=ee(i)))return!1;let r=null,o=vh(i);const s=!o&&ke(i);if(o||s){if(s&&!s.standalone)return!1;r=i}else{const l=i.ngModule;if(o=vh(l),!o)return!1;r=l}const a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Ah(c,e,t,n)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;n.add(r);try{Ia(o.imports,d=>{Ah(d,e,t,n)&&(c||=[],c.push(d))})}finally{}void 0!==c&&Lk(c,e)}if(!a){const c=ss(r)||(()=>new r);e({provide:r,useFactory:c,deps:ze},r),e({provide:W_,useValue:r,multi:!0},r),e({provide:Kr,useValue:()=>C(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=i;K_(l,d=>{e(d,c)})}}}return r!==i&&void 0!==i.providers}function K_(i,e){for(let t of i)F_(t)&&(t=t.\u0275providers),Array.isArray(t)?K_(t,e):e(t)}const w3=Qe({provide:String,useValue:Qe});function X_(i){return null!==i&&"object"==typeof i&&w3 in i}function ls(i){return"function"==typeof i}const Z_=new S(""),Ih={},C3={};let Q_;function Oh(){return void 0===Q_&&(Q_=new Eh),Q_}class Sn{}class Na extends Sn{get destroyed(){return this._destroyed}constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,eb(e,s=>this.processProvider(s)),this.records.set(Sk,Pa(void 0,this)),r.has("environment")&&this.records.set(Sn,Pa(void 0,this));const o=this.records.get(Z_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(W_,ze,Re.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const e=we(null);try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),we(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();const t=wo(this),n=Ki(void 0);try{return e()}finally{wo(t),Ki(n)}}get(e,t=kc,n=Re.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(vk))return e[vk](this);n=xh(n);const o=wo(this),s=Ki(void 0);try{if(!(n&Re.SkipSelf)){let l=this.records.get(e);if(void 0===l){const c=function M3(i){return"function"==typeof i||"object"==typeof i&&i instanceof S}(e)&&bh(e);l=c&&this.injectableDefInScope(c)?Pa(J_(e),Ih):null,this.records.set(e,l)}if(null!=l)return this.hydrate(e,l)}return(n&Re.Self?Oh():this.parent).get(e,t=n&Re.Optional&&t===kc?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[wh]=a[wh]||[]).unshift(Yt(e)),o)throw a;return function Qj(i,e,t,n){const r=i[wh];throw e[xk]&&r.unshift(e[xk]),i.message=function Jj(i,e,t,n=null){i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.slice(2):i;let r=Yt(e);if(Array.isArray(e))r=e.map(Yt).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Yt(a)))}r=`{${o.join(", ")}}`}return`${t}${n?"("+n+")":""}[${r}]: ${i.replace(qj,"\n ")}`}("\n"+i.message,r,t,n),i.ngTokenPath=r,i[wh]=null,i}(a,e,"R3InjectorError",this.source)}throw a}finally{Ki(s),wo(o)}}resolveInjectorInitializers(){const e=we(null),t=wo(this),n=Ki(void 0);try{const o=this.get(Kr,ze,Re.Self);for(const s of o)s()}finally{wo(t),Ki(n),we(e)}}toString(){const e=[],t=this.records;for(const n of t.keys())e.push(Yt(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processProvider(e){let t=ls(e=ee(e))?e:ee(e&&e.provide);const n=function k3(i){return X_(i)?Pa(void 0,i.useValue):Pa(Hk(i),Ih)}(e);if(!ls(e)&&!0===e.multi){let r=this.records.get(t);r||(r=Pa(void 0,Ih,!0),r.factory=()=>j_(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){const n=we(null);try{return t.value===Ih&&(t.value=C3,t.value=t.factory()),"object"==typeof t.value&&t.value&&function S3(i){return null!==i&&"object"==typeof i&&"function"==typeof i.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{we(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;const t=ee(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){const t=this._onDestroyHooks.indexOf(e);-1!==t&&this._onDestroyHooks.splice(t,1)}}function J_(i){const e=bh(i),t=null!==e?e.factory:ss(i);if(null!==t)return t;if(i instanceof S)throw new k(204,!1);if(i instanceof Function)return function D3(i){if(i.length>0)throw new k(204,!1);const t=function Hj(i){return i&&(i[yh]||i[gk])||null}(i);return null!==t?()=>t.factory(i):()=>new i}(i);throw new k(204,!1)}function Hk(i,e,t){let n;if(ls(i)){const r=ee(i);return ss(r)||J_(r)}if(X_(i))n=()=>ee(i.useValue);else if(function Vk(i){return!(!i||!i.useFactory)}(i))n=()=>i.useFactory(...j_(i.deps||[]));else if(function Bk(i){return!(!i||!i.useExisting)}(i))n=()=>C(ee(i.useExisting));else{const r=ee(i&&(i.useClass||i.provide));if(!function E3(i){return!!i.deps}(i))return ss(r)||J_(r);n=()=>new r(...j_(i.deps))}return n}function Pa(i,e,t=!1){return{factory:i,value:e,multi:t?[]:void 0}}function eb(i,e){for(const t of i)Array.isArray(t)?eb(t,e):t&&F_(t)?eb(t.\u0275providers,e):e(t)}function zk(i,e){i instanceof Na&&i.assertNotDestroyed();const n=wo(i),r=Ki(void 0);try{return e()}finally{wo(n),Ki(r)}}function jk(){return void 0!==yk()||null!=function Kj(){return Ta}()}function Rh(i){if(!jk())throw new k(-203,!1)}const vt=0,N=1,Y=2,Ht=3,Qn=4,di=5,Fi=6,cs=7,at=8,zt=9,mr=10,ne=11,Tc=12,$k=13,La=14,yt=15,ds=16,Ba=17,Xr=18,Va=19,Wk=20,xo=21,Ph=22,us=23,K=25,ib=1,pr=7,Ha=9,Rt=10;var Lh=function(i){return i[i.None=0]="None",i[i.HasTransplantedViews=2]="HasTransplantedViews",i}(Lh||{});function ni(i){return Array.isArray(i)&&"object"==typeof i[ib]}function wi(i){return Array.isArray(i)&&!0===i[ib]}function nb(i){return!!(4&i.flags)}function hs(i){return i.componentOffset>-1}function Bh(i){return!(1&~i.flags)}function Jn(i){return!!i.template}function Ic(i){return!!(512&i[Y])}class z3{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Kk(i,e,t,n){null!==e?e.applyValueToInputSignal(e,n):i[t]=n}function ui(){return Xk}function Xk(i){return i.type.prototype.ngOnChanges&&(i.setInput=U3),j3}function j3(){const i=Qk(this),e=i?.current;if(e){const t=i.previous;if(t===fr)i.previous=e;else for(let n in e)t[n]=e[n];i.current=null,this.ngOnChanges(e)}}function U3(i,e,t,n,r){const o=this.declaredInputs[n],s=Qk(i)||function $3(i,e){return i[Zk]=e}(i,{previous:fr,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new z3(c&&c.currentValue,t,l===fr),Kk(i,e,r,t)}ui.ngInherit=!0;const Zk="__ngSimpleChanges__";function Qk(i){return i[Zk]||null}const gr=function(i,e,t){},Jk="svg";function $e(i){for(;Array.isArray(i);)i=i[vt];return i}function Oc(i,e){return $e(e[i])}function Li(i,e){return $e(e[i.index])}function Rc(i,e){return i.data[e]}function an(i,e){const t=e[i];return ni(t)?t:t[vt]}function lb(i){return!(128&~i[Y])}function Mn(i,e){return null==e?null:i[e]}function tE(i){i[Ba]=0}function K3(i){1024&i[Y]||(i[Y]|=1024,lb(i)&&Vh(i))}function Nc(i){return!!(9216&i[Y]||i[us]?.dirty)}function cb(i){i[mr].changeDetectionScheduler?.notify(7),64&i[Y]&&(i[Y]|=1024),Nc(i)&&Vh(i)}function Vh(i){i[mr].changeDetectionScheduler?.notify(0);let e=fs(i);for(;null!==e&&!(8192&e[Y])&&(e[Y]|=8192,lb(e));)e=fs(e)}function Hh(i,e){if(!(256&~i[Y]))throw new k(911,!1);null===i[xo]&&(i[xo]=[]),i[xo].push(e)}function fs(i){const e=i[Ht];return wi(e)?e[Ht]:e}const re={lFrame:fE(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let nE=!1;function rE(){return re.bindingsEnabled}function ms(){return null!==re.skipHydrationRootTNode}function D(){return re.lFrame.lView}function Me(){return re.lFrame.tView}function Ne(i){return re.lFrame.contextLView=i,i[at]}function Pe(i){return re.lFrame.contextLView=null,i}function et(){let i=oE();for(;null!==i&&64===i.type;)i=i.parent;return i}function oE(){return re.lFrame.currentTNode}function _r(i,e){const t=re.lFrame;t.currentTNode=i,t.isParent=e}function hb(){return re.lFrame.isParent}function fb(){re.lFrame.isParent=!1}function aE(){return nE}function lE(i){nE=i}function er(){return re.lFrame.bindingIndex++}function Qr(i){const e=re.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+i,t}function s8(i,e){const t=re.lFrame;t.bindingIndex=t.bindingRootIndex=i,mb(e)}function mb(i){re.lFrame.currentDirectiveIndex=i}function gb(){return re.lFrame.currentQueryIndex}function jh(i){re.lFrame.currentQueryIndex=i}function l8(i){const e=i[N];return 2===e.type?e.declTNode:1===e.type?i[di]:null}function uE(i,e,t){if(t&Re.SkipSelf){let r=e,o=i;for(;!(r=r.parent,null!==r||t&Re.Host||(r=l8(o),null===r||(o=o[La],10&r.type))););if(null===r)return!1;e=r,i=o}const n=re.lFrame=hE();return n.currentTNode=e,n.lView=i,!0}function _b(i){const e=hE(),t=i[N];re.lFrame=e,e.currentTNode=t.firstChild,e.lView=i,e.tView=t,e.contextLView=i,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function hE(){const i=re.lFrame,e=null===i?null:i.child;return null===e?fE(i):e}function fE(i){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return null!==i&&(i.child=e),e}function mE(){const i=re.lFrame;return re.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}const pE=mE;function bb(){const i=mE();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function xi(){return re.lFrame.selectedIndex}function ps(i){re.lFrame.selectedIndex=i}function lt(){const i=re.lFrame;return Rc(i.tView,i.selectedIndex)}function ja(){re.lFrame.currentNamespace=Jk}function vb(){!function u8(){re.lFrame.currentNamespace=null}()}let _E=!0;function Fc(){return _E}function br(i){_E=i}function Uh(i,e){for(let t=e.directiveStart,n=e.directiveEnd;t=n)break}else e[l]<0&&(i[Ba]+=65536),(a>14>16&&(3&i[Y])===e&&(i[Y]+=16384,vE(a,o)):vE(a,o)}const Ua=-1;class Lc{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function xb(i){return i!==Ua}function Bc(i){return 32767&i}function Vc(i,e){let t=function b8(i){return i>>16}(i),n=e;for(;t>0;)n=n[La],t--;return n}let Cb=!0;function Gh(i){const e=Cb;return Cb=i,e}const yE=255,wE=5;let v8=0;const vr={};function qh(i,e){const t=xE(i,e);if(-1!==t)return t;const n=e[N];n.firstCreatePass&&(i.injectorIndex=e.length,Db(n.data,i),Db(e,null),Db(n.blueprint,null));const r=Yh(i,e),o=i.injectorIndex;if(xb(r)){const s=Bc(r),a=Vc(r,e),l=a[N].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function Db(i,e){i.push(0,0,0,0,0,0,0,0,e)}function xE(i,e){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===e[i.injectorIndex+8]?-1:i.injectorIndex}function Yh(i,e){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;let t=0,n=null,r=e;for(;null!==r;){if(n=TE(r),null===n)return Ua;if(t++,r=r[La],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return Ua}function kb(i,e,t){!function y8(i,e,t){let n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(Dc)&&(n=t[Dc]),null==n&&(n=t[Dc]=v8++);const r=n&yE;e.data[i+(r>>wE)]|=1<=0?e&yE:D8:e}(t);if("function"==typeof o){if(!uE(e,i,n))return n&Re.Host?CE(r,0,n):DE(e,t,n,r);try{let s;if(s=o(n),null!=s||n&Re.Optional)return s;V_()}finally{pE()}}else if("number"==typeof o){let s=null,a=xE(i,e),l=Ua,c=n&Re.Host?e[yt][di]:null;for((-1===a||n&Re.SkipSelf)&&(l=-1===a?Yh(i,e):e[a+8],l!==Ua&&ME(n,!1)?(s=e[N],a=Bc(l),e=Vc(l,e)):a=-1);-1!==a;){const d=e[N];if(SE(o,a,d.data)){const u=x8(a,e,t,s,n,c);if(u!==vr)return u}l=e[a+8],l!==Ua&&ME(n,e[N].data[a+8]===c)&&SE(o,a,e)?(s=d,a=Bc(l),e=Vc(l,e)):a=-1}}return r}function x8(i,e,t,n,r,o){const s=e[N],a=s.data[i+8],d=Kh(a,s,t,null==n?hs(a)&&Cb:n!=s&&!!(3&a.type),r&Re.Host&&o===a);return null!==d?gs(e,s,d,a):vr}function Kh(i,e,t,n,r){const o=i.providerIndexes,s=e.data,a=1048575&o,l=i.directiveStart,d=o>>20,h=r?a+d:i.directiveEnd;for(let f=n?a:a+d;f=l&&m.type===t)return f}if(r){const f=s[l];if(f&&Jn(f)&&f.type===t)return l}return null}function gs(i,e,t,n){let r=i[t];const o=e.data;if(function m8(i){return i instanceof Lc}(r)){const s=r;s.resolving&&function $j(i,e){throw e&&e.join(" > "),new k(-200,i)}(function Ue(i){return"function"==typeof i?i.name||i.toString():"object"==typeof i&&null!=i&&"function"==typeof i.type?i.type.name||i.type.toString():he(i)}(o[t]));const a=Gh(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Ki(s.injectImpl):null;uE(i,n,Re.Default);try{r=i[t]=s.factory(void 0,o,i,n),e.firstCreatePass&&t>=n.directiveStart&&function h8(i,e,t){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(n){const s=Xk(e);(t.preOrderHooks??=[]).push(i,s),(t.preOrderCheckHooks??=[]).push(i,s)}r&&(t.preOrderHooks??=[]).push(0-i,r),o&&((t.preOrderHooks??=[]).push(i,o),(t.preOrderCheckHooks??=[]).push(i,o))}(t,o[t],e)}finally{null!==c&&Ki(c),Gh(a),s.resolving=!1,pE()}}return r}function SE(i,e,t){return!!(t[e+(i>>wE)]&1<{const e=i.prototype.constructor,t=e[Yr]||Eb(e),n=Object.prototype;let r=Object.getPrototypeOf(i.prototype).constructor;for(;r&&r!==n;){const o=r[Yr]||Eb(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Eb(i){return _h(i)?()=>{const e=Eb(ee(i));return e&&e()}:ss(i)}function TE(i){const e=i[N],t=e.type;return 2===t?e.declTNode:1===t?i[di]:null}function Co(i){return function w8(i,e){if("class"===e)return i.classes;if("style"===e)return i.styles;const t=i.attrs;if(t){const n=t.length;let r=0;for(;rC(Sk)});static#n=this.__NG_ELEMENT_ID__=-1}new S("").__NG_ELEMENT_ID__=i=>{const e=et();if(null===e)throw new k(204,!1);if(2&e.type)return e.value;if(i&Re.Optional)return null;throw new k(204,!1)};function Mb(i){return i.ngOriginalError}class Vi{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Mb(e);for(;t&&Mb(t);)t=Mb(t);return t||null}}const LE=new S("",{providedIn:"root",factory:()=>O(Vi).handleError.bind(void 0)});let Ga=(()=>{class i{static#e=this.__NG_ELEMENT_ID__=P8;static#t=this.__NG_ENV_ID__=t=>t}return i})();class N8 extends Ga{constructor(e){super(),this._lView=e}onDestroy(e){return Hh(this._lView,e),()=>function db(i,e){if(null===i[xo])return;const t=i[xo].indexOf(e);-1!==t&&i[xo].splice(t,1)}(this._lView,e)}}function P8(){return new N8(D())}function F8(){return qa(et(),D())}function qa(i,e){return new te(Li(i,e))}let te=(()=>{class i{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=F8}return i})();function VE(i){return i instanceof te?i.nativeElement:i}function Tb(i){return e=>{setTimeout(i,void 0,e)}}const ie=class L8 extends Z{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,jk()&&(this.destroyRef=O(Ga,{optional:!0})??void 0)}emit(e){const t=we(null);try{super.next(e)}finally{we(t)}}subscribe(e,t,n){let r=e,o=t||(()=>null),s=n;if(e&&"object"==typeof e){const l=e;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Tb(o),r&&(r=Tb(r)),s&&(s=Tb(s)));const a=super.subscribe({next:r,error:o,complete:s});return e instanceof Ze&&e.add(a),a}};function B8(){return this._results[Symbol.iterator]()}class _s{static#e=Symbol.iterator;get changes(){return this._changes??=new ie}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=_s.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=B8)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const n=function Xi(i){return i.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function n3(i,e,t){if(i.length!==e.length)return!1;for(let n=0;ns4}),s4="ng",oS=new S(""),bs=new S("",{providedIn:"platform",factory:()=>"unknown"}),ri=new S(""),Rb=new S("",{providedIn:"root",factory:()=>function Do(){if(void 0!==Ob)return Ob;if(typeof document<"u")return document;throw new k(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let sS=()=>null;function Hb(i,e,t=!1){return sS(i,e,t)}const mS=new S("",{providedIn:"root",factory:()=>!1});let cf;function Qa(i){return function $b(){if(void 0===cf&&(cf=null,tt.trustedTypes))try{cf=tt.trustedTypes.createPolicy("angular",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return cf}()?.createHTML(i)||i}class vs{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${uk})`}}class y4 extends vs{getTypeName(){return"HTML"}}class w4 extends vs{getTypeName(){return"Style"}}class x4 extends vs{getTypeName(){return"Script"}}class C4 extends vs{getTypeName(){return"URL"}}class D4 extends vs{getTypeName(){return"ResourceURL"}}function ln(i){return i instanceof vs?i.changingThisBreaksApplicationSecurity:i}function yr(i,e){const t=function k4(i){return i instanceof vs&&i.getTypeName()||null}(i);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${uk})`)}return t===e}class I4{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(Qa(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class O4{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){const t=this.inertDocument.createElement("template");return t.innerHTML=Qa(e),t}}const N4=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function uf(i){return(i=String(i)).match(N4)?i:"unsafe:"+i}function Jr(i){const e={};for(const t of i.split(","))e[t]=!0;return e}function qc(...i){const e={};for(const t of i)for(const n in t)t.hasOwnProperty(n)&&(e[n]=!0);return e}const wS=Jr("area,br,col,hr,img,wbr"),xS=Jr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),CS=Jr("rp,rt"),Gb=qc(wS,qc(xS,Jr("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")),qc(CS,Jr("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")),qc(CS,xS)),qb=Jr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),DS=qc(qb,Jr("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"),Jr("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")),P4=Jr("script,style,template");class F4{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)r.push(t),t=V4(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=B4(t);if(o){t=o;break}t=r.pop()}return this.buf.join("")}startElement(e){const t=kS(e).toLowerCase();if(!Gb.hasOwnProperty(t))return this.sanitizedSomething=!0,!P4.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r"),!0}endElement(e){const t=kS(e).toLowerCase();Gb.hasOwnProperty(t)&&!wS.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(SS(e))}}function B4(i){const e=i.nextSibling;if(e&&i!==e.previousSibling)throw ES(e);return e}function V4(i){const e=i.firstChild;if(e&&function L4(i,e){return(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(i,e))throw ES(e);return e}function kS(i){const e=i.nodeName;return"string"==typeof e?e:"FORM"}function ES(i){return new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`)}const H4=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,z4=/([^\#-~ |!])/g;function SS(i){return i.replace(/&/g,"&").replace(H4,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(z4,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let hf;function MS(i,e){let t=null;try{hf=hf||function yS(i){const e=new O4(i);return function R4(){try{return!!(new window.DOMParser).parseFromString(Qa(""),"text/html")}catch{return!1}}()?new I4(e):e}(i);let n=e?String(e):"";t=hf.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=t.innerHTML,t=hf.getInertBodyElement(n)}while(n!==o);return Qa((new F4).sanitizeChildren(Yb(t)||t))}finally{if(t){const n=Yb(t)||t;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Yb(i){return"content"in i&&function j4(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var hi=function(i){return i[i.NONE=0]="NONE",i[i.HTML=1]="HTML",i[i.STYLE=2]="STYLE",i[i.SCRIPT=3]="SCRIPT",i[i.URL=4]="URL",i[i.RESOURCE_URL=5]="RESOURCE_URL",i}(hi||{});function Tn(i){return"browser"===(i??O(it)).get(bs)}var ko=function(i){return i[i.Important=1]="Important",i[i.DashCase=2]="DashCase",i}(ko||{});let Qb;function Jb(i,e){return Qb(i,e)}function el(i,e,t,n,r){if(null!=n){let o,s=!1;wi(n)?o=n:ni(n)&&(s=!0,n=n[vt]);const a=$e(n);0===i&&null!==t?null==r?jS(e,t,a):ys(e,t,a,r||null,!0):1===i&&null!==t?ys(e,t,a,r||null,!0):2===i?function Zc(i,e,t){const n=_f(i,e);n&&function g5(i,e,t,n){i.removeChild(e,t,n)}(i,n,e,t)}(e,a,s):3===i&&e.destroyNode(a),null!=o&&function v5(i,e,t,n,r){const o=t[pr];o!==$e(t)&&el(e,i,n,o,r);for(let a=Rt;a0&&(i[t-1][Qn]=n[Qn]);const o=Dh(i,Rt+e);!function d5(i,e){VS(i,e),e[vt]=null,e[di]=null}(n[N],n);const s=o[Xr];null!==s&&s.detachView(o[N]),n[Ht]=null,n[Qn]=null,n[Y]&=-129}return n}function gf(i,e){if(!(256&e[Y])){const t=e[ne];t.destroyNode&&vf(i,e,t,3,null,null),function h5(i){let e=i[Tc];if(!e)return nv(i[N],i);for(;e;){let t=null;if(ni(e))t=e[Tc];else{const n=e[Rt];n&&(t=n)}if(!t){for(;e&&!e[Qn]&&e!==i;)ni(e)&&nv(e[N],e),e=e[Ht];null===e&&(e=i),ni(e)&&nv(e[N],e),t=e&&e[Qn]}e=t}}(e)}}function nv(i,e){if(256&e[Y])return;const t=we(null);try{e[Y]&=-129,e[Y]|=256,e[us]&&ZD(e[us]),function p5(i,e){let t;if(null!=i&&null!=(t=i.destroyHooks))for(let n=0;n=0?n[s]():n[-s].unsubscribe(),o+=2}else t[o].call(n[t[o+1]]);null!==n&&(e[cs]=null);const r=e[xo];if(null!==r){e[xo]=null;for(let o=0;o-1){const{encapsulation:o}=i.data[n.directiveStart+r];if(o===Xn.None||o===Xn.Emulated)return null}return Li(n,t)}}(i,e.parent,t)}function ys(i,e,t,n,r){i.insertBefore(e,t,n,r)}function jS(i,e,t){i.appendChild(e,t)}function US(i,e,t,n,r){null!==n?ys(i,e,t,n,r):jS(i,e,t)}function _f(i,e){return i.parentNode(e)}function $S(i,e,t){return GS(i,e,t)}let ov,GS=function WS(i,e,t){return 40&i.type?Li(i,t):null};function bf(i,e,t,n){const r=rv(i,n,e),o=e[ne],a=$S(n.parent||e[di],n,e);if(null!=r)if(Array.isArray(t))for(let l=0;lK&&JS(i,e,K,!1),gr(s?2:0,r),t(n,r)}finally{ps(o),gr(s?3:1,r)}}function cv(i,e,t){if(nb(e)){const n=we(null);try{const o=e.directiveEnd;for(let s=e.directiveStart;snull;function oM(i,e,t,n,r){for(let o in e){if(!e.hasOwnProperty(o))continue;const s=e[o];if(void 0===s)continue;n??={};let a,l=Ra.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(null!==r){if(!r.hasOwnProperty(o))continue;c=r[o]}0===i?sM(n,t,c,a,l):sM(n,t,c,a)}return n}function sM(i,e,t,n,r){let o;i.hasOwnProperty(t)?(o=i[t]).push(e,n):o=i[t]=[e,n],void 0!==r&&o.push(r)}function Ji(i,e,t,n,r,o,s,a){const l=Li(e,t);let d,c=e.inputs;!a&&null!=c&&(d=c[n])?(_v(i,t,d,n,r),hs(e)&&function O5(i,e){const t=an(e,i);16&t[Y]||(t[Y]|=64)}(t,e.index)):3&e.type&&(n=function I5(i){return"class"===i?"className":"for"===i?"htmlFor":"formaction"===i?"formAction":"innerHtml"===i?"innerHTML":"readonly"===i?"readOnly":"tabindex"===i?"tabIndex":i}(n),r=null!=s?s(r,e.value||"",n):r,o.setProperty(l,n,r))}function fv(i,e,t,n){if(rE()){const r=null===n?null:{"":-1},o=function B5(i,e){const t=i.directiveRegistry;let n=null,r=null;if(t)for(let o=0;o0;){const t=i[--e];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,n,o)}}(i,e,n,Qc(i,t,r.hostVars,fe),r)}function wr(i,e,t,n,r,o){const s=Li(i,e);!function pv(i,e,t,n,r,o,s){if(null==o)i.removeAttribute(e,r,t);else{const a=null==s?he(o):s(o,n||"",r);i.setAttribute(e,r,a,t)}}(e[ne],s,o,i.value,t,n,r)}function $5(i,e,t,n,r,o){const s=o[e];if(null!==s)for(let a=0;a0&&(t[r-1][Qn]=e),n{Vh(i.lView)},consumerOnSignalRead(){this.lView[us]=this}},J5=100;function Cf(i,e=!0,t=0){const n=i[mr],r=n.rendererFactory;r.begin?.();try{!function eU(i,e){const t=aE();try{lE(!0),yv(i,e);let n=0;for(;Nc(i);){if(n===J5)throw new k(103,!1);n++,yv(i,1)}}finally{lE(t)}}(i,t)}catch(s){throw e&&xf(i,s),s}finally{r.end?.(),n.inlineEffectRunner?.flush()}}function tU(i,e,t,n){const r=e[Y];if(!(256&~r))return;e[mr].inlineEffectRunner?.flush(),_b(e);let a=null,l=null;(function iU(i){return 2!==i.type})(i)&&(l=function K5(i){return i[us]??function X5(i){const e=gM.pop()??Object.create(Q5);return e.lView=i,e}(i)}(e),a=KD(l));try{tE(e),function cE(i){return re.lFrame.bindingIndex=i}(i.bindingStartIndex),null!==t&&iM(i,e,t,2,n);const c=!(3&~r);if(c){const h=i.preOrderCheckHooks;null!==h&&$h(e,h,null)}else{const h=i.preOrderHooks;null!==h&&Wh(e,h,0,null),yb(e,0)}if(function nU(i){for(let e=KE(i);null!==e;e=XE(e)){if(!(e[Y]&Lh.HasTransplantedViews))continue;const t=e[Ha];for(let n=0;n-1&&(Kc(e,n),Dh(t,n))}this._attachedToViewContainer=!1}gf(this._lView[N],this._lView)}onDestroy(e){Hh(this._lView,e)}markForCheck(){ed(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Y]&=-129}reattach(){cb(this._lView),this._lView[Y]|=128}detectChanges(){this._lView[Y]|=1024,Cf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const e=Ic(this._lView),t=this._lView[ds];null!==t&&!e&&iv(t,this._lView),VS(this._lView[N],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=e;const t=Ic(this._lView),n=this._lView[ds];null!==n&&!t&&HS(n,this._lView),cb(this._lView)}}let dn=(()=>{class i{static#e=this.__NG_ELEMENT_ID__=aU}return i})();const oU=dn,sU=class extends oU{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,n){const r=il(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:n});return new td(r)}};function aU(){return Df(et(),D())}function Df(i,e){return 4&i.type?new sU(e,i,qa(i,e)):null}let HM=()=>null;function Cs(i,e){return HM(i,e)}class ol{}const cd=new S("",{providedIn:"root",factory:()=>!1}),zM=new S("");class YU{}class jM{}class XU{resolveComponentFactory(e){throw function KU(i){const e=Error(`No component factory found for ${Yt(i)}.`);return e.ngComponent=i,e}(e)}}class sl{static#e=this.NULL=new XU}class Tf{}let Ds=(()=>{class i{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function ZU(){const i=D(),t=an(et().index,i);return(ni(t)?t:i)[ne]}()}return i})(),QU=(()=>{class i{static#e=this.\u0275prov=L({token:i,providedIn:"root",factory:()=>null})}return i})();const Av={},$M=new Set;function un(i){$M.has(i)||($M.add(i),performance?.mark?.("mark_feature_usage",{detail:{feature:i}}))}function WM(i){let e=!0;return setTimeout(()=>{e&&(e=!1,i())}),"function"==typeof tt.requestAnimationFrame&&tt.requestAnimationFrame(()=>{e&&(e=!1,i())}),()=>{e=!1}}function GM(i){let e=!0;return queueMicrotask(()=>{e&&i()}),()=>{e=!1}}function qM(...i){}class U{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),typeof Zone>"u")throw new k(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&t,r.shouldCoalesceRunChangeDetection=n,r.callbackScheduled=!1,function t$(i){const e=()=>{!function e$(i){i.isCheckStableRunning||i.callbackScheduled||(i.callbackScheduled=!0,Zone.root.run(()=>{WM(()=>{i.callbackScheduled=!1,Ov(i),i.isCheckStableRunning=!0,Iv(i),i.isCheckStableRunning=!1})}),Ov(i))}(i)};i._inner=i._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,n,r,o,s,a)=>{if(function i$(i){return XM(i,"__ignore_ng_zone__")}(a))return t.invokeTask(r,o,s,a);try{return YM(i),t.invokeTask(r,o,s,a)}finally{(i.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||i.shouldCoalesceRunChangeDetection)&&e(),KM(i)}},onInvoke:(t,n,r,o,s,a,l)=>{try{return YM(i),t.invoke(r,o,s,a,l)}finally{i.shouldCoalesceRunChangeDetection&&!i.callbackScheduled&&!function n$(i){return XM(i,"__scheduler_tick__")}(a)&&e(),KM(i)}},onHasTask:(t,n,r,o)=>{t.hasTask(r,o),n===r&&("microTask"==o.change?(i._hasPendingMicrotasks=o.microTask,Ov(i),Iv(i)):"macroTask"==o.change&&(i.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,n,r,o)=>(t.handleError(r,o),i.runOutsideAngular(()=>i.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!U.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(U.isInAngularZone())throw new k(909,!1)}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,JU,qM,qM);try{return o.runTask(s,t,n)}finally{o.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const JU={};function Iv(i){if(0==i._nesting&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function Ov(i){i.hasPendingMicrotasks=!!(i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&!0===i.callbackScheduled)}function YM(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function KM(i){i._nesting--,Iv(i)}class Rv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}function XM(i,e){return!(!Array.isArray(i)||1!==i.length)&&!0===i[0]?.data?.[e]}var ks=function(i){return i[i.EarlyRead=0]="EarlyRead",i[i.Write=1]="Write",i[i.MixedReadWrite=2]="MixedReadWrite",i[i.Read=3]="Read",i}(ks||{});const ZM={destroy(){}};function Pv(i,e){!e&&Rh();const t=e?.injector??O(it);if(!Tn(t))return ZM;un("NgAfterRender");const n=t.get(ud),r=n.handler??=new JM,o=e?.phase??ks.MixedReadWrite,s=()=>{r.unregister(l),a()},a=t.get(Ga).onDestroy(s),l=zk(t,()=>new QM(o,i));return r.register(l),{destroy:s}}function dd(i,e){!e&&Rh();const t=e?.injector??O(it);if(!Tn(t))return ZM;un("NgAfterNextRender");const n=t.get(ud),r=n.handler??=new JM,o=e?.phase??ks.MixedReadWrite,s=()=>{r.unregister(l),a()},a=t.get(Ga).onDestroy(s),l=zk(t,()=>new QM(o,()=>{s(),i()}));return r.register(l),{destroy:s}}class QM{constructor(e,t){this.phase=e,this.callbackFn=t,this.zone=O(U),this.errorHandler=O(Vi,{optional:!0}),O(ol,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}}class JM{constructor(){this.executingCallbacks=!1,this.buckets={[ks.EarlyRead]:new Set,[ks.Write]:new Set,[ks.MixedReadWrite]:new Set,[ks.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(const e of Object.values(this.buckets))for(const t of e)t.invoke();this.executingCallbacks=!1;for(const e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(const e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}}let ud=(()=>{class i{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const n of t)n()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=L({token:i,providedIn:"root",factory:()=>new i})}return i})();function If(i,e,t){let n=t?i.styles:null,r=t?i.classes:null,o=0;if(null!==e)for(let s=0;s0&&ZS(i,t,o.join(" "))}}(f,A,p,n),void 0!==t&&function m$(i,e,t){const n=i.projection=[];for(let r=0;r{class i{static#e=this.__NG_ELEMENT_ID__=g$}return i})();function g$(){return a1(et(),D())}const _$=Hi,o1=class extends _${constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return qa(this._hostTNode,this._hostLView)}get injector(){return new Zt(this._hostTNode,this._hostLView)}get parentInjector(){const e=Yh(this._hostTNode,this._hostLView);if(xb(e)){const t=Vc(e,this._hostLView),n=Bc(e);return new Zt(t[N].data[n+8],t)}return new Zt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=s1(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Rt}createEmbeddedView(e,t,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const s=Cs(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(t||{},o,s);return this.insertImpl(a,r,ws(this._hostTNode,s)),a}createComponent(e,t,n,r,o){const s=e&&!function Mc(i){return"function"==typeof i}(e);let a;if(s)a=t;else{const m=t||{};a=m.index,n=m.injector,r=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}const l=s?e:new md(ke(e)),c=n||this.parentInjector;if(!o&&null==l.ngModule){const p=(s?c:this.parentInjector).get(Sn,null);p&&(o=p)}const d=ke(l.componentType??{}),u=Cs(this._lContainer,d?.id??null),f=l.create(c,r,u?.firstChild??null,o);return this.insertImpl(f.hostView,a,ws(this._hostTNode,u)),f}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){const r=e._lView;if(function Y3(i){return wi(i[Ht])}(r)){const a=this.indexOf(e);if(-1!==a)this.detach(a);else{const l=r[Ht],c=new o1(l,l[di],l[Ht]);c.detach(c.indexOf(e))}}const o=this._adjustIndex(t),s=this._lContainer;return nl(s,r,o,n),e.attachToViewContainerRef(),Dk(Bv(s),o,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=s1(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=Kc(this._lContainer,t);n&&(Dh(Bv(this._lContainer),t),gf(n[N],n))}detach(e){const t=this._adjustIndex(e,-1),n=Kc(this._lContainer,t);return n&&null!=Dh(Bv(this._lContainer),t)?new td(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function s1(i){return i[8]}function Bv(i){return i[8]||(i[8]=[])}function a1(i,e){let t;const n=e[i.index];return wi(n)?t=n:(t=cM(n,e,null,i),e[i.index]=t,wf(e,t)),l1(t,e,i,n),new o1(t,i,e)}let l1=function d1(i,e,t,n){if(i[pr])return;let r;r=8&t.type?$e(n):function b$(i,e){const t=i[ne],n=t.createComment(""),r=Li(e,i);return ys(t,_f(t,r),n,function _5(i,e){return i.nextSibling(e)}(t,r),!1),n}(e,t),i[pr]=r},Vv=()=>!1;class Hv{constructor(e){this.queryList=e,this.matches=null}clone(){return new Hv(this.queryList)}setDirty(){this.queryList.setDirty()}}class zv{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let o=0;oe.trim())}(e):e}}class jv{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n0)n.push(s[a/2]);else{const c=o[a+1],d=e[-l];for(let u=Rt;u=0;n--){const r=i[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Sc(r.hostAttrs,t=Sc(t,r.hostAttrs))}}(n)}function B$(i,e){for(const t in e.inputs){if(!e.inputs.hasOwnProperty(t)||i.inputs.hasOwnProperty(t))continue;const n=e.inputs[t];if(void 0!==n&&(i.inputs[t]=n,i.declaredInputs[t]=e.declaredInputs[t],null!==e.inputTransforms)){const r=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(r))continue;i.inputTransforms??={},i.inputTransforms[r]=e.inputTransforms[r]}}}function Pf(i){return i===fr?{}:i===ze?[]:i}function H$(i,e){const t=i.viewQuery;i.viewQuery=t?(n,r)=>{e(n,r),t(n,r)}:e}function z$(i,e){const t=i.contentQueries;i.contentQueries=t?(n,r,o)=>{e(n,r,o),t(n,r,o)}:e}function j$(i,e){const t=i.hostBindings;i.hostBindings=t?(n,r)=>{e(n,r),t(n,r)}:e}function I1(i){const e=t=>{const n=(Array.isArray(i)?i:i()).map(r=>"function"==typeof r?{directive:ee(r),inputs:fr,outputs:fr}:{directive:ee(r.directive),inputs:R1(r.inputs),outputs:R1(r.outputs)});null===t.hostDirectives?(t.findHostDirectiveDefs=O1,t.hostDirectives=n):t.hostDirectives.unshift(...n)};return e.ngInherit=!0,e}function O1(i,e,t){if(null!==i.hostDirectives)for(const n of i.hostDirectives){const r=Kt(n.directive);G$(r.declaredInputs,n.inputs),O1(r,e,t),t.set(r,n),e.push(r)}}function R1(i){if(void 0===i||0===i.length)return fr;const e={};for(let t=0;tt()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Kv extends q${constructor(e){super(),this.moduleType=e}create(e){return new Yv(this.moduleType,e,[])}}class P1 extends Ss{constructor(e){super(),this.componentFactoryResolver=new n1(this),this.instance=null;const t=new Na([...e.providers,{provide:Ss,useValue:this},{provide:sl,useValue:this.componentFactoryResolver}],e.parent||Oh(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}let ll=(()=>{class i{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new dk(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Lf(i){return!!function Xv(i){return null!==i&&("function"==typeof i||"object"==typeof i)}(i)&&(Array.isArray(i)||!(i instanceof Map)&&Symbol.iterator in i)}function Nt(i,e,t){return!Object.is(i[e],t)&&(i[e]=t,!0)}function _d(i,e,t,n,r,o,s,a,l,c){const d=t+K,u=e.firstCreatePass?function t6(i,e,t,n,r,o,s,a,l){const c=e.consts,d=tl(e,i,4,s||null,a||null);fv(e,t,d,Mn(c,l)),Uh(e,d);const u=d.tView=hv(2,d,n,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return null!==e.queries&&(e.queries.template(e,d),u.queries=e.queries.embeddedTView(d)),d}(d,e,i,n,r,o,s,a,l):e.data[d];_r(u,!1);const h=B1(e,i,u,t);Fc()&&bf(e,i,h,u),Ci(h,i);const f=cM(h,i,h,u);return i[d]=f,wf(i,f),function c1(i,e,t){return Vv(i,e,t)}(f,u,i),Bh(u)&&dv(e,i,u),null!=l&&uv(i,u,c),u}function pe(i,e,t,n,r,o,s,a){const l=D(),c=Me();return _d(l,c,i,e,t,n,r,Mn(c.consts,o),s,a),pe}let B1=function V1(i,e,t,n){return br(!0),e[ne].createComment("")};function Fe(i,e,t,n){const r=D();return Nt(r,er(),e)&&(Me(),wr(lt(),r,i,e,t,n)),Fe}function _l(i,e,t,n){return Nt(i,er(),t)?e+he(t)+n:fe}function $f(i,e){return i<<17|e<<2}function Mo(i){return i>>17&32767}function sy(i){return 2|i}function As(i){return(131068&i)>>2}function ay(i,e){return-131069&i|e<<2}function ly(i){return 1|i}function gT(i,e,t,n){const r=i[t+1],o=null===e;let s=n?Mo(r):As(r),a=!1;for(;0!==s&&(!1===a||o);){const c=i[s+1];z6(i[s],e)&&(a=!0,i[s+1]=n?ly(c):sy(c)),s=n?Mo(c):As(c)}a&&(i[t+1]=n?sy(r):ly(r))}function z6(i,e){return null===i||null==e||(Array.isArray(i)?i[1]:i)===e||!(!Array.isArray(i)||"string"!=typeof e)&&Oa(i,e)>=0}const Qt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _T(i){return i.substring(Qt.key,Qt.keyEnd)}function bT(i,e){const t=Qt.textEnd;return t===e?-1:(e=Qt.keyEnd=function W6(i,e,t){for(;e32;)e++;return e}(i,Qt.key=e,t),kl(i,e,t))}function kl(i,e,t){for(;e=0;t=bT(e,t))sn(i,_T(e),!0)}function tr(i,e,t,n){const r=D(),o=Me(),s=Qr(2);o.firstUpdatePass&&DT(o,i,s,n),e!==fe&&Nt(r,s,e)&&ET(o,o.data[xi()],r,r[ne],i,r[s+1]=function iW(i,e){return null==i||""===i||("string"==typeof e?i+=e:"object"==typeof i&&(i=Yt(ln(i)))),i}(e,t),n,s)}function ir(i,e,t,n){const r=Me(),o=Qr(2);r.firstUpdatePass&&DT(r,null,o,n);const s=D();if(t!==fe&&Nt(s,o,t)){const a=r.data[xi()];if(MT(a,n)&&!CT(r,o)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=A_(l,t||"")),cy(r,a,s,t,n)}else!function tW(i,e,t,n,r,o,s,a){r===fe&&(r=ze);let l=0,c=0,d=0=i.expandoStartIndex}function DT(i,e,t,n){const r=i.data;if(null===r[t+1]){const o=r[xi()],s=CT(i,t);MT(o,n)&&null===e&&!s&&(e=!1),e=function K6(i,e,t,n){const r=function pb(i){const e=re.lFrame.currentDirectiveIndex;return-1===e?null:i[e]}(i);let o=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(t=wd(t=dy(null,i,e,t,n),e.attrs,n),o=null);else{const s=e.directiveStylingLast;if(-1===s||i[s]!==r)if(t=dy(r,i,e,t,n),null===o){let l=function X6(i,e,t){const n=t?e.classBindings:e.styleBindings;if(0!==As(n))return i[Mo(n)]}(i,e,n);void 0!==l&&Array.isArray(l)&&(l=dy(null,i,e,l[1],n),l=wd(l,e.attrs,n),function Z6(i,e,t,n){i[Mo(t?e.classBindings:e.styleBindings)]=n}(i,e,n,l))}else o=function Q6(i,e,t){let n;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(c=!0)):d=t,r)if(0!==l){const h=Mo(i[a+1]);i[n+1]=$f(h,a),0!==h&&(i[h+1]=ay(i[h+1],n)),i[a+1]=function L6(i,e){return 131071&i|e<<17}(i[a+1],n)}else i[n+1]=$f(a,0),0!==a&&(i[a+1]=ay(i[a+1],n)),a=n;else i[n+1]=$f(l,0),0===a?a=n:i[l+1]=ay(i[l+1],n),l=n;c&&(i[n+1]=sy(i[n+1])),gT(i,d,n,!0),gT(i,d,n,!1),function H6(i,e,t,n,r){const o=r?i.residualClasses:i.residualStyles;null!=o&&"string"==typeof e&&Oa(o,e)>=0&&(t[n+1]=ly(t[n+1]))}(e,d,i,n,o),s=$f(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,t,s,n)}}function dy(i,e,t,n,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=i[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=t[r+1];h===fe&&(h=u?ze:void 0);let f=u?$_(h,n):d===n?h:void 0;if(c&&!Gf(f)&&(f=$_(l,n)),Gf(f)&&(a=f,s))return a;const m=i[r+1];r=s?Mo(m):As(m)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=$_(l,n))}return a}function Gf(i){return void 0!==i}function MT(i,e){return!!(i.flags&(e?8:16))}function pt(i,e){un("NgControlFlow");const t=D(),n=er(),r=t[n]!==fe?t[n]:-1,o=-1!==r?qf(t,K+r):void 0;if(Nt(t,n,i)){const a=we(null);try{if(void 0!==o&&function vv(i,e){const t=Kc(i,e);return void 0!==t&&gf(t[N],t),t}(o,0),-1!==i){const l=K+i,c=qf(t,l),d=function fy(i,e){return Rc(i,e)}(t[N],l),u=Cs(c,d.tView.ssrId);nl(c,il(t,d,e,{dehydratedView:u}),0,ws(d,u))}}finally{we(a)}}else if(void 0!==o){const a=function mM(i,e){const t=Rt+e;if(t(br(!0),pf(n,r,function gE(){return re.lFrame.currentNamespace}()));function fi(){return D()}function To(i,e,t){const n=D();return Nt(n,er(),e)&&Ji(Me(),lt(),n,i,e,n[ne],t,!0),To}const Sl="en-US";let VT=Sl;let rA=(i,e,t)=>{};function J(i,e,t,n){const r=D(),o=Me(),s=et();return by(o,r,r[ne],s,i,e,n),J}function by(i,e,t,n,r,o,s){const a=Bh(n),c=i.firstCreatePass&&hM(i),d=e[at],u=uM(e);let h=!0;if(3&n.type||s){const p=Li(n,e),g=s?s(p):p,_=u.length,v=s?w=>s($e(w[n.index])):n.index;rA(p,r,o);let y=null;if(!s&&a&&(y=function vG(i,e,t,n){const r=i.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(i,e,r,n.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=lA(n,e,d,o);const w=t.listen(g,r,o);u.push(o,w),c&&c.push(r,v,_,_+1)}}else o=lA(n,e,d,o);const f=n.outputs;let m;if(h&&null!==f&&(m=f[r])){const p=m.length;if(p)for(let g=0;g-1?an(i.index,e):e,5);let a=aA(e,t,n,o),l=r.__ngNextListenerFn__;for(;l;)a=aA(e,t,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function ge(i=1){return function c8(i){return(re.lFrame.contextLView=function iE(i,e){for(;i>0;)e=e[La],i--;return e}(i,re.lFrame.contextLView))[at]}(i)}function yG(i,e){let t=null;const n=function c3(i){const e=i.attrs;if(null!=e){const t=e.indexOf(5);if(!(1&t))return e[t+1]}return null}(i);for(let r=0;r(br(!0),function ev(i,e){return i.createText(e)}(e[ne],n));function Rs(i){return nr("",i,""),Rs}function nr(i,e,t){const n=D(),r=_l(n,i,e,t);return r!==fe&&function eo(i,e,t){const n=Oc(e,i);!function BS(i,e,t){i.setValue(e,t)}(i[ne],n,t)}(n,xi(),r),nr}function fn(i,e,t){v1(e)&&(e=e());const n=D();return Nt(n,er(),e)&&Ji(Me(),lt(),n,i,e,n[ne],t,!1),fn}function On(i,e){const t=v1(i);return t&&i.set(e),t}function mn(i,e){const t=D(),n=Me(),r=et();return by(n,t,t[ne],r,i,e),mn}function yy(i,e,t,n,r){if(i=ee(i),Array.isArray(i))for(let o=0;o>20;if(ls(i)||!i.multi){const f=new Lc(c,r,b),m=xy(l,e,r?d:d+h,u);-1===m?(kb(qh(a,s),o,l),wy(o,i,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(f),s.push(f)):(t[m]=f,s[m]=f)}else{const f=xy(l,e,d+h,u),m=xy(l,e,d,d+h),g=m>=0&&t[m];if(r&&!g||!r&&!(f>=0&&t[f])){kb(qh(a,s),o,l);const _=function HG(i,e,t,n,r){const o=new Lc(i,t,b);return o.multi=[],o.index=e,o.componentProviders=0,FA(o,r,n&&!t),o}(r?VG:BG,t.length,r,n,c);!r&&g&&(t[m].providerFactory=_),wy(o,i,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(_),s.push(_)}else wy(o,i,f>-1?f:m,FA(t[r?m:f],c,!r&&n));!r&&n&&g&&t[m].componentProviders++}}}function wy(i,e,t,n){const r=ls(e),o=function x3(i){return!!i.useClass}(e);if(r||o){const l=(o?ee(e.useClass):e).prototype.ngOnDestroy;if(l){const c=i.destroyHooks||(i.destroyHooks=[]);if(!r&&e.multi){const d=c.indexOf(t);-1===d?c.push(t,[n,l]):c[d+1].push(n,l)}else c.push(t,l)}}}function FA(i,e,t){return t&&i.componentProviders++,i.multi.push(e)-1}function xy(i,e,t,n){for(let r=t;r{t.providersResolver=(n,r)=>function LG(i,e,t){const n=Me();if(n.firstCreatePass){const r=Jn(i);yy(t,n.data,n.blueprint,r,!0),yy(e,n.data,n.blueprint,r,!1)}}(n,r?r(i):i,e)}}let zG=(()=>{class i{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const n=Y_(0,t.type),r=n.length>0?function F1(i,e,t=null){return new P1({providers:i,parent:e,debugName:t,runEnvironmentInitializers:!0}).injector}([n],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,r)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=L({token:i,providedIn:"environment",factory:()=>new i(C(Sn))})}return i})();function Oe(i){un("NgStandalone"),i.getStandaloneInjector=e=>e.get(zG).getOrCreateStandaloneInjector(i)}function Td(i,e){return Df(i,e)}const lI=new S(""),em=new S("");let Iy,Ty=(()=>{class i{constructor(t,n,r){this._ngZone=t,this.registry=n,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Iy||(function e9(i){Iy=i}(r),r.addToWindow(n)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(t)||(clearTimeout(n.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t()},n)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,n,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,n,r),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,n,r){return[]}static#e=this.\u0275fac=function(n){return new(n||i)(C(U),C(Ay),C(em))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})(),Ay=(()=>{class i{constructor(){this._applications=new Map}registerApplication(t,n){this._applications.set(t,n)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,n=!0){return Iy?.findTestabilityInTree(this,t,n)??null}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"platform"})}return i})();function tm(i){return!!i&&"function"==typeof i.then}function cI(i){return!!i&&"function"==typeof i.subscribe}const t9=new S("");let Oy=(()=>{class i{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,n)=>{this.resolve=t,this.reject=n}),this.appInits=O(t9,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=r();if(tm(o))t.push(o);else if(cI(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{n()}).catch(r=>{this.reject(r)}),0===t.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const Ry=new S("");function hI(i,e){return Array.isArray(e)?e.reduce(hI,i):{...i,...e}}let rr=(()=>{class i{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=O(LE),this.afterRenderEffectManager=O(ud),this.zonelessEnabled=O(cd),this.externalTestViews=new Set,this.beforeRender=new Z,this.afterTick=new Z,this.componentTypes=[],this.components=[],this.isStable=O(ll).hasPendingTasks.pipe(Vt(t=>!t)),this._injector=O(Sn)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,n){const r=t instanceof jM;if(!this._injector.get(Oy).done)throw!r&&function as(i){const e=ke(i)||Kt(i)||ci(i);return null!==e&&e.standalone}(t),new k(405,!1);let s;s=r?t:this._injector.get(sl).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function i9(i){return i.isBoundToModule}(s)?void 0:this._injector.get(Ss),c=s.create(it.NULL,[],n||s.selector,a),d=c.location.nativeElement,u=c.injector.get(lI,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),im(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(t){if(this._runningTick)throw new k(101,!1);const n=we(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(t)}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,we(n),this.afterTick.next()}}detectChangesInAttachedViews(t){let n=null;this._injector.destroyed||(n=this._injector.get(Tf,null,{optional:!0}));let r=0;const o=this.afterRenderEffectManager;for(;r<10;){const s=0===r;if(t||!s){this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:l}of this._views)r9(a,l,s,this.zonelessEnabled)}else n?.begin?.(),n?.end?.();if(r++,o.executeInternalCallbacks(),!this.allViews.some(({_lView:a})=>Nc(a))&&(o.execute(),!this.allViews.some(({_lView:a})=>Nc(a))))break}}attachView(t){const n=t;this._views.push(n),n.attachToAppRef(this)}detachView(t){const n=t;im(this._views,n),n.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const n=this._injector.get(Ry,[]);[...this._bootstrapListeners,...n].forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>im(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new k(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function im(i,e){const t=i.indexOf(e);t>-1&&i.splice(t,1)}function r9(i,e,t,n){(t||Nc(i))&&Cf(i,e,t&&!n?0:1)}let l9=(()=>{class i{constructor(){this.zone=O(U),this.changeDetectionScheduler=O(ol),this.applicationRef=O(rr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Ny({ngZoneFactory:i,ignoreChangesOutsideZone:e}){return i??=()=>new U(Py()),[{provide:U,useFactory:i},{provide:Kr,multi:!0,useFactory:()=>{const t=O(l9,{optional:!0});return()=>t.initialize()}},{provide:Kr,multi:!0,useFactory:()=>{const t=O(d9);return()=>{t.initialize()}}},{provide:LE,useFactory:c9},!0===e?{provide:zM,useValue:!0}:[]]}function c9(){const i=O(U),e=O(Vi);return t=>i.runOutsideAngular(()=>e.handleError(t))}function Py(i){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:i?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:i?.runCoalescing??!1}}let d9=(()=>{class i{constructor(){this.subscription=new Ze,this.initialized=!1,this.zone=O(U),this.pendingTasks=O(ll)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{U.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Od=(()=>{class i{constructor(){this.appRef=O(rr),this.taskService=O(ll),this.ngZone=O(U),this.zonelessEnabled=O(cd),this.disableScheduling=O(zM,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Ze,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Rv||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 3:case 2:case 0:case 4:case 5:case 1:this.shouldRefreshViews=!0}if(!this.shouldScheduleTick())return;const n=this.useMicrotaskScheduler?GM:WM;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&U.isInAngularZone())}tick(t){if(this.runningTick||this.appRef.destroyed)return;const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(t)},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,GM(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const kr=new S("",{providedIn:"root",factory:()=>O(kr,Re.Optional|Re.SkipSelf)||function u9(){return typeof $localize<"u"&&$localize.locale||Sl}()}),Ly=new S("");let _I=(()=>{class i{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,n){const r=function r$(i="zone.js",e){return"noop"===i?new Rv:"zone.js"===i?new U(e):i}(n?.ngZone,Py({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return r.run(()=>{const o=n?.ignoreChangesOutsideZone,s=function K$(i,e,t){return new Yv(i,e,t)}(t.moduleType,this.injector,[...Ny({ngZoneFactory:()=>r,ignoreChangesOutsideZone:o}),{provide:ol,useExisting:Od}]),a=s.injector.get(Vi,null);return r.runOutsideAngular(()=>{const l=r.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{im(this._modules,s),l.unsubscribe()})}),function uI(i,e,t){try{const n=t();return tm(n)?n.catch(r=>{throw e.runOutsideAngular(()=>i.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>i.handleError(n)),n}}(a,r,()=>{const l=s.injector.get(Oy);return l.runInitializers(),l.donePromise.then(()=>(function HT(i){"string"==typeof i&&(VT=i.toLowerCase().replace(/_/g,"-"))}(s.injector.get(kr,Sl)||Sl),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,n=[]){const r=hI({},n);return function a9(i,e,t){const n=new Kv(t);return Promise.resolve(n)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const n=t.injector.get(rr);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new k(-403,!1);t.instance.ngDoBootstrap(n)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new k(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const t=this._injector.get(Ly,null);t&&(t.forEach(n=>n()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||i)(C(it))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"platform"})}return i})(),Ao=null;const bI=new S("");function vI(i,e,t=[]){const n=`Platform: ${e}`,r=new S(n);return(o=[])=>{let s=By();if(!s||s.injector.get(bI,!1)){const a=[...t,...o,{provide:r,useValue:!0}];i?i(a):function m9(i){if(Ao&&!Ao.get(bI,!1))throw new k(400,!1);(function dI(){!function gj(i){ek=i}(()=>{throw new k(600,!1)})})(),Ao=i;const e=i.get(_I);(function wI(i){i.get(oS,null)?.forEach(t=>t())})(i)}(function yI(i=[],e){return it.create({name:e,providers:[{provide:Z_,useValue:"platform"},{provide:Ly,useValue:new Set([()=>Ao=null])},...i]})}(a,n))}return function p9(i){const e=By();if(!e)throw new k(401,!1);return e}()}}function By(){return Ao?.get(_I)??null}let Di=(()=>{class i{static#e=this.__NG_ELEMENT_ID__=_9}return i})();function _9(i){return function b9(i,e,t){if(hs(i)&&!t){const n=an(i.index,e);return new td(n,n)}return 47&i.type?new td(e[yt],e):null}(et(),D(),!(16&~i))}class EI{constructor(){}supports(e){return Lf(e)}create(e){return new C9(e)}}const x9=(i,e)=>e;class C9{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||x9}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,o=null;for(;t||n;){const s=!n||t&&t.currentIndex{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(n&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),n=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):e=this._addAfter(new D9(t,n),o,r),e}_verifyReinsertion(e,t,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new SI),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new SI),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class D9{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class k9{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class SI{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new k9,this.map.set(t,n)),n.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function MI(i,e,t){const n=i.previousIndex;if(null===n)return n;let r=0;return t&&n{class i{static#e=this.\u0275prov=L({token:i,providedIn:"root",factory:AI});constructor(t){this.factories=t}static create(t,n){if(null!=n){const r=n.factories.slice();t=t.concat(r)}return new i(t)}static extend(t){return{provide:i,useFactory:n=>i.create(t,n||AI()),deps:[[i,new Ch,new Aa]]}}find(t){const n=this.factories.find(r=>r.supports(t));if(null!=n)return n;throw new k(901,!1)}}return i})();const A9=vI(null,"core",[]);let I9=(()=>{class i{constructor(t){}static#e=this.\u0275fac=function(n){return new(n||i)(C(rr))};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({})}return i})();function Le(i){return"boolean"==typeof i?i:null!=i&&"false"!==i}function hm(i,e=NaN){return isNaN(parseFloat(i))||isNaN(Number(i))?e:Number(i)}const h7=new S("",{providedIn:"root",factory:()=>O(f7)});let f7=(()=>{class i{static#e=this.\u0275prov=L({token:i,providedIn:"root",factory:()=>new m7})}return i})();class m7{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=O(ll),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),null===this.taskId){const t=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(t),this.taskId=null})}}enqueue(e){const t=e.creationZone;this.queues.has(t)||this.queues.set(t,new Set);const n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(const[e,t]of this.queues)null===e?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(const t of e)e.delete(t),this.queuedEffectCount--,t.run()}}class p7{constructor(e,t,n,r,o,s){this.scheduler=e,this.effectFn=t,this.creationZone=n,this.injector=o,this.watcher=function yj(i,e,t){const n=Object.create(wj);t&&(n.consumerAllowSignalWrites=!0),n.fn=i,n.schedule=e;const r=l=>{n.cleanupFn=l};return n.ref={notify:()=>YD(n),run:()=>{if(null===n.fn)return;if(function hj(){return ya}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!y_(n))return;n.hasRun=!0;const l=KD(n);try{n.cleanupFn(),n.cleanupFn=x_,n.fn(r)}finally{XD(n,l)}},cleanup:()=>n.cleanupFn(),destroy:()=>function s(l){(function o(l){return null===l.fn&&null===l.schedule})(l)||(ZD(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=x_)}(n),[ns]:n},n.ref}(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(t){this.injector.get(Vi,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let eO=null;function Io(){return eO}class _7{}const xe=new S("");let tO=(()=>{class i{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:()=>O(b7),providedIn:"platform"})}return i})(),b7=(()=>{class i extends tO{constructor(){super(),this._doc=O(xe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Io().getBaseHref(this._doc)}onPopState(t){const n=Io().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){const n=Io().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,n,r){this._history.pushState(t,n,r)}replaceState(t,n,r){this._history.replaceState(t,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:()=>new i,providedIn:"platform"})}return i})();function iO(i,e){if(0==i.length)return e;if(0==e.length)return i;let t=0;return i.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?i+e.substring(1):1==t?i+e:i+"/"+e}function nO(i){const e=i.match(/#|\?|$/),t=e&&e.index||i.length;return i.slice(0,t-("/"===i[t-1]?1:0))+i.slice(t)}function Ps(i){return i&&"?"!==i[0]?"?"+i:i}let Ky=(()=>{class i{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:()=>O(y7),providedIn:"root"})}return i})();const v7=new S("");let y7=(()=>{class i extends Ky{constructor(t,n){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??O(xe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return iO(this._baseHref,t)}path(t=!1){const n=this._platformLocation.pathname+Ps(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${n}${r}`:n}pushState(t,n,r,o){const s=this.prepareExternalUrl(r+Ps(o));this._platformLocation.pushState(t,n,s)}replaceState(t,n,r,o){const s=this.prepareExternalUrl(r+Ps(o));this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(n){return new(n||i)(C(tO),C(v7,8))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Xy=(()=>{class i{constructor(t){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const n=this._locationStrategy.getBaseHref();this._basePath=function C7(i){if(new RegExp("^(https?:)?//").test(i)){const[,t]=i.split(/\/\/[^\/]+/);return t}return i}(nO(rO(n))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+Ps(n))}normalize(t){return i.stripTrailingSlash(function x7(i,e){if(!i||!e.startsWith(i))return e;const t=e.substring(i.length);return""===t||["/",";","?","#"].includes(t[0])?t:e}(this._basePath,rO(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",r=null){this._locationStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ps(n)),r)}replaceState(t,n="",r=null){this._locationStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ps(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{const n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(r=>r(t,n))}subscribe(t,n,r){return this._subject.subscribe({next:t,error:n,complete:r})}static#e=this.normalizeQueryParams=Ps;static#t=this.joinWithSlash=iO;static#i=this.stripTrailingSlash=nO;static#n=this.\u0275fac=function(n){return new(n||i)(C(Ky))};static#r=this.\u0275prov=L({token:i,factory:()=>function w7(){return new Xy(C(Ky))}(),providedIn:"root"})}return i})();function rO(i){return i.replace(/\/index.html$/,"")}const a0=/\s+/,fO=[];let l0=(()=>{class i{constructor(t,n){this._ngEl=t,this._renderer=n,this.initialClasses=fO,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(a0):fO}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(a0):t}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const n of t)this._updateState(n,!0);else if(null!=t)for(const n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){const r=this.stateMap.get(t);void 0!==r?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const n=t[0],r=t[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(t,n){(t=t.trim()).length>0&&t.split(a0).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(Ds))};static#t=this.\u0275dir=R({type:i,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return i})();class cY{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Fs=(()=>{class i{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,n,r){this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const n=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)n.createEmbeddedView(this._template,new cY(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)n.remove(null===o?void 0:o);else if(null!==o){const a=n.get(o);n.move(a,s),pO(a,r)}});for(let r=0,o=n.length;r{pO(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,n){return!0}static#e=this.\u0275fac=function(n){return new(n||i)(b(Hi),b(dn),b(Uy))};static#t=this.\u0275dir=R({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return i})();function pO(i,e){i.context.$implicit=e.item}let c0=(()=>{class i{constructor(t,n){this._viewContainer=t,this._context=new dY,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){gO("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){gO("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,n){return!0}static#e=this.\u0275fac=function(n){return new(n||i)(b(Hi),b(dn))};static#t=this.\u0275dir=R({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return i})();class dY{constructor(){this.$implicit=null,this.ngIf=null}}function gO(i,e){if(e&&!e.createEmbeddedView)throw new Error(`${i} must be a TemplateRef, but received '${Yt(e)}'.`)}class d0{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Dm=(()=>{class i{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const n=t===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const n of this._defaultViews)n.enforceState(t)}}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return i})(),_O=(()=>{class i{constructor(t,n,r){this.ngSwitch=r,r._addCase(),this._view=new d0(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||i)(b(Hi),b(dn),b(Dm,9))};static#t=this.\u0275dir=R({type:i,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return i})(),u0=(()=>{class i{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,n,r),get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static#e=this.\u0275fac=function(n){return new(n||i)(b(Hi))};static#t=this.\u0275dir=R({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ui]})}return i})(),Ls=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({})}return i})();const yO="browser";function wO(i){return"server"===i}class mK extends _7{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class p0 extends mK{static makeCurrent(){!function g7(i){eO??=i}(new p0)}onAndCancel(e,t,n){return e.addEventListener(t,n),()=>{e.removeEventListener(t,n)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function pK(){return Bd=Bd||document.querySelector("base"),Bd?Bd.getAttribute("href"):null}();return null==t?null:function gK(i){return new URL(i,document.baseURI).pathname}(t)}resetBaseElement(){Bd=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function aY(i,e){e=encodeURIComponent(e);for(const t of i.split(";")){const n=t.indexOf("="),[r,o]=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let Bd=null,bK=(()=>{class i{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})();const g0=new S("");let AO=(()=>{class i{constructor(t,n){this._zone=n,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,n,r){return this._findPluginFor(n).addEventListener(t,n,r)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(o=>o.supports(t)),!n)throw new k(5101,!1);return this._eventNameToPlugin.set(t,n),n}static#e=this.\u0275fac=function(n){return new(n||i)(C(g0),C(U))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})();class IO{constructor(e){this._doc=e}}const _0="ng-app-id";let OO=(()=>{class i{constructor(t,n,r,o={}){this.doc=t,this.appId=n,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=wO(o),this.resetHostNodes()}addStyles(t){for(const n of t)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(t){for(const n of t)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(n=>n.remove()),t.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const n of this.getAllStyles())this.addStyleToHost(t,n)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const n of this.hostNodes)this.addStyleToHost(n,t)}onStyleRemoved(t){const n=this.styleRef;n.get(t)?.elements?.forEach(r=>r.remove()),n.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${_0}="${this.appId}"]`);if(t?.length){const n=new Map;return t.forEach(r=>{null!=r.textContent&&n.set(r.textContent,r)}),n}return null}changeUsageCount(t,n){const r=this.styleRef;if(r.has(t)){const o=r.get(t);return o.usage+=n,o.usage}return r.set(t,{usage:n,elements:[]}),n}getStyleElement(t,n){const r=this.styleNodesInDOM,o=r?.get(n);if(o?.parentNode===t)return r.delete(n),o.removeAttribute(_0),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=n,this.platformIsServer&&s.setAttribute(_0,this.appId),t.appendChild(s),s}}addStyleToHost(t,n){const r=this.getStyleElement(t,n),o=this.styleRef,s=o.get(n)?.elements;s?s.push(r):o.set(n,{elements:[r],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||i)(C(xe),C(Ka),C(Rb,8),C(bs))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})();const b0={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"},v0=/%COMP%/g,xK=new S("",{providedIn:"root",factory:()=>!0});function NO(i,e){return e.map(t=>t.replace(v0,i))}let y0=(()=>{class i{constructor(t,n,r,o,s,a,l,c=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=wO(a),this.defaultRenderer=new w0(t,s,l,this.platformIsServer)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Xn.ShadowDom&&(n={...n,encapsulation:Xn.Emulated});const r=this.getOrCreateRenderer(t,n);return r instanceof FO?r.applyToHost(t):r instanceof x0&&r.applyStyles(),r}getOrCreateRenderer(t,n){const r=this.rendererByCompId;let o=r.get(n.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(n.encapsulation){case Xn.Emulated:o=new FO(l,c,n,this.appId,d,s,a,u);break;case Xn.ShadowDom:return new EK(l,c,t,n,s,a,this.nonce,u);default:o=new x0(l,c,n,d,s,a,u)}r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||i)(C(AO),C(OO),C(Ka),C(xK),C(xe),C(bs),C(U),C(Rb))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})();class w0{constructor(e,t,n,r){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,t){return t?this.doc.createElementNS(b0[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(PO(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(PO(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?this.doc.querySelector(e):e;if(!n)throw new k(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const o=b0[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=b0[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(ko.DashCase|ko.Important)?e.style.setProperty(t,n,r&ko.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&ko.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){null!=e&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n){if("string"==typeof e&&!(e=Io().getGlobalEventTarget(this.doc,e)))throw new Error(`Unsupported event target ${e} for event ${t}`);return this.eventManager.addEventListener(e,t,this.decoratePreventDefault(n))}decoratePreventDefault(e){return t=>{if("__ngUnwrap__"===t)return e;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))&&t.preventDefault()}}}function PO(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class EK extends w0{constructor(e,t,n,r,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=NO(r.id,r.styles);for(const d of c){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class x0 extends w0{constructor(e,t,n,r,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=l?NO(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class FO extends x0{constructor(e,t,n,r,o,s,a,l){const c=r+"-"+n.id;super(e,t,n,o,s,a,l,c),this.contentAttr=function CK(i){return"_ngcontent-%COMP%".replace(v0,i)}(c),this.hostAttr=function DK(i){return"_nghost-%COMP%".replace(v0,i)}(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}let SK=(()=>{class i extends IO{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,r){return t.addEventListener(n,r,!1),()=>this.removeEventListener(t,n,r)}removeEventListener(t,n,r){return t.removeEventListener(n,r)}static#e=this.\u0275fac=function(n){return new(n||i)(C(xe))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})();const LO=["alt","control","meta","shift"],MK={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},TK={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let AK=(()=>{class i extends IO{constructor(t){super(t)}supports(t){return null!=i.parseEventName(t)}addEventListener(t,n,r){const o=i.parseEventName(n),s=i.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Io().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=i._normalizeKey(n.pop());let s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),LO.forEach(c=>{const d=n.indexOf(c);d>-1&&(n.splice(d,1),s+=c+".")}),s+=o,0!=n.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,n){let r=MK[t.key]||t.key,o="";return n.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),LO.forEach(s=>{s!==r&&(0,TK[s])(t)&&(o+=s+".")}),o+=r,o===n)}static eventCallback(t,n,r){return o=>{i.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>n(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(n){return new(n||i)(C(xe))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})();const NK=vI(A9,"browser",[{provide:bs,useValue:yO},{provide:oS,useValue:function IK(){p0.makeCurrent()},multi:!0},{provide:xe,useFactory:function RK(){return function o4(i){Ob=i}(document),document},deps:[]}]),PK=new S(""),HO=[{provide:em,useClass:class _K{addToWindow(e){tt.getAngularTestability=(n,r=!0)=>{const o=e.findTestabilityInTree(n,r);if(null==o)throw new k(5103,!1);return o},tt.getAllAngularTestabilities=()=>e.getAllTestabilities(),tt.getAllAngularRootElements=()=>e.getAllRootElements(),tt.frameworkStabilizers||(tt.frameworkStabilizers=[]),tt.frameworkStabilizers.push(n=>{const r=tt.getAllAngularTestabilities();let o=r.length;const s=function(){o--,0==o&&n()};r.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(e,t,n){return null==t?null:e.getTestability(t)??(n?Io().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:lI,useClass:Ty,deps:[U,Ay,em]},{provide:Ty,useClass:Ty,deps:[U,Ay,em]}],zO=[{provide:Z_,useValue:"root"},{provide:Vi,useFactory:function OK(){return new Vi},deps:[]},{provide:g0,useClass:SK,multi:!0,deps:[xe,U,bs]},{provide:g0,useClass:AK,multi:!0,deps:[xe]},y0,OO,AO,{provide:Tf,useExisting:y0},{provide:class HY{},useClass:bK,deps:[]},[]];let D0,jO=(()=>{class i{constructor(t){}static withServerTransition(t){return{ngModule:i,providers:[{provide:Ka,useValue:t.appId}]}}static#e=this.\u0275fac=function(n){return new(n||i)(C(PK,12))};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({providers:[...zO,...HO],imports:[Ls,I9]})}return i})(),C0=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:function(n){let r=null;return r=n?new(n||i):C(VK),r},providedIn:"root"})}return i})(),VK=(()=>{class i extends C0{constructor(t){super(),this._doc=t}sanitize(t,n){if(null==n)return null;switch(t){case hi.NONE:return n;case hi.HTML:return yr(n,"HTML")?ln(n):MS(this._doc,String(n)).toString();case hi.STYLE:return yr(n,"Style")?ln(n):n;case hi.SCRIPT:if(yr(n,"Script"))return ln(n);throw new k(5200,!1);case hi.URL:return yr(n,"URL")?ln(n):uf(String(n));case hi.RESOURCE_URL:if(yr(n,"ResourceURL"))return ln(n);throw new k(5201,!1);default:throw new k(5202,!1)}}bypassSecurityTrustHtml(t){return function E4(i){return new y4(i)}(t)}bypassSecurityTrustStyle(t){return function S4(i){return new w4(i)}(t)}bypassSecurityTrustScript(t){return function M4(i){return new x4(i)}(t)}bypassSecurityTrustUrl(t){return function T4(i){return new C4(i)}(t)}bypassSecurityTrustResourceUrl(t){return function A4(i){return new D4(i)}(t)}static#e=this.\u0275fac=function(n){return new(n||i)(C(xe))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();try{D0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{D0=!1}let Rl,wt=(()=>{class i{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function BY(i){return i===yO}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!D0)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(n){return new(n||i)(C(bs))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const WO=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function GO(){if(Rl)return Rl;if("object"!=typeof document||!document)return Rl=new Set(WO),Rl;let i=document.createElement("input");return Rl=new Set(WO.filter(e=>(i.setAttribute("type",e),i.type===e))),Rl}let Vd;function Vs(i){return function HK(){if(null==Vd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vd=!0}))}finally{Vd=Vd||!1}return Vd}()?i:!!i.capture}var Er=function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i}(Er||{});let Tm,Hs,k0;function qO(){if(null==Hs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Hs=!1,Hs;if("scrollBehavior"in document.documentElement.style)Hs=!0;else{const i=Element.prototype.scrollTo;Hs=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return Hs}function Hd(){if("object"!=typeof document||!document)return Er.NORMAL;if(null==Tm){const i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",i.appendChild(t),document.body.appendChild(i),Tm=Er.NORMAL,0===i.scrollLeft&&(i.scrollLeft=1,Tm=0===i.scrollLeft?Er.NEGATED:Er.INVERTED),i.remove()}return Tm}function Am(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const e=i.shadowRoot.activeElement;if(e===i)break;i=e}return i}function Sr(i){return i.composedPath?i.composedPath()[0]:i.target}function E0(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function YO(i){return i&&je(i.schedule)}function S0(i){return i[i.length-1]}function KO(i){return je(S0(i))?i.pop():void 0}function zd(i){return YO(S0(i))?i.pop():void 0}function Oo(i){return this instanceof Oo?(this.v=i,this):new Oo(i)}function JO(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=i[Symbol.asyncIterator];return e?e.call(i):(i=function I0(i){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&i[e],n=0;if(t)return t.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=i[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=i[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const O0=i=>i&&"number"==typeof i.length&&"function"!=typeof i;function eR(i){return je(i?.then)}function tR(i){return je(i[M_])}function iR(i){return Symbol.asyncIterator&&je(i?.[Symbol.asyncIterator])}function nR(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const rR=function uX(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function oR(i){return je(i?.[rR])}function sR(i){return function QO(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=t.apply(i,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){n[h]&&(r[h]=function(f){return new Promise(function(m,p){o.push([h,f,m,p])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof Oo?Promise.resolve(h.value.v).then(c,d):u(o[0][2],h)}(n[h](f))}catch(m){u(o[0][3],m)}}function c(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const t=i.getReader();try{for(;;){const{value:n,done:r}=yield Oo(t.read());if(r)return yield Oo(void 0);yield yield Oo(n)}}finally{t.releaseLock()}})}function aR(i){return je(i?.getReader)}function ki(i){if(i instanceof bt)return i;if(null!=i){if(tR(i))return function hX(i){return new bt(e=>{const t=i[M_]();if(je(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(O0(i))return function fX(i){return new bt(e=>{for(let t=0;t{i.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,sk)})}(i);if(iR(i))return lR(i);if(oR(i))return function pX(i){return new bt(e=>{for(const t of i)if(e.next(t),e.closed)return;e.complete()})}(i);if(aR(i))return function gX(i){return lR(sR(i))}(i)}throw nR(i)}function lR(i){return new bt(e=>{(function _X(i,e){var t,n,r,o;return function XO(i,e,t,n){return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=JO(i);!(n=yield t.next()).done;)if(e.next(n.value),e.closed)return}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}e.complete()})})(i,e).catch(t=>e.error(t))})}function no(i,e,t,n=0,r=!1){const o=e.schedule(function(){t(),r?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(o),!r)return o}function cR(i,e=0){return ii((t,n)=>{t.subscribe(qt(n,r=>no(n,i,()=>n.next(r),e),()=>no(n,i,()=>n.complete(),e),r=>no(n,i,()=>n.error(r),e)))})}function dR(i,e=0){return ii((t,n)=>{n.add(i.schedule(()=>t.subscribe(n),e))})}function uR(i,e){if(!i)throw new Error("Iterable cannot be null");return new bt(t=>{no(t,e,()=>{const n=i[Symbol.asyncIterator]();no(t,e,()=>{n.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function Nl(i,e){return e?function CX(i,e){if(null!=i){if(tR(i))return function bX(i,e){return ki(i).pipe(dR(e),cR(e))}(i,e);if(O0(i))return function yX(i,e){return new bt(t=>{let n=0;return e.schedule(function(){n===i.length?t.complete():(t.next(i[n++]),t.closed||this.schedule())})})}(i,e);if(eR(i))return function vX(i,e){return ki(i).pipe(dR(e),cR(e))}(i,e);if(iR(i))return uR(i,e);if(oR(i))return function wX(i,e){return new bt(t=>{let n;return no(t,e,()=>{n=i[rR](),no(t,e,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>je(n?.return)&&n.return()})}(i,e);if(aR(i))return function xX(i,e){return uR(sR(i),e)}(i,e)}throw nR(i)}(i,e):ki(i)}function Pn(...i){return Nl(i,zd(i))}function ar(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}function Pm(i,e,t){const n=je(i)||e||t?{next:i,error:e,complete:t}:i;return n?ii((r,o)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let a=!0;r.subscribe(qt(o,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),o.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),o.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),o.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):Ca}class LX extends Ze{constructor(e,t){super()}schedule(e,t=0){return this}}const Fm={setInterval(i,e,...t){const{delegate:n}=Fm;return n?.setInterval?n.setInterval(i,e,...t):setInterval(i,e,...t)},clearInterval(i){const{delegate:e}=Fm;return(e?.clearInterval||clearInterval)(i)},delegate:void 0};class N0 extends LX{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var n;if(this.closed)return this;this.state=e;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,t),this}requestAsyncId(e,t,n=0){return Fm.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&Fm.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,n=!1;try{this.work(e)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,uh(n,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}const P0={now:()=>(P0.delegate||Date).now(),delegate:void 0};class Ud{constructor(e,t=Ud.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,n){return new this.schedulerActionCtor(this,e).schedule(n,t)}}Ud.now=P0.now;class F0 extends Ud{constructor(e,t=Ud.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const Lm=new F0(N0),BX=Lm;function L0(i,e=Lm){return ii((t,n)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,n.next(c)}};function l(){const c=s+i,d=e.now();if(d{o=c,s=e.now(),r||(r=e.schedule(l,i),n.add(r))},()=>{a(),n.complete()},void 0,()=>{o=r=null}))})}function Lt(i,e){return ii((t,n)=>{let r=0;t.subscribe(qt(n,o=>i.call(e,o,r++)&&n.next(o)))})}const $d=new bt(i=>i.complete());function Fn(i){return i<=0?()=>$d:ii((e,t)=>{let n=0;e.subscribe(qt(t,r=>{++n<=i&&(t.next(r),i<=n&&t.complete())}))})}function hR(i){return Lt((e,t)=>i<=t)}function fR(i,e=Ca){return i=i??HX,ii((t,n)=>{let r,o=!0;t.subscribe(qt(n,s=>{const a=e(s);(o||!i(r,a))&&(o=!1,r=a,n.next(s))}))})}function HX(i,e){return i===e}function _t(i){return ii((e,t)=>{ki(i).subscribe(qt(t,()=>t.complete(),fh)),!t.closed&&e.subscribe(t)})}function mi(i){return null!=i&&"false"!=`${i}`}function Ll(i,e=0){return function zX(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}(i)?Number(i):e}function Bm(i){return Array.isArray(i)?i:[i]}function $t(i){return null==i?"":"string"==typeof i?i:`${i}px`}function ro(i){return i instanceof te?i.nativeElement:i}let mR=(()=>{class i{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),UX=(()=>{class i{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map,this._ngZone=O(U)}ngOnDestroy(){this._observedElements.forEach((t,n)=>this._cleanupObserver(n))}observe(t){const n=ro(t);return new bt(r=>{const s=this._observeElement(n).pipe(Vt(a=>a.filter(l=>!function jX(i){if("characterData"===i.type&&i.target instanceof Comment)return!0;if("childList"===i.type){for(let e=0;e!!a.length)).subscribe(a=>{this._ngZone.run(()=>{r.next(a)})});return()=>{s.unsubscribe(),this._unobserveElement(n)}})}_observeElement(t){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const n=new Z,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:r,stream:n,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)){const{observer:n,stream:r}=this._observedElements.get(t);n&&n.disconnect(),r.complete(),this._observedElements.delete(t)}}static#e=this.\u0275fac=function(n){return new(n||i)(C(mR))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),pR=(()=>{class i{get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Ll(t),this._subscribe()}constructor(t,n){this._contentObserver=t,this._elementRef=n,this.event=new ie,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?t.pipe(L0(this.debounce)):t).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||i)(b(UX),b(te))};static#t=this.\u0275dir=R({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Le],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[zi]})}return i})(),B0=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({providers:[mR]})}return i})();const{isArray:$X}=Array,{getPrototypeOf:WX,prototype:GX,keys:qX}=Object;function gR(i){if(1===i.length){const e=i[0];if($X(e))return{args:e,keys:null};if(function YX(i){return i&&"object"==typeof i&&WX(i)===GX}(e)){const t=qX(e);return{args:t.map(n=>e[n]),keys:t}}}return{args:i,keys:null}}const{isArray:KX}=Array;function V0(i){return Vt(e=>function XX(i,e){return KX(e)?i(...e):i(e)}(i,e))}function _R(i,e){return i.reduce((t,n,r)=>(t[n]=e[r],t),{})}function bR(i,e,t){i?no(t,i,e):e()}function Bl(i,e,t=1/0){return je(e)?Bl((n,r)=>Vt((o,s)=>e(n,o,r,s))(ki(i(n,r))),t):("number"==typeof e&&(t=e),ii((n,r)=>function JX(i,e,t,n,r,o,s,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&e.complete()},f=p=>c{o&&e.next(p),c++;let g=!1;ki(t(p,d++)).subscribe(qt(e,_=>{r?.(_),o?f(_):e.next(_)},()=>{g=!0},void 0,()=>{if(g)try{for(c--;l.length&&cm(_)):m(_)}h()}catch(_){e.error(_)}}))};return i.subscribe(qt(e,f,()=>{u=!0,h()})),()=>{a?.()}}(n,r,i,t)))}function vR(i=1/0){return Bl(Ca,i)}function Vm(...i){return function eZ(){return vR(1)}()(Nl(i,zd(i)))}function Mr(...i){const e=zd(i);return ii((t,n)=>{(e?Vm(i,t,e):Vm(i,t)).subscribe(n)})}const yR=new Set;let zs,tZ=(()=>{class i{constructor(t,n){this._platform=t,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):nZ}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function iZ(i,e){if(!yR.has(i))try{zs||(zs=document.createElement("style"),e&&zs.setAttribute("nonce",e),zs.setAttribute("type","text/css"),document.head.appendChild(zs)),zs.sheet&&(zs.sheet.insertRule(`@media ${i} {body{ }}`,0),yR.add(i))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static#e=this.\u0275fac=function(n){return new(n||i)(C(wt),C(Rb,8))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function nZ(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let rZ=(()=>{class i{constructor(t,n){this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new Z}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return wR(Bm(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=function ZX(...i){const e=zd(i),t=KO(i),{args:n,keys:r}=gR(i);if(0===n.length)return Nl([],e);const o=new bt(function QX(i,e,t=Ca){return n=>{bR(e,()=>{const{length:r}=i,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Nl(i[l],e);let d=!1;c.subscribe(qt(n,u=>{o[l]=u,d||(d=!0,a--),a||n.next(t(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}(n,e,r?s=>_R(r,s):Ca));return t?o.pipe(V0(t)):o}(wR(Bm(t)).map(s=>this._registerQuery(s).observable));return o=Vm(o.pipe(Fn(1)),o.pipe(hR(1),L0(0))),o.pipe(Vt(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const n=this._mediaMatcher.matchMedia(t),o={observable:new bt(s=>{const a=l=>this._zone.run(()=>s.next(l));return n.addListener(a),()=>{n.removeListener(a)}}).pipe(Mr(n),Vt(({matches:s})=>({query:t,matches:s})),_t(this._destroySubject)),mql:n};return this._queries.set(t,o),o}static#e=this.\u0275fac=function(n){return new(n||i)(C(tZ),C(U))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function wR(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function CR(i,e,t){const n=Hm(i,e);t=t.trim(),!n.some(r=>r.trim()===t)&&(n.push(t),i.setAttribute(e,n.join(" ")))}function H0(i,e,t){const n=Hm(i,e);t=t.trim();const r=n.filter(o=>o!==t);r.length?i.setAttribute(e,r.join(" ")):i.removeAttribute(e)}function Hm(i,e){return i.getAttribute(e)?.match(/\S+/g)??[]}const DR="cdk-describedby-message",zm="cdk-describedby-host";let z0=0,oZ=(()=>{class i{constructor(t,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+z0++,this._document=t,this._id=O(Ka)+"-"+z0++}describe(t,n,r){if(!this._canBeDescribed(t,n))return;const o=j0(n,r);"string"!=typeof n?(kR(n,this._id),this._messageRegistry.set(o,{messageElement:n,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(n,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,n,r){if(!n||!this._isElementNode(t))return;const o=j0(n,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof n){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const t=this._document.querySelectorAll(`[${zm}="${this._id}"]`);for(let n=0;n0!=r.indexOf(DR));t.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(t,n){const r=this._messageRegistry.get(n);CR(t,"aria-describedby",r.messageElement.id),t.setAttribute(zm,this._id),r.referenceCount++}_removeMessageReference(t,n){const r=this._messageRegistry.get(n);r.referenceCount--,H0(t,"aria-describedby",r.messageElement.id),t.removeAttribute(zm)}_isElementDescribedByMessage(t,n){const r=Hm(t,"aria-describedby"),o=this._messageRegistry.get(n),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(t,n){if(!this._isElementNode(t))return!1;if(n&&"object"==typeof n)return!0;const r=null==n?"":`${n}`.trim(),o=t.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(n){return new(n||i)(C(xe),C(wt))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function j0(i,e){return"string"==typeof i?`${e||""}/${i}`:i}function kR(i,e){i.id||(i.id=`${DR}-${e}-${z0++}`)}class ER{constructor(e,t){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Z,this._typeaheadSubscription=Ze.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new Z,this.change=new Z,e instanceof _s?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Rf(e)&&(this._effectRef=function JI(i,e){un("NgSignals"),!e?.injector&&Rh();const t=e?.injector??O(it),n=!0!==e?.manualCleanup?t.get(Ga):null,r=new p7(t.get(h7),i,typeof Zone>"u"?null:Zone.current,n,t,e?.allowSignalWrites??!1),o=t.get(Di,null,{optional:!0});return o&&8&o._lView[Y]?(o._lView[Ph]??=[]).push(r.watcher.notify):r.watcher.notify(),r}(()=>this._itemsChanged(e()),{injector:t}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Pm(t=>this._pressedLetters.push(t)),L0(e),Lt(()=>this._pressedLetters.length>0),Vt(()=>this._pressedLetters.join(""))).subscribe(t=>{const n=this._getItemsArray();for(let r=1;r!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}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(e){const t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e);this._activeItem=t[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let n=1;n<=t.length;n++){const r=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return Rf(this._items)?this._items():this._items instanceof _s?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){const t=e.indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}}}class sZ extends ER{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class U0 extends ER{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}let $0=(()=>{class i{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function lZ(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const n=function aZ(i){try{return i.frameElement}catch{return null}}(function gZ(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(t));if(n&&(-1===MR(n)||!this.isVisible(n)))return!1;let r=t.nodeName.toLowerCase(),o=MR(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function mZ(i){let e=i.nodeName.toLowerCase(),t="input"===e&&i.type;return"text"===t||"password"===t||"select"===e||"textarea"===e}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,n){return function pZ(i){return!function dZ(i){return function hZ(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function cZ(i){let e=i.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(i)||function uZ(i){return function fZ(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||SR(i))}(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static#e=this.\u0275fac=function(n){return new(n||i)(C(wt))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function SR(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let e=i.getAttribute("tabindex");return!(!e||isNaN(parseInt(e,10)))}function MR(i){if(!SR(i))return null;const e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class TR{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,t,n,r,o=!1,s){this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){const t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){const t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){const t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;const t=e.children;for(let n=0;n=0;n--){const r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?this._injector?dd(e,{injector:this._injector}):e():this._ngZone.onStable.pipe(Fn(1)).subscribe(e)}}let AR=(()=>{class i{constructor(t,n,r){this._checker=t,this._ngZone=n,this._injector=O(it),this._document=r}create(t,n=!1){return new TR(t,this._checker,this._ngZone,this._document,n,this._injector)}static#e=this.\u0275fac=function(n){return new(n||i)(C($0),C(U),C(xe))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function W0(i){return 0===i.buttons||0===i.detail}function G0(i){const e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const _Z=new S("cdk-input-modality-detector-options"),bZ={ignoreKeys:[18,17,224,91,16]},Vl=Vs({passive:!0,capture:!0});let vZ=(()=>{class i{get mostRecentModality(){return this._modality.value}constructor(t,n,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new dk(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Sr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(W0(s)?"keyboard":"mouse"),this._mostRecentTarget=Sr(s))},this._onTouchstart=s=>{G0(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Sr(s))},this._options={...bZ,...o},this.modalityDetected=this._modality.pipe(hR(1)),this.modalityChanged=this.modalityDetected.pipe(fR()),t.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Vl),r.addEventListener("mousedown",this._onMousedown,Vl),r.addEventListener("touchstart",this._onTouchstart,Vl)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Vl),document.removeEventListener("mousedown",this._onMousedown,Vl),document.removeEventListener("touchstart",this._onTouchstart,Vl))}static#e=this.\u0275fac=function(n){return new(n||i)(C(wt),C(U),C(xe),C(_Z,8))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const yZ=new S("liveAnnouncerElement",{providedIn:"root",factory:function wZ(){return null}}),xZ=new S("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let CZ=0,DZ=(()=>{class i{constructor(t,n,r,o){this._ngZone=n,this._defaultOptions=o,this._document=r,this._liveElement=t||this._createLiveElement()}announce(t,...n){const r=this._defaultOptions;let o,s;return 1===n.length&&"number"==typeof n[0]?s=n[0]:[o,s]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class i{constructor(t,n,r,o,s){this._ngZone=t,this._platform=n,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Z,this._rootNodeFocusAndBlurListener=a=>{for(let c=Sr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||jm.IMMEDIATE}monitor(t,n=!1){const r=ro(t);if(!this._platform.isBrowser||1!==r.nodeType)return Pn();const o=function jK(i){if(function zK(){if(null==k0){const i=typeof document<"u"?document.head:null;k0=!(!i||!i.createShadowRoot&&!i.attachShadow)}return k0}()){const e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return n&&(s.checkChildren=!0),s.subject;const a={checkChildren:n,subject:new Z,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const n=ro(t),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(t,n,r){const o=ro(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,n,l)):(this._setOrigin(n),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().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===jm.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused","touch"===n),t.classList.toggle("cdk-keyboard-focused","keyboard"===n),t.classList.toggle("cdk-mouse-focused","mouse"===n),t.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(t,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&n,this._detectionMode===jm.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,n){const r=this._elementInfo.get(n),o=Sr(t);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(t,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const n=t.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Um),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Um)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(_t(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Um),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Um),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,n,r){this._setClasses(t,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(t){const n=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!n||n===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let s=0;s{class i{constructor(t,n){this._platform=t,this._document=n,this._breakpointSubscription=O(rZ).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Us.NONE;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Us.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Us.BLACK_ON_WHITE}return Us.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(q0,OR,RR),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();n===Us.BLACK_ON_WHITE?t.add(q0,OR):n===Us.WHITE_ON_BLACK&&t.add(q0,RR)}}static#e=this.\u0275fac=function(n){return new(n||i)(C(wt),C(xe))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),PR=(()=>{class i{constructor(t){t._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(n){return new(n||i)(C(NR))};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[B0]})}return i})();const EZ=new S("cdk-dir-doc",{providedIn:"root",factory:function SZ(){return O(xe)}}),MZ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let oo=(()=>{class i{constructor(t){this.value="ltr",this.change=new ie,t&&(this.value=function TZ(i){const e=i?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&navigator?.language?MZ.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(n){return new(n||i)(C(EZ,8))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Wd=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({})}return i})();const AZ=["text"],IZ=[[["mat-icon"]],"*"],OZ=["mat-icon","*"];function RZ(i,e){if(1&i&&Ae(0,"mat-pseudo-checkbox",1),2&i){const t=ge();H("disabled",t.disabled)("state",t.selected?"checked":"unchecked")}}function NZ(i,e){1&i&&Ae(0,"mat-pseudo-checkbox",3),2&i&&H("disabled",ge().disabled)}function PZ(i,e){if(1&i&&(E(0,"span",4),be(1),T()),2&i){const t=ge();P(),nr("(",t.group.label,")")}}const FZ=["mat-internal-form-field",""],LZ=["*"],VZ=new S("mat-sanity-checks",{providedIn:"root",factory:function BZ(){return!0}});let Ve=(()=>{class i{constructor(t,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!E0()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}static#e=this.\u0275fac=function(n){return new(n||i)(C(NR),C(VZ,8),C(xe))};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Wd,Wd]})}return i})();class Y0{constructor(e,t,n,r,o){this._defaultMatcher=e,this.ngControl=t,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){const e=this.errorState,t=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(r,t)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}}let BR=(()=>{class i{isErrorState(t,n){return!!(t&&t.invalid&&(t.touched||n&&n.submitted))}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),VR=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve,Ve]})}return i})();var Ln=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(Ln||{});class WZ{constructor(e,t,n,r=!1){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=Ln.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const HR=Vs({passive:!0,capture:!0});class GZ{constructor(){this._events=new Map,this._delegateEventHandler=e=>{const t=Sr(e);t&&this._events.get(e.type)?.forEach((n,r)=>{(r===t||r.contains(t))&&n.forEach(o=>o.handleEvent(e))})}}addHandler(e,t,n,r){const o=this._events.get(t);if(o){const s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(t,new Map([[n,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,HR)})}removeHandler(e,t,n){const r=this._events.get(e);if(!r)return;const o=r.get(t);o&&(o.delete(n),0===o.size&&r.delete(t),0===r.size&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,HR)))}}const zR={enterDuration:225,exitDuration:150},jR=Vs({passive:!0,capture:!0}),UR=["mousedown","touchstart"],$R=["mouseup","mouseleave","touchend","touchcancel"];class qd{static#e=this._eventManager=new GZ;constructor(e,t,n,r){this._target=e,this._ngZone=t,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ro(n))}fadeInRipple(e,t,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...zR,...n.animation};n.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const s=n.radius||function YZ(i,e,t){const n=Math.max(Math.abs(i-t.left),Math.abs(i-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(n*n+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=l-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,m="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,p=new WZ(this,d,n,m);d.style.transform="scale3d(1, 1, 1)",p.state=Ln.FADING_IN,n.persistent||(this._mostRecentTransientRipple=p);let g=null;return!m&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _=()=>this._finishRippleTransition(p),v=()=>this._destroyRipple(p);d.addEventListener("transitionend",_),d.addEventListener("transitioncancel",v),g={onTransitionEnd:_,onTransitionCancel:v}}),this._activeRipples.set(p,g),(m||!c)&&this._finishRippleTransition(p),p}fadeOutRipple(e){if(e.state===Ln.FADING_OUT||e.state===Ln.HIDDEN)return;const t=e.element,n={...zR,...e.config.animation};t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",e.state=Ln.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=ro(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,UR.forEach(n=>{qd._eventManager.addHandler(this._ngZone,n,t,this)}))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{$R.forEach(t=>{this._triggerElement.addEventListener(t,this,jR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===Ln.FADING_IN?this._startFadeOutTransition(e):e.state===Ln.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){const t=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=Ln.VISIBLE,!n&&(!t||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){const t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=Ln.HIDDEN,null!==t&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel)),e.element.remove()}_onMousedown(e){const t=W0(e),n=this._lastTouchStartEvent&&Date.now(){!e.config.persistent&&(e.state===Ln.VISIBLE||e.config.terminateOnPointerUp&&e.state===Ln.FADING_IN)&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const e=this._triggerElement;e&&(UR.forEach(t=>qd._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&($R.forEach(t=>e.removeEventListener(t,this,jR)),this._pointerUpEventsRegistered=!1))}}const Yd=new S("mat-ripple-global-options");let Kd=(()=>{class i{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,n,r,o,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new qd(this,n,t,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{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,n=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,n,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...t})}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(U),b(wt),b(Yd,8),b(ri,8))};static#t=this.\u0275dir=R({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){2&n&&ye("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return i})(),$m=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve,Ve]})}return i})(),KZ=(()=>{class i{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(n){return new(n||i)(b(ri,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,r){2&n&&ye("mat-pseudo-checkbox-indeterminate","indeterminate"===r.state)("mat-pseudo-checkbox-checked","checked"===r.state)("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal","minimal"===r.appearance)("mat-pseudo-checkbox-full","full"===r.appearance)("_mat-animation-noopable","NoopAnimations"===r._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Oe],decls:0,vars:0,template:function(n,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return i})(),WR=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve]})}return i})();const GR=new S("MAT_OPTION_PARENT_COMPONENT"),qR=new S("MatOptgroup");let XZ=0;class ZZ{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let Xd=(()=>{class i{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(t,n,r,o){this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+XZ++,this.onSelectionChange=new ie,this._stateChanges=new Z}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,n){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!ar(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ZZ(this,t))}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(Di),b(GR,8),b(qR,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-option"]],viewQuery:function(n,r){if(1&n&&Et(AZ,7),2&n){let o;se(o=ae())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,r){1&n&&J("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),2&n&&(To("id",r.id),Fe("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),ye("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Le]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[zi,Oe],ngContentSelectors:OZ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,r){1&n&&(At(IZ),pe(0,RZ,1,2,"mat-pseudo-checkbox",1),X(1),E(2,"span",2,0),X(4,1),T(),pe(5,NZ,1,1,"mat-pseudo-checkbox",3)(6,PZ,2,1,"span",4),Ae(7,"div",5)),2&n&&(pt(r.multiple?0:-1),P(5),pt(r.multiple||!r.selected||r.hideSingleSelectionIndicator?-1:5),P(),pt(r.group&&r.group._inert?6:-1),P(),H("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[KZ,Kd],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return i})(),YR=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[$m,Ve,WR]})}return i})();const KR={capture:!0},XR=["focus","mousedown","mouseenter","touchstart"],K0="mat-ripple-loader-uninitialized",X0="mat-ripple-loader-class-name",ZR="mat-ripple-loader-centered",Wm="mat-ripple-loader-disabled";let eQ=(()=>{class i{constructor(){this._document=O(xe,{optional:!0}),this._animationMode=O(ri,{optional:!0}),this._globalRippleOptions=O(Yd,{optional:!0}),this._platform=O(wt),this._ngZone=O(U),this._hosts=new Map,this._onInteraction=t=>{const n=Sr(t);if(n instanceof HTMLElement){const r=n.closest(`[${K0}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}},this._ngZone.runOutsideAngular(()=>{for(const t of XR)this._document?.addEventListener(t,this._onInteraction,KR)})}ngOnDestroy(){const t=this._hosts.keys();for(const n of t)this.destroyRipple(n);for(const n of XR)this._document?.removeEventListener(n,this._onInteraction,KR)}configureRipple(t,n){t.setAttribute(K0,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(X0))&&t.setAttribute(X0,n.className||""),n.centered&&t.setAttribute(ZR,""),n.disabled&&t.setAttribute(Wm,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,n){const r=this._hosts.get(t);r?r.disabled=n:n?t.setAttribute(Wm,""):t.removeAttribute(Wm)}_createRipple(t){if(!this._document)return;const n=this._hosts.get(t);if(n)return n;t.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",t.getAttribute(X0)),t.append(r);const o=new Kd(new te(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=t,o.centered=t.hasAttribute(ZR),o.disabled=t.hasAttribute(Wm),this.attachRipple(t,o),o}attachRipple(t,n){t.removeAttribute(K0),this._hosts.set(t,n)}destroyRipple(t){const n=this._hosts.get(t);n&&(n.ngOnDestroy(),this._hosts.delete(t))}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),tQ=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=Ee({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,r){2&n&&ye("mdc-form-field--align-end","before"===r.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Oe],attrs:FZ,ngContentSelectors:LZ,decls:1,vars:0,template:function(n,r){1&n&&(At(),X(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}return i})();function QR(...i){const e=KO(i),{args:t,keys:n}=gR(i),r=new bt(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let d=0;d{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(n?_R(n,a):a),o.complete())}))}});return e?r.pipe(V0(e)):r}function JR(i){return ii((e,t)=>{let o,n=null,r=!1;n=e.subscribe(qt(t,void 0,void 0,s=>{o=ki(i(s,JR(i)(e))),n?(n.unsubscribe(),n=null,o.subscribe(t)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(t))})}function eN(i={}){const{connector:e=(()=>new Z),resetOnError:t=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=i;return o=>{let s,a,l,c=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,d=u=!1},m=()=>{const p=s;f(),p?.unsubscribe()};return ii((p,g)=>{c++,!u&&!d&&h();const _=l=l??e();g.add(()=>{c--,0===c&&!u&&!d&&(a=Z0(m,r))}),_.subscribe(g),!s&&c>0&&(s=new xc({next:v=>_.next(v),error:v=>{u=!0,h(),a=Z0(f,t,v),_.error(v)},complete:()=>{d=!0,h(),a=Z0(f,n),_.complete()}}),ki(p).subscribe(s))})(o)}}function Z0(i,e,...t){if(!0===e)return void i();if(!1===e)return;const n=new xc({next:()=>{n.unsubscribe(),i()}});return ki(e(...t)).subscribe(n)}class Q0{}class so{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?"string"==typeof e?this.lazyInit=()=>{this.headers=new Map,e.split("\n").forEach(t=>{const n=t.indexOf(":");if(n>0){const r=t.slice(0,n),o=r.toLowerCase(),s=t.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,n)=>{this.setHeaderEntries(n,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,n])=>{this.setHeaderEntries(t,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof so?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new so;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof so?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const o=e.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(e,t){const n=(Array.isArray(t)?t:[t]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class oQ{encodeKey(e){return tN(e)}encodeValue(e){return tN(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const aQ=/%(\d[a-f0-9])/gi,lQ={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function tN(i){return encodeURIComponent(i).replace(aQ,(e,t)=>lQ[t]??e)}function Gm(i){return`${i}`}class Ro{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new oQ,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function sQ(i,e){const t=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t],r=Array.isArray(n)?n.map(Gm):[Gm(n)];this.map.set(t,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const r=e[n];Array.isArray(r)?r.forEach(o=>{t.push({param:n,value:o,op:"a"})}):t.push({param:n,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(n=>t+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Ro({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Gm(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let n=this.map.get(e.param)||[];const r=n.indexOf(Gm(e.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class cQ{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function iN(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function nN(i){return typeof Blob<"u"&&i instanceof Blob}function rN(i){return typeof FormData<"u"&&i instanceof FormData}class Zd{constructor(e,t,n,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function dQ(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new so,this.context??=new cQ,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ah.set(f,e.setHeaders[f]),c)),e.setParams&&(d=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),d)),new Zd(t,n,s,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}}var ew=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(ew||{});class tw{constructor(e,t=200,n="OK"){this.headers=e.headers||new so,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Qd extends tw{constructor(e={}){super(e),this.type=ew.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Qd({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function iw(i,e){return{body:e,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}let nw=(()=>{class i{constructor(t){this.handler=t}request(t,n,r={}){let o;if(t instanceof Zd)o=t;else{let l,c;l=r.headers instanceof so?r.headers:new so(r.headers),r.params&&(c=r.params instanceof Ro?r.params:new Ro({fromObject:r.params})),o=new Zd(t,n,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const s=Pn(o).pipe(function rQ(i,e){return je(e)?Bl(i,e,1):Bl(i,1)}(l=>this.handler.handle(l)));if(t instanceof Zd||"events"===r.observe)return s;const a=s.pipe(Lt(l=>l instanceof Qd));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Vt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Vt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Vt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Vt(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:(new Ro).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,r={}){return this.request("PATCH",t,iw(r,n))}post(t,n,r={}){return this.request("POST",t,iw(r,n))}put(t,n,r={}){return this.request("PUT",t,iw(r,n))}static#e=this.\u0275fac=function(n){return new(n||i)(C(Q0))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})();const LQ=["*"];let Km;function Jd(i){return function BQ(){if(void 0===Km&&(Km=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(Km=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Km}()?.createHTML(i)||i}function yN(i){return Error(`Unable to find icon with the name "${i}"`)}function wN(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function xN(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class Ws{constructor(e,t,n){this.url=e,this.svgText=t,this.options=n}}let Xm=(()=>{class i{constructor(t,n,r,o){this._httpClient=t,this._sanitizer=n,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(t,n,r){return this.addSvgIconInNamespace("",t,n,r)}addSvgIconLiteral(t,n,r){return this.addSvgIconLiteralInNamespace("",t,n,r)}addSvgIconInNamespace(t,n,r,o){return this._addSvgIconConfig(t,n,new Ws(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,n,r,o){const s=this._sanitizer.sanitize(hi.HTML,r);if(!s)throw xN(r);const a=Jd(s);return this._addSvgIconConfig(t,n,new Ws("",a,o))}addSvgIconSet(t,n){return this.addSvgIconSetInNamespace("",t,n)}addSvgIconSetLiteral(t,n){return this.addSvgIconSetLiteralInNamespace("",t,n)}addSvgIconSetInNamespace(t,n,r){return this._addSvgIconSetConfig(t,new Ws(n,null,r))}addSvgIconSetLiteralInNamespace(t,n,r){const o=this._sanitizer.sanitize(hi.HTML,n);if(!o)throw xN(n);const s=Jd(o);return this._addSvgIconSetConfig(t,new Ws("",s,r))}registerFontClassAlias(t,n=t){return this._fontCssClassesByAlias.set(t,n),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const n=this._sanitizer.sanitize(hi.RESOURCE_URL,t);if(!n)throw wN(t);const r=this._cachedIconsByUrl.get(n);return r?Pn(Zm(r)):this._loadSvgIconFromConfig(new Ws(t,null)).pipe(Pm(o=>this._cachedIconsByUrl.set(n,o)),Vt(o=>Zm(o)))}getNamedSvgIcon(t,n=""){const r=CN(n,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(n);return s?this._getSvgFromIconSetConfigs(t,s):function iQ(i,e){const t=je(i)?i:()=>i,n=r=>r.error(t());return new bt(e?r=>e.schedule(n,0,r):n)}(yN(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Pn(Zm(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Vt(n=>Zm(n)))}_getSvgFromIconSetConfigs(t,n){const r=this._extractIconWithNameFromAnySet(t,n);return r?Pn(r):QR(n.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(JR(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(hi.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Pn(null)})))).pipe(Vt(()=>{const s=this._extractIconWithNameFromAnySet(t,n);if(!s)throw yN(t);return s}))}_extractIconWithNameFromAnySet(t,n){for(let r=n.length-1;r>=0;r--){const o=n[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Pm(n=>t.svgText=n),Vt(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Pn(null):this._fetchIcon(t).pipe(Pm(n=>t.svgText=n))}_extractSvgIconFromSet(t,n,r){const o=t.querySelector(`[id="${n}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(Jd(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(t){const n=this._document.createElement("DIV");n.innerHTML=t;const r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(t){const n=this._svgElementFromString(Jd("")),r=t.attributes;for(let o=0;oJd(c)),function nQ(i){return ii((e,t)=>{try{e.subscribe(t)}finally{t.add(i)}})}(()=>this._inProgressUrlFetches.delete(s)),eN());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(t,n,r){return this._svgIconConfigs.set(CN(t,n),r),this}_addSvgIconSetConfig(t,n){const r=this._iconSetConfigs.get(t);return r?r.push(n):this._iconSetConfigs.set(t,[n]),this}_svgElementFromConfig(t){if(!t.svgElement){const n=this._svgElementFromString(t.svgText);this._setSvgAttributes(n,t.options),t.svgElement=n}return t.svgElement}_getIconConfigFromResolvers(t,n){for(let r=0;re?e.pathname+e.search:""}}}),DN=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],WQ=DN.map(i=>`[${i}]`).join(", "),GQ=/^url\(['"]?#(.*?)['"]?\)$/;let kN=(()=>{class i{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const n=this._cleanupFontValue(t);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const n=this._cleanupFontValue(t);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(t,n,r,o,s,a){this._elementRef=t,this._iconRegistry=n,this._location=o,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ze.EMPTY,a&&(a.color&&(this.color=this._defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];const n=t.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let n=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){const r=t.childNodes[n];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>t.classList.remove(r)),n.forEach(r=>t.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.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"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const n=t.querySelectorAll(WQ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=n[o],l=a.getAttribute(s),c=l?l.match(GQ):null;if(c){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[n,r]=this._splitIconName(t);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(Fn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${r}! ${o.message}`))})}}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(Xm),Co("aria-hidden"),b(UQ),b(Vi),b(jQ,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,r){2&n&&(Fe("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Is(r.color?"mat-"+r.color:""),ye("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:[2,"inline","inline",Le],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[zi,Oe],ngContentSelectors:LQ,decls:1,vars:0,template:function(n,r){1&n&&(At(),X(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return i})(),Po=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve,Ve]})}return i})();const qQ=["mat-button",""],YQ=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],KQ=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],ZQ=["mat-icon-button",""],QQ=["*"],JQ=new S("MAT_BUTTON_CONFIG"),eJ=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let EN=(()=>{class i{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}constructor(t,n,r,o){this._elementRef=t,this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=O(js),this._rippleLoader=O(eQ),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const s=O(JQ,{optional:!0}),a=t.nativeElement,l=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(const{attribute:c,mdcClasses:d}of eJ)a.hasAttribute(c)&&l.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(n){!function eM(){throw new Error("invalid")}()};static#t=this.\u0275dir=R({type:i,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Le],disabled:[2,"disabled","disabled",Le],ariaDisabled:[2,"aria-disabled","ariaDisabled",Le],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Le]},features:[zi]})}return i})(),sw=(()=>{class i extends EN{constructor(t,n,r,o){super(t,n,r,o)}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(wt),b(U),b(ri,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,r){2&n&&(Fe("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Is(r.color?"mat-"+r.color:""),ye("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[me,Oe],attrs:qQ,ngContentSelectors:KQ,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){1&n&&(At(YQ),Ae(0,"span",0),X(1),E(2,"span",1),X(3,1),T(),X(4,2),Ae(5,"span",2)(6,"span",3)),2&n&&ye("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return i})(),SN=(()=>{class i extends EN{constructor(t,n,r,o){super(t,n,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(wt),b(U),b(ri,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,r){2&n&&(Fe("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Is(r.color?"mat-"+r.color:""),ye("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[me,Oe],attrs:ZQ,ngContentSelectors:QQ,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){1&n&&(At(),Ae(0,"span",0),X(1),Ae(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.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{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.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{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return i})(),ao=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve,$m,Ve]})}return i})();const iJ=["*",[["mat-toolbar-row"]]],nJ=["*","mat-toolbar-row"];let rJ=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}return i})(),oJ=(()=>{class i{constructor(t,n,r){this._elementRef=t,this._platform=n,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(wt),b(xe))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-toolbar"]],contentQueries:function(n,r,o){if(1&n&>(o,rJ,5),2&n){let s;se(s=ae())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,r){2&n&&(Is(r.color?"mat-"+r.color:""),ye("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Oe],ngContentSelectors:nJ,decls:2,vars:0,template:function(n,r){1&n&&(At(iJ),X(0),X(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return i})(),sJ=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve,Ve]})}return i})(),MN=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-header"]],standalone:!0,features:[Oe],decls:3,vars:0,consts:[["color","primary",1,"header"]],template:function(n,r){1&n&&(E(0,"mat-toolbar",0)(1,"span"),be(2,"TractusX-EDC Policy Playouground"),T()())},dependencies:[sJ,oJ,ao,Po],styles:[".header[_ngcontent-%COMP%]{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}"]})}return i})();class qe{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=Hl(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),Tr.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Hl(this,e,t);let n=[];return this.decompose(e,t,n,0),Tr.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new eu(this),o=new eu(e);for(let s=t,a=t;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new eu(this,e)}iterRange(e,t=this.length){return new AN(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new IN(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new Bt(e):Tr.from(Bt.split(e,[])):qe.empty}}class Bt extends qe{constructor(e,t=function aJ(i){let e=-1;for(let t of i)e+=t.length+1;return e}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((t?n:a)>=e)return new lJ(r,a,n,s);r=a+1,n++}}decompose(e,t,n,r){let o=e<=0&&t>=this.length?this:new Bt(TN(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let s=n.pop(),a=Qm(o.text,s.text.slice(),0,o.length);if(a.length<=32)n.push(new Bt(a,s.length+o.length));else{let l=a.length>>1;n.push(new Bt(a.slice(0,l)),new Bt(a.slice(l)))}}else n.push(o)}replace(e,t,n){if(!(n instanceof Bt))return super.replace(e,t,n);[e,t]=Hl(this,e,t);let r=Qm(this.text,Qm(n.text,TN(this.text,0,e)),t),o=this.length+n.length-(t-e);return r.length<=32?new Bt(r,o):Tr.from(Bt.split(r,[]),o)}sliceString(e,t=this.length,n="\n"){[e,t]=Hl(this,e,t);let r="";for(let o=0,s=0;o<=t&&se&&s&&(r+=n),eo&&(r+=a.slice(Math.max(0,e-o),t-o)),o=l+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new Bt(n,r)),n=[],r=-1);return r>-1&&t.push(new Bt(n,r)),t}}class Tr extends qe{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,l=n+s.lines-1;if((t?l:a)>=e)return s.lineInner(e,t,n,r);r=a+1,n=l+1}}decompose(e,t,n,r){for(let o=0,s=0;s<=t&&o=s){let c=r&((s<=e?1:0)|(l>=t?2:0));s>=e&&l<=t&&!c?n.push(a):a.decompose(e-s,t-s,n,c)}s=l+1}}replace(e,t,n){if([e,t]=Hl(this,e,t),n.lines=o&&t<=a){let l=s.replace(e-o,t-o,n),c=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let d=this.children.slice();return d[r]=l,new Tr(d,this.length-(t-e)+n.length)}return super.replace(o,a,l)}o=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=Hl(this,e,t);let r="";for(let o=0,s=0;oe&&o&&(r+=n),es&&(r+=a.sliceString(e-s,t-s,n)),s=l+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Tr))return 0;let n=0,[r,o,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,o+=t){if(r==s||o==a)return n;let l=this.children[r],c=e.children[o];if(l!=c)return n+l.scanIdentical(c,t);n+=l.length+1}}static from(e,t=e.reduce((n,r)=>n+r.length+1,-1)){let n=0;for(let f of e)n+=f.lines;if(n<32){let f=[];for(let m of e)m.flatten(f);return new Bt(f,t)}let r=Math.max(32,n>>5),o=r<<1,s=r>>1,a=[],l=0,c=-1,d=[];function u(f){let m;if(f.lines>o&&f instanceof Tr)for(let p of f.children)u(p);else f.lines>s&&(l>s||!l)?(h(),a.push(f)):f instanceof Bt&&l&&(m=d[d.length-1])instanceof Bt&&f.lines+m.lines<=32?(l+=f.lines,c+=f.length+1,d[d.length-1]=new Bt(m.text.concat(f.text),m.length+1+f.length)):(l+f.lines>r&&h(),l+=f.lines,c+=f.length+1,d.push(f))}function h(){0!=l&&(a.push(1==d.length?d[0]:Tr.from(d,c)),c=-1,l=d.length=0)}for(let f of e)u(f);return h(),1==a.length?a[0]:new Tr(a,t)}}function Qm(i,e,t=0,n=1e9){for(let r=0,o=0,s=!0;o=t&&(l>n&&(a=a.slice(0,n-r)),r0?1:(e instanceof Bt?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],s=o>>1;if(s==(t>0?r instanceof Bt?r.text.length:r.children.length:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof Bt){let l=r.text[s+(t<0?-1:0)];if(this.offsets[n]+=t,l.length>Math.max(0,e))return this.value=0==e?l:t>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=r.children[s+(t<0?-1:0)];e>l.length?(e-=l.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(t>0?1:(l instanceof Bt?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class AN{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new eu(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class IN{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(qe.prototype[Symbol.iterator]=function(){return this.iter()},eu.prototype[Symbol.iterator]=AN.prototype[Symbol.iterator]=IN.prototype[Symbol.iterator]=function(){return this});class lJ{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function Hl(i,e,t){return[e=Math.max(0,Math.min(i.length,e)),Math.max(e,Math.min(i.length,t))]}let zl="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(i=>i?parseInt(i,36):1);for(let i=1;ii)return zl[e-1]<=i;return!1}function ON(i){return i>=127462&&i<=127487}const RN=8205;function pi(i,e,t=!0,n=!0){return(t?NN:dJ)(i,e,n)}function NN(i,e,t){if(e==i.length)return e;e&&PN(i.charCodeAt(e))&&FN(i.charCodeAt(e-1))&&e--;let n=gi(i,e);for(e+=Bn(n);e=0&&ON(gi(i,s));)o++,s-=2;if(o%2==0)break;e+=2}}}return e}function dJ(i,e,t){for(;e>0;){let n=NN(i,e-2,t);if(n=56320&&i<57344}function FN(i){return i>=55296&&i<56320}function gi(i,e){let t=i.charCodeAt(e);if(!FN(t)||e+1==i.length)return t;let n=i.charCodeAt(e+1);return PN(n)?n-56320+(t-55296<<10)+65536:t}function aw(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function Bn(i){return i<65536?1:2}const lw=/\r\n?|\n/;var Wi=function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i}(Wi||(Wi={}));class Ar{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return o+(e-r);o+=a}else{if(n!=Wi.Simple&&c>=e&&(n==Wi.TrackDel&&re||n==Wi.TrackBefore&&re))return null;if(c>e||c==e&&t<0&&!a)return e==r||t<0?o:o+l;o+=l}r=c}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&a>=e)return!(rt)||"cover";r=a}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>"number"!=typeof t))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Ar(e)}static create(e){return new Ar(e)}}class ei extends Ar{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return cw(this,(t,n,r,o,s)=>e=e.replace(r,r+(n-t),s),!1),e}mapDesc(e,t=!1){return dw(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,o=0;r=0){t[r]=a,t[r+1]=s;let l=r>>1;for(;n.length0&&Fo(n,t,o.text),o.forward(d),a+=d}let c=e[s++];for(;a>1].toJSON()))}return e}static of(e,t,n){let r=[],o=[],s=0,a=null;function l(d=!1){if(!d&&!r.length)return;sh||u<0||h>t)throw new RangeError(`Invalid change range ${u} to ${h} (in doc of length ${t})`);let m=f?"string"==typeof f?qe.of(f.split(n||lw)):f:qe.empty,p=m.length;if(u==h&&0==p)return;us&&Ei(r,u-s,-1),Ei(r,h-u,p),Fo(o,r,m),s=h}}(e),l(!a),a}static empty(e){return new ei(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;ra&&"string"!=typeof s))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)t.push(o[0],0);else{for(;n.length=0&&t<=0&&t==i[r+1]?i[r]+=e:0==e&&0==i[r]?i[r+1]+=t:n?(i[r]+=e,i[r+1]+=t):i.push(e,t)}function Fo(i,e,t){if(0==t.length)return;let n=e.length-2>>1;if(n>1])),!(t||s==i.sections.length||i.sections[s+1]<0);)a=i.sections[s++],l=i.sections[s++];e(r,c,o,d,u),r=c,o=d}}}function dw(i,e,t,n=!1){let r=[],o=n?[]:null,s=new tu(i),a=new tu(e);for(let l=-1;;)if(-1==s.ins&&-1==a.ins){let c=Math.min(s.len,a.len);Ei(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?ei.createSet(r,o):Ar.create(r);throw new Error("Mismatched change set lengths")}{let c=0,d=s.len;for(;d;)if(-1==a.ins){let u=Math.min(d,a.len);c+=u,d-=u,a.forward(u)}else{if(!(0==a.ins&&a.lenl||s.ins>=0&&s.len>l)&&(a||n.length>c),o.forward2(l),s.forward(l)}}else Ei(n,0,s.ins,a),r&&Fo(r,n,s.text),s.next()}}class tu{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?qe.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?qe.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Gs{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new Gs(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return M.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return M.range(this.anchor,n)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return M.range(e.anchor,e.head)}static create(e,t,n){return new Gs(e,t,n)}}class M{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:M.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;ne.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new M(e.ranges.map(t=>Gs.fromJSON(t)),e.main)}static single(e,t=e){return new M([M.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;re?8:0)|o)}static normalized(e,t=0){let n=e[t];e.sort((r,o)=>r.from-o.from),t=e.indexOf(n);for(let r=1;ro.head?M.range(l,a):M.range(a,l))}}return new M(e,t)}}function BN(i,e){for(let t of i.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let uw=0;class z{constructor(e,t,n,r,o){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=uw++,this.default=e([]),this.extensions="function"==typeof o?o(this):o}get reader(){return this}static define(e={}){return new z(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:hw),!!e.static,e.enables)}of(e){return new Jm([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Jm(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Jm(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function hw(i,e){return i==e||i.length==e.length&&i.every((t,n)=>t===e[n])}class Jm{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=uw++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,o=this.id,s=e[o]>>1,a=2==this.type,l=!1,c=!1,d=[];for(let u of this.dependencies)"doc"==u?l=!0:"selection"==u?c=!0:1&(null!==(t=e[u.id])&&void 0!==t?t:1)||d.push(e[u.id]);return{create:u=>(u.values[s]=n(u),1),update(u,h){if(l&&h.docChanged||c&&(h.docChanged||h.selection)||fw(u,d)){let f=n(u);if(a?!VN(f,u.values[s],r):!r(f,u.values[s]))return u.values[s]=f,1}return 0},reconfigure:(u,h)=>{let f,m=h.config.address[o];if(null!=m){let p=ip(h,m);if(this.dependencies.every(g=>g instanceof z?h.facet(g)===u.facet(g):!(g instanceof Wt)||h.field(g,!1)==u.field(g,!1))||(a?VN(f=n(u),p,r):r(f=n(u),p)))return u.values[s]=p,0}else f=n(u);return u.values[s]=f,1}}}}function VN(i,e,t){if(i.length!=e.length)return!1;for(let n=0;ni[l.id]),r=t.map(l=>l.type),o=n.filter(l=>!(1&l)),s=i[e.id]>>1;function a(l){let c=[];for(let d=0;dn===r),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(HN).find(n=>n.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,r)=>{let o=n.values[t],s=this.updateF(o,r);return this.compareF(o,s)?0:(n.values[t]=s,1)},reconfigure:(n,r)=>null!=r.config.address[this.id]?(n.values[t]=r.field(this),0):(n.values[t]=this.create(n),1)}}init(e){return[this,HN.of({field:this,create:e})]}get extension(){return this}}function iu(i){return e=>new zN(e,i)}const lo={highest:iu(0),high:iu(1),default:iu(2),low:iu(3),lowest:iu(4)};class zN{constructor(e,t){this.inner=e,this.prec=t}}class ep{of(e){return new mw(this,e)}reconfigure(e){return ep.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class mw{constructor(e,t){this.compartment=e,this.inner=t}}class tp{constructor(e,t,n,r,o,s){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],o=Object.create(null),s=new Map;for(let h of function hJ(i,e,t){let n=[[],[],[],[],[]],r=new Map;return function o(s,a){let l=r.get(s);if(null!=l){if(l<=a)return;let c=n[l].indexOf(s);c>-1&&n[l].splice(c,1),s instanceof mw&&t.delete(s.compartment)}if(r.set(s,a),Array.isArray(s))for(let c of s)o(c,a);else if(s instanceof mw){if(t.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(s.compartment)||s.inner;t.set(s.compartment,c),o(c,a)}else if(s instanceof zN)o(s.inner,s.prec);else if(s instanceof Wt)n[a].push(s),s.provides&&o(s.provides,a);else if(s instanceof Jm)n[a].push(s),s.facet.extensions&&o(s.facet.extensions,2);else{let c=s.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(c,a)}}(i,2),n.reduce((s,a)=>s.concat(a))}(e,t,s))h instanceof Wt?r.push(h):(o[h.facet.id]||(o[h.facet.id]=[])).push(h);let a=Object.create(null),l=[],c=[];for(let h of r)a[h.id]=c.length<<1,c.push(f=>h.slot(f));let d=n?.config.facets;for(let h in o){let f=o[h],m=f[0].facet,p=d&&d[h]||[];if(f.every(g=>0==g.type))if(a[m.id]=l.length<<1|1,hw(p,f))l.push(n.facet(m));else{let g=m.combine(f.map(_=>_.value));l.push(n&&m.compare(g,n.facet(m))?n.facet(m):g)}else{for(let g of f)0==g.type?(a[g.id]=l.length<<1|1,l.push(g.value)):(a[g.id]=c.length<<1,c.push(_=>g.dynamicSlot(_)));a[m.id]=c.length<<1,c.push(g=>uJ(g,m,f))}}let u=c.map(h=>h(a));return new tp(e,s,u,a,l,o)}}function nu(i,e){if(1&e)return 2;let t=e>>1,n=i.status[t];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;i.status[t]=4;let r=i.computeSlot(i,i.config.dynamicSlots[t]);return i.status[t]=2|r}function ip(i,e){return 1&e?i.config.staticValues[e>>1]:i.values[e>>1]}const jN=z.define(),pw=z.define({combine:i=>i.some(e=>e),static:!0}),UN=z.define({combine:i=>i.length?i[0]:void 0,static:!0}),$N=z.define(),WN=z.define(),GN=z.define(),qN=z.define({combine:i=>!!i.length&&i[0]});class co{constructor(e,t){this.type=e,this.value=t}static define(){return new fJ}}class fJ{of(e){return new co(this,e)}}class mJ{constructor(e){this.map=e}of(e){return new Be(this,e)}}let Be=(()=>{class i{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return void 0===n?void 0:n==this.value?this:new i(this.type,n)}is(t){return this.type==t}static define(t={}){return new mJ(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let o of t){let s=o.map(n);s&&r.push(s)}return r}}return i.reconfigure=i.define(),i.appendConfig=i.define(),i})(),Ir=(()=>{class i{constructor(t,n,r,o,s,a){this.startState=t,this.changes=n,this.selection=r,this.effects=o,this.annotations=s,this.scrollIntoView=a,this._doc=null,this._state=null,r&&BN(r,n.newLength),s.some(l=>l.type==i.time)||(this.annotations=s.concat(i.time.of(Date.now())))}static create(t,n,r,o,s,a){return new i(t,n,r,o,s,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(i.userEvent);return!(!n||!(n==t||n.length>t.length&&n.slice(0,t.length)==t&&"."==n[t.length]))}}return i.time=co.define(),i.userEvent=co.define(),i.addToHistory=co.define(),i.remote=co.define(),i})();function pJ(i,e){let t=[];for(let n=0,r=0;;){let o,s;if(n=i[n]))o=i[n++],s=i[n++];else{if(!(r=0;r--){let o=t[r](i);o&&Object.keys(o).length&&(n=YN(n,gw(e,o,i.changes.newLength),!0))}return n==i?i:Ir.create(e,i.changes,i.selection,n.effects,n.annotations,n.scrollIntoView)}(t?function gJ(i){let e=i.startState,t=!0;for(let r of e.facet($N)){let o=r(i);if(!1===o){t=!1;break}Array.isArray(o)&&(t=!0===t?o:pJ(t,o))}if(!0!==t){let r,o;if(!1===t)o=i.changes.invertedDesc,r=ei.empty(e.doc.length);else{let s=i.changes.filter(t);r=s.changes,o=s.filtered.mapDesc(s.changes).invertedDesc}i=Ir.create(e,r,i.selection&&i.selection.map(o),Be.mapEffects(i.effects,o),i.annotations,i.scrollIntoView)}let n=e.facet(WN);for(let r=n.length-1;r>=0;r--){let o=n[r](i);i=o instanceof Ir?o:Array.isArray(o)&&1==o.length&&o[0]instanceof Ir?o[0]:KN(e,jl(o),!1)}return i}(r):r)}const bJ=[];function jl(i){return null==i?bJ:Array.isArray(i)?i:[i]}var xt=function(i){return i[i.Word=0]="Word",i[i.Space=1]="Space",i[i.Other=2]="Other",i}(xt||(xt={}));const vJ=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let _w;try{_w=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}let gn=(()=>{class i{constructor(t,n,r,o,s,a){this.config=t,this.doc=n,this.selection=r,this.values=o,this.status=t.statusTemplate.slice(),this.computeSlot=s,a&&(a._state=this);for(let l=0;lo.set(d,c)),n=null),o.set(l.value.compartment,l.value.extension)):l.is(Be.reconfigure)?(n=null,r=l.value):l.is(Be.appendConfig)&&(n=null,r=jl(r).concat(l.value));n?s=t.startState.values.slice():(n=tp.resolve(r,o,this),s=new i(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(c,d)=>d.reconfigure(c,this),null).values);let a=t.startState.facet(pw)?t.newSelection:t.newSelection.asSingle();new i(n,t.newDoc,a,s,(l,c)=>c.update(l,t),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:M.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),o=this.changes(r.changes),s=[r.range],a=jl(r.effects);for(let l=1;la.spec.fromJSON(l,c)))}return i.create({doc:t.doc,selection:M.fromJSON(t.selection),extensions:n.extensions?o.concat([n.extensions]):o})}static create(t={}){let n=tp.resolve(t.extensions||[],new Map),r=t.doc instanceof qe?t.doc:qe.of((t.doc||"").split(n.staticFacet(i.lineSeparator)||lw)),o=t.selection?t.selection instanceof M?t.selection:M.single(t.selection.anchor,t.selection.head):M.single(0);return BN(o,r.length),n.staticFacet(pw)||(o=o.asSingle()),new i(n,r,o,n.dynamicSlots.map(()=>null),(s,a)=>a.create(s),null)}get tabSize(){return this.facet(i.tabSize)}get lineBreak(){return this.facet(i.lineSeparator)||"\n"}get readOnly(){return this.facet(qN)}phrase(t,...n){for(let r of this.facet(i.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,o)=>{if("$"==o)return"$";let s=+(o||1);return!s||s>n.length?r:n[s-1]})),t}languageDataAt(t,n,r=-1){let o=[];for(let s of this.facet(jN))for(let a of s(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&o.push(a[t]);return o}charCategorizer(t){return function wJ(i){return e=>{if(!/\S/.test(e))return xt.Space;if(function yJ(i){if(_w)return _w.test(i);for(let e=0;e"\x80"&&(t.toUpperCase()!=t.toLowerCase()||vJ.test(t)))return!0}return!1}(e))return xt.Word;for(let t=0;t-1)return xt.Word;return xt.Other}}(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:o}=this.doc.lineAt(t),s=this.charCategorizer(t),a=t-r,l=t-r;for(;a>0;){let c=pi(n,a,!1);if(s(n.slice(c,a))!=xt.Word)break;a=c}for(;le.length?e[0]:4}),i.lineSeparator=UN,i.readOnly=qN,i.phrases=z.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(o=>e[o]==t[o])}}),i.languageData=jN,i.changeFilter=$N,i.transactionFilter=WN,i.transactionExtender=GN,i})();function lr(i,e,t={}){let n={};for(let r of i)for(let o of Object.keys(r)){let s=r[o],a=n[o];if(void 0===a)n[o]=s;else if(a!==s&&void 0!==s){if(!Object.hasOwnProperty.call(t,o))throw new Error("Config merge conflict for field "+o);n[o]=t[o](a,s)}}for(let r in e)void 0===n[r]&&(n[r]=e[r]);return n}ep.reconfigure=Be.define();class Ys{eq(e){return this==e}range(e,t=e){return ru.create(e,t,this)}}Ys.prototype.startSide=Ys.prototype.endSide=0,Ys.prototype.point=!1,Ys.prototype.mapMode=Wi.TrackDel;class ru{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new ru(e,t,n)}}function bw(i,e){return i.from-e.from||i.value.startSide-e.value.startSide}class vw{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let o=n?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let l=s+a>>1,c=o[l]-e||(n?this.value[l].endSide:this.value[l].startSide)-t;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}between(e,t,n,r){for(let o=this.findIndex(t,-1e9,!0),s=this.findIndex(n,1e9,!1,o);of||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),n.push(c),r.push(h-s),o.push(f-s))}return{mapped:n.length?new vw(r,o,n,a):null,pos:s}}}let Ct=(()=>{class i{constructor(t,n,r,o){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=o}static create(t,n,r,o){return new i(t,n,r,o)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:o=0,filterTo:s=this.length}=t,a=t.filter;if(0==n.length&&!a)return this;if(r&&(n=n.slice().sort(bw)),this.isEmpty)return n.length?i.of(n):this;let l=new ZN(this,null,-1).goto(0),c=0,d=[],u=new uo;for(;l.value||c=0){let h=n[c++];u.addInner(h.from,h.to,h.value)||d.push(h)}else 1==l.rangeIndex&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||sl.to||s=s&&t<=s+a.length&&!1===a.between(s,t-s,n-s,r))return}this.nextLayer.between(t,n,r)}}iter(t=0){return ou.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return ou.from(t).goto(n)}static compare(t,n,r,o,s=-1){let a=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),l=n.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),c=XN(a,l,r),d=new su(a,c,s),u=new su(l,c,s);r.iterGaps((h,f,m)=>QN(d,h,u,f,m,o)),r.empty&&0==r.length&&QN(d,0,u,0,0,o)}static eq(t,n,r=0,o){null==o&&(o=999999999);let s=t.filter(u=>!u.isEmpty&&n.indexOf(u)<0),a=n.filter(u=>!u.isEmpty&&t.indexOf(u)<0);if(s.length!=a.length)return!1;if(!s.length)return!0;let l=XN(s,a),c=new su(s,l,0).goto(r),d=new su(a,l,0).goto(r);for(;;){if(c.to!=d.to||!ww(c.active,d.active)||c.point&&(!d.point||!c.point.eq(d.point)))return!1;if(c.to>o)return!0;c.next(),d.next()}}static spans(t,n,r,o,s=-1){let a=new su(t,null,s).goto(n),l=n,c=a.openStart;for(;;){let d=Math.min(a.to,r);if(a.point){let u=a.activeForPoint(a.to),h=a.pointFroml&&(o.span(l,d,a.active,c),c=a.openEnd(d));if(a.to>r)return c+(a.point&&a.to>r?1:0);l=a.to,a.next()}}static of(t,n=!1){let r=new uo;for(let o of t instanceof ru?[t]:n?function xJ(i){if(i.length>1)for(let e=i[0],t=1;t0)return i.slice().sort(bw);e=n}return i}(t):t)r.add(o.from,o.to,o.value);return r.finish()}static join(t){if(!t.length)return i.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let o=t[r];o!=i.empty;o=o.nextLayer)n=new i(o.chunkPos,o.chunk,n,Math.max(o.maxPoint,n.maxPoint));return n}}return i.empty=new i([],[],null,-1),i})();Ct.empty.nextLayer=Ct.empty;class uo{finishChunk(e){this.chunks.push(new vw(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new uo)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Ct.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Ct.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function XN(i,e,t){let n=new Map;for(let o of i)for(let s=0;s=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new ZN(s,t,n,o));return 1==r.length?r[0]:new ou(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)yw(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)yw(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),yw(this.heap,0)}}}function yw(i,e){for(let t=i[e];;){let n=1+(e<<1);if(n>=i.length)break;let r=i[n];if(n+1=0&&(r=i[n+1],n++),t.compare(r)<0)break;i[n]=t,i[e]=r,e=n}}class su{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=ou.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){np(this.active,e),np(this.activeTo,e),np(this.activeRank,e),this.minActive=JN(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:o}=this.cursor;for(;t0;)t++;rp(this.active,t,n),rp(this.activeTo,t,r),rp(this.activeRank,t,o),e&&rp(e,t,this.cursor.from),this.minActive=JN(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&np(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let o=this.cursor.value;if(o.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[r]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function QN(i,e,t,n,r,o){i.goto(e),t.goto(n);let s=n+r,a=n,l=n-e;for(;;){let c=i.to+l-t.to||i.endSide-t.endSide,d=c<0?i.to+l:t.to,u=Math.min(d,s);if(i.point||t.point?i.point&&t.point&&(i.point==t.point||i.point.eq(t.point))&&ww(i.activeForPoint(i.to),t.activeForPoint(t.to))||o.comparePoint(a,u,i.point,t.point):u>a&&!ww(i.active,t.active)&&o.compareRange(a,u,i.active,t.active),d>s)break;a=d,c<=0&&i.next(),c>=0&&t.next()}}function ww(i,e){if(i.length!=e.length)return!1;for(let t=0;t=e;n--)i[n+1]=i[n];i[e]=t}function JN(i,e){let t=-1,n=1e9;for(let r=0;r=e)return r;if(r==i.length)break;o+=9==i.charCodeAt(r)?t-o%t:1,r=pi(i,r)}return!0===n?-1:i.length}const eP=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),Dw=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),tP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Lo{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function o(s,a,l,c){let d=[],u=/^@(\w+)\b/.exec(s[0]),h=u&&"keyframes"==u[1];if(u&&null==a)return l.push(s[0]+";");for(let f in a){let m=a[f];if(/&/.test(f))o(f.split(/,\s*/).map(p=>s.map(g=>p.replace(/&/,g))).reduce((p,g)=>p.concat(g)),m,l);else if(m&&"object"==typeof m){if(!u)throw new RangeError("The value of a property ("+f+") should be a primitive value.");o(r(f),m,d,h)}else null!=m&&d.push(f.replace(/_.*/,"").replace(/[A-Z]/g,p=>"-"+p.toLowerCase())+": "+m+";")}(d.length||h)&&l.push((!n||u||c?s:s.map(n)).join(", ")+" {"+d.join(" ")+"}")}for(let s in e)o(r(s),e[s],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=tP[eP]||1;return tP[eP]=e+1,"\u037c"+e.toString(36)}static mount(e,t,n){let r=e[Dw],o=n&&n.nonce;r?o&&r.setNonce(o):r=new CJ(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let iP=new Map;class CJ{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let o=iP.get(n);if(o)return e[Dw]=o;this.sheet=new r.CSSStyleSheet,iP.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Dw]=this}mount(e,t){let n=this.sheet,r=0,o=0;for(let s=0;s-1&&(this.modules.splice(l,1),o--,l=-1),-1==l){if(this.modules.splice(o++,0,a),n)for(let c=0;c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},DJ=typeof navigator<"u"&&/Mac/.test(navigator.platform),kJ=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),_i=0;_i<10;_i++)Bo[48+_i]=Bo[96+_i]=String(_i);for(_i=1;_i<=24;_i++)Bo[_i+111]="F"+_i;for(_i=65;_i<=90;_i++)Bo[_i]=String.fromCharCode(_i+32),au[_i]=String.fromCharCode(_i);for(var kw in Bo)au.hasOwnProperty(kw)||(au[kw]=Bo[kw]);function op(i){let e;return e=11==i.nodeType?i.getSelection?i:i.ownerDocument:i,e.getSelection()}function Ew(i,e){return!!e&&(i==e||i.contains(1!=e.nodeType?e.parentNode:e))}function sp(i,e){if(!e.anchorNode)return!1;try{return Ew(i,e.anchorNode)}catch{return!1}}function $l(i){return 3==i.nodeType?Xs(i,0,i.nodeValue.length).getClientRects():1==i.nodeType?i.getClientRects():[]}function lu(i,e,t,n){return!!t&&(nP(i,e,t,n,-1)||nP(i,e,t,n,1))}function Ks(i){for(var e=0;;e++)if(!(i=i.previousSibling))return e}function ap(i){return 1==i.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(i.nodeName)}function nP(i,e,t,n,r){for(;;){if(i==t&&e==n)return!0;if(e==(r<0?0:ho(i))){if("DIV"==i.nodeName)return!1;let o=i.parentNode;if(!o||1!=o.nodeType)return!1;e=Ks(i)+(r<0?0:1),i=o}else{if(1!=i.nodeType)return!1;if(1==(i=i.childNodes[e+(r<0?-1:0)]).nodeType&&"false"==i.contentEditable)return!1;e=r<0?ho(i):0}}}function ho(i){return 3==i.nodeType?i.nodeValue.length:i.childNodes.length}function lp(i,e){let t=e?i.left:i.right;return{left:t,right:t,top:i.top,bottom:i.bottom}}function MJ(i){let e=i.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:i.innerWidth,top:0,bottom:i.innerHeight}}function rP(i,e){let t=e.width/i.offsetWidth,n=e.height/i.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-i.offsetWidth)<1)&&(t=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-i.offsetHeight)<1)&&(n=1),{scaleX:t,scaleY:n}}class IJ{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?ho(t):0),n,Math.min(e.focusOffset,n?ho(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let sP,Wl=null;function oP(i){if(i.setActive)return i.setActive();if(Wl)return i.focus(Wl);let e=[];for(let t=i;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(i.focus(null==Wl?{get preventScroll(){return Wl={preventScroll:!0},!0}}:void 0),!Wl){Wl=!1;for(let t=0;tMath.max(1,i.scrollHeight-i.clientHeight-4)}function cP(i,e){for(let t=i,n=e;;){if(3==t.nodeType&&n>0)return{node:t,offset:n};if(1==t.nodeType&&n>0){if("false"==t.contentEditable)return null;t=t.childNodes[n-1],n=ho(t)}else{if(!t.parentNode||ap(t))return null;n=Ks(t),t=t.parentNode}}}function dP(i,e){for(let t=i,n=e;;){if(3==t.nodeType&&nt)return u.domBoundsAround(e,t,c);if(h>=e&&-1==r&&(r=l,o=c),c>t&&u.dom.parentNode==this.dom){s=l,a=d;break}d=h,c=h+u.breakAfter}return{from:o,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=Sw){this.markDirty();for(let r=e;rthis.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function fP(i,e,t,n,r,o,s,a,l){let{children:c}=i,d=c.length?c[e]:null,u=o.length?o[o.length-1]:null,h=u?u.breakAfter:s;if(!(e==n&&d&&!s&&!h&&o.length<2&&d.merge(t,r,o.length?u:null,0==t,a,l))){if(n0&&(!s&&o.length&&d.merge(t,d.length,o[0],!1,a,0)?d.breakAfter=o.shift().breakAfter:(t2);var $={mac:vP||/Mac/.test(_n.platform),windows:/Win/.test(_n.platform),linux:/Linux|X11/.test(_n.platform),ie:cp,ie_version:pP?Mw.documentMode||6:Aw?+Aw[1]:Tw?+Tw[1]:0,gecko:gP,gecko_version:gP?+(/Firefox\/(\d+)/.exec(_n.userAgent)||[0,0])[1]:0,chrome:!!Iw,chrome_version:Iw?+Iw[1]:0,ios:vP,android:/Android\b/.test(_n.userAgent),webkit:_P,safari:bP,webkit_version:_P?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=Mw.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class cr extends rt{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof cr)||this.length-(t-e)+n.length>256||8&n.flags)||(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),0))}split(e){let t=new cr(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new Si(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function PJ(i,e,t){let n=i.nodeValue.length;e>n&&(e=n);let r=e,o=e,s=0;0==e&&t<0||e==n&&t>=0?$.chrome||$.gecko||(e?(r--,s=1):o=0)?0:a.length-1];return $.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,c=>c.width)||l),s?lp(l,s<0):l||null}(this.dom,e,t)}}class fo extends rt{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let r of t)r.setParent(this)}setAttrs(e){if(aP(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,o,s){return!(n&&(!(n instanceof fo&&n.mark.eq(this.mark))||e&&o<=0||te&&t.push(n=e&&(r=o),n=l,o++}let s=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new fo(this.mark,t,s)}domAtPos(e){return yP(this,e)}coordsAt(e,t){return xP(this,e,t)}}class Vo extends rt{static create(e,t,n){return new Vo(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=Vo.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,r,o,s){return!(n&&(!(n instanceof Vo&&this.widget.compare(n.widget))||e>0&&o<=0||t0)?Si.before(this.dom):Si.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let s=this.side?this.side<0:e>0;for(let a=s?r.length-1:0;o=r[a],!(e>0?0==a:a==r.length-1||o.top0?Si.before(this.dom):Si.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return qe.empty}get isHidden(){return!0}}function yP(i,e){let t=i.dom,{children:n}=i,r=0;for(let o=0;ro&&e0;o--){let s=n[o-1];if(s.dom.parentNode==t)return s.domAtPos(s.length)}for(let o=r;o0&&e instanceof fo&&r.length&&(n=r[r.length-1])instanceof fo&&n.mark.eq(e.mark)?wP(n,e.children[0],t-1):(r.push(e),e.setParent(i)),i.length+=e.length}function xP(i,e,t){let n=null,r=-1,o=null,s=-1;!function a(c,d){for(let u=0,h=0;u=d&&(f.children.length?a(f,d-h):(!o||o.isHidden&&t>0)&&(m>d||h==m&&f.getSide()>0)?(o=f,s=d-h):(h-1?1:0)!=r.length-(t&&r.indexOf(t)>-1?1:0))return!1;for(let o of n)if(o!=t&&(-1==r.indexOf(o)||i[o]!==e[o]))return!1;return!0}function Nw(i,e,t){let n=!1;if(e)for(let r in e)t&&r in t||(n=!0,"style"==r?i.style.cssText="":i.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(n=!0,"style"==r?i.style.cssText=t[r]:i.setAttribute(r,t[r]));return n}function LJ(i){let e=Object.create(null);for(let t=0;t0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Rw(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){wP(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=Ow(t,this.attrs||{})),n&&(this.attrs=Ow({class:n},this.attrs||{}))}domAtPos(e){return yP(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(aP(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Nw(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&rt.get(r)instanceof fo;)r=r.lastChild;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(n=rt.get(r))||void 0===n?void 0:n.isEditable)||$.ios&&this.children.some(o=>o instanceof cr)))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t,e=0;for(let n of this.children){if(!(n instanceof cr)||/[^ -~]/.test(n.text))return null;let r=$l(n.dom);if(1!=r.length)return null;e+=r[0].width,t=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let n=xP(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:r}=this.parent.view.viewState,o=n.bottom-n.top;if(Math.abs(o-r.lineHeight)<2&&r.textHeight=t){if(o instanceof ti)return o;if(s>t)break}r=s+o.breakAfter}return null}}class Ho extends rt{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,o,s){return!(n&&(!(n instanceof Ho&&this.widget.compare(n.widget))||e>0&&o<=0||t0)}}class Or{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Gi=function(i){return i[i.Text=0]="Text",i[i.WidgetBefore=1]="WidgetBefore",i[i.WidgetAfter=2]="WidgetAfter",i[i.WidgetRange=3]="WidgetRange",i}(Gi||(Gi={}));class q extends Ys{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new cu(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new zo(e,t,t,n,e.widget||null,!1)}static replace(e){let n,r,t=!!e.block;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:o,end:s}=DP(e,t);n=(o?t?-3e8:-1:5e8)-1,r=1+(s?t?2e8:1:-6e8)}return new zo(e,n,r,t,e.widget||null,!0)}static line(e){return new du(e)}static set(e,t=!1){return Ct.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}q.none=Ct.empty;class cu extends q{constructor(e){let{start:t,end:n}=DP(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof cu&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&Rw(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}cu.prototype.point=!1;class du extends q{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof du&&this.spec.class==e.spec.class&&Rw(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}du.prototype.mapMode=Wi.TrackBefore,du.prototype.point=!0;class zo extends q{constructor(e,t,n,r,o,s){super(t,n,o,e),this.block=r,this.isReplace=s,this.mapMode=r?t<=0?Wi.TrackBefore:Wi.TrackAfter:Wi.TrackDel}get type(){return this.startSide!=this.endSide?Gi.WidgetRange:this.startSide<=0?Gi.WidgetBefore:Gi.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof zo&&function BJ(i,e){return i==e||!!(i&&e&&i.compare(e))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function DP(i,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=i;return null==t&&(t=i.inclusive),null==n&&(n=i.inclusive),{start:t??e,end:n??e}}function Pw(i,e,t,n=0){let r=t.length-1;r>=0&&t[r]+n>=i?t[r]=Math.max(t[r],e):t.push(i,e)}zo.prototype.point=!0;class uu{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Ho&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ti),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(dp(new ql(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Ho)&&this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:s,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=o,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(dp(new cr(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,o,s){if(this.disallowBlockEffectsFor[s]&&n instanceof zo){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(n instanceof zo)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Ho(n.widget||kP.block,a,n));else{let l=Vo.create(n.widget||kP.inline,a,a?0:n.startSide),c=this.atCursorPos&&!l.isEditable&&o<=r.length&&(e0),d=!l.isEditable&&(er.length||n.startSide<=0),u=this.getLine();2==this.pendingBuffer&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),c&&(u.append(dp(new ql(1),r),o),o=r.length+Math.max(0,o-r.length)),u.append(dp(l,r),o),this.atCursorPos=d,this.pendingBuffer=d?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=o)}static build(e,t,n,r,o){let s=new uu(e,t,n,o);return s.openEnd=Ct.spans(r,t,n,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function dp(i,e){for(let t of e)i=new fo(t,[i],i.length);return i}let kP=(()=>{class i extends Or{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}return i.inline=new i("span"),i.block=new i("div"),i})();var ot=function(i){return i[i.LTR=0]="LTR",i[i.RTL=1]="RTL",i}(ot||(ot={}));const Zs=ot.LTR,Fw=ot.RTL;function EP(i){let e=[];for(let t=0;t=t){if(a.level==n)return s;(o<0||(0!=r?r<0?a.fromt:e[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}function MP(i,e){if(i.length!=e.length)return!1;for(let t=0;tl&&s.push(new jo(l,p.from,f)),Vw(i,p.direction==Zs!=!(f%2)?n+1:n,r,p.inner,p.from,p.to,s),l=p.to),m=p.to}else{if(m==t||(d?st[m]!=a:st[m]==a))break;m++}h?Bw(i,l,m,n+1,r,h,s):le;){let d=!0,u=!1;if(!c||l>o[c-1].to){let p=st[l-1];p!=a&&(d=!1,u=16==p)}let h=d||1!=a?null:[],f=d?n:n+1,m=l;e:for(;;)if(c&&m==o[c-1].to){if(u)break e;let p=o[--c];if(!d)for(let g=p.from,_=c;;){if(g==e)break e;if(!_||o[_-1].to!=g){if(st[g-1]==a)break e;break}g=o[--_].from}h?h.push(p):(p.to=0;p-=3)if(Rr[p+1]==-f){let g=Rr[p+2],_=2&g?r:4&g?1&g?o:r:0;_&&(st[u]=st[Rr[p]]=_),a=p;break}}else{if(189==Rr.length)break;Rr[a++]=u,Rr[a++]=h,Rr[a++]=l}else if(2==(m=st[u])||1==m){let p=m==r;l=p?0:1;for(let g=a-3;g>=0;g-=3){let _=Rr[g+2];if(2&_)break;if(p)Rr[g+2]|=2;else{if(4&_)break;Rr[g+2]|=4}}}}}(i,r,o,n,a),function $J(i,e,t,n){for(let r=0,o=n;r<=t.length;r++){let a=rl;)m==g&&(m=t[--p].from,g=p?t[p-1].to:i),st[--m]=f;l=d}else o=c,l++}}}(r,o,n,a),Bw(i,r,o,e,t,n,s)}function AP(i){return[new jo(0,i,0)]}let IP="";function OP(i,e,t,n,r){var o;let s=n.head-i.from,a=jo.find(e,s,null!==(o=n.bidiLevel)&&void 0!==o?o:-1,n.assoc),l=e[a],c=l.side(r,t);if(s==c){let h=a+=r?1:-1;if(h<0||h>=e.length)return null;l=e[a=h],s=l.side(!r,t),c=l.side(r,t)}let d=pi(i.text,s,l.forward(r,t));(dl.to)&&(d=c),IP=i.text.slice(Math.min(s,d),Math.max(s,d));let u=a==(r?e.length-1:0)?null:e[a+(r?1:-1)];return u&&d==c&&u.level+(r?0:1)i.some(e=>e)}),HP=z.define({combine:i=>i.some(e=>e)}),zP=z.define();class Yl{constructor(e,t="nearest",n="nearest",r=5,o=5,s=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=o,this.isSnapshot=s}map(e){return e.empty?this:new Yl(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Yl(M.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const up=Be.define({map:(i,e)=>i.map(e)});function tn(i,e,t){let n=i.facet(FP);n.length?n[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const hp=z.define({combine:i=>!i.length||i[0]});let GJ=0;const hu=z.define();class St{constructor(e,t,n,r,o){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.extension=o(this)}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:o,decorations:s}=t||{};return new St(GJ++,e,n,r,a=>{let l=[hu.of(a)];return s&&l.push(fu.of(c=>{let d=c.plugin(a);return d?s(d):q.none})),o&&l.push(o(a)),l})}static fromClass(e,t){return St.define(n=>new e(n),t)}}class zw{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(tn(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){tn(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null!==(t=this.value)&&void 0!==t&&t.destroy)try{this.value.destroy()}catch(n){tn(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const jP=z.define(),fp=z.define(),fu=z.define(),UP=z.define(),jw=z.define(),$P=z.define();function WP(i,e){let t=i.state.facet($P);if(!t.length)return t;let n=t.map(o=>o instanceof Function?o(i):o),r=[];return Ct.spans(n,e.from,e.to,{point(){},span(o,s,a,l){let c=o-e.from,d=s-e.from,u=r;for(let h=a.length-1;h>=0;h--,l--){let m,f=a[h].spec.bidiIsolate;if(null==f&&(f=WJ(e.text,c,d)),l>0&&u.length&&(m=u[u.length-1]).to==c&&m.direction==f)m.to=d,u=m.inner;else{let p={from:c,to:d,direction:f,inner:[]};u.push(p),u=p.inner}}}}),r}const GP=z.define();function qP(i){let e=0,t=0,n=0,r=0;for(let o of i.state.facet(GP)){let s=o(i);s&&(null!=s.left&&(e=Math.max(e,s.left)),null!=s.right&&(t=Math.max(t,s.right)),null!=s.top&&(n=Math.max(n,s.top)),null!=s.bottom&&(r=Math.max(r,s.bottom)))}return{left:e,right:t,top:n,bottom:r}}const mu=z.define();class bn{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new bn(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAd)break;o+=2}if(!l)return n;new bn(l.fromA,l.toA,l.fromB,l.toB).addToSet(n),s=l.toA,a=l.toB}}}class mp{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=ei.empty(this.startState.doc.length);for(let o of n)this.changes=this.changes.compose(o.changes);let r=[];this.changes.iterChangedRanges((o,s,a,l)=>r.push(new bn(o,s,a,l))),this.changedRanges=r}static create(e,t,n){return new mp(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}class YP extends rt{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new ti],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new bn(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:c,toA:d})=>dthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let r=-1;this.view.inputState.composing>=0&&(null!==(t=this.domChanged)&&void 0!==t&&t.newSel?r=this.domChanged.newSel.head:!function JJ(i,e){let t=!1;return e&&i.iterChangedRanges((n,r)=>{ne.from&&(t=!0)}),t}(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let o=r>-1?function YJ(i,e,t){let n=XP(i,t);if(!n)return null;let{node:r,from:o,to:s}=n,a=r.nodeValue;if(/[\n\r]/.test(a)||i.state.doc.sliceString(n.from,n.to)!=a)return null;let l=e.invertedDesc,c=new bn(l.mapPos(o),l.mapPos(s),o,s),d=[];for(let u=r.parentNode;;u=u.parentNode){let h=rt.get(u);if(h instanceof fo)d.push({node:u,deco:h.mark});else{if(h instanceof ti||"DIV"==u.nodeName&&u.parentNode==i.contentDOM)return{range:c,text:r,marks:d,line:u};if(u==i.contentDOM)return null;d.push({node:u,deco:new cu({inclusive:!0,attributes:LJ(u),tagName:u.tagName.toLowerCase()})})}}}(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:d}=this.hasComposition;n=new bn(c,d,e.changes.mapPos(c,-1),e.changes.mapPos(d,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,($.ie||$.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let l=function ZJ(i,e,t){let n=new XJ;return Ct.compare(i,e,t,n),n.changes}(this.decorations,this.updateDeco(),e.changes);return n=bn.extendWithRanges(n,l),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=$.chrome||$.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||r.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?r[s]:null;if(!a)break;let h,f,m,p,{fromA:l,toA:c,fromB:d,toB:u}=a;if(n&&n.range.fromBd){let w=uu.build(this.view.state.doc,d,n.range.fromB,this.decorations,this.dynamicDecorationMap),x=uu.build(this.view.state.doc,n.range.toB,u,this.decorations,this.dynamicDecorationMap);f=w.breakAtStart,m=w.openStart,p=x.openEnd;let A=this.compositionView(n);x.breakAtStart?A.breakAfter=1:x.content.length&&A.merge(A.length,A.length,x.content[0],!1,x.openStart,0)&&(A.breakAfter=x.content[0].breakAfter,x.content.shift()),w.content.length&&A.merge(0,0,w.content[w.content.length-1],!0,0,w.openEnd)&&w.content.pop(),h=w.content.concat(A).concat(x.content)}else({content:h,breakAtStart:f,openStart:m,openEnd:p}=uu.build(this.view.state.doc,d,u,this.decorations,this.dynamicDecorationMap));let{i:g,off:_}=o.findPos(c,1),{i:v,off:y}=o.findPos(l,-1);fP(this,v,y,g,_,h,f,m,p)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new cr(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new fo(r,[t],t.length);let n=new ti;return n.append(t,0),n}fixCompositionDOM(e){let t=(o,s)=>{s.flags|=8|(s.children.some(l=>7&l.flags)?1:0),this.markedForComposition.add(s);let a=rt.get(o);a&&a!=s&&(a.dom=null),s.setDOM(o)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r);for(let o=e.marks.length-1;o>=-1;o--)n=r.childPos(n.off,1),r=r.children[n.i],t(o>=0?e.marks[o].node:e.text,r)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,o=!r&&sp(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||t||o))return;let s=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),c=a.empty?l:this.moveToLine(this.domAtPos(a.head));if($.gecko&&a.empty&&!this.hasComposition&&function qJ(i){return 1==i.node.nodeType&&i.node.firstChild&&(0==i.offset||"false"==i.node.childNodes[i.offset-1].contentEditable)&&(i.offset==i.node.childNodes.length||"false"==i.node.childNodes[i.offset].contentEditable)}(l)){let u=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(u,l.node.childNodes[l.offset]||null)),l=c=new Si(u,0),s=!0}let d=this.view.observer.selectionRange;(s||!d.focusNode||(!lu(l.node,l.offset,d.anchorNode,d.anchorOffset)||!lu(c.node,c.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,a))&&(this.view.observer.ignore(()=>{$.android&&$.chrome&&this.dom.contains(d.focusNode)&&function QJ(i,e){for(let t=i;t&&t!=e;t=t.assignedSlot||t.parentNode)if(1==t.nodeType&&"false"==t.contentEditable)return!0;return!1}(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let u=op(this.view.root);if(u)if(a.empty){if($.gecko){let h=function KJ(i,e){return 1!=i.nodeType?0:(e&&"false"==i.childNodes[e-1].contentEditable?1:0)|(ea.head&&([l,c]=[c,l]),h.setEnd(c.node,c.offset),h.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(h)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Si(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new Si(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&lu(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=op(e.root),{anchorNode:r,anchorOffset:o}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let s=ti.find(this,t.head);if(!s)return;let a=s.posAtStart;if(t.head==a||t.head==a+s.length)return;let l=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!l||!c||l.bottom>c.top)return;let d=this.domAtPos(t.head+t.assoc);n.collapse(d.node,d.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,o)}moveToLine(e){let n,t=this.dom;if(e.node!=t)return e;for(let r=e.offset;!n&&r=0;r--){let o=rt.get(t.childNodes[r]);o instanceof ti&&(n=o.domAtPos(o.length))}return n?new Si(n.node,n.offset,!0):e}nearest(e){for(let t=e;t;){let n=rt.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t=0;s--){let a=this.children[s],l=o-a.breakAfter,c=l-a.length;if(le||a.covers(1))&&(!n||a instanceof ti&&!(n instanceof ti&&t>=0))&&(n=a,r=c),o=c}return n?n.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),r=this.children[t];if(!(r instanceof ti))return null;for(;r.children.length;){let{i:a,off:l}=r.childPos(n,1);for(;;a++){if(a==r.children.length)return null;if((r=r.children[a]).length)break}n=l}if(!(r instanceof cr))return null;let o=pi(r.text,n);if(o==n)return null;let s=Xs(r.dom,n,o).getClientRects();for(let a=0;aMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==ot.LTR;for(let c=0,d=0;dr)break;if(c>=n){let f=u.dom.getBoundingClientRect();if(t.push(f.height),s){let m=u.dom.lastChild,p=m?$l(m):[];if(p.length){let g=p[p.length-1],_=l?g.right-f.left:f.right-g.left;_>a&&(a=_,this.minWidth=o,this.minWidthFrom=c,this.minWidthTo=h)}}}c=h+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?ot.RTL:ot.LTR}measureTextSize(){for(let o of this.children)if(o instanceof ti){let s=o.measureTextSize();if(s)return s}let t,n,r,e=document.createElement("div");return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=$l(e.firstChild)[0];t=e.getBoundingClientRect().height,n=o?o.width/27:7,r=o?o.height:t,e.remove()}),{lineHeight:t,charWidth:n,textHeight:r}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new hP(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let o=r==t.viewports.length?null:t.viewports[r],s=o?o.from-1:this.length;if(s>n){let a=(t.lineBlockAt(s).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(q.replace({widget:new KP(a),block:!0,inclusive:!0,isBlockGap:!0}).range(n,s))}if(!o)break;n=o.to+1}return q.set(e)}updateDeco(){let e=0,t=this.view.state.facet(fu).map(o=>(this.dynamicDecorationMap[e++]="function"==typeof o)?o(this.view):o),n=!1,r=this.view.state.facet(UP).map((o,s)=>{let a="function"==typeof o;return a&&(n=!0),a?o(this.view):o});for(r.length&&(this.dynamicDecorationMap[e++]=n,t.push(Ct.join(r))),this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];et.anchor?-1:1);if(!n)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let o=qP(this.view),s={left:n.left-o.left,top:n.top-o.top,right:n.right+o.right,bottom:n.bottom+o.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;!function TJ(i,e,t,n,r,o,s,a){let l=i.ownerDocument,c=l.defaultView||window;for(let d=i,u=!1;d&&!u;)if(1==d.nodeType){let h,f=d==l.body,m=1,p=1;if(f)h=MJ(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(d).position)&&(u=!0),d.scrollHeight<=d.clientHeight&&d.scrollWidth<=d.clientWidth){d=d.assignedSlot||d.parentNode;continue}let v=d.getBoundingClientRect();({scaleX:m,scaleY:p}=rP(d,v)),h={left:v.left,right:v.left+d.clientWidth*m,top:v.top,bottom:v.top+d.clientHeight*p}}let g=0,_=0;if("nearest"==r)e.top0&&e.bottom>h.bottom+_&&(_=e.bottom-h.bottom+_+s)):e.bottom>h.bottom&&(_=e.bottom-h.bottom+s,t<0&&e.top-_0&&e.right>h.right+g&&(g=e.right-h.right+g+o)):e.right>h.right&&(g=e.right-h.right+o,t<0&&e.lefti?e.left-i:Math.max(0,i-e.right)}function iee(i,e){return e.top>i?e.top-i:Math.max(0,i-e.bottom)}function Uw(i,e){return i.tope.top+1}function ZP(i,e){return ei.bottom?{top:i.top,left:i.left,right:i.right,bottom:e}:i}function $w(i,e,t){let n,r,o,s,l,c,d,u,a=!1;for(let m=i.firstChild;m;m=m.nextSibling){let p=$l(m);for(let g=0;gy||s==y&&o>v){n=m,r=_,o=v,s=y;let w=y?t<_.top?-1:1:v?e<_.left?-1:1:0;a=!w||(w>0?g0)}0==v?t>_.bottom&&(!d||d.bottom<_.bottom)?(l=m,d=_):t<_.top&&(!u||u.top>_.top)&&(c=m,u=_):d&&Uw(d,_)?d=QP(d,_.bottom):u&&Uw(u,_)&&(u=ZP(u,_.top))}}if(d&&d.bottom>=t?(n=l,r=d):u&&u.top<=t&&(n=c,r=u),!n)return{node:i,offset:0};let h=Math.max(r.left,Math.min(r.right,e));return 3==n.nodeType?JP(n,h,t):a&&"false"!=n.contentEditable?$w(n,h,t):{node:i,offset:Array.prototype.indexOf.call(i.childNodes,n)+(e>=(r.left+r.right)/2?1:0)}}function JP(i,e,t){let n=i.nodeValue.length,r=-1,o=1e9,s=0;for(let a=0;at?d.top-t:t-d.bottom)-1;if(d.left-1<=e&&d.right+1>=e&&u=(d.left+d.right)/2,f=h;if(($.chrome||$.gecko)&&Xs(i,a).getBoundingClientRect().left==d.right&&(f=!h),u<=0)return{node:i,offset:a+(f?1:0)};r=a+(f?1:0),o=u}}}return{node:i,offset:r>-1?r:s>0?i.nodeValue.length:0}}function eF(i,e,t,n=-1){var r,o;let l,s=i.contentDOM.getBoundingClientRect(),a=s.top+i.viewState.paddingTop,{docHeight:c}=i.viewState,{x:d,y:u}=e,h=u-a;if(h<0)return 0;if(h>c)return i.state.doc.length;for(let w=i.viewState.heightOracle.textHeight/2,x=!1;l=i.elementAtHeight(h),l.type!=Gi.Text;)for(;h=n>0?l.bottom+w:l.top-w,!(h>=0&&h<=c);){if(x)return t?null:0;x=!0,n=-n}u=a+h;let f=l.from;if(fi.viewport.to)return i.viewport.to==i.state.doc.length?i.state.doc.length:t?null:tF(i,s,l,d,u);let m=i.dom.ownerDocument,p=i.root.elementFromPoint?i.root:m,g=p.elementFromPoint(d,u);g&&!i.contentDOM.contains(g)&&(g=null),g||(d=Math.max(s.left+1,Math.min(s.right-1,d)),g=p.elementFromPoint(d,u),g&&!i.contentDOM.contains(g)&&(g=null));let _,v=-1;if(g&&0!=(null===(r=i.docView.nearest(g))||void 0===r?void 0:r.isEditable))if(m.caretPositionFromPoint){let w=m.caretPositionFromPoint(d,u);w&&({offsetNode:_,offset:v}=w)}else if(m.caretRangeFromPoint){let w=m.caretRangeFromPoint(d,u);w&&(({startContainer:_,startOffset:v}=w),(!i.contentDOM.contains(_)||$.safari&&function nee(i,e,t){let n;if(3!=i.nodeType||e!=(n=i.nodeValue.length))return!1;for(let r=i.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return Xs(i,n-1,n).getBoundingClientRect().left>t}(_,v,d)||$.chrome&&function ree(i,e,t){if(0!=e)return!1;for(let r=i;;){let o=r.parentNode;if(!o||1!=o.nodeType||o.firstChild!=r)return!1;if(o.classList.contains("cm-line"))break;r=o}return t-(1==i.nodeType?i.getBoundingClientRect():Xs(i,0,Math.max(i.nodeValue.length,1)).getBoundingClientRect()).left>5}(_,v,d))&&(_=void 0))}if(!_||!i.docView.dom.contains(_)){let w=ti.find(i.docView,f);if(!w)return h>l.top+l.height/2?l.to:l.from;({node:_,offset:v}=$w(w.dom,d,u))}let y=i.docView.nearest(_);if(!y)return null;if(y.isWidget&&1==(null===(o=y.dom)||void 0===o?void 0:o.nodeType)){let w=y.dom.getBoundingClientRect();return e.y1.5*i.defaultLineHeight){let a=i.viewState.heightOracle.textHeight;o+=Math.floor((r-t.top-.5*(i.defaultLineHeight-a))/a)*i.viewState.heightOracle.lineLength}let s=i.state.sliceDoc(t.from,t.to);return t.from+xw(s,o,i.state.tabSize)}function Ww(i,e){let t=i.lineBlockAt(e);if(Array.isArray(t.type))for(let n of t.type)if(n.to>e||n.to==e&&(n.to==t.to||n.type==Gi.Text))return n;return t}function iF(i,e,t,n){let r=i.state.doc.lineAt(e.head),o=i.bidiSpans(r),s=i.textDirectionAt(r.from);for(let a=e,l=null;;){let c=OP(r,o,s,a,t),d=IP;if(!c){if(r.number==(t?i.state.doc.lines:1))return a;d="\n",r=i.state.doc.line(r.number+(t?1:-1)),o=i.bidiSpans(r),c=i.visualLineSide(r,!t)}if(l){if(!l(d))return a}else{if(!n)return c;l=n(d)}a=c}}function pp(i,e,t){for(;;){let n=0;for(let r of i)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&er(i)),t.from,e.head>t.from?-1:1);return n==t.from?t:M.cursor(n,nnull),$.gecko&&function Dee(i){yF.has(i)||(yF.add(i),i.addEventListener("copy",()=>{}),i.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){!function gee(i,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n,t=e.target;t!=i.contentDOM;t=t.parentNode)if(!t||11==t.nodeType||(n=rt.get(t))&&n.ignoreEvent(e))return!1;return!0}(this.view,e)||this.ignoreDuringComposition(e)||"keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let n=this.handlers[e];if(n){for(let r of n.observers)r(this.view,t);for(let r of n.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function cee(i){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of i){let r=n.spec;if(r&&r.domEventHandlers)for(let o in r.domEventHandlers){let s=r.domEventHandlers[o];s&&t(o).handlers.push(nF(n.value,s))}if(r&&r.domEventObservers)for(let o in r.domEventObservers){let s=r.domEventObservers[o];s&&t(o).observers.push(nF(n.value,s))}}for(let n in dr)t(n).handlers.push(dr[n]);for(let n in Vn)t(n).observers.push(Vn[n]);return e}(e),n=this.handlers,r=this.view.contentDOM;for(let o in t)if("scroll"!=o){let s=!t[o].handlers.length,a=n[o];a&&s!=!a.handlers.length&&(r.removeEventListener(o,this.handleEvent),a=null),a||r.addEventListener(o,this.handleEvent,{passive:s})}for(let o in n)"scroll"!=o&&!t[o]&&r.removeEventListener(o,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()n.keyCode==e.keyCode))&&!e.ctrlKey||dee.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!(!t||"Enter"==t.key&&e&&e.from0||!!($.safari&&!$.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function nF(i,e){return(t,n)=>{try{return e.call(i,n,t)}catch(r){tn(t.state,r)}}}const rF=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],dee="dthko",oF=[16,17,18,20,91,92,224,225];function _p(i){return.7*Math.max(0,i)+8}class hee{constructor(e,t,n,r){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function AJ(i){let e=i.ownerDocument;for(let t=i.parentNode;t&&t!=e.body;)if(1==t.nodeType){if(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else{if(11!=t.nodeType)break;t=t.host}return null}(e.contentDOM),this.atoms=e.state.facet(jw).map(s=>s(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(gn.allowMultipleSelections)&&function fee(i,e){let t=i.state.facet(RP);return t.length?t[0](e):$.mac?e.metaKey:e.ctrlKey}(e,t),this.dragging=!(!function pee(i,e){let{main:t}=i.state.selection;if(t.empty)return!1;let n=op(i.root);if(!n||0==n.rangeCount)return!0;let r=n.getRangeAt(0).getClientRects();for(let o=0;o=e.clientX&&s.top<=e.clientY&&s.bottom>=e.clientY)return!0}return!1}(e,t)||1!=pF(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&function uee(i,e){return Math.max(Math.abs(i.clientX-e.clientX),Math.abs(i.clientY-e.clientY))}(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,r=0,o=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=qP(this.view);e.clientX-s.left<=o.left+6?n=-_p(o.left-e.clientX):e.clientX+s.right>=o.right-6&&(n=_p(e.clientX-o.right)),e.clientY-s.top<=o.top+6?r=-_p(o.top-e.clientY):e.clientY+s.bottom>=o.bottom-6&&(r=_p(e.clientY-o.bottom)),this.setScrollSpeed(n,r)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;nthis.select(this.lastEvent),20)}}const dr=Object.create(null),Vn=Object.create(null),sF=$.ie&&$.ie_version<15||$.ios&&$.webkit_version<604;function aF(i,e){let n,{state:t}=i,r=1,o=t.toText(e),s=o.lines==t.selection.ranges.length;if(null!=qw&&t.selection.ranges.every(l=>l.empty)&&qw==o.toString()){let l=-1;n=t.changeByRange(c=>{let d=t.doc.lineAt(c.from);if(d.from==l)return{range:c};l=d.from;let u=t.toText((s?o.line(r++).text:e)+t.lineBreak);return{changes:{from:d.from,insert:u},range:M.cursor(c.from+u.length)}})}else n=s?t.changeByRange(l=>{let c=o.line(r++);return{changes:{from:l.from,to:l.to,insert:c.text},range:M.cursor(l.from+c.length)}}):t.replaceSelection(o);i.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function lF(i,e,t,n){if(1==n)return M.cursor(e,t);if(2==n)return function eee(i,e,t=1){let n=i.charCategorizer(e),r=i.doc.lineAt(e),o=e-r.from;if(0==r.length)return M.cursor(e);0==o?t=1:o==r.length&&(t=-1);let s=o,a=o;t<0?s=pi(r.text,o,!1):a=pi(r.text,o);let l=n(r.text.slice(s,a));for(;s>0;){let c=pi(r.text,s,!1);if(n(r.text.slice(c,s))!=l)break;s=c}for(;a{i.inputState.lastScrollTop=i.scrollDOM.scrollTop,i.inputState.lastScrollLeft=i.scrollDOM.scrollLeft},dr.keydown=(i,e)=>(i.inputState.setSelectionOrigin("select"),27==e.keyCode&&(i.inputState.lastEscPress=Date.now()),!1),Vn.touchstart=(i,e)=>{i.inputState.lastTouchTime=Date.now(),i.inputState.setSelectionOrigin("select.pointer")},Vn.touchmove=i=>{i.inputState.setSelectionOrigin("select.pointer")},dr.mousedown=(i,e)=>{if(i.observer.flush(),i.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let n of i.state.facet(PP))if(t=n(i,e),t)break;if(!t&&0==e.button&&(t=function yee(i,e){let t=uF(i,e),n=pF(e),r=i.state.selection;return{update(o){o.docChanged&&(t.pos=o.changes.mapPos(t.pos),r=r.map(o.changes))},get(o,s,a){let c,l=uF(i,o),d=lF(i,l.pos,l.bias,n);if(t.pos!=l.pos&&!s){let u=lF(i,t.pos,t.bias,n),h=Math.min(u.from,d.from),f=Math.max(u.to,d.to);d=h1&&(c=function wee(i,e){for(let t=0;t=e)return M.create(i.ranges.slice(0,t).concat(i.ranges.slice(t+1)),i.mainIndex==t?0:i.mainIndex-(i.mainIndex>t?1:0))}return null}(r,l.pos))?c:a?r.addRange(d):M.create([d])}}}(i,e)),t){let n=!i.hasFocus;i.inputState.startMouseSelection(new hee(i,e,t,n)),n&&i.observer.ignore(()=>oP(i.contentDOM));let r=i.inputState.mouseSelection;if(r)return r.start(e),!1===r.dragging}return!1};let cF=(i,e)=>i>=e.top&&i<=e.bottom,dF=(i,e,t)=>cF(e,t)&&i>=t.left&&i<=t.right;function bee(i,e,t,n){let r=ti.find(i.docView,e);if(!r)return 1;let o=e-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;let s=r.coordsAt(o,-1);if(s&&dF(t,n,s))return-1;let a=r.coordsAt(o,1);return a&&dF(t,n,a)?1:s&&cF(n,s)?-1:1}function uF(i,e){let t=i.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:bee(i,t,e.clientX,e.clientY)}}const vee=$.ie&&$.ie_version<=11;let hF=null,fF=0,mF=0;function pF(i){if(!vee)return i.detail;let e=hF,t=mF;return hF=i,mF=Date.now(),fF=!e||t>Date.now()-400&&Math.abs(e.clientX-i.clientX)<2&&Math.abs(e.clientY-i.clientY)<2?(fF+1)%3:1}function gF(i,e,t,n){if(!t)return;let r=i.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=i.inputState,s=n&&o&&function mee(i,e){let t=i.state.facet(NP);return t.length?t[0](e):$.mac?!e.altKey:!e.ctrlKey}(i,e)?{from:o.from,to:o.to}:null,a={from:r,insert:t},l=i.state.changes(s?[s,a]:a);i.focus(),i.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"}),i.inputState.draggedContent=null}dr.dragstart=(i,e)=>{let{selection:{main:t}}=i.state;if(e.target.draggable){let r=i.docView.nearest(e.target);if(r&&r.isWidget){let o=r.posAtStart,s=o+r.length;(o>=t.to||s<=t.from)&&(t=M.range(o,s))}}let{inputState:n}=i;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",i.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1},dr.dragend=i=>(i.inputState.draggedContent=null,!1),dr.drop=(i,e)=>{if(!e.dataTransfer)return!1;if(i.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let n=Array(t.length),r=0,o=()=>{++r==t.length&&gF(i,e,n.filter(s=>null!=s).join(i.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(n[s]=a.result),o()},a.readAsText(t[s])}return!0}{let n=e.dataTransfer.getData("Text");if(n)return gF(i,e,n,!0),!0}return!1},dr.paste=(i,e)=>{if(i.state.readOnly)return!0;i.observer.flush();let t=sF?null:e.clipboardData;return t?(aF(i,t.getData("text/plain")||t.getData("text/uri-list")),!0):(function _ee(i){let e=i.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{i.focus(),t.remove(),aF(i,t.value)},50)}(i),!1)};let qw=null;dr.copy=dr.cut=(i,e)=>{let{text:t,ranges:n,linewise:r}=function Cee(i){let e=[],t=[],n=!1;for(let r of i.selection.ranges)r.empty||(e.push(i.sliceDoc(r.from,r.to)),t.push(r));if(!e.length){let r=-1;for(let{from:o}of i.selection.ranges){let s=i.doc.lineAt(o);s.number>r&&(e.push(s.text),t.push({from:s.from,to:Math.min(i.doc.length,s.to+1)})),r=s.number}n=!0}return{text:e.join(i.lineBreak),ranges:t,linewise:n}}(i.state);if(!t&&!r)return!1;qw=r?t:null,"cut"==e.type&&!i.state.readOnly&&i.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let o=sF?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",t),!0):(function xee(i,e){let t=i.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),i.focus()},50)}(i,t),!1)};const _F=co.define();function bF(i,e){let t=[];for(let n of i.facet(BP)){let r=n(i,e);r&&t.push(r)}return t?i.update({effects:t,annotations:_F.of(!0)}):null}function vF(i){setTimeout(()=>{let e=i.hasFocus;if(e!=i.inputState.notifiedFocused){let t=bF(i.state,e);t?i.dispatch(t):i.update([])}},10)}Vn.focus=i=>{i.inputState.lastFocusTime=Date.now(),!i.scrollDOM.scrollTop&&(i.inputState.lastScrollTop||i.inputState.lastScrollLeft)&&(i.scrollDOM.scrollTop=i.inputState.lastScrollTop,i.scrollDOM.scrollLeft=i.inputState.lastScrollLeft),vF(i)},Vn.blur=i=>{i.observer.clearSelectionRange(),vF(i)},Vn.compositionstart=Vn.compositionupdate=i=>{null==i.inputState.compositionFirstChange&&(i.inputState.compositionFirstChange=!0),i.inputState.composing<0&&(i.inputState.composing=0)},Vn.compositionend=i=>{i.inputState.composing=-1,i.inputState.compositionEndedAt=Date.now(),i.inputState.compositionPendingKey=!0,i.inputState.compositionPendingChange=i.observer.pendingRecords().length>0,i.inputState.compositionFirstChange=null,$.chrome&&$.android?i.observer.flushSoon():i.inputState.compositionPendingChange?Promise.resolve().then(()=>i.observer.flush()):setTimeout(()=>{i.inputState.composing<0&&i.docView.hasComposition&&i.update([])},50)},Vn.contextmenu=i=>{i.inputState.lastContextMenu=Date.now()},dr.beforeinput=(i,e)=>{var t;let n;if($.chrome&&$.android&&(n=rF.find(r=>r.inputType==e.inputType))&&(i.observer.delayAndroidKey(n.key,n.keyCode),"Backspace"==n.key||"Delete"==n.key)){let r=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||0;setTimeout(()=>{var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&i.hasFocus&&(i.contentDOM.blur(),i.focus())},100)}return $.ios&&"deleteContentForward"==e.inputType&&i.observer.flushSoon(),$.safari&&"insertText"==e.inputType&&i.inputState.composing>=0&&setTimeout(()=>Vn.compositionend(i,e),20),!1};const yF=new Set,wF=["pre-wrap","normal","pre-line","break-spaces"];class xF{constructor(e){this.lineWrapping=e,this.doc=qe.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return wF.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,l=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=o,l){this.heightSamples={};for(let c=0;c0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>bp&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return Mi.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let o=this,s=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:d,toB:u}=r[a],h=o.lineAt(l,ht.ByPosNoHeight,n.setDoc(t),0,0),f=h.to>=c?h:o.lineAt(c,ht.ByPosNoHeight,n,0,0);for(u+=f.to-c,c=f.to;a>0&&h.from<=r[a-1].toA;)l=r[a-1].fromA,d=r[a-1].fromB,a--,l2*o){let a=e[t-1];a.break?e.splice(--t,1,a.left,null,a.right):e.splice(--t,1,a.left,a.right),n+=1+a.break,r-=a.size}else{if(!(o>2*r))break;{let a=e[n];a.break?e.splice(n,1,a.left,null,a.right):e.splice(n,1,a.left,a.right),n+=2+a.break,o-=a.size}}else if(r=o&&s(this.blockAt(0,n,r,o))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class vn extends DF{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new Nr(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof vn||r instanceof bi&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof bi?r=new vn(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):Mi.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class bi extends Mi{constructor(e){super(e,0)}heightMetrics(e,t){let s,n=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,o=r-n+1,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*o);s=l/o,this.length>o+1&&(a=(this.height-l)/(this.length-o-1))}else s=this.height/o;return{firstLine:n,lastLine:r,perLine:s,perChar:a}}blockAt(e,t,n,r){let{firstLine:o,lastLine:s,perLine:a,perChar:l}=this.heightMetrics(t,r);if(t.lineWrapping){let c=r+(e0){let o=n[n.length-1];o instanceof bi?n[n.length-1]=new bi(o.length+r):n.push(null,new bi(r-1))}if(e>0){let o=n[0];o instanceof bi?n[0]=new bi(e+o.length):n.unshift(new bi(e-1),null)}return Mi.of(n)}decomposeLeft(e,t){t.push(new bi(e-1),null)}decomposeRight(e,t){t.push(null,new bi(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let o=t+this.length;if(r&&r.from<=t+this.length&&r.more){let s=[],a=Math.max(t,r.from),l=-1;for(r.from>t&&s.push(new bi(r.from-t-1).updateHeight(e,t));a<=o&&r.more;){let d=e.doc.lineAt(a).length;s.length&&s.push(null);let u=r.heights[r.index++];-1==l?l=u:Math.abs(u-l)>=bp&&(l=-2);let h=new vn(d,u);h.outdated=!1,s.push(h),a+=d+1}a<=o&&s.push(null,new bi(o-a).updateHeight(e,a));let c=Mi.of(s);return(l<0||Math.abs(c.height-this.height)>=bp||Math.abs(l-this.heightMetrics(e,t).perLine)>=bp)&&(e.heightChanged=!0),c}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class kee extends Mi{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let o=n+this.left.height;return ea))return c;let d=t==ht.ByPosNoHeight?ht.ByPosNoHeight:ht.ByPos;return l?c.join(this.right.lineAt(a,d,n,s,a)):this.left.lineAt(a,d,n,r,o).join(c)}forEachLine(e,t,n,r,o,s){let a=r+this.left.height,l=o+this.left.length+this.break;if(this.break)e=l&&this.right.forEachLine(e,t,n,a,l,s);else{let c=this.lineAt(l,ht.ByPos,n,r,o);e=e&&c.from<=t&&s(c),t>c.to&&this.right.forEachLine(c.to+1,t,n,a,l,s)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let o=[];e>0&&this.decomposeLeft(e,o);let s=o.length;for(let a of n)o.push(a);if(e>0&&kF(o,s-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?Mi.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:o,right:s}=this,a=t+o.length+this.break,l=null;return r&&r.from<=t+o.length&&r.more?l=o=o.updateHeight(e,t,n,r):o.updateHeight(e,t,n),r&&r.from<=a+s.length&&r.more?l=s=s.updateHeight(e,a,n,r):s.updateHeight(e,a,n),l?this.balanced(o,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function kF(i,e){let t,n;null==i[e]&&(t=i[e-1])instanceof bi&&(n=i[e+1])instanceof bi&&i.splice(e-1,3,new bi(t.length+1+n.length))}class Yw{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof vn?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new vn(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,o,s)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new vn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new bi(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof vn)return e;let t=new vn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof vn||this.isCovered?(this.writtenTod.clientHeight||d.scrollWidth>d.clientWidth)&&"visible"!=u.overflow){let h=d.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==i.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==u.position||"fixed"==u.position?d.offsetParent:d.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-t.left,right:Math.max(o,s)-t.left,top:a-(t.top+e),bottom:Math.max(a,l)-(t.top+e)}}function Aee(i,e){let t=i.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Kw{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof n&&"cm-lineWrapping"==n.class);this.heightOracle=new xF(t),this.stateDeco=e.facet(fu).filter(n=>"function"!=typeof n),this.heightMap=Mi.empty().applyChanges(this.stateDeco,qe.empty,this.heightOracle.setDoc(e.doc),[new bn(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=q.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:o,to:s})=>r>=o&&r<=s)){let{from:o,to:s}=this.lineBlockAt(r);e.push(new vp(o,s))}}this.viewports=e.sort((n,r)=>n.from-r.from),this.scaler=this.heightMap.height<=7e6?SF:new Nee(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(1==this.scaler.scale?e:pu(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(fu).filter(d=>"function"!=typeof d);let o=bn.extendWithRanges(e.changedRanges,function See(i,e,t){let n=new Mee;return Ct.compare(i,e,t,n,0),n.changes}(n,this.stateDeco,e?e.changes:ei.empty(this.state.doc.length))),s=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let c=!e.changes.empty||2&e.flags||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(HP)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?ot.RTL:ot.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),a=t.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,d=0;if(a.width&&a.height){let{scaleX:w,scaleY:x}=rP(t,a);(w>.005&&Math.abs(this.scaleX-w)>.005||x>.005&&Math.abs(this.scaleY-x)>.005)&&(this.scaleX=w,this.scaleY=x,c|=8,s=l=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,h=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=h)&&(this.paddingTop=u,this.paddingBottom=h,c|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=8);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=lP(e.scrollDOM);let m=(this.printing?Aee:Tee)(t,this.paddingTop),p=m.top-this.pixelViewport.top,g=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let _=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(_!=this.inView&&(this.inView=_,_&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=a.width;if((this.contentDOMWidth!=v||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,c|=8),l){let w=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(w)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){let{lineHeight:x,charWidth:A,textHeight:I}=e.docView.measureTextSize();s=x>0&&r.refresh(o,x,A,I,v/A,w),s&&(e.docView.minWidth=0,c|=8)}p>0&&g>0?d=Math.max(p,g):p<0&&g<0&&(d=Math.min(p,g)),r.heightChanged=!1;for(let x of this.viewports){let A=x.from==this.viewport.from?w:e.docView.measureVisibleLineHeights(x);this.heightMap=(s?Mi.empty().applyChanges(this.stateDeco,qe.empty,this.heightOracle,[new bn(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new CF(x.from,A))}r.heightChanged&&(c|=2)}let y=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return y&&(this.viewport=this.getViewport(d,this.scrollTarget)),this.updateForViewport(),(2&c||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,o=this.heightOracle,{visibleTop:s,visibleBottom:a}=this,l=new vp(r.lineAt(s-1e3*n,ht.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-n),ht.ByHeight,o,0,0).to);if(t){let{head:c}=t.range;if(cl.to){let h,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),u=r.lineAt(c,ht.ByPos,o,0,0);h="center"==t.y?(u.top+u.bottom)/2-d/2:"start"==t.y||"nearest"==t.y&&c=a+Math.max(10,Math.min(n,250)))&&r>s-2e3&&o>1,s=r<<1;if(this.defaultTextDirection!=ot.LTR&&!n)return[];let a=[],l=(c,d,u,h)=>{if(d-cc&&gg.from>=u.from&&g.to<=u.to&&Math.abs(g.from-c)g.from<_&&g.to>_));if(!p){if(dg.from<=d&&g.to>=d)){let g=t.moveToLineBoundary(M.cursor(d),!1,!0).head;g>c&&(d=g)}p=new Kw(c,d,this.gapSize(u,c,d,h))}a.push(p)};for(let c of this.viewportLines){if(c.lengthc.from&&l(c.from,h,c,d),ft.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Ct.spans(e,this.viewport.from,this.viewport.to,{span(r,o){t.push({from:r,to:o})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some((r,o)=>r.from!=t[o].from||r.to!=t[o].to);return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||pu(this.heightMap.lineAt(e,ht.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return pu(this.heightMap.lineAt(this.scaler.fromDOM(e),ht.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return pu(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class vp{constructor(e,t){this.from=e,this.to=t}}function Oee(i,e,t){let n=[],r=i,o=0;return Ct.spans(t,i,e,{span(){},point(s,a){s>r&&(n.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return e[e.length-1].to;let n=Math.floor(i*t);for(let r=0;;r++){let{from:o,to:s}=e[r],a=s-o;if(n<=a)return o+n;n-=a}}function wp(i,e){let t=0;for(let{from:n,to:r}of i.ranges){if(e<=r){t+=e-n;break}t+=r-n}return t/i.total}const SF={toDOM:i=>i,fromDOM:i=>i,scale:1};class Nee{constructor(e,t,n){let r=0,o=0,s=0;this.viewports=n.map(({from:a,to:l})=>{let c=t.lineAt(a,ht.ByPos,e,0,0).top,d=t.lineAt(l,ht.ByPos,e,0,0).bottom;return r+=d-c,{from:a,to:l,top:c,bottom:d,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r);for(let a of this.viewports)a.domTop=s+(a.top-o)*this.scale,s=a.domBottom=a.domTop+(a.bottom-a.top),o=a.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let o=tpu(r,e)):i._content)}const xp=z.define({combine:i=>i.join(" ")}),Xw=z.define({combine:i=>i.indexOf(!0)>-1}),Zw=Lo.newName(),MF=Lo.newName(),TF=Lo.newName(),AF={"&light":"."+MF,"&dark":"."+TF};function Qw(i,e,t){return new Lo(e,{finish:n=>/&/.test(n)?n.replace(/&\w*/,r=>{if("&"==r)return i;if(!t||!t[r])throw new RangeError(`Unsupported selector: ${r}`);return t[r]}):i+" "+n})}const Pee=Qw("."+Zw,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},AF);class Fee{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(gn.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+="\uffff"}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let o=this.text.length;this.readNode(r);let s=r.nextSibling;if(s==t)break;let a=rt.get(r),l=rt.get(s);(a&&l?a.breakAfter:(a?a.breakAfter:ap(r))||ap(s)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>o)&&this.lineBreak(),r=s}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let a,o=-1,s=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(a=r.exec(t))&&(o=a.index,s=a[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=s-1);n=o+s}}readNode(e){if(e.cmIgnore)return;let t=rt.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let r=n.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Lee(e,n.node,n.offset)?t:0))}}function Lee(i,e,t){for(;;){if(!e||t-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let a=o||s?[]:function zee(i){let e=[];if(i.root.activeElement!=i.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:r,focusOffset:o}=i.observer.selectionRange;return t&&(e.push(new IF(t,n)),(r!=t||o!=n)&&e.push(new IF(r,o))),e}(e),l=new Fee(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=function jee(i,e){if(0==i.length)return null;let t=i[0].pos,n=2==i.length?i[1].pos:t;return t>-1&&n>-1?M.single(t+e,n+e):null}(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!Ew(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),c=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!Ew(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),d=e.viewport;if(($.ios||$.chrome)&&e.state.selection.main.empty&&l!=c&&(d.from>0||d.toDate.now()-100?i.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:a}=e.bounds,l=r.from,c=null;(8===o||$.android&&e.text.length0&&a>0&&i.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;return"end"==n&&(t-=s+Math.max(0,o-Math.min(s,a))-o),s=s?o-t:0,a=o+(a-s),s=o):a=a?o-t:0,s=o+(s-a),a=o),{from:o,toA:s,toB:a}}(i.state.doc.sliceString(s,a,"\uffff"),e.text,l-s,c);d&&($.chrome&&13==o&&d.toB==d.from+2&&"\uffff\uffff"==e.text.slice(d.from,d.toB)&&d.toB--,t={from:s+d.from,to:s+d.toA,insert:qe.of(e.text.slice(d.from,d.toB).split("\uffff"))})}else n&&(!i.hasFocus&&i.state.facet(hp)||n.main.eq(r))&&(n=null);if(!t&&!n)return!1;if(!t&&e.typeOver&&!r.empty&&n&&n.main.empty?t={from:r.from,to:r.to,insert:i.state.doc.slice(r.from,r.to)}:t&&t.from>=r.from&&t.to<=r.to&&(t.from!=r.from||t.to!=r.to)&&r.to-r.from-(t.to-t.from)<=4?t={from:r.from,to:r.to,insert:i.state.doc.slice(r.from,t.from).append(t.insert).append(i.state.doc.slice(t.to,r.to))}:($.mac||$.android)&&t&&t.from==t.to&&t.from==r.head-1&&/^\. ?$/.test(t.insert.toString())&&"off"==i.contentDOM.getAttribute("autocorrect")?(n&&2==t.insert.length&&(n=M.single(n.main.anchor-1,n.main.head-1)),t={from:r.from,to:r.to,insert:qe.of([" "])}):$.chrome&&t&&t.from==t.to&&t.from==r.head&&"\n "==t.insert.toString()&&i.lineWrapping&&(n&&(n=M.single(n.main.anchor-1,n.main.head-1)),t={from:r.from,to:r.to,insert:qe.of([" "])}),t){if($.ios&&i.inputState.flushIOSKey(t)||$.android&&(t.to==r.to&&(t.from==r.from||t.from==r.from-1&&" "==i.state.sliceDoc(t.from,r.from))&&1==t.insert.length&&2==t.insert.lines&&Gl(i.contentDOM,"Enter",13)||(t.from==r.from-1&&t.to==r.to&&0==t.insert.length||8==o&&t.insert.lengthr.head)&&Gl(i.contentDOM,"Backspace",8)||t.from==r.from&&t.to==r.to+1&&0==t.insert.length&&Gl(i.contentDOM,"Delete",46)))return!0;let s=t.insert.toString();i.inputState.composing>=0&&i.inputState.composing++;let a,l=()=>a||(a=function Vee(i,e,t){let n,r=i.state,o=r.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&i.inputState.composing<0){let a=o.frome.to?r.sliceDoc(e.to,o.to):"";n=r.replaceSelection(i.state.toText(a+e.insert.sliceString(0,void 0,i.state.lineBreak)+l))}else{let a=r.changes(e),l=t&&t.main.to<=a.newLength?t.main:void 0;if(r.selection.ranges.length>1&&i.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let d,c=i.state.sliceDoc(e.from,e.to),u=t&&XP(i,t.main.head);d=u?{from:u.from,to:u.to-(e.insert.length-(e.to-e.from))}:i.state.doc.lineAt(o.head);let h=o.to-e.to,f=o.to-o.from;n=r.changeByRange(m=>{if(m.from==o.from&&m.to==o.to)return{changes:a,range:l||m.map(a)};let p=m.to-h,g=p-c.length;if(m.to-m.from!=f||i.state.sliceDoc(g,p)!=c||m.to>=d.from&&m.from<=d.to)return{range:m};let _=r.changes({from:g,to:p,insert:e.insert}),v=m.to-o.to;return{changes:_,range:l?M.range(Math.max(0,l.anchor+v),Math.max(0,l.head+v)):m.map(_)}})}else n={changes:a,selection:l&&r.selection.replaceRange(l)}}let s="input.type";return(i.composing||i.inputState.compositionPendingChange&&i.inputState.compositionEndedAt>Date.now()-50)&&(i.inputState.compositionPendingChange=!1,s+=".compose",i.inputState.compositionFirstChange&&(s+=".start",i.inputState.compositionFirstChange=!1)),r.update(n,{userEvent:s,scrollIntoView:!0})}(i,t,n));return i.state.facet(LP).some(c=>c(i,t.from,t.to,s,l))||i.dispatch(l()),!0}if(n&&!n.main.eq(r)){let s=!1,a="select";return i.inputState.lastSelectionTime>Date.now()-50&&("select"==i.inputState.lastSelectionOrigin&&(s=!0),a=i.inputState.lastSelectionOrigin),i.dispatch({selection:n,scrollIntoView:s,userEvent:a}),!0}return!1}const Uee={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Jw=$.ie&&$.ie_version<=11;class $ee{constructor(e){this.view=e,this.active=!1,this.selectionRange=new IJ,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);($.ie&&$.ie_version<=11||$.ios&&e.composing)&&t.some(n=>"childList"==n.type&&n.removedNodes.length||"characterData"==n.type&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),Jw&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){"change"==e.type&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(hp)?n.root.activeElement!=this.dom:!sp(n.dom,r))return;let o=r.anchorNode&&n.docView.nearest(r.anchorNode);o&&o.ignoreEvent(e)?t||(this.selectionChanged=!1):($.ie&&$.ie_version<=11||$.android&&$.chrome)&&!n.state.selection.main.empty&&r.focusNode&&lu(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=op(e.root);if(!t)return!1;let n=$.safari&&11==e.root.nodeType&&function SJ(i){let e=i.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function Wee(i,e){if(e.getComposedRanges){let r=e.getComposedRanges(i.root)[0];if(r)return NF(i,r)}let t=null;function n(r){r.preventDefault(),r.stopImmediatePropagation(),t=r.getTargetRanges()[0]}return i.contentDOM.addEventListener("beforeinput",n,!0),i.dom.ownerDocument.execCommand("indent"),i.contentDOM.removeEventListener("beforeinput",n,!0),t?NF(i,t):null}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=sp(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&Gl(this.dom,o.key,o.keyCode))})),(!this.delayedAndroidKey||"Enter"==e)&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let o of e){let s=this.readMutation(o);s&&(s.typeOver&&(r=!0),-1==t?({from:t,to:n}=s):(t=Math.min(s.from,t),n=Math.max(s.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&sp(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new Bee(this.view,e,t,n);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=OF(this.view,t);return this.view.state==n&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=RF(t,e.previousSibling||e.target.previousSibling,-1),r=RF(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function RF(i,e,t){for(;e;){let n=rt.get(e);if(n&&n.parent==i)return n;let r=e.parentNode;e=r!=i.dom?r:t>0?e.nextSibling:e.previousSibling}return null}function NF(i,e){let t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset,s=i.docView.domAtPos(i.state.selection.main.anchor);return lu(s.node,s.offset,r,o)&&([t,n,r,o]=[r,o,t,n]),{anchorNode:t,anchorOffset:n,focusNode:r,focusOffset:o}}let ce=(()=>{class i{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(o=>n(o,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||function OJ(i){for(;i;){if(i&&(9==i.nodeType||11==i.nodeType&&i.host))return i;i=i.assignedSlot||i.parentNode}return null}(t.parent)||document,this.viewState=new EF(t.state||gn.create(t)),t.scrollTo&&t.scrollTo.is(up)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(hu).map(r=>new zw(r));for(let r of this.plugins)r.update(this);this.observer=new $ee(this),this.inputState=new lee(this),this.inputState.ensureHandlers(this.plugins),this.docView=new YP(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=1==t.length&&t[0]instanceof Ir?t:1==t.length&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let o,n=!1,r=!1,s=this.state;for(let f of t){if(f.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=f.state}if(this.destroyed)return void(this.viewState.state=s);let a=this.hasFocus,l=0,c=null;t.some(f=>f.annotation(_F))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,c=bF(s,a),c||(l=1));let d=this.observer.delayedAndroidKey,u=null;if(d?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(gn.phrases)!=this.state.facet(gn.phrases))return this.setState(s);o=mp.create(this,s,t),o.flags|=l;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let f of t){if(h&&(h=h.map(f.changes)),f.scrollIntoView){let{main:m}=f.state.selection;h=new Yl(m.empty?m:M.cursor(m.head,m.head>m.anchor?-1:1))}for(let m of f.effects)m.is(up)&&(h=m.value.clip(this.state))}this.viewState.update(o,h),this.bidiCache=Cp.update(this.bidiCache,o.changes),o.empty||(this.updatePlugins(o),this.inputState.update(o)),n=this.docView.update(o),this.state.facet(mu)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(o.startState.facet(xp)!=o.state.facet(xp)&&(this.viewState.mustMeasureContent=!0),(n||r||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!o.empty)for(let f of this.state.facet(Hw))try{f(o)}catch(m){tn(this.state,m,"update listener")}(c||u)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),u&&!OF(this,u)&&d.force&&Gl(this.contentDOM,d.key,d.keyCode)})}setState(t){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=t);this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new EF(t),this.plugins=t.facet(hu).map(r=>new zw(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new YP(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(hu),r=t.state.facet(hu);if(n!=r){let o=[];for(let s of r){let a=n.indexOf(s);if(a<0)o.push(new zw(s));else{let l=this.plugins[a];l.mustUpdate=t,o.push(l)}}for(let s of this.plugins)s.mustUpdate!=t&&s.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=t;for(let o=0;o-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,o=r.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:a}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(a<0)if(lP(r))s=-1,a=this.viewState.heightMap.height;else{let m=this.viewState.scrollAnchorAt(o);s=m.from,a=m.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let d=[];4&c||([this.measureRequests,d]=[d,this.measureRequests]);let u=d.map(m=>{try{return m.read(this)}catch(p){return tn(this.state,p),PF}}),h=mp.create(this,this.state,[]),f=!1;h.flags|=c,n?n.flags|=c:n=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),f=this.docView.update(h),f&&this.docViewUpdate());for(let m=0;m1||p<-1){o+=p,r.scrollTop=o/this.scaleY,a=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let l of this.state.facet(Hw))l(n)}get themeClasses(){return Zw+" "+(this.state.facet(Xw)?TF:MF)+" "+this.state.facet(xp)}updateAttrs(){let t=FF(this,jP,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(hp)?"true":"false",class:"cm-content",style:`${$.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),FF(this,fp,n);let r=this.observer.ignore(()=>{let o=Nw(this.contentDOM,this.contentAttrs,n),s=Nw(this.dom,this.editorAttrs,t);return o||s});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let o of r.effects)o.is(i.announce)&&(n&&(this.announceDOM.textContent=""),n=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=o.value)}mountStyles(){this.styleModules=this.state.facet(mu);let t=this.state.facet(i.cspNonce);Lo.mount(this.root,this.styleModules.concat(Pee).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(null!=t.key)for(let n=0;nr.spec==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return Gw(this,t,iF(this,t,n,r))}moveByGroup(t,n){return Gw(this,t,iF(this,t,n,r=>function see(i,e,t){let n=i.state.charCategorizer(e),r=n(t);return o=>{let s=n(o);return r==xt.Space&&(r=s),r==s}}(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),o=this.textDirectionAt(t.from),s=r[n?r.length-1:0];return M.cursor(s.side(n,o)+t.from,s.forward(!n,o)?1:-1)}moveToLineBoundary(t,n,r=!0){return function oee(i,e,t,n){let r=Ww(i,e.head),o=n&&r.type==Gi.Text&&(i.lineWrapping||r.widgetLineBreaks)?i.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head):null;if(o){let s=i.dom.getBoundingClientRect(),a=i.textDirectionAt(r.from),l=i.posAtCoords({x:t==(a==ot.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return M.cursor(l,t?-1:1)}return M.cursor(t?r.to:r.from,t?-1:1)}(this,t,n,r)}moveVertically(t,n,r){return Gw(this,t,function aee(i,e,t,n){let r=e.head,o=t?1:-1;if(r==(t?i.state.doc.length:0))return M.cursor(r,e.assoc);let a,s=e.goalColumn,l=i.contentDOM.getBoundingClientRect(),c=i.coordsAtPos(r,e.assoc||-1),d=i.documentTop;if(c)null==s&&(s=c.left-l.left),a=o<0?c.top:c.bottom;else{let f=i.viewState.lineBlockAt(r);null==s&&(s=Math.min(l.right-l.left,i.defaultCharacterWidth*(r-f.from))),a=(o<0?f.top:f.bottom)+d}let u=l.left+s,h=n??i.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let m=a+(h+f)*o,p=eF(i,{x:u,y:m},!1,o);if(ml.bottom||(o<0?pr)){let g=i.docView.coordsForChar(p);return M.cursor(p,!g||m0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(VP)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>Gee)return AP(t.length);let r,n=this.textDirectionAt(t.from);for(let s of this.bidiCache)if(s.from==t.from&&s.dir==n&&(s.fresh||MP(s.isolates,r=WP(this,t))))return s.order;r||(r=WP(this,t));let o=function TP(i,e,t){if(!i)return[new jo(0,0,e==Fw?1:0)];if(e==Zs&&!t.length&&!zJ.test(i))return AP(i.length);if(t.length)for(;i.length>st.length;)st[st.length]=256;let n=[],r=e==Zs?0:1;return Vw(i,r,r,t,0,i.length,n),n}(t.text,n,r);return this.bidiCache.push(new Cp(t.from,t.to,n,r,!0,o)),o}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||$.safari&&(null===(t=this.inputState)||void 0===t?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{oP(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return up.of(new Yl("number"==typeof t?M.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return up.of(new Yl(M.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return St.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return St.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=Lo.newName(),o=[xp.of(r),mu.of(Qw(`.${r}`,t))];return n&&n.dark&&o.push(Xw.of(!0)),o}static baseTheme(t){return lo.lowest(mu.of(Qw("."+Zw,t,AF)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),o=r&&rt.get(r)||rt.get(t);return(null===(n=o?.rootView)||void 0===n?void 0:n.view)||null}}return i.styleModule=mu,i.inputHandler=LP,i.scrollHandler=zP,i.focusChangeEffect=BP,i.perLineTextDirection=VP,i.exceptionSink=FP,i.updateListener=Hw,i.editable=hp,i.mouseSelectionStyle=PP,i.dragMovesSelection=NP,i.clickAddsSelectionRange=RP,i.decorations=fu,i.outerDecorations=UP,i.atomicRanges=jw,i.bidiIsolatedRanges=$P,i.scrollMargins=GP,i.darkTheme=Xw,i.cspNonce=z.define({combine:e=>e.length?e[0]:""}),i.contentAttributes=fp,i.editorAttributes=jP,i.lineWrapping=i.contentAttributes.of({class:"cm-lineWrapping"}),i.announce=Be.define(),i})();const Gee=4096,PF={};class Cp{constructor(e,t,n,r,o,s){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=o,this.order=s}static update(e,t){if(t.empty&&!e.some(o=>o.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:ot.LTR;for(let o=Math.max(0,e.length-10);o=0;r--){let o=n[r],s="function"==typeof o?o(i):o;s&&Ow(s,t)}return t}const qee=$.mac?"mac":$.windows?"win":$.linux?"linux":"key";function Dp(i,e,t){return e.altKey&&(i="Alt-"+i),e.ctrlKey&&(i="Ctrl-"+i),e.metaKey&&(i="Meta-"+i),!1!==t&&e.shiftKey&&(i="Shift-"+i),i}const kp=z.define({enables:lo.default(ce.domEventHandlers({keydown:(i,e)=>VF(BF(e.state),i,e,"editor")}))}),LF=new WeakMap;function BF(i){let e=i.facet(kp),t=LF.get(e);return t||LF.set(e,t=function Qee(i,e=qee){let t=Object.create(null),n=Object.create(null),r=(s,a)=>{let l=n[s];if(null==l)n[s]=a;else if(l!=a)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},o=(s,a,l,c,d)=>{var u,h;let f=t[s]||(t[s]=Object.create(null)),m=a.split(/ (?!$)/).map(_=>function Yee(i,e){const t=i.split(/-(?!$)/);let r,o,s,a,n=t[t.length-1];"Space"==n&&(n=" ");for(let l=0;l{let w=Uo={view:y,prefix:v,scope:s};return setTimeout(()=>{Uo==w&&(Uo=null)},Zee),!0}]})}let p=m.join(" ");r(p,!1);let g=f[p]||(f[p]={preventDefault:!1,stopPropagation:!1,run:(null===(h=null===(u=f._any)||void 0===u?void 0:u.run)||void 0===h?void 0:h.slice())||[]});l&&g.run.push(l),c&&(g.preventDefault=!0),d&&(g.stopPropagation=!0)};for(let s of i){let a=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let c of a){let d=t[c]||(t[c]=Object.create(null));d._any||(d._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let u in d)d[u].run.push(s.any)}let l=s[e]||s.key;if(l)for(let c of a)o(c,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&o(c,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return t}(e.reduce((n,r)=>n.concat(r),[]))),t}let Uo=null;const Zee=4e3;function VF(i,e,t,n){let r=function EJ(i){var t=!(DJ&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||kJ&&i.shiftKey&&i.key&&1==i.key.length||"Unidentified"==i.key)&&i.key||(i.shiftKey?au:Bo)[i.keyCode]||i.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(e),s=Bn(gi(r,0))==r.length&&" "!=r,a="",l=!1,c=!1,d=!1;Uo&&Uo.view==t&&Uo.scope==n&&(a=Uo.prefix+" ",oF.indexOf(e.keyCode)<0&&(c=!0,Uo=null));let m,p,u=new Set,h=g=>{if(g){for(let _ of g.run)if(!u.has(_)&&(u.add(_),_(t,e)))return g.stopPropagation&&(d=!0),!0;g.preventDefault&&(g.stopPropagation&&(d=!0),c=!0)}return!1},f=i[n];return f&&(h(f[a+Dp(r,e,!s)])?l=!0:s&&(e.altKey||e.metaKey||e.ctrlKey)&&!($.windows&&e.ctrlKey&&e.altKey)&&(m=Bo[e.keyCode])&&m!=r?(h(f[a+Dp(m,e,!0)])||e.shiftKey&&(p=au[e.keyCode])!=r&&p!=m&&h(f[a+Dp(p,e,!1)]))&&(l=!0):s&&e.shiftKey&&h(f[a+Dp(r,e,!0)])&&(l=!0),!l&&h(f._any)&&(l=!0)),c&&(l=!0),l&&d&&e.stopPropagation(),l}class _u{constructor(e,t,n,r,o){this.className=e,this.left=t,this.top=n,this.width=r,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let o=HF(e);return[new _u(t,r.left-o.left,r.top-o.top,null,r.bottom-r.top)]}return function Jee(i,e,t){if(t.to<=i.viewport.from||t.from>=i.viewport.to)return[];let n=Math.max(t.from,i.viewport.from),r=Math.min(t.to,i.viewport.to),o=i.textDirection==ot.LTR,s=i.contentDOM,a=s.getBoundingClientRect(),l=HF(i),c=s.querySelector(".cm-line"),d=c&&window.getComputedStyle(c),u=a.left+(d?parseInt(d.paddingLeft)+Math.min(0,parseInt(d.textIndent)):0),h=a.right-(d?parseInt(d.paddingRight):0),f=Ww(i,n),m=Ww(i,r),p=f.type==Gi.Text?f:null,g=m.type==Gi.Text?m:null;if(p&&(i.lineWrapping||f.widgetLineBreaks)&&(p=zF(i,n,p)),g&&(i.lineWrapping||m.widgetLineBreaks)&&(g=zF(i,r,g)),p&&g&&p.from==g.from)return v(y(t.from,t.to,p));{let x=p?y(t.from,null,p):w(f,!1),A=g?y(null,t.to,g):w(m,!0),I=[];return(p||f).to<(g||m).from-(p&&g?1:0)||f.widgetLineBreaks>1&&x.bottom+i.defaultLineHeight/2le&&He.from=V)break;Te>mt&&Ce(Math.max(ue,mt),null==x&&ue<=le,Math.min(Te,V),null==A&&Te>=Ye,G.dir)}if(mt=j.to+1,mt>=V)break}return 0==_e.length&&Ce(le,null==x,Ye,null==A,i.textDirection),{top:W,bottom:de,horizontal:_e}}function w(x,A){let I=a.top+(A?x.top:x.bottom);return{top:I,bottom:I,horizontal:[]}}}(e,t,n)}}function HF(i){let e=i.scrollDOM.getBoundingClientRect();return{left:(i.textDirection==ot.LTR?e.left:e.right-i.scrollDOM.clientWidth*i.scaleX)-i.scrollDOM.scrollLeft*i.scaleX,top:e.top-i.scrollDOM.scrollTop*i.scaleY}}function zF(i,e,t){let n=M.cursor(e);return{from:Math.max(t.from,i.moveToLineBoundary(n,!1,!0).from),to:Math.min(t.to,i.moveToLineBoundary(n,!0,!0).from),type:Gi.Text}}class tte{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Ep)!=e.state.facet(Ep)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(Ep);for(;t!function ete(i,e){return i.constructor==e.constructor&&i.eq(e)}(t,this.drawn[n]))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let r=t.nextSibling;t.remove(),t=r}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Ep=z.define();function jF(i){return[St.define(e=>new tte(e,i)),Ep.of(i)]}const UF=!$.ios,Kl=z.define({combine:i=>lr(i,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function $F(i){return i.startState.facet(Kl)!=i.state.facet(Kl)}const nte=jF({above:!0,markers(i){let{state:e}=i,t=e.facet(Kl),n=[];for(let r of e.selection.ranges){let o=r==e.selection.main;if(r.empty?!o||UF:t.drawRangeCursor){let s=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=r.empty?r:M.cursor(r.head,r.head>r.anchor?-1:1);for(let l of _u.forRange(i,s,a))n.push(l)}}return n},update(i,e){i.transactions.some(n=>n.selection)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let t=$F(i);return t&&WF(i.state,e),i.docChanged||i.selectionSet||t},mount(i,e){WF(e.state,i)},class:"cm-cursorLayer"});function WF(i,e){e.style.animationDuration=i.facet(Kl).cursorBlinkRate+"ms"}const rte=jF({above:!1,markers:i=>i.state.selection.ranges.map(e=>e.empty?[]:_u.forRange(i,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t)),update:(i,e)=>i.docChanged||i.selectionSet||i.viewportChanged||$F(i),class:"cm-selectionLayer"}),ex={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};UF&&(ex[".cm-line"].caretColor="transparent !important",ex[".cm-content"]={caretColor:"transparent !important"});const ote=lo.highest(ce.theme(ex)),GF=Be.define({map:(i,e)=>null==i?null:e.mapPos(i)}),bu=Wt.define({create:()=>null,update:(i,e)=>(null!=i&&(i=e.changes.mapPos(i)),e.effects.reduce((t,n)=>n.is(GF)?n.value:t,i))}),ste=St.fromClass(class{constructor(i){this.view=i,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(i){var e;let t=i.state.field(bu);null==t?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(i.startState.field(bu)!=t||i.docChanged||i.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:i}=this,e=i.state.field(bu),t=null!=e&&i.coordsAtPos(e);if(!t)return null;let n=i.scrollDOM.getBoundingClientRect();return{left:t.left-n.left+i.scrollDOM.scrollLeft*i.scaleX,top:t.top-n.top+i.scrollDOM.scrollTop*i.scaleY,height:t.bottom-t.top}}drawCursor(i){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;i?(this.cursor.style.left=i.left/e+"px",this.cursor.style.top=i.top/t+"px",this.cursor.style.height=i.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(i){this.view.state.field(bu)!=i&&this.view.dispatch({effects:GF.of(i)})}},{eventObservers:{dragover(i){this.setDropPos(this.view.posAtCoords({x:i.clientX,y:i.clientY}))},dragleave(i){(i.target==this.view.contentDOM||!this.view.contentDOM.contains(i.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function qF(i,e,t,n,r){e.lastIndex=0;for(let a,o=i.iterRange(t,n),s=t;!o.next().done;s+=o.value.length)if(!o.lineBreak)for(;a=e.exec(o.value);)r(s+a.index,a)}class tx{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:o,maxLength:s=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(a,l,c,d)=>r(d,c,c+a[0].length,a,l);else if("function"==typeof n)this.addMatch=(a,l,c,d)=>{let u=n(a,l,c);u&&d(c,c+a[0].length,u)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(a,l,c,d)=>d(c,c+a[0].length,n)}this.boundary=o,this.maxLength=s}createDeco(e){let t=new uo,n=t.add.bind(t);for(let{from:r,to:o}of function lte(i,e){let t=i.visibleRanges;if(1==t.length&&t[0].from==i.viewport.from&&t[0].to==i.viewport.to)return t;let n=[];for(let{from:r,to:o}of t)r=Math.max(i.state.doc.lineAt(r).from,r-e),o=Math.min(i.state.doc.lineAt(o).to,o+e),n.length&&n[n.length-1].to>=r?n[n.length-1].to=o:n.push({from:r,to:o});return n}(e,this.maxLength))qF(e.state.doc,this.regexp,r,o,(s,a)=>this.addMatch(a,e,s,n));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((o,s,a,l)=>{l>e.view.viewport.from&&a1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let o of e.visibleRanges){let s=Math.max(o.from,n),a=Math.min(o.to,r);if(a>s){let l=e.state.doc.lineAt(s),c=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){d=s;break}for(;ah.push(_.range(p,g));if(l==c)for(this.regexp.lastIndex=d-l.from;(f=this.regexp.exec(l.text))&&f.indexthis.addMatch(g,e,p,m));t=t.update({filterFrom:d,filterTo:u,filter:(p,g)=>pu,add:h})}}return t}}const ix=null!=/x/.unicode?"gu":"g",cte=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",ix),dte={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let nx=null;const Sp=z.define({combine(i){let e=lr(i,{render:null,specialChars:cte,addSpecialChars:null});return(e.replaceTabs=!function ute(){var i;if(null==nx&&typeof document<"u"&&document.body){let e=document.body.style;nx=null!=(null!==(i=e.tabSize)&&void 0!==i?i:e.MozTabSize)}return nx||!1}())&&(e.specialChars=new RegExp("\t|"+e.specialChars.source,ix)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,ix)),e}});let YF=null;class gte extends Or{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function pte(i){return i>=32?"\u2022":10==i?"\u2424":String.fromCharCode(9216+i)}(this.code),n=e.state.phrase("Control character")+" "+(dte[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let o=document.createElement("span");return o.textContent=t,o.title=n,o.setAttribute("aria-label",n),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class _te extends Or{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const vte=q.line({class:"cm-activeLine"}),yte=St.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.docChanged||i.selectionSet)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let e=-1,t=[];for(let n of i.state.selection.ranges){let r=i.lineBlockAt(n.head);r.from>e&&(t.push(vte.range(r.from)),e=r.from)}return q.set(t)}},{decorations:i=>i.decorations}),rx=2e3;function XF(i,e){let t=i.posAtCoords({x:e.clientX,y:e.clientY},!1),n=i.state.doc.lineAt(t),r=t-n.from,o=r>rx?-1:r==n.length?function Cte(i,e){let t=i.coordsAtPos(i.viewport.from);return t?Math.round(Math.abs((t.left-e)/i.defaultCharacterWidth)):-1}(i,e.clientX):Ul(n.text,i.state.tabSize,t-n.from);return{line:n.number,col:o,off:r}}const Ete={Alt:[18,i=>!!i.altKey],Control:[17,i=>!!i.ctrlKey],Shift:[16,i=>!!i.shiftKey],Meta:[91,i=>!!i.metaKey]},Ste={style:"cursor: crosshair"},vu="-10000px";class ZF{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter(s=>s);let o=null;this.tooltipViews=this.tooltips.map(s=>o=n(s,o))}update(e,t){var n;let r=e.state.facet(this.facet),o=r.filter(l=>l);if(r===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let s=[],a=t?[]:null;for(let l=0;lt[c]=l),t.length=a.length),this.input=r,this.tooltips=o,this.tooltipViews=s,!0}}function Tte(i){let{win:e}=i;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Mp=z.define({combine:i=>{var e,t,n;return{position:$.ios?"absolute":(null===(e=i.find(r=>r.position))||void 0===e?void 0:e.position)||"fixed",parent:(null===(t=i.find(r=>r.parent))||void 0===t?void 0:t.parent)||null,tooltipSpace:(null===(n=i.find(r=>r.tooltipSpace))||void 0===n?void 0:n.tooltipSpace)||Tte}}}),QF=new WeakMap,Tp=St.fromClass(class{constructor(i){this.view=i,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=i.state.facet(Mp);this.position=e.position,this.parent=e.parent,this.classes=i.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new ZF(i,Ap,(t,n)=>this.createTooltip(t,n),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),i.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let i of this.manager.tooltipViews)this.intersectionObserver.observe(i.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(i){i.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(i,this.above);e&&this.observeIntersection();let t=e||i.geometryChanged,n=i.state.facet(Mp);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;t=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(i,e){let t=i.create(this.view),n=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),i.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",t.dom.appendChild(r)}return t.dom.style.position=this.position,t.dom.style.top=vu,t.dom.style.left="0px",this.container.insertBefore(t.dom,n),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var i,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),null===(i=n.destroy)||void 0===i||i.call(n);this.parent&&this.container.remove(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let i=this.view.dom.getBoundingClientRect(),e=1,t=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if($.gecko)n=r.offsetParent!=this.container.ownerDocument.body;else if(r.style.top==vu&&"0px"==r.style.left){let o=r.getBoundingClientRect();n=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(n||"absolute"==this.position)if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,t=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:i,parent:this.parent?this.container.getBoundingClientRect():i,pos:this.manager.tooltips.map((r,o)=>{let s=this.manager.tooltipViews[o];return s.getCoords?s.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(Mp).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(i){var e;if(i.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:t,space:n,scaleX:r,scaleY:o}=i,s=[];for(let a=0;a=Math.min(t.bottom,n.bottom)||u.rightMath.min(t.right,n.right)+.1){d.style.top=vu;continue}let f=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,m=f?7:0,p=h.right-h.left,g=null!==(e=QF.get(c))&&void 0!==e?e:h.bottom-h.top,_=c.offset||Ite,v=this.view.textDirection==ot.LTR,y=h.width>n.right-n.left?v?n.left:n.right-h.width:v?Math.min(u.left-(f?14:0)+_.x,n.right-p):Math.max(n.left,u.left-p+(f?14:0)-_.x),w=this.above[a];!l.strictSide&&(w?u.top-(h.bottom-h.top)-_.yn.bottom)&&w==n.bottom-u.bottom>u.top-n.top&&(w=this.above[a]=!w);let x=(w?u.top-n.top:n.bottom-u.bottom)-m;if(xy&&W.topA&&(A=w?W.top-g-2-m:W.bottom+m+2);"absolute"==this.position?(d.style.top=(A-i.parent.top)/o+"px",d.style.left=(y-i.parent.left)/r+"px"):(d.style.top=A/o+"px",d.style.left=y/r+"px"),f&&(f.style.left=(u.left+(v?_.x:-_.x)-(y+14-7))/r+"px"),!0!==c.overlap&&s.push({left:y,top:A,right:I,bottom:A+g}),d.classList.toggle("cm-tooltip-above",w),d.classList.toggle("cm-tooltip-below",!w),c.positioned&&c.positioned(i.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let i of this.manager.tooltipViews)i.dom.style.top=vu}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Ite={x:0,y:0},Ap=z.define({enables:[Tp,ce.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}})]}),yu=z.define({combine:i=>i.reduce((e,t)=>e.concat(t),[])});class Ip{static create(e){return new Ip(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ZF(e,yu,(t,n)=>this.createHostedView(t,n),t=>t.dom.remove())}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Ote=Ap.compute([yu],i=>{let e=i.facet(yu);return 0===e.length?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var n;return null!==(n=t.end)&&void 0!==n?n:t.pos})),create:Ip.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class Rte{constructor(e,t,n,r,o){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;ea.bottom||t.xa.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(r)).find(d=>d.from<=r&&d.to>=r),c=l&&l.dir==ot.RTL?-1:1;o=t.x{this.pending==a&&(this.pending=null,l&&(!Array.isArray(l)||l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>tn(e.state,l,"hover tooltip"))}else s&&(!Array.isArray(s)||s.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(s)?s:[s])})}get tooltip(){let e=this.view.plugin(Tp),t=e?e.manager.tooltips.findIndex(n=>n.create==Ip.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:o}=this;if(r.length&&o&&!function Nte(i,e){let t=i.getBoundingClientRect();return e.clientX>=t.left-Op&&e.clientX<=t.right+Op&&e.clientY>=t.top-Op&&e.clientY<=t.bottom+Op}(o.dom,e)||this.pending){let{pos:s}=r[0]||this.pending,a=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:s;(s==a?this.view.posAtCoords(this.lastMove)!=s:!function Pte(i,e,t,n,r,o){let s=i.scrollDOM.getBoundingClientRect();if(s.left>n||s.rightr||Math.min(s.bottom,i.documentTop+i.documentPadding.top+i.contentHeight)=e&&l<=t}(this.view,s,a,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:n}=this;n&&n.dom.contains(e.relatedTarget)?this.watchTooltipLeave(n.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Op=4;function Fte(i,e={}){let t=Be.define(),n=Wt.define({create:()=>[],update(r,o){if(r.length&&(e.hideOnChange&&(o.docChanged||o.selection)?r=[]:e.hideOn&&(r=r.filter(s=>!e.hideOn(o,s))),o.docChanged)){let s=[];for(let a of r){let l=o.changes.mapPos(a.pos,-1,Wi.TrackDel);if(null!=l){let c=Object.assign(Object.create(null),a);c.pos=l,null!=c.end&&(c.end=o.changes.mapPos(c.end)),s.push(c)}}r=s}for(let s of o.effects)s.is(t)&&(r=s.value),s.is(Lte)&&(r=[]);return r},provide:r=>yu.from(r)});return[n,St.define(r=>new Rte(r,i,n,t,e.hoverTime||300)),Ote]}function JF(i,e){let t=i.plugin(Tp);if(!t)return null;let n=t.manager.tooltips.indexOf(e);return n<0?null:t.manager.tooltipViews[n]}const Lte=Be.define(),ox=z.define({combine(i){let e,t;for(let n of i)e=e||n.topContainer,t=t||n.bottomContainer;return{topContainer:e,bottomContainer:t}}});function wu(i,e){let t=i.plugin(eL),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const eL=St.fromClass(class{constructor(i){this.input=i.state.facet(xu),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(i));let e=i.state.facet(ox);this.top=new Rp(i,!0,e.topContainer),this.bottom=new Rp(i,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(i){let e=i.state.facet(ox);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Rp(i.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Rp(i.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=i.state.facet(xu);if(t!=this.input){let n=t.filter(l=>l),r=[],o=[],s=[],a=[];for(let l of n){let d,c=this.specs.indexOf(l);c<0?(d=l(i.view),a.push(d)):(d=this.panels[c],d.update&&d.update(i)),r.push(d),(d.top?o:s).push(d)}this.specs=n,this.panels=r,this.top.sync(o),this.bottom.sync(s);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let n of this.panels)n.update&&n.update(i)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:i=>ce.scrollMargins.of(e=>{let t=e.plugin(i);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class Rp{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=tL(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=tL(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function tL(i){let e=i.nextSibling;return i.remove(),e}const xu=z.define({enables:eL});class Pr extends Ys{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Pr.prototype.elementClass="",Pr.prototype.toDOM=void 0,Pr.prototype.mapMode=Wi.TrackBefore,Pr.prototype.startSide=Pr.prototype.endSide=-1,Pr.prototype.point=!0;const Np=z.define(),Bte={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ct.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Cu=z.define();function iL(i){return[nL(),Cu.of(Object.assign(Object.assign({},Bte),i))]}const sx=z.define({combine:i=>i.some(e=>e)});function nL(i){let e=[Vte];return i&&!1===i.fixed&&e.push(sx.of(!0)),e}const Vte=St.fromClass(class{constructor(i){this.view=i,this.prevViewport=i.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=i.state.facet(Cu).map(e=>new oL(i,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!i.state.facet(sx),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),i.scrollDOM.insertBefore(this.dom,i.contentDOM)}update(i){if(this.updateGutters(i)){let e=this.prevViewport,t=i.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<.8*(t.to-t.from))}i.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(sx)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=i.view.viewport}syncGutters(i){let e=this.dom.nextSibling;i&&this.dom.remove();let t=Ct.iter(this.view.state.facet(Np),this.view.viewport.from),n=[],r=this.gutters.map(o=>new Hte(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(o.type)){let s=!0;for(let a of o.type)if(a.type==Gi.Text&&s){ax(t,n,a.from);for(let l of r)l.line(this.view,a,n);s=!1}else if(a.widget)for(let l of r)l.widget(this.view,a)}else if(o.type==Gi.Text){ax(t,n,o.from);for(let s of r)s.line(this.view,o,n)}else if(o.widget)for(let s of r)s.widget(this.view,o);for(let o of r)o.finish();i&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(i){let e=i.startState.facet(Cu),t=i.state.facet(Cu),n=i.docChanged||i.heightChanged||i.viewportChanged||!Ct.eq(i.startState.facet(Np),i.state.facet(Np),i.view.viewport.from,i.view.viewport.to);if(e==t)for(let r of this.gutters)r.update(i)&&(n=!0);else{n=!0;let r=[];for(let o of t){let s=e.indexOf(o);s<0?r.push(new oL(this.view,o)):(this.gutters[s].update(i),r.push(this.gutters[s]))}for(let o of this.gutters)o.dom.remove(),r.indexOf(o)<0&&o.destroy();for(let o of r)this.dom.appendChild(o.dom);this.gutters=r}return n}destroy(){for(let i of this.gutters)i.destroy();this.dom.remove()}},{provide:i=>ce.scrollMargins.of(e=>{let t=e.plugin(i);return t&&0!=t.gutters.length&&t.fixed?e.textDirection==ot.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}:null})});function rL(i){return Array.isArray(i)?i:[i]}function ax(i,e,t){for(;i.value&&i.from<=t;)i.from==t&&e.push(i.value),i.next()}class Hte{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=Ct.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,o=(t.top-this.height)/e.scaleY,s=t.height/e.scaleY;if(this.i==r.elements.length){let a=new sL(e,s,o,n);r.elements.push(a),r.dom.appendChild(a.dom)}else r.elements[this.i].update(e,s,o,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];ax(this.cursor,r,t.from),n.length&&(r=r.concat(n));let o=this.gutter.config.lineMarker(e,t,r);o&&r.unshift(o),0==r.length&&!this.gutter.config.renderEmptyElements||this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class oL{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,r=>{let s,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=r.clientY;let a=e.lineBlockAtHeight(s-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()});this.markers=rL(t.markers(e)),t.initialSpacer&&(this.spacer=new sL(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=rL(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let n=e.view.viewport;return!Ct.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class sL{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function zte(i,e){if(i.length!=e.length)return!1;for(let t=0;tlr(i,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let r in t){let o=n[r],s=t[r];n[r]=o?(a,l,c)=>o(a,l,c)||s(a,l,c):s}return n}})});class lx extends Pr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function cx(i,e){return i.state.facet(Xl).formatNumber(e,i.state)}const Ute=Cu.compute([Xl],i=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(jte),lineMarker:(e,t,n)=>n.some(r=>r.toDOM)?null:new lx(cx(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Xl)!=e.state.facet(Xl),initialSpacer:e=>new lx(cx(e,aL(e.state.doc.lines))),updateSpacer(e,t){let n=cx(t.view,aL(t.view.state.doc.lines));return n==e.number?e:new lx(n)},domEventHandlers:i.facet(Xl).domEventHandlers}));function aL(i){let e=9;for(;e{let e=[],t=-1;for(let n of i.selection.ranges){let r=i.doc.lineAt(n.head).from;r>t&&(t=r,e.push(Wte.range(r)))}return Ct.of(e)}),dL=1024;let Zte=0;class Hn{constructor(e,t){this.from=e,this.to=t}}class ve{constructor(e={}){this.id=Zte++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=Ti.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}ve.closedBy=new ve({deserialize:i=>i.split(" ")}),ve.openedBy=new ve({deserialize:i=>i.split(" ")}),ve.group=new ve({deserialize:i=>i.split(" ")}),ve.isolate=new ve({deserialize:i=>{if(i&&"rtl"!=i&&"ltr"!=i&&"auto"!=i)throw new RangeError("Invalid value for isolate: "+i);return i||"auto"}}),ve.contextHash=new ve({perNode:!0}),ve.lookAhead=new ve({perNode:!0}),ve.mounted=new ve({perNode:!0});class Du{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[ve.mounted.id]}}const Qte=Object.create(null);class Ti{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):Qte,r=new Ti(e.name||"",t,e.id,(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0));if(e.props)for(let o of e.props)if(Array.isArray(o)||(o=o(r)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[o[0].id]=o[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(ve.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return n=>{for(let r=n.prop(ve.group),o=-1;o<(r?r.length:0);o++){let s=t[o<0?n.name:r[o]];if(s)return s}}}}Ti.none=new Ti("",Object.create(null),0,8);class Pp{constructor(e){this.types=e;for(let t=0;t=e){let a=new Ai(s.tree,s.overlay[0].from+o.from,-1,o);(r||(r=[n])).push(ku(a,e,t,!1))}}return r?pL(r):n}(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:o=this.length}=e,s=e.mode||0,a=(s&Mt.IncludeAnonymous)>0;for(let l=this.cursor(s|Mt.IncludeAnonymous);;){let c=!1;if(l.from<=o&&l.to>=r&&(!a&&l.type.isAnonymous||!1!==t(l))){if(l.firstChild())continue;c=!0}for(;c&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:fx(Ti.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,r)=>new Ke(this.type,t,n,r,this.propValues),e.makeTree||((t,n,r)=>new Ke(Ti.none,t,n,r)))}static build(e){return function iie(i){var e;let{buffer:t,nodeSet:n,maxBufferLength:r=dL,reused:o=[],minRepeatType:s=n.types.length}=i,a=Array.isArray(t)?new dx(t,t.length):t,l=n.types,c=0,d=0;function u(x,A,I,W,de,_e){let{id:Ce,start:le,end:Ye,size:He}=a,mt=d;for(;He<0;){if(a.next(),-1==He)return I.push(o[Ce]),void W.push(le-x);if(-3==He)return void(c=Ce);if(-4==He)return void(d=Ce);throw new RangeError(`Unrecognized record size: ${He}`)}let j,G,V=l[Ce],ue=le-x;if(Ye-le<=r&&(G=function g(x,A){let I=a.fork(),W=0,de=0,_e=0,Ce=I.end-r,le={size:0,start:0,skip:0};e:for(let Ye=I.pos-x;I.pos>Ye;){let He=I.size;if(I.id==A&&He>=0){le.size=W,le.start=de,le.skip=_e,_e+=4,W+=4,I.next();continue}let mt=I.pos-He;if(He<0||mt=s?4:0,j=I.start;for(I.next();I.pos>mt;){if(I.size<0){if(-3!=I.size)break e;V+=4}else I.id>=s&&(V+=4);I.next()}de=j,W+=He,_e+=V}return(A<0||W==x)&&(le.size=W,le.start=de,le.skip=_e),le.size>4?le:void 0}(a.pos-A,de))){let Te=new Uint16Array(G.size-G.skip),Tt=a.pos-G.size,Dt=Te.length;for(;a.pos>Tt;)Dt=_(G.start,Te,Dt);j=new $o(Te,Ye-G.start,n),ue=G.start-x}else{let Te=a.pos-He;a.next();let Tt=[],Dt=[],Ni=Ce>=s?Ce:-1,Xe=0,ba=Ye;for(;a.pos>Te;)Ni>=0&&a.id==Ni&&a.size>=0?(a.end<=ba-r&&(m(Tt,Dt,le,Xe,a.end,ba,Ni,mt),Xe=Tt.length,ba=a.end),a.next()):_e>2500?h(le,Te,Tt,Dt):u(le,Te,Tt,Dt,Ni,_e+1);if(Ni>=0&&Xe>0&&Xe-1&&Xe>0){let g_=function f(x){return(A,I,W)=>{let Ce,le,de=0,_e=A.length-1;if(_e>=0&&(Ce=A[_e])instanceof Ke){if(!_e&&Ce.type==x&&Ce.length==W)return Ce;(le=Ce.prop(ve.lookAhead))&&(de=I[_e]+Ce.length+le)}return p(x,A,I,W,de)}}(V);j=fx(V,Tt,Dt,0,Tt.length,0,Ye-le,g_,g_)}else j=p(V,Tt,Dt,Ye-le,mt-Ye)}I.push(j),W.push(ue)}function h(x,A,I,W){let de=[],_e=0,Ce=-1;for(;a.pos>A;){let{id:le,start:Ye,end:He,size:mt}=a;if(mt>4)a.next();else{if(Ce>-1&&Ye=0;He-=3)le[mt++]=de[He],le[mt++]=de[He+1]-Ye,le[mt++]=de[He+2]-Ye,le[mt++]=mt;I.push(new $o(le,de[2]-Ye,n)),W.push(Ye-x)}}function m(x,A,I,W,de,_e,Ce,le){let Ye=[],He=[];for(;x.length>W;)Ye.push(x.pop()),He.push(A.pop()+I-de);x.push(p(n.types[Ce],Ye,He,_e-de,le-_e)),A.push(de-I)}function p(x,A,I,W,de=0,_e){if(c){let Ce=[ve.contextHash,c];_e=_e?[Ce].concat(_e):[Ce]}if(de>25){let Ce=[ve.lookAhead,de];_e=_e?[Ce].concat(_e):[Ce]}return new Ke(x,A,I,W,_e)}function _(x,A,I){let{id:W,start:de,end:_e,size:Ce}=a;if(a.next(),Ce>=0&&W4){let Ye=a.pos-(Ce-4);for(;a.pos>Ye;)I=_(x,A,I)}A[--I]=le,A[--I]=_e-x,A[--I]=de-x,A[--I]=W}else-3==Ce?c=W:-4==Ce&&(d=W);return I}let v=[],y=[];for(;a.pos>0;)u(i.start||0,i.bufferStart||0,v,y,-1,0);let w=null!==(e=i.length)&&void 0!==e?e:v.length?y[0]+v[0].length:0;return new Ke(l[i.topID],v.reverse(),y.reverse(),w)}(e)}}Ke.empty=new Ke(Ti.none,[],[],0);class dx{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new dx(this.buffer,this.index)}}class $o{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return Ti.none}toString(){let e=[];for(let t=0;t0));l=s[l+3]);return a}slice(e,t,n){let r=this.buffer,o=new Uint16Array(t-e),s=0;for(let a=e,l=0;a=e&&te;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function ku(i,e,t,n){for(var r;i.from==i.to||(t<1?i.from>=e:i.from>e)||(t>-1?i.to<=e:i.to0?a.length:-1;e!=c;e+=t){let d=a[e],u=l[e]+s.from;if(hL(r,n,u,u+d.length))if(d instanceof $o){if(o&Mt.ExcludeBuffers)continue;let h=d.findChild(0,d.buffer.length,t,n-u,r);if(h>-1)return new Fr(new Jte(s,d,e,u),null,h)}else if(o&Mt.IncludeAnonymous||!d.type.isAnonymous||hx(d)){let h;if(!(o&Mt.IgnoreMounts)&&(h=Du.get(d))&&!h.overlay)return new Ai(h.tree,u,e,s);let f=new Ai(d,u,e,s);return o&Mt.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?d.children.length-1:0,t,n,r)}}if(o&Mt.IncludeAnonymous||!s.type.isAnonymous||(e=s.index>=0?s.index+t:t<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&Mt.IgnoreOverlays)&&(r=Du.get(this._tree))&&r.overlay){let o=e-this.from;for(let{from:s,to:a}of r.overlay)if((t>0?s<=o:s=o:a>o))return new Ai(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function mL(i,e,t,n){let r=i.cursor(),o=[];if(!r.firstChild())return o;if(null!=t)for(let s=!1;!s;)if(s=r.type.is(t),!r.nextSibling())return o;for(;;){if(null!=n&&r.type.is(n))return o;if(r.type.is(e)&&o.push(r.node),!r.nextSibling())return null==n?o:[]}}function ux(i,e,t=e.length-1){for(let n=i.parent;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class Jte{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class Fr extends fL{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return o<0?null:new Fr(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&Mt.ExcludeBuffers)return null;let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new Fr(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Fr(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Fr(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,o=n.buffer[this.index+3];return o>r&&(e.push(n.slice(r,o,n.buffer[this.index+1])),t.push(0)),new Ke(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function pL(i){if(!i.length)return null;let e=0,t=i[0];for(let o=1;ot.from||s.to0){if(this.index-1)for(let o=t+e,s=e<0?-1:n._tree.children.length;o!=s;o+=e){let a=n._tree.children[o];if(this.mode&Mt.IncludeAnonymous||a instanceof $o||!a.type.isAnonymous||hx(a))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==r){if(r==this.index)return s;t=s,n=o+1;break e}r=this.stack[--o]}for(let r=n;r=0;o--){if(o<0)return ux(this.node,e,r);let s=n[t.buffer[this.stack[o]]];if(!s.isAnonymous){if(e[r]&&e[r]!=s.name)return!1;r--}}return!0}}function hx(i){return i.children.some(e=>e instanceof $o||!e.type.isAnonymous||hx(e))}const gL=new WeakMap;function Bp(i,e){if(!i.isAnonymous||e instanceof $o||e.type!=i)return 1;let t=gL.get(e);if(null==t){t=1;for(let n of e.children){if(n.type!=i||!(n instanceof Ke)){t=1;break}t+=Bp(i,n)}gL.set(e,t)}return t}function fx(i,e,t,n,r,o,s,a,l){let c=0;for(let m=n;m=d)break;A+=I}if(y==w+1){if(A>d){let I=m[w];f(I.children,I.positions,0,I.children.length,p[w]+v);continue}u.push(m[w])}else u.push(fx(i,m,p,w,y,x,p[y-1]+m[y-1].length-x,null,l));h.push(x+v-o)}}(e,t,n,r,0),(a||l)(u,h,s)}class mo{constructor(e,t,n,r,o=!1,s=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(o?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new mo(0,e.length,e,0,!1,n)];for(let o of t)o.to>e.length&&r.push(o);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],o=1,s=e.length?e[0]:null;for(let a=0,l=0,c=0;;a++){let d=a=n)for(;s&&s.from=h.from||u<=h.to||c){let f=Math.max(h.from,l)-c,m=Math.min(h.to,u)-c;h=f>=m?null:new mo(f,m,h.tree,h.offset+c,a>0,!!d)}if(h&&r.push(h),s.to>u)break;s=onew Hn(r.from,r.to)):[new Hn(0,0)]:[new Hn(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let o=r.advance();if(o)return o}}}class nie{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new ve({perNode:!0});let die=0;class Lr{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=die++}static define(e){if(e?.base)throw new Error("Can not derive from a modified tag");let t=new Lr([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new Vp;return t=>t.modified.indexOf(e)>-1?t:Vp.get(t.base||t,t.modified.concat(e).sort((n,r)=>n.id-r.id))}}let uie=0;class Vp{constructor(){this.instances=[],this.id=uie++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(a=>a.base==e&&function hie(i,e){return i.length==e.length&&i.every((t,n)=>t==e[n])}(t,a.modified));if(n)return n;let r=[],o=new Lr(r,e,t);for(let a of t)a.instances.push(o);let s=function fie(i){let e=[[]];for(let t=0;tn.length-t.length)}(t);for(let a of e.set)if(!a.modified.length)for(let l of s)r.push(Vp.get(a,l));return o}}function CL(i){let e=Object.create(null);for(let t in i){let n=i[t];Array.isArray(n)||(n=[n]);for(let r of t.split(" "))if(r){let o=[],s=2,a=r;for(let u=0;;){if("..."==a&&u>0&&u+3==r.length){s=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!h)throw new RangeError("Invalid path: "+r);if(o.push("*"==h[0]?"":'"'==h[0][0]?JSON.parse(h[0]):h[0]),u+=h[0].length,u==r.length)break;let f=r[u++];if(u==r.length&&"!"==f){s=0;break}if("/"!=f)throw new RangeError("Invalid path: "+r);a=r.slice(u)}let l=o.length-1,c=o[l];if(!c)throw new RangeError("Invalid path: "+r);let d=new Hp(n,s,l>0?o.slice(0,l):null);e[c]=d.sort(e[c])}}return DL.add(e)}const DL=new ve;class Hp{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let s=r;for(let a of o)for(let l of a.set){let c=t[l.id];if(c){s=s?s+" "+c:c;break}}return s},scope:n}}function EL(i,e,t,n=0,r=i.length){let o=new pie(n,Array.isArray(e)?e:[e],t);o.highlightRange(i.cursor(),n,r,"",o.highlighters),o.flush(r)}Hp.empty=new Hp([],2,null);class pie{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,o){let{type:s,from:a,to:l}=e;if(a>=n||l<=t)return;s.isTop&&(o=this.highlighters.filter(f=>!f.scope||f.scope(s)));let c=r,d=function gie(i){let e=i.type.prop(DL);for(;e&&e.context&&!i.matchContext(e.context);)e=e.next;return e||null}(e)||Hp.empty,u=function mie(i,e){let t=null;for(let n of i){let r=n.style(e);r&&(t=t?t+" "+r:r)}return t}(o,d.tags);if(u&&(c&&(c+=" "),c+=u,1==d.mode&&(r+=(r?" ":"")+u)),this.startSpan(Math.max(t,a),c),d.opaque)return;let h=e.tree&&e.tree.prop(ve.mounted);if(h&&h.overlay){let f=e.node.enter(h.overlay[0].from+a,1),m=this.highlighters.filter(g=>!g.scope||g.scope(h.tree.type)),p=e.firstChild();for(let g=0,_=a;;g++){let v=g=y)&&e.nextSibling()););if(!v||y>n)break;_=v.to+a,_>t&&(this.highlightRange(f.cursor(),Math.max(t,v.from+a),Math.min(n,_),"",m),this.startSpan(Math.min(n,_),c))}p&&e.parent()}else if(e.firstChild()){h&&(r="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,o),this.startSpan(Math.min(n,e.to),c)}}while(e.nextSibling());e.parent()}}}const B=Lr.define,zp=B(),Wo=B(),SL=B(Wo),ML=B(Wo),Go=B(),jp=B(Go),gx=B(Go),Br=B(),Qs=B(Br),Vr=B(),Hr=B(),_x=B(),Eu=B(_x),Up=B(),F={comment:zp,lineComment:B(zp),blockComment:B(zp),docComment:B(zp),name:Wo,variableName:B(Wo),typeName:SL,tagName:B(SL),propertyName:ML,attributeName:B(ML),className:B(Wo),labelName:B(Wo),namespace:B(Wo),macroName:B(Wo),literal:Go,string:jp,docString:B(jp),character:B(jp),attributeValue:B(jp),number:gx,integer:B(gx),float:B(gx),bool:B(Go),regexp:B(Go),escape:B(Go),color:B(Go),url:B(Go),keyword:Vr,self:B(Vr),null:B(Vr),atom:B(Vr),unit:B(Vr),modifier:B(Vr),operatorKeyword:B(Vr),controlKeyword:B(Vr),definitionKeyword:B(Vr),moduleKeyword:B(Vr),operator:Hr,derefOperator:B(Hr),arithmeticOperator:B(Hr),logicOperator:B(Hr),bitwiseOperator:B(Hr),compareOperator:B(Hr),updateOperator:B(Hr),definitionOperator:B(Hr),typeOperator:B(Hr),controlOperator:B(Hr),punctuation:_x,separator:B(_x),bracket:Eu,angleBracket:B(Eu),squareBracket:B(Eu),paren:B(Eu),brace:B(Eu),content:Br,heading:Qs,heading1:B(Qs),heading2:B(Qs),heading3:B(Qs),heading4:B(Qs),heading5:B(Qs),heading6:B(Qs),contentSeparator:B(Br),list:B(Br),quote:B(Br),emphasis:B(Br),strong:B(Br),link:B(Br),monospace:B(Br),strikethrough:B(Br),inserted:B(),deleted:B(),changed:B(),invalid:B(),meta:Up,documentMeta:B(Up),annotation:B(Up),processingInstruction:B(Up),definition:Lr.defineModifier(),constant:Lr.defineModifier(),function:Lr.defineModifier(),standard:Lr.defineModifier(),local:Lr.defineModifier(),special:Lr.defineModifier()};var bx;kL([{tag:F.link,class:"tok-link"},{tag:F.heading,class:"tok-heading"},{tag:F.emphasis,class:"tok-emphasis"},{tag:F.strong,class:"tok-strong"},{tag:F.keyword,class:"tok-keyword"},{tag:F.atom,class:"tok-atom"},{tag:F.bool,class:"tok-bool"},{tag:F.url,class:"tok-url"},{tag:F.labelName,class:"tok-labelName"},{tag:F.inserted,class:"tok-inserted"},{tag:F.deleted,class:"tok-deleted"},{tag:F.literal,class:"tok-literal"},{tag:F.string,class:"tok-string"},{tag:F.number,class:"tok-number"},{tag:[F.regexp,F.escape,F.special(F.string)],class:"tok-string2"},{tag:F.variableName,class:"tok-variableName"},{tag:F.local(F.variableName),class:"tok-variableName tok-local"},{tag:F.definition(F.variableName),class:"tok-variableName tok-definition"},{tag:F.special(F.variableName),class:"tok-variableName2"},{tag:F.definition(F.propertyName),class:"tok-propertyName tok-definition"},{tag:F.typeName,class:"tok-typeName"},{tag:F.namespace,class:"tok-namespace"},{tag:F.className,class:"tok-className"},{tag:F.macroName,class:"tok-macroName"},{tag:F.propertyName,class:"tok-propertyName"},{tag:F.operator,class:"tok-operator"},{tag:F.comment,class:"tok-comment"},{tag:F.meta,class:"tok-meta"},{tag:F.invalid,class:"tok-invalid"},{tag:F.punctuation,class:"tok-punctuation"}]);const Js=new ve;const _ie=new ve;let yn=(()=>{class i{constructor(t,n,r=[],o=""){this.data=t,this.name=o,gn.prototype.hasOwnProperty("tree")||Object.defineProperty(gn.prototype,"tree",{get(){return Gt(this)}}),this.parser=n,this.extension=[qo.of(this),gn.languageData.of((s,a,l)=>{let c=AL(s,a,l),d=c.type.prop(Js);if(!d)return[];let u=s.facet(d),h=c.type.prop(_ie);if(h){let f=c.resolve(a-c.from,l);for(let m of h)if(m.test(f,s)){let p=s.facet(m.facet);return"replace"==m.type?p:p.concat(u)}}return u})].concat(r)}isActiveAt(t,n,r=-1){return AL(t,n,r).type.prop(Js)==this.data}findRegions(t){let n=t.facet(qo);if(n?.data==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],o=(s,a)=>{if(s.prop(Js)==this.data)return void r.push({from:a,to:a+s.length});let l=s.prop(ve.mounted);if(l){if(l.tree.prop(Js)==this.data){if(l.overlay)for(let c of l.overlay)r.push({from:c.from+a,to:c.to+a});else r.push({from:a,to:a+s.length});return}if(l.overlay){let c=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>c)return}}for(let c=0;ce.concat(i):void 0})}(e.languageData);return new $p(t,e.parser.configure({props:[Js.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new $p(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Gt(i){let e=i.field(yn.state,!1);return e?e.tree:Ke.empty}class vie{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Su=null;class Zl{constructor(e,t,n=[],r,o,s,a,l){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Zl(e,t,[],Ke.empty,0,n,[],null)}startParse(){return this.parser.startParse(new vie(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=Ke.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(mo.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Su;Su=this;try{return e()}finally{Su=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=IL(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:o,viewport:s,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((c,d,u,h)=>l.push({fromA:c,toA:d,fromB:u,toB:h})),n=mo.applyChanges(n,l),r=Ke.empty,o=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let d=e.mapPos(c.from,1),u=e.mapPos(c.to,-1);de.from&&(this.fragments=IL(this.fragments,r,o),this.skipped.splice(n--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends mx{createParse(t,n,r){let o=r[0].from,s=r[r.length-1].to;return{parsedPos:o,advance(){let l=Su;if(l){for(let c of r)l.tempSkipped.push(c);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=s,new Ke(Ti.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return Su}}function IL(i,e,t){return mo.applyChanges(i,[{fromA:e,toA:t,fromB:e,toB:t}])}class Ql{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Ql(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Zl.create(e.facet(qo).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Ql(n)}}yn.state=Wt.define({create:Ql.init,update(i,e){for(let t of e.effects)if(t.is(yn.setState))return t.value;return e.startState.facet(qo)!=e.state.facet(qo)?Ql.init(e.state):i.apply(e)}});let OL=i=>{let e=setTimeout(()=>i(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(OL=i=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(i,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const vx=typeof navigator<"u"&&null!==(bx=navigator.scheduling)&&void 0!==bx&&bx.isInputPending?()=>navigator.scheduling.isInputPending():null,RL=St.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(yn.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(yn.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=OL(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,l=o.context.work(()=>vx&&vx()||Date.now()>s,r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:yn.setState.of(new Ql(o.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>tn(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),qo=z.define({combine:i=>i.length?i[0]:null,enables:i=>[yn.state,RL,ce.contentAttributes.compute([i],e=>{let t=e.facet(i);return t&&t.name?{"data-language":t.name}:{}})]});class yie{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const PL=z.define(),yx=z.define({combine:i=>{if(!i.length)return" ";let e=i[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(i[0]));return e}});function ea(i){let e=i.facet(yx);return 9==e.charCodeAt(0)?i.tabSize*e.length:e.length}function Jl(i,e){let t="",n=i.tabSize,r=i.facet(yx)[0];if("\t"==r){for(;e>=n;)t+="\t",e-=n;r=" "}for(let o=0;o=e?function wie(i,e,t){let n=e.resolveStack(t),r=n.node.enterUnfinishedNodesBefore(t);if(r!=n.node){let o=[];for(let s=r;s!=n.node;s=s.parent)o.push(s);for(let s=o.length-1;s>=0;s--)n={node:o[s],next:n}}return LL(n,i,t)}(i,t,e):null}class Mu{constructor(e,t={}){this.state=e,this.options=t,this.unit=ea(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:o}=this.options;return null!=r&&r>=n.from&&r<=n.to?o&&r==e?{text:"",from:e}:(t<0?r-1&&(o+=s-this.countColumn(n,n.search(/\S|$/))),o}countColumn(e,t=e.length){return Ul(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let s=o(r);if(s>-1)return s}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const FL=new ve;function LL(i,e,t){for(let n=i;n;n=n.next){let r=Cie(n.node);if(r)return r(wx.create(e,t,n))}return 0}function Cie(i){let e=i.type.prop(FL);if(e)return e;let n,t=i.firstChild;if(t&&(n=t.type.prop(ve.closedBy))){let r=i.lastChild,o=r&&n.indexOf(r.name)>-1;return s=>function BL(i,e,t,n,r){let o=i.textAfter,s=o.match(/^\s*/)[0].length,a=n&&o.slice(s,s+n.length)==n||r==i.pos+s,l=e?function Eie(i){let e=i.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let r=i.options.simulateBreak,o=i.state.doc.lineAt(t.from),s=null==r||r<=o.from?o.to:Math.min(o.to,r);for(let a=t.to;;){let l=e.childAfter(a);if(!l||l==n)return null;if(!l.type.isSkipped)return l.from{let n=i&&i.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const Tie=z.define(),HL=new ve;function Oie(i){let e=i.lastChild;return e&&e.to==i.to&&e.type.isError}function Tu(i,e,t){for(let n of i.facet(Tie)){let r=n(i,e,t);if(r)return r}return function Iie(i,e,t){let n=Gt(i);if(n.lengtht)continue;if(o&&a.from=e&&c.to>t&&(o=c)}}return o}(i,e,t)}function zL(i,e){let t=e.mapPos(i.from,1),n=e.mapPos(i.to,-1);return t>=n?void 0:{from:t,to:n}}const Au=Be.define({map:zL}),ec=Be.define({map:zL});function xx(i){let e=[];for(let{head:t}of i.state.selection.ranges)e.some(n=>n.from<=t&&n.to>=t)||e.push(i.lineBlockAt(t));return e}const Yo=Wt.define({create:()=>q.none,update(i,e){i=i.map(e.changes);for(let t of e.effects)if(t.is(Au)&&!Rie(i,t.value.from,t.value.to)){let{preparePlaceholder:n}=e.state.facet(Dx),r=n?q.replace({widget:new zie(n(e.state,t.value))}):$L;i=i.update({add:[r.range(t.value.from,t.value.to)]})}else t.is(ec)&&(i=i.update({filter:(n,r)=>t.value.from!=n||t.value.to!=r,filterFrom:t.value.from,filterTo:t.value.to}));if(e.selection){let t=!1,{head:n}=e.selection.main;i.between(n,n,(r,o)=>{rn&&(t=!0)}),t&&(i=i.update({filterFrom:n,filterTo:n,filter:(r,o)=>o<=n||r>=n}))}return i},provide:i=>ce.decorations.from(i),toJSON(i,e){let t=[];return i.between(0,e.doc.length,(n,r)=>{t.push(n,r)}),t},fromJSON(i){if(!Array.isArray(i)||i.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t{(!r||r.from>o)&&(r={from:o,to:s})}),r}function Rie(i,e,t){let n=!1;return i.between(e,e,(r,o)=>{r==e&&o==t&&(n=!0)}),n}function Cx(i,e){return i.field(Yo,!1)?e:e.concat(Be.appendConfig.of(jL()))}function Gp(i,e,t=!0){let n=i.state.doc.lineAt(e.from).number,r=i.state.doc.lineAt(e.to).number;return ce.announce.of(`${i.state.phrase(t?"Folded lines":"Unfolded lines")} ${n} ${i.state.phrase("to")} ${r}.`)}const Vie=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:i=>{for(let e of xx(i)){let t=Tu(i.state,e.from,e.to);if(t)return i.dispatch({effects:Cx(i.state,[Au.of(t),Gp(i,t)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:i=>{if(!i.state.field(Yo,!1))return!1;let e=[];for(let t of xx(i)){let n=Iu(i.state,t.from,t.to);n&&e.push(ec.of(n),Gp(i,n,!1))}return e.length&&i.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:i=>{let{state:e}=i,t=[];for(let n=0;n{let e=i.state.field(Yo,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,i.state.doc.length,(n,r)=>{t.push(ec.of({from:n,to:r}))}),i.dispatch({effects:t}),!0}}],Hie={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},Dx=z.define({combine:i=>lr(i,Hie)});function jL(i){let e=[Yo,$ie];return i&&e.push(Dx.of(i)),e}function UL(i,e){let{state:t}=i,n=t.facet(Dx),r=s=>{let a=i.lineBlockAt(i.posAtDOM(s.target)),l=Iu(i.state,a.from,a.to);l&&i.dispatch({effects:ec.of(l)}),s.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(i,r,e);let o=document.createElement("span");return o.textContent=n.placeholderText,o.setAttribute("aria-label",t.phrase("folded code")),o.title=t.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=r,o}const $L=q.replace({widget:new class extends Or{toDOM(i){return UL(i,null)}}});class zie extends Or{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return UL(e,this.value)}}const jie={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class kx extends Pr{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}const $ie=ce.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class qp{constructor(e,t){let n;function r(a){let l=Lo.newName();return(n||(n=Object.create(null)))["."+l]=a,l}this.specs=e;const o="string"==typeof t.all?t.all:t.all?r(t.all):void 0,s=t.scope;this.scope=s instanceof yn?a=>a.prop(Js)==s.data:s?a=>a==s:void 0,this.style=kL(e.map(a=>({tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))})),{all:o}).style,this.module=n?new Lo(n):null,this.themeType=t.themeType}static define(e,t){return new qp(e,t||{})}}const Ex=z.define(),WL=z.define({combine:i=>i.length?[i[0]]:null});function Yp(i){let e=i.facet(Ex);return e.length?e:i.facet(WL)}class Gie{constructor(e){this.markCache=Object.create(null),this.tree=Gt(e.state),this.decorations=this.buildDeco(e,Yp(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Gt(e.state),n=Yp(e.state),r=n!=Yp(e.startState),{viewport:o}=e.view,s=e.changes.mapPos(this.decoratedTo,1);t.length=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return q.none;let n=new uo;for(let{from:r,to:o}of e.visibleRanges)EL(this.tree,t,(s,a,l)=>{n.add(s,a,this.markCache[l]||(this.markCache[l]=q.mark({class:l})))},r,o);return n.finish()}}const qie=lo.high(St.fromClass(Gie,{decorations:i=>i.decorations})),Yie=qp.define([{tag:F.meta,color:"#404740"},{tag:F.link,textDecoration:"underline"},{tag:F.heading,textDecoration:"underline",fontWeight:"bold"},{tag:F.emphasis,fontStyle:"italic"},{tag:F.strong,fontWeight:"bold"},{tag:F.strikethrough,textDecoration:"line-through"},{tag:F.keyword,color:"#708"},{tag:[F.atom,F.bool,F.url,F.contentSeparator,F.labelName],color:"#219"},{tag:[F.literal,F.inserted],color:"#164"},{tag:[F.string,F.deleted],color:"#a11"},{tag:[F.regexp,F.escape,F.special(F.string)],color:"#e40"},{tag:F.definition(F.variableName),color:"#00f"},{tag:F.local(F.variableName),color:"#30a"},{tag:[F.typeName,F.namespace],color:"#085"},{tag:F.className,color:"#167"},{tag:[F.special(F.variableName),F.macroName],color:"#256"},{tag:F.definition(F.propertyName),color:"#00c"},{tag:F.comment,color:"#940"},{tag:F.invalid,color:"#f00"}]),Kie=ce.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),GL=1e4,qL="()[]{}",YL=z.define({combine:i=>lr(i,{afterCursor:!0,brackets:qL,maxScanDistance:GL,renderMatch:Qie})}),Xie=q.mark({class:"cm-matchingBracket"}),Zie=q.mark({class:"cm-nonmatchingBracket"});function Qie(i){let e=[],t=i.matched?Xie:Zie;return e.push(t.range(i.start.from,i.start.to)),i.end&&e.push(t.range(i.end.from,i.end.to)),e}const Jie=[Wt.define({create:()=>q.none,update(i,e){if(!e.docChanged&&!e.selection)return i;let t=[],n=e.state.facet(YL);for(let r of e.state.selection.ranges){if(!r.empty)continue;let o=zr(e.state,r.head,-1,n)||r.head>0&&zr(e.state,r.head-1,1,n)||n.afterCursor&&(zr(e.state,r.head,1,n)||r.headce.decorations.from(i)}),Kie],tne=new ve;function Sx(i,e,t){let n=i.prop(e<0?ve.openedBy:ve.closedBy);if(n)return n;if(1==i.name.length){let r=t.indexOf(i.name);if(r>-1&&r%2==(e<0?1:0))return[t[r+e]]}return null}function Mx(i){let e=i.type.prop(tne);return e?e(i.node):i}function zr(i,e,t,n={}){let r=n.maxScanDistance||GL,o=n.brackets||qL,s=Gt(i),a=s.resolveInner(e,t);for(let l=a;l;l=l.parent){let c=Sx(l.type,t,o);if(c&&l.from0?e>=d.from&&ed.from&&e<=d.to))return ine(0,0,t,l,d,c,o)}}return function nne(i,e,t,n,r,o,s){let a=t<0?i.sliceDoc(e-1,e):i.sliceDoc(e,e+1),l=s.indexOf(a);if(l<0||l%2==0!=t>0)return null;let c={from:t<0?e-1:e,to:t>0?e+1:e},d=i.doc.iterRange(e,t>0?i.doc.length:0),u=0;for(let h=0;!d.next().done&&h<=o;){let f=d.value;t<0&&(h+=f.length);let m=e+h*t;for(let p=t>0?0:f.length-1,g=t>0?f.length:-1;p!=g;p+=t){let _=s.indexOf(f[p]);if(!(_<0||n.resolveInner(m+p,1).type!=r))if(_%2==0==t>0)u++;else{if(1==u)return{start:c,end:{from:m+p,to:m+p+1},matched:_>>1==l>>1};u--}}t>0&&(h+=f.length)}return d.done?{start:c,matched:!1}:null}(i,e,t,s,a.type,r,o)}function ine(i,e,t,n,r,o,s){let a=n.parent,l={from:r.from,to:r.to},c=0,d=a?.cursor();if(d&&(t<0?d.childBefore(n.from):d.childAfter(n.to)))do{if(t<0?d.to<=n.from:d.from>=n.to){if(0==c&&o.indexOf(d.type.name)>-1&&d.from-1||(t2.push(i),console.warn(e))}function s2(i,e){let t=[];for(let a of e.split(" ")){let l=[];for(let c of a.split(".")){let d=i[c]||F[c];d?"function"==typeof d?l.length?l=l.map(d):Ix(c,`Modifier ${c} used at start of tag`):l.length?Ix(c,`Tag ${c} used as modifier`):l=Array.isArray(d)?d:[d]:Ix(c,`Unknown highlighting tag ${c}`)}for(let c of l)t.push(c)}if(!t.length)return 0;let n=e.replace(/ /g,"_"),r=n+" "+t.map(a=>a.id),o=n2[r];if(o)return o.id;let s=n2[r]=Ti.define({id:Ou.length,name:n,props:[CL({[n]:t})]});return Ou.push(s),s.id}function Rx(i,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=i(e,t);return!!r&&(n(t.update(r)),!0)}}const gne=Rx(wne,0),_ne=Rx(d2,0),bne=Rx((i,e)=>d2(i,e,function yne(i){let e=[];for(let t of i.selection.ranges){let n=i.doc.lineAt(t.from),r=t.to<=n.to?n:i.doc.lineAt(t.to),o=e.length-1;o>=0&&e[o].to>n.from?e[o].to=r.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return e}(e)),0);function Nx(i,e){let t=i.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const Ru=50;function d2(i,e,t=e.selection.ranges){let n=t.map(o=>Nx(e,o.from).block);if(!n.every(o=>o))return null;let r=t.map((o,s)=>function vne(i,{open:e,close:t},n,r){let d,u,o=i.sliceDoc(n-Ru,n),s=i.sliceDoc(r,r+Ru),a=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(s)[0].length,c=o.length-a;if(o.slice(c-e.length,c)==e&&s.slice(l,l+t.length)==t)return{open:{pos:n-a,margin:a&&1},close:{pos:r+l,margin:l&&1}};r-n<=2*Ru?d=u=i.sliceDoc(n,r):(d=i.sliceDoc(n,n+Ru),u=i.sliceDoc(r-Ru,r));let h=/^\s*/.exec(d)[0].length,f=/\s*$/.exec(u)[0].length,m=u.length-f-t.length;return d.slice(h,h+e.length)==e&&u.slice(m,m+t.length)==t?{open:{pos:n+h+e.length,margin:/\s/.test(d.charAt(h+e.length))?1:0},close:{pos:r-f-t.length,margin:/\s/.test(u.charAt(m-1))?1:0}}:null}(e,n[s],o.from,o.to));if(2!=i&&!r.every(o=>o))return{changes:e.changes(t.map((o,s)=>r[s]?[]:[{from:o.from,insert:n[s].open+" "},{from:o.to,insert:" "+n[s].close}]))};if(1!=i&&r.some(o=>o)){let o=[];for(let a,s=0;sr&&(o==s||s>u.from)){r=u.from;let h=/^\s*/.exec(u.text)[0].length,f=h==u.length,m=u.text.slice(h,h+c.length)==c?h:-1;ho.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:a,token:l,indent:c,empty:d,single:u}of n)(u||!d)&&o.push({from:a.from+c,insert:l+" "});let s=e.changes(o);return{changes:s,selection:e.selection.map(s,1)}}if(1!=i&&n.some(o=>o.comment>=0)){let o=[];for(let{line:s,comment:a,token:l}of n)if(a>=0){let c=s.from+a,d=c+l.length;" "==s.text[d-s.from]&&d++,o.push({from:c,to:d})}return{changes:o}}return null}const Px=co.define(),xne=co.define(),Cne=z.define(),u2=z.define({combine:i=>lr(i,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),Fx=Wt.define({create:()=>Vx.empty,update(i,e){let t=e.state.facet(u2),n=e.annotation(Px);if(n){let l=nn.fromTransaction(e,n.selection),c=n.side,d=0==c?i.undone:i.done;return d=l?Xp(d,d.length,t.minDepth,l):m2(d,e.startState.selection),new Vx(0==c?n.rest:d,0==c?d:n.rest)}let r=e.annotation(xne);if(("full"==r||"before"==r)&&(i=i.isolate()),!1===e.annotation(Ir.addToHistory))return e.changes.empty?i:i.addMapping(e.changes.desc);let o=nn.fromTransaction(e),s=e.annotation(Ir.time),a=e.annotation(Ir.userEvent);return o?i=i.addChanges(o,s,a,t,e):e.selection&&(i=i.addSelection(e.startState.selection,s,a,t.newGroupDelay)),("full"==r||"after"==r)&&(i=i.isolate()),i},toJSON:i=>({done:i.done.map(e=>e.toJSON()),undone:i.undone.map(e=>e.toJSON())}),fromJSON:i=>new Vx(i.done.map(nn.fromJSON),i.undone.map(nn.fromJSON))});function Kp(i,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let r=t.field(Fx,!1);if(!r)return!1;let o=r.pop(i,t,e);return!!o&&(n(o),!0)}}const h2=Kp(0,!1),Lx=Kp(1,!1),kne=Kp(0,!0),Ene=Kp(1,!0);class nn{constructor(e,t,n,r,o){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=o}setSelAfter(e){return new nn(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new nn(e.changes&&ei.fromJSON(e.changes),[],e.mapped&&Ar.fromJSON(e.mapped),e.startSelection&&M.fromJSON(e.startSelection),e.selectionsAfter.map(M.fromJSON))}static fromTransaction(e,t){let n=zn;for(let r of e.startState.facet(Cne)){let o=r(e);o.length&&(n=n.concat(o))}return!n.length&&e.changes.empty?null:new nn(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,zn)}static selection(e){return new nn(void 0,zn,void 0,void 0,e)}}function Xp(i,e,t,n){let o=i.slice(e+1>t+20?e-t-1:0,e);return o.push(n),o}function f2(i,e){return i.length?e.length?i.concat(e):i:e}const zn=[],Tne=200;function m2(i,e){if(i.length){let t=i[i.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Tne));return n.length&&n[n.length-1].eq(e)?i:(n.push(e),Xp(i,i.length-1,1e9,t.setSelAfter(n)))}return[nn.selection([e])]}function Ane(i){let e=i[i.length-1],t=i.slice();return t[i.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Bx(i,e){if(!i.length)return i;let t=i.length,n=zn;for(;t;){let r=Ine(i[t-1],e,n);if(r.changes&&!r.changes.empty||r.effects.length){let o=i.slice(0,t);return o[t-1]=r,o}e=r.mapped,t--,n=r.selectionsAfter}return n.length?[nn.selection(n)]:zn}function Ine(i,e,t){let n=f2(i.selectionsAfter.length?i.selectionsAfter.map(a=>a.map(e)):zn,t);if(!i.changes)return nn.selection(n);let r=i.changes.map(e),o=e.mapDesc(i.changes,!0),s=i.mapped?i.mapped.composeDesc(o):o;return new nn(r,Be.mapEffects(i.effects,e),s,i.startSelection.map(o),n)}const One=/^(input\.type|delete)($|\.)/;let Vx=(()=>{class i{constructor(t,n,r=0,o=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=o}isolate(){return this.prevTime?new i(this.done,this.undone):this}addChanges(t,n,r,o,s){let a=this.done,l=a[a.length-1];return a=l&&l.changes&&!l.changes.empty&&t.changes&&(!r||One.test(r))&&(!l.selectionsAfter.length&&n-this.prevTimet.push(r,o)),e.iterChangedRanges((r,o,s,a)=>{for(let l=0;l=c&&s<=d&&(n=!0)}}),n}(l.changes,t.changes))||"input.type.compose"==r)?Xp(a,a.length-1,o.minDepth,new nn(t.changes.compose(l.changes),f2(t.effects,l.effects),l.mapped,l.startSelection,zn)):Xp(a,a.length,o.minDepth,t),new i(a,zn,n,r)}addSelection(t,n,r,o){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:zn;return s.length>0&&n-this.prevTimet.empty!=e.ranges[n].empty).length}(s[s.length-1],t)?this:new i(m2(this.done,t),this.undone,n,r)}addMapping(t){return new i(Bx(this.done,t),Bx(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,n,r){let o=0==t?this.done:this.undone;if(0==o.length)return null;let s=o[o.length-1],a=s.selectionsAfter[0]||n.selection;if(r&&s.selectionsAfter.length)return n.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:Px.of({side:t,rest:Ane(o),selection:a}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let l=1==o.length?zn:o.slice(0,o.length-1);return s.mapped&&(l=Bx(l,s.mapped)),n.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:Px.of({side:t,rest:l,selection:a}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}return null}}return i.empty=new i(zn,zn),i})();const Rne=[{key:"Mod-z",run:h2,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Lx,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Lx,preventDefault:!0},{key:"Mod-u",run:kne,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Ene,preventDefault:!0}];function tc(i,e){return M.create(i.ranges.map(e),i.mainIndex)}function jr(i,e){return i.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function jn({state:i,dispatch:e},t){let n=tc(i.selection,t);return!n.eq(i.selection,!0)&&(e(jr(i,n)),!0)}function Nu(i,e){return M.cursor(e?i.to:i.from)}function Zp(i,e){return jn(i,t=>t.empty?i.moveByChar(t,e):Nu(t,e))}function Ii(i){return i.textDirectionAt(i.state.selection.main.head)==ot.LTR}const p2=i=>Zp(i,!Ii(i)),g2=i=>Zp(i,Ii(i));function Qp(i,e){return jn(i,t=>t.empty?i.moveByGroup(t,e):Nu(t,e))}function Fne(i,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(i.sliceDoc(e.from,e.to)))||e.firstChild}function Jp(i,e,t){let s,a,n=Gt(i).resolveInner(e.head),r=t?ve.closedBy:ve.openedBy;for(let l=e.head;;){let c=t?n.childAfter(l):n.childBefore(l);if(!c)break;Fne(i,c,r)?n=c:l=t?c.to:c.from}return a=n.type.prop(r)&&(s=t?zr(i,n.from,1):zr(i,n.to,-1))&&s.matched?t?s.end.to:s.end.from:t?n.to:n.from,M.cursor(a,t?-1:1)}function y2(i,e){return jn(i,t=>{if(!t.empty)return Nu(t,e);let n=i.moveVertically(t,e);return n.head!=t.head?n:i.moveToLineBoundary(t,e)})}typeof Intl<"u"&&Intl;const w2=i=>y2(i,!1),x2=i=>y2(i,!0);function C2(i){let r,e=i.scrollDOM.clientHeights.empty?i.moveVertically(s,e,t.height):Nu(s,e));if(r.eq(n.selection))return!1;if(t.selfScroll){let s=i.coordsAtPos(n.selection.main.head),a=i.scrollDOM.getBoundingClientRect(),l=a.top+t.marginTop;s&&s.top>l&&s.bottomD2(i,!1),Hx=i=>D2(i,!0);function Ko(i,e,t){let n=i.lineBlockAt(e.head),r=i.moveToLineBoundary(e,t);if(r.head==e.head&&r.head!=(t?n.to:n.from)&&(r=i.moveToLineBoundary(e,t,!1)),!t&&r.head==n.from&&n.length){let o=/^\s*/.exec(i.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;o&&e.head!=n.from+o&&(r=M.cursor(n.from+o))}return r}function wn(i,e){let t=tc(i.state.selection,n=>{let r=e(n);return M.range(n.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return!t.eq(i.state.selection)&&(i.dispatch(jr(i.state,t)),!0)}function eg(i,e){return wn(i,t=>i.moveByChar(t,e))}const S2=i=>eg(i,!Ii(i)),M2=i=>eg(i,Ii(i));function tg(i,e){return wn(i,t=>i.moveByGroup(t,e))}function A2(i,e){return wn(i,t=>i.moveVertically(t,e))}const I2=i=>A2(i,!1),O2=i=>A2(i,!0);function R2(i,e){return wn(i,t=>i.moveVertically(t,e,C2(i).height))}const N2=i=>R2(i,!1),P2=i=>R2(i,!0),F2=({state:i,dispatch:e})=>(e(jr(i,{anchor:0})),!0),L2=({state:i,dispatch:e})=>(e(jr(i,{anchor:i.doc.length})),!0),B2=({state:i,dispatch:e})=>(e(jr(i,{anchor:i.selection.main.anchor,head:0})),!0),V2=({state:i,dispatch:e})=>(e(jr(i,{anchor:i.selection.main.anchor,head:i.doc.length})),!0);function ic(i,e){if(i.state.readOnly)return!1;let t="delete.selection",{state:n}=i,r=n.changeByRange(o=>{let{from:s,to:a}=o;if(s==a){let l=e(o);ls&&(t="delete.forward",l=ig(i,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=ig(i,s,!1),a=ig(i,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:M.cursor(s,sr(i)))n.between(e,e,(r,o)=>{re&&(e=t?o:r)});return e}const zx=(i,e,t)=>ic(i,n=>{let a,l,r=n.from,{state:o}=i,s=o.doc.lineAt(r);if(t&&!e&&r>s.from&&rzx(i,!1,!0),H2=i=>zx(i,!0,!1),z2=(i,e)=>ic(i,t=>{let n=t.head,{state:r}=i,o=r.doc.lineAt(n),s=r.charCategorizer(n);for(let a=null;;){if(n==(e?o.to:o.from)){n==t.head&&o.number!=(e?r.doc.lines:1)&&(n+=e?1:-1);break}let l=pi(o.text,n-o.from,e)+o.from,c=o.text.slice(Math.min(n,l)-o.from,Math.max(n,l)-o.from),d=s(c);if(null!=a&&d!=a)break;(" "!=c||n!=t.head)&&(a=d),n=l}return n}),j2=i=>z2(i,!1);function ng(i){let e=[],t=-1;for(let n of i.selection.ranges){let r=i.doc.lineAt(n.from),o=i.doc.lineAt(n.to);if(!n.empty&&n.to==o.from&&(o=i.doc.lineAt(n.to-1)),t>=r.number){let s=e[e.length-1];s.to=o.to,s.ranges.push(n)}else e.push({from:r.from,to:o.to,ranges:[n]});t=o.number+1}return e}function U2(i,e,t){if(i.readOnly)return!1;let n=[],r=[];for(let o of ng(i)){if(t?o.to==i.doc.length:0==o.from)continue;let s=i.doc.lineAt(t?o.to+1:o.from-1),a=s.length+1;if(t){n.push({from:o.to,to:s.to},{from:o.from,insert:s.text+i.lineBreak});for(let l of o.ranges)r.push(M.range(Math.min(i.doc.length,l.anchor+a),Math.min(i.doc.length,l.head+a)))}else{n.push({from:s.from,to:o.from},{from:o.to,insert:i.lineBreak+s.text});for(let l of o.ranges)r.push(M.range(l.anchor-a,l.head-a))}}return!!n.length&&(e(i.update({changes:n,scrollIntoView:!0,selection:M.create(r,i.selection.mainIndex),userEvent:"move.line"})),!0)}function $2(i,e,t){if(i.readOnly)return!1;let n=[];for(let r of ng(i))n.push(t?{from:r.from,insert:i.doc.slice(r.from,r.to)+i.lineBreak}:{from:r.to,insert:i.lineBreak+i.doc.slice(r.from,r.to)});return e(i.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const bre=W2(!1);function W2(i){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{let{from:o,to:s}=r,a=e.doc.lineAt(o),l=!i&&o==s&&function _re(i,e){if(/\(\)|\[\]|\{\}/.test(i.sliceDoc(e-1,e+1)))return{from:e,to:e};let o,t=Gt(i).resolveInner(e),n=t.childBefore(e),r=t.childAfter(e);return n&&r&&n.to<=e&&r.from>=e&&(o=n.type.prop(ve.closedBy))&&o.indexOf(r.name)>-1&&i.doc.lineAt(n.to).from==i.doc.lineAt(r.from).from&&!/\S/.test(i.sliceDoc(n.to,r.from))?{from:n.to,to:r.from}:null}(e,o);i&&(o=s=(s<=a.to?a:e.doc.lineAt(s)).to);let c=new Mu(e,{simulateBreak:o,simulateDoubleBreak:!!l}),d=Wp(c,o);for(null==d&&(d=Ul(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));sa.from&&o{let r=[];for(let s=n.from;s<=n.to;){let a=i.doc.lineAt(s);a.number>t&&(n.empty||n.to>a.from)&&(e(a,r,n),t=a.number),s=a.to+1}let o=i.changes(r);return{changes:r,range:M.range(o.mapPos(n.anchor,1),o.mapPos(n.head,1))}})}const Cre=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:i=>jn(i,e=>Jp(i.state,e,!Ii(i))),shift:i=>wn(i,e=>Jp(i.state,e,!Ii(i)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:i=>jn(i,e=>Jp(i.state,e,Ii(i))),shift:i=>wn(i,e=>Jp(i.state,e,Ii(i)))},{key:"Alt-ArrowUp",run:({state:i,dispatch:e})=>U2(i,e,!1)},{key:"Shift-Alt-ArrowUp",run:({state:i,dispatch:e})=>$2(i,e,!1)},{key:"Alt-ArrowDown",run:({state:i,dispatch:e})=>U2(i,e,!0)},{key:"Shift-Alt-ArrowDown",run:({state:i,dispatch:e})=>$2(i,e,!0)},{key:"Escape",run:({state:i,dispatch:e})=>{let t=i.selection,n=null;return t.ranges.length>1?n=M.create([t.main]):t.main.empty||(n=M.create([M.cursor(t.main.head)])),!!n&&(e(jr(i,n)),!0)}},{key:"Mod-Enter",run:W2(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:i,dispatch:e})=>{let t=ng(i).map(({from:n,to:r})=>M.range(n,Math.min(r+1,i.doc.length)));return e(i.update({selection:M.create(t),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:i,dispatch:e})=>{let t=tc(i.selection,n=>{var r;for(let s=Gt(i).resolveStack(n.from,1);s;s=s.next){let{node:a}=s;if((a.from=n.to||a.to>n.to&&a.from<=n.from)&&null!==(r=a.parent)&&void 0!==r&&r.parent)return M.range(a.to,a.from)}return n});return e(jr(i,t)),!0},preventDefault:!0},{key:"Mod-[",run:({state:i,dispatch:e})=>!i.readOnly&&(e(i.update(Ux(i,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let o=Ul(r,i.tabSize),s=0,a=Jl(i,Math.max(0,o-ea(i)));for(;s!i.readOnly&&(e(i.update(Ux(i,(t,n)=>{n.push({from:t.from,insert:i.facet(yx)})}),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=Object.create(null),n=new Mu(i,{overrideIndentation:o=>t[o]??-1}),r=Ux(i,(o,s,a)=>{let l=Wp(n,o.from);if(null==l)return;/\S/.test(o.text)||(l=0);let c=/^\s*/.exec(o.text)[0],d=Jl(i,l);(c!=d||a.from{if(i.state.readOnly)return!1;let{state:e}=i,t=e.changes(ng(e).map(({from:r,to:o})=>(r>0?r--:o{let o;if(i.lineWrapping){let s=i.lineBlockAt(r.head),a=i.coordsAtPos(r.head,r.assoc||1);a&&(o=s.bottom+i.documentTop-a.bottom+i.defaultLineHeight/2)}return i.moveVertically(r,!0,o)}).map(t);return i.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:i,dispatch:e})=>function E2(i,e,t){let n=!1,r=tc(i.selection,o=>{let s=zr(i,o.head,-1)||zr(i,o.head,1)||o.head>0&&zr(i,o.head-1,1)||o.head{let{state:e}=i,t=e.doc.lineAt(e.selection.main.from),n=Nx(i.state,t.from);return n.line?gne(i):!!n.block&&bne(i)}},{key:"Alt-A",run:_ne}].concat([{key:"ArrowLeft",run:p2,shift:S2,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:i=>Qp(i,!Ii(i)),shift:i=>tg(i,!Ii(i)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:i=>jn(i,e=>Ko(i,e,!Ii(i))),shift:i=>wn(i,e=>Ko(i,e,!Ii(i))),preventDefault:!0},{key:"ArrowRight",run:g2,shift:M2,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:i=>Qp(i,Ii(i)),shift:i=>tg(i,Ii(i)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:i=>jn(i,e=>Ko(i,e,Ii(i))),shift:i=>wn(i,e=>Ko(i,e,Ii(i))),preventDefault:!0},{key:"ArrowUp",run:w2,shift:I2,preventDefault:!0},{mac:"Cmd-ArrowUp",run:F2,shift:B2},{mac:"Ctrl-ArrowUp",run:k2,shift:N2},{key:"ArrowDown",run:x2,shift:O2,preventDefault:!0},{mac:"Cmd-ArrowDown",run:L2,shift:V2},{mac:"Ctrl-ArrowDown",run:Hx,shift:P2},{key:"PageUp",run:k2,shift:N2},{key:"PageDown",run:Hx,shift:P2},{key:"Home",run:i=>jn(i,e=>Ko(i,e,!1)),shift:i=>wn(i,e=>Ko(i,e,!1)),preventDefault:!0},{key:"Mod-Home",run:F2,shift:B2},{key:"End",run:i=>jn(i,e=>Ko(i,e,!0)),shift:i=>wn(i,e=>Ko(i,e,!0)),preventDefault:!0},{key:"Mod-End",run:L2,shift:V2},{key:"Enter",run:bre},{key:"Mod-a",run:({state:i,dispatch:e})=>(e(i.update({selection:{anchor:0,head:i.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:jx,shift:jx},{key:"Delete",run:H2},{key:"Mod-Backspace",mac:"Alt-Backspace",run:j2},{key:"Mod-Delete",mac:"Alt-Delete",run:i=>z2(i,!0)},{mac:"Mod-Backspace",run:i=>ic(i,e=>{let t=i.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)})},{mac:"Mod-Delete",run:i=>ic(i,e=>{let t=i.moveToLineBoundary(e,!0).head;return e.headjn(i,e=>M.cursor(i.lineBlockAt(e.head).from,1)),shift:i=>wn(i,e=>M.cursor(i.lineBlockAt(e.head).from))},{key:"Ctrl-e",run:i=>jn(i,e=>M.cursor(i.lineBlockAt(e.head).to,-1)),shift:i=>wn(i,e=>M.cursor(i.lineBlockAt(e.head).to))},{key:"Ctrl-d",run:H2},{key:"Ctrl-h",run:jx},{key:"Ctrl-k",run:i=>ic(i,e=>{let t=i.lineBlockAt(e.head).to;return e.head{if(i.readOnly)return!1;let t=i.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:qe.of(["",""])},range:M.cursor(n.from)}));return e(i.update(t,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=i.changeByRange(n=>{if(!n.empty||0==n.from||n.from==i.doc.length)return{range:n};let r=n.from,o=i.doc.lineAt(r),s=r==o.from?r-1:pi(o.text,r-o.from,!1)+o.from,a=r==o.to?r+1:pi(o.text,r-o.from,!0)+o.from;return{changes:{from:s,to:a,insert:i.doc.slice(r,a).append(i.doc.slice(s,r))},range:M.cursor(a)}});return!t.changes.empty&&(e(i.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Hx}].map(i=>({mac:i.key,run:i.run,shift:i.shift}))));function ft(){var i=arguments[0];"string"==typeof i&&(i=document.createElement(i));var e=1,t=arguments[1];if(t&&"object"==typeof t&&null==t.nodeType&&!Array.isArray(t)){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];"string"==typeof r?i.setAttribute(n,r):null!=r&&(i[n]=r)}e++}for(;ei.normalize("NFKD"):i=>i;class nc{constructor(e,t,n=0,r=e.length,o,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=o?a=>o(Y2(a)):Y2,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return gi(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=aw(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Bn(e);let r=this.normalize(t);for(let o=0,s=n;;o++){let a=r.charCodeAt(o),l=this.match(a,s,this.bufferPos+this.bufferStart);if(o==r.length-1){if(l)return this.value=l,this;break}s==n&&othis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=rg(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let a=new rc(t,e.sliceString(t,n));return Gx.set(e,a),a}if(r.from==t&&r.to==n)return r;let{text:o,from:s}=r;return s>t&&(o=e.sliceString(t,s)+o,s=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,r=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this.matchPos=rg(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=rc.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function rg(i,e){if(e>=i.length)return e;let n,t=i.lineAt(e);for(;e=56320&&n<57344;)e++;return e}function qx(i){let t=ft("input",{class:"cm-textfield",name:"line",value:String(i.state.doc.lineAt(i.state.selection.main.head).number)});function r(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!o)return;let{state:s}=i,a=s.doc.lineAt(s.selection.main.head),[,l,c,d,u]=o,h=d?+d.slice(1):0,f=c?+c:a.number;if(c&&u){let g=f/100;l&&(g=g*("-"==l?-1:1)+a.number/s.doc.lines),f=Math.round(s.doc.lines*g)}else c&&l&&(f=f*("-"==l?-1:1)+a.number);let m=s.doc.line(Math.max(1,Math.min(s.doc.lines,f))),p=M.cursor(m.from+Math.max(0,Math.min(h,m.length)));i.dispatch({effects:[og.of(!1),ce.scrollIntoView(p.from,{y:"center"})],selection:p}),i.focus()}return{dom:ft("form",{class:"cm-gotoLine",onkeydown:o=>{27==o.keyCode?(o.preventDefault(),i.dispatch({effects:og.of(!1)}),i.focus()):13==o.keyCode&&(o.preventDefault(),r())},onsubmit:o=>{o.preventDefault(),r()}},ft("label",i.state.phrase("Go to line"),": ",t)," ",ft("button",{class:"cm-button",type:"submit"},i.state.phrase("go")))}}typeof Symbol<"u"&&(X2.prototype[Symbol.iterator]=Z2.prototype[Symbol.iterator]=function(){return this});const og=Be.define(),Q2=Wt.define({create:()=>!0,update(i,e){for(let t of e.effects)t.is(og)&&(i=t.value);return i},provide:i=>xu.from(i,e=>e?qx:null)}),Ere=ce.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Sre={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},J2=z.define({combine:i=>lr(i,Sre,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),Tre=q.mark({class:"cm-selectionMatch"}),Are=q.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function eB(i,e,t,n){return!(0!=t&&i(e.sliceDoc(t-1,t))==xt.Word||n!=e.doc.length&&i(e.sliceDoc(n,n+1))==xt.Word)}const Ore=St.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.selectionSet||i.docChanged||i.viewportChanged)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let e=i.state.facet(J2),{state:t}=i,n=t.selection;if(n.ranges.length>1)return q.none;let o,r=n.main,s=null;if(r.empty){if(!e.highlightWordAroundCursor)return q.none;let l=t.wordAt(r.head);if(!l)return q.none;s=t.charCategorizer(r.head),o=t.sliceDoc(l.from,l.to)}else{let l=r.to-r.from;if(l200)return q.none;if(e.wholeWords){if(o=t.sliceDoc(r.from,r.to),s=t.charCategorizer(r.head),!eB(s,t,r.from,r.to)||!function Ire(i,e,t,n){return i(e.sliceDoc(t,t+1))==xt.Word&&i(e.sliceDoc(n-1,n))==xt.Word}(s,t,r.from,r.to))return q.none}else if(o=t.sliceDoc(r.from,r.to),!o)return q.none}let a=[];for(let l of i.visibleRanges){let c=new nc(t.doc,o,l.from,l.to);for(;!c.next().done;){let{from:d,to:u}=c.value;if((!s||eB(s,t,d,u))&&(r.empty&&d<=r.from&&u>=r.to?a.push(Are.range(d,u)):(d>=r.to||u<=r.from)&&a.push(Tre.range(d,u)),a.length>e.maxMatches))return q.none}}return q.set(a)}},{decorations:i=>i.decorations}),Rre=ce.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),ta=z.define({combine:i=>lr(i,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Yre(e),scrollToMatch:e=>ce.scrollIntoView(e)})});class tB{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function Dre(i){try{return new RegExp(i,Wx),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>"n"==n?"\n":"r"==n?"\r":"t"==n?"\t":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Hre(this):new Bre(this)}getCursor(e,t=0,n){let r=e.doc?e:gn.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?sc(this,r,t,n):oc(this,r,t,n)}}class iB{constructor(e){this.spec=e}}function oc(i,e,t,n){return new nc(e.doc,i.unquoted,t,n,i.caseSensitive?void 0:r=>r.toLowerCase(),i.wholeWord?function Lre(i,e){return(t,n,r,o)=>((o>t||o+r.length=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let o=oc(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function sc(i,e,t,n){return new X2(e.doc,i.search,{ignoreCase:!i.caseSensitive,test:i.wholeWord?Vre(e.charCategorizer(e.selection.main.head)):void 0},t,n)}function sg(i,e){return i.slice(pi(i,e,!1),e)}function ag(i,e){return i.slice(e,pi(i,e))}function Vre(i){return(e,t,n)=>!n[0].length||(i(sg(n.input,n.index))!=xt.Word||i(ag(n.input,n.index))!=xt.Word)&&(i(ag(n.input,n.index+n[0].length))!=xt.Word||i(sg(n.input,n.index+n[0].length))!=xt.Word)}class Hre extends iB{nextMatch(e,t,n){let r=sc(this.spec,e,n,e.doc.length).next();return r.done&&(r=sc(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let o=Math.max(t,n-1e4*r),s=sc(this.spec,e,o,n),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let o=sc(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const Pu=Be.define(),Yx=Be.define(),Ur=Wt.define({create:i=>new Kx(dg(i).create(),null),update(i,e){for(let t of e.effects)t.is(Pu)?i=new Kx(t.value.create(),i.panel):t.is(Yx)&&(i=new Kx(i.query,t.value?Xx:null));return i},provide:i=>xu.from(i,e=>e.panel)});class Kx{constructor(e,t){this.query=e,this.panel=t}}const zre=q.mark({class:"cm-searchMatch"}),jre=q.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Ure=St.fromClass(class{constructor(i){this.view=i,this.decorations=this.highlight(i.state.field(Ur))}update(i){let e=i.state.field(Ur);(e!=i.startState.field(Ur)||i.docChanged||i.selectionSet||i.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:i,panel:e}){if(!e||!i.spec.valid)return q.none;let{view:t}=this,n=new uo;for(let r=0,o=t.visibleRanges,s=o.length;ro[r+1].from-500;)l=o[++r].to;i.highlight(t.state,a,l,(c,d)=>{let u=t.state.selection.ranges.some(h=>h.from==c&&h.to==d);n.add(c,d,u?jre:zre)})}return n.finish()}},{decorations:i=>i.decorations});function Fu(i){return e=>{let t=e.state.field(Ur,!1);return t&&t.query.spec.valid?i(e,t):sB(e)}}const lg=Fu((i,{query:e})=>{let{to:t}=i.state.selection.main,n=e.nextMatch(i.state,t,t);if(!n)return!1;let r=M.single(n.from,n.to),o=i.state.facet(ta);return i.dispatch({selection:r,effects:[Zx(i,n),o.scrollToMatch(r.main,i)],userEvent:"select.search"}),oB(i),!0}),cg=Fu((i,{query:e})=>{let{state:t}=i,{from:n}=t.selection.main,r=e.prevMatch(t,n,n);if(!r)return!1;let o=M.single(r.from,r.to),s=i.state.facet(ta);return i.dispatch({selection:o,effects:[Zx(i,r),s.scrollToMatch(o.main,i)],userEvent:"select.search"}),oB(i),!0}),$re=Fu((i,{query:e})=>{let t=e.matchAll(i.state,1e3);return!(!t||!t.length||(i.dispatch({selection:M.create(t.map(n=>M.range(n.from,n.to))),userEvent:"select.search.matches"}),0))}),nB=Fu((i,{query:e})=>{let{state:t}=i,{from:n,to:r}=t.selection.main;if(t.readOnly)return!1;let o=e.nextMatch(t,n,n);if(!o)return!1;let a,l,s=[],c=[];if(o.from==n&&o.to==r&&(l=t.toText(e.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),o=e.nextMatch(t,o.from,o.to),c.push(ce.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(n).number)+"."))),o){let d=0==s.length||s[0].from>=o.to?0:o.to-o.from-l.length;a=M.single(o.from-d,o.to-d),c.push(Zx(i,o)),c.push(t.facet(ta).scrollToMatch(a.main,i))}return i.dispatch({changes:s,selection:a,effects:c,userEvent:"input.replace"}),!0}),Gre=Fu((i,{query:e})=>{if(i.state.readOnly)return!1;let t=e.matchAll(i.state,1e9).map(r=>{let{from:o,to:s}=r;return{from:o,to:s,insert:e.getReplacement(r)}});if(!t.length)return!1;let n=i.state.phrase("replaced $ matches",t.length)+".";return i.dispatch({changes:t,effects:ce.announce.of(n),userEvent:"input.replace.all"}),!0});function Xx(i){return i.state.facet(ta).createPanel(i)}function dg(i,e){var t,n,r,o,s;let a=i.selection.main,l=a.empty||a.to>a.from+100?"":i.sliceDoc(a.from,a.to);if(e&&!l)return e;let c=i.facet(ta);return new tB({search:(null!==(t=e?.literal)&&void 0!==t?t:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(n=e?.caseSensitive)&&void 0!==n?n:c.caseSensitive,literal:null!==(r=e?.literal)&&void 0!==r?r:c.literal,regexp:null!==(o=e?.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(s=e?.wholeWord)&&void 0!==s?s:c.wholeWord})}function rB(i){let e=wu(i,Xx);return e&&e.dom.querySelector("[main-field]")}function oB(i){let e=rB(i);e&&e==i.root.activeElement&&e.select()}const sB=i=>{let e=i.state.field(Ur,!1);if(e&&e.panel){let t=rB(i);if(t&&t!=i.root.activeElement){let n=dg(i.state,e.query.spec);n.valid&&i.dispatch({effects:Pu.of(n)}),t.focus(),t.select()}}else i.dispatch({effects:[Yx.of(!0),e?Pu.of(dg(i.state,e.query.spec)):Be.appendConfig.of(Qx)]});return!0},aB=i=>{let e=i.state.field(Ur,!1);if(!e||!e.panel)return!1;let t=wu(i,Xx);return t&&t.dom.contains(i.root.activeElement)&&i.focus(),i.dispatch({effects:Yx.of(!1)}),!0},qre=[{key:"Mod-f",run:sB,scope:"editor search-panel"},{key:"F3",run:lg,shift:cg,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:lg,shift:cg,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:aB,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:i,dispatch:e})=>{let t=i.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:n,to:r}=t.main,o=[],s=0;for(let a=new nc(i.doc,i.sliceDoc(n,r));!a.next().done;){if(o.length>1e3)return!1;a.value.from==n&&(s=o.length),o.push(M.range(a.value.from,a.value.to))}return e(i.update({selection:M.create(o,s),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:i=>{let e=wu(i,qx);if(!e){let t=[og.of(!0)];null==i.state.field(Q2,!1)&&t.push(Be.appendConfig.of([Q2,Ere])),i.dispatch({effects:t}),e=wu(i,qx)}return e&&e.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:i,dispatch:e})=>{let{ranges:t}=i.selection;if(t.some(o=>o.from===o.to))return(({state:i,dispatch:e})=>{let{selection:t}=i,n=M.create(t.ranges.map(r=>i.wordAt(r.head)||M.cursor(r.head)),t.mainIndex);return!n.eq(t)&&(e(i.update({selection:n})),!0)})({state:i,dispatch:e});let n=i.sliceDoc(t[0].from,t[0].to);if(i.selection.ranges.some(o=>i.sliceDoc(o.from,o.to)!=n))return!1;let r=function Pre(i,e){let{main:t,ranges:n}=i.selection,r=i.wordAt(t.head),o=r&&r.from==t.from&&r.to==t.to;for(let s=!1,a=new nc(i.doc,e,n[n.length-1].to);;){if(a.next(),!a.done){if(s&&n.some(l=>l.from==a.value.from))continue;if(o){let l=i.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}if(s)return null;a=new nc(i.doc,e,0,Math.max(0,n[n.length-1].from-1)),s=!0}}(i,n);return!!r&&(e(i.update({selection:i.selection.addRange(M.range(r.from,r.to),!1),effects:ce.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class Yre{constructor(e){this.view=e;let t=this.query=e.state.field(Ur).query.spec;function n(r,o,s){return ft("button",{class:"cm-button",name:r,onclick:o,type:"button"},s)}this.commit=this.commit.bind(this),this.searchField=ft("input",{value:t.search,placeholder:xn(e,"Find"),"aria-label":xn(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=ft("input",{value:t.replace,placeholder:xn(e,"Replace"),"aria-label":xn(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=ft("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=ft("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=ft("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=ft("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,n("next",()=>lg(e),[xn(e,"next")]),n("prev",()=>cg(e),[xn(e,"previous")]),n("select",()=>$re(e),[xn(e,"all")]),ft("label",null,[this.caseField,xn(e,"match case")]),ft("label",null,[this.reField,xn(e,"regexp")]),ft("label",null,[this.wordField,xn(e,"by word")]),...e.state.readOnly?[]:[ft("br"),this.replaceField,n("replace",()=>nB(e),[xn(e,"replace")]),n("replaceAll",()=>Gre(e),[xn(e,"replace all")])],ft("button",{name:"close",onclick:()=>aB(e),"aria-label":xn(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new tB({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Pu.of(e)}))}keydown(e){!function Xee(i,e,t){return VF(BF(i.state),e,i,t)}(this.view,e,"search-panel")?13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?cg:lg)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),nB(this.view)):e.preventDefault()}update(e){for(let t of e.transactions)for(let n of t.effects)n.is(Pu)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ta).top}}function xn(i,e){return i.state.phrase(e)}const ug=30,hg=/[\s\.,:;?!]/;function Zx(i,{from:e,to:t}){let n=i.state.doc.lineAt(e),r=i.state.doc.lineAt(t).to,o=Math.max(n.from,e-ug),s=Math.min(r,t+ug),a=i.state.sliceDoc(o,s);if(o!=n.from)for(let l=0;la.length-ug;l--)if(!hg.test(a[l-1])&&hg.test(a[l])){a=a.slice(0,l);break}return ce.announce.of(`${i.state.phrase("current match")}. ${a} ${i.state.phrase("on line")} ${n.number}.`)}const Kre=ce.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Qx=[Ur,lo.low(Ure),Kre];class lB{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=Gt(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),o=r.search(uB(e,!1));return o<0?null:{from:n+o,to:this.pos,text:r.slice(o)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function cB(i){let e=Object.keys(i).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}class dB{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function Xo(i){return i.selection.main.from}function uB(i,e){var t;let{source:n}=i,r=e&&"^"!=n[0],o="$"!=n[n.length-1];return r||o?new RegExp(`${r?"^":""}(?:${n})${o?"$":""}`,null!==(t=i.flags)&&void 0!==t?t:i.ignoreCase?"i":""):i}const Jx=co.define(),hB=new WeakMap;function Jre(i){if(!Array.isArray(i))return i;let e=hB.get(i);return e||hB.set(i,e=function Zre(i){let e=i.map(r=>"string"==typeof r?{label:r}:r),[t,n]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:function Xre(i){let e=Object.create(null),t=Object.create(null);for(let{label:r}of i){e[r[0]]=!0;for(let o=1;o{let o=r.matchBefore(n);return o||r.explicit?{from:o?o.from:r.pos,options:e,validFor:t}:null}}(i)),e}const fg=Be.define(),Lu=Be.define();class eoe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&x<=57||x>=97&&x<=122?2:x>=65&&x<=90?1:0:(A=aw(x))!=A.toLowerCase()?1:A!=A.toUpperCase()?2:0;(!v||1==I&&g||0==w&&0!=I)&&(t[u]==x||n[u]==x&&(h=!0)?s[u++]=v:s.length&&(_=!1)),w=I,v+=Bn(x)}return u==l&&0==s[0]&&_?this.result((h?-200:0)-100,s,e):f==l&&0==m?this.ret(-200-e.length+(p==e.length?0:-100),[0,p]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):f==l?this.ret(-900-e.length,[m,p]):u==l?this.result((h?-200:0)-100-700+(_?0:-1100),s,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}result(e,t,n){let r=[],o=0;for(let s of t){let a=s+(this.astral?Bn(gi(n,s)):1);o&&r[o-1]==s?r[o-1]=a:(r[o++]=s,r[o++]=a)}return this.ret(e-n.length,r)}}class toe{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.lengthlr(i,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:ioe,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>fB(e(n),t(n)),optionClass:(e,t)=>n=>fB(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function fB(i,e){return i?e?i+" "+e:i:e}function ioe(i,e,t,n,r,o){let d,u,s=i.textDirection==ot.RTL,a=s,l=!1,c="top",h=e.left-r.left,f=r.right-e.right,m=n.right-n.left,p=n.bottom-n.top;if(a&&h=p||v>e.top?d=t.bottom-e.top:(c="bottom",d=e.bottom-t.top)}return{style:`${c}: ${d/((e.bottom-e.top)/o.offsetHeight)}px; max-width: ${u/((e.right-e.left)/o.offsetWidth)}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":a?"left":"right")}}function eC(i,e,t){if(i<=t)return{from:0,to:i};if(e<0&&(e=0),e<=i>>1){let r=Math.floor(e/t);return{from:r*t,to:(r+1)*t}}let n=Math.floor((i-e)/t);return{from:i-(n+1)*t,to:i-n*t}}class roe{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:o,selected:s}=r.open,a=e.state.facet(vi);this.optionContent=function noe(i){let e=i.addToOptions.slice();return i.icons&&e.push({render(t){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),t.type&&n.classList.add(...t.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(t,n,r,o){let s=document.createElement("span");s.className="cm-completionLabel";let a=t.displayLabel||t.label,l=0;for(let c=0;cl&&s.appendChild(document.createTextNode(a.slice(l,d)));let h=s.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(a.slice(d,u))),h.className="cm-completionMatchedText",l=u}return lt.position-n.position).map(t=>t.render)}(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=eC(o.length,s,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:c}=e.state.field(t).open;for(let u,d=l.target;d&&d!=this.dom;d=d.parentNode)if("LI"==d.nodeName&&(u=/-(\d+)$/.exec(d.id))&&+u[1]{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(vi).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:Lu.of(null)})}),this.showOptions(o,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:o,selected:s,disabled:a}=n.open;(!r.open||r.open.options!=o)&&(this.range=eC(o.length,s,e.state.facet(vi).maxRenderedOptions),this.showOptions(o,n.id)),this.updateSel(),a!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of t.split(" "))n&&this.dom.classList.add(n);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=eC(t.options.length,t.selected,this.view.state.facet(vi).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let o="string"==typeof r?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then(s=>{s&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(s,n)}).catch(s=>tn(this.view.state,s,"completion info")):this.addInfoPane(o,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:o}=e;n.appendChild(r),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return t&&function soe(i,e){let t=i.getBoundingClientRect(),n=e.getBoundingClientRect(),r=t.height/i.offsetHeight;n.topt.bottom&&(i.scrollTop+=(n.bottom-t.bottom)/r)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),o=this.space;if(!o){let s=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return r.top>Math.min(o.bottom,t.bottom)-10||r.bottomn.from||0==n.from)&&(o=h,"string"!=typeof c&&c.header?r.appendChild(c.header(c)):r.appendChild(document.createElement("completion-section")).textContent=h)}const d=r.appendChild(document.createElement("li"));d.id=t+"-"+s,d.setAttribute("role","option");let u=this.optionClass(a);u&&(d.className=u);for(let h of this.optionContent){let f=h(a,this.view.state,this.view,l);f&&d.appendChild(f)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.tonew roe(t,i,e)}function mB(i){return 100*(i.boost||0)+(i.apply?10:0)+(i.info?5:0)+(i.type?1:0)}class ac{constructor(e,t,n,r,o,s){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=o,this.disabled=s}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new ac(this.options,pB(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,o){let s=function aoe(i,e){let t=[],n=null,r=c=>{t.push(c);let{section:d}=c.completion;if(d){n||(n=[]);let u="string"==typeof d?d:d.name;n.some(h=>h.name==u)||n.push("string"==typeof d?{name:u}:d)}},o=e.facet(vi);for(let c of i)if(c.hasResult()){let d=c.result.getMatch;if(!1===c.result.filter)for(let u of c.result.options)r(new dB(u,c.source,d?d(u):[],1e9-t.length));else{let h,u=e.sliceDoc(c.from,c.to),f=o.filterStrict?new toe(u):new eoe(u);for(let m of c.result.options)if(h=f.match(m.label)){let p=m.displayLabel?d?d(m,h.matched):[]:h.matched;r(new dB(m,c.source,p,h.score+(m.boost||0)))}}}if(n){let c=Object.create(null),d=0,u=(h,f)=>{var m,p;return(null!==(m=h.rank)&&void 0!==m?m:1e9)-(null!==(p=f.rank)&&void 0!==p?p:1e9)||(h.nameu.score-d.score||l(d.completion,u.completion))){let d=c.completion;!a||a.label!=d.label||a.detail!=d.detail||null!=a.type&&null!=d.type&&a.type!=d.type||a.apply!=d.apply||a.boost!=d.boost?s.push(c):mB(c.completion)>mB(a)&&(s[s.length-1]=c),a=c.completion}return s}(e,t);if(!s.length)return r&&e.some(l=>1==l.state)?new ac(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let a=t.facet(vi).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){let l=r.options[r.selected].completion;for(let c=0;cc.hasResult()?Math.min(l,c.from):l,1e8),create:hoe,above:o.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(e){return new ac(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class mg{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new mg(doe,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(vi),o=(n.override||t.languageDataAt("autocomplete",Xo(t)).map(Jre)).map(a=>(this.active.find(c=>c.source==a)||new qi(a,this.active.some(c=>0!=c.state)?1:0)).update(e,n));o.length==this.active.length&&o.every((a,l)=>a==this.active[l])&&(o=this.active);let s=this.open;s&&e.docChanged&&(s=s.map(e.changes)),e.selection||o.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!function loe(i,e){if(i==e)return!0;for(let t=0,n=0;;){for(;t1==a.state)&&(s=null),!s&&o.every(a=>1!=a.state)&&o.some(a=>a.hasResult())&&(o=o.map(a=>a.hasResult()?new qi(a.source,0):a));for(let a of e.effects)a.is(iC)&&(s=s&&s.setSelected(a.value,this.id));return o==this.active&&s==this.open?this:new mg(o,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:coe}}const coe={"aria-autocomplete":"list"};function pB(i,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":i};return e>-1&&(t["aria-activedescendant"]=i+"-"+e),t}const doe=[];function tC(i,e){if(i.isUserEvent("input.complete")){let t=i.annotation(Jx);if(t&&e.activateOnCompletion(t))return"input"}return i.isUserEvent("input.type")?"input":i.isUserEvent("delete.backward")?"delete":null}class qi{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=tC(e,t),r=this;n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new qi(r.source,0));for(let o of e.effects)if(o.is(fg))r=new qi(r.source,1,o.value?Xo(e.state):-1);else if(o.is(Lu))r=new qi(r.source,0);else if(o.is(gB))for(let s of o.value)s.source==r.source&&(r=s);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new qi(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(Xo(e.startState))?new qi(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new qi(this.source,this.state,e.mapPos(this.explicitPos))}}class lc extends qi{constructor(e,t,n,r,o){super(e,2,t),this.result=n,this.from=r,this.to=o}hasResult(){return!0}handleUserEvent(e,t,n){var r;let o=this.result;o.map&&!e.changes.empty&&(o=o.map(o,e.changes));let s=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),l=Xo(e.state);if((this.explicitPos<0?l<=s:la||!o||"delete"==t&&Xo(e.startState)==this.from)return new qi(this.source,"input"==t&&n.activateOnTyping?1:0);let c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function uoe(i,e,t,n){if(!i)return!1;let r=e.sliceDoc(t,n);return"function"==typeof i?i(r,t,n,e):uB(i,!0).test(r)}(o.validFor,e.state,s,a)?new lc(this.source,c,o,s,a):o.update&&(o=o.update(o,s,a,new lB(e.state,l,c>=0)))?new lc(this.source,c,o,o.from,null!==(r=o.to)&&void 0!==r?r:Xo(e.state)):new qi(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new qi(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new lc(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new qi(this.source,0)}}const gB=Be.define({map:(i,e)=>i.map(t=>t.map(e))}),iC=Be.define(),oi=Wt.define({create:()=>mg.start(),update:(i,e)=>i.update(e),provide:i=>[Ap.from(i,e=>e.tooltip),ce.contentAttributes.from(i,e=>e.attrs)]});function nC(i,e){const t=e.completion.apply||e.completion.label;let n=i.state.field(oi).active.find(r=>r.source==e.source);return n instanceof lc&&("string"==typeof t?i.dispatch(Object.assign(Object.assign({},function Qre(i,e,t,n){let{main:r}=i.selection,o=t-r.from,s=n-r.from;return Object.assign(Object.assign({},i.changeByRange(a=>a!=r&&t!=n&&i.sliceDoc(a.from+o,a.from+s)!=i.sliceDoc(t,n)?{range:a}:{changes:{from:a.from+o,to:n==r.from?a.to:a.from+s,insert:e},range:M.cursor(a.from+o+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}(i.state,t,n.from,n.to)),{annotations:Jx.of(e.completion)})):t(i,e.completion,n.from,n.to),!0)}const hoe=ooe(oi,nC);function pg(i,e="option"){return t=>{let n=t.state.field(oi,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp-1?n.open.selected+r*(i?1:-1):i?0:s-1;return a<0?a="page"==e?0:s-1:a>=s&&(a="page"==e?s-1:0),t.dispatch({effects:iC.of(a)}),!0}}class goe{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const voe=St.fromClass(class{constructor(i){this.view=i,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of i.state.field(oi).active)1==e.state&&this.startQuery(e)}update(i){let e=i.state.field(oi),t=i.state.facet(vi);if(!i.selectionSet&&!i.docChanged&&i.startState.field(oi)==e)return;let n=i.transactions.some(o=>(o.selection||o.docChanged)&&!tC(o,t));for(let o=0;o50&&Date.now()-s.time>1e3){for(let a of s.context.abortListeners)try{a()}catch(l){tn(this.view.state,l)}s.context.abortListeners=null,this.running.splice(o--,1)}else s.updates.push(...i.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),i.transactions.some(o=>o.effects.some(s=>s.is(fg)))&&(this.pendingStart=!0);let r=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>1==o.state&&!this.running.some(s=>s.active.source==o.source))?setTimeout(()=>this.startUpdate(),r):-1,0!=this.composing)for(let o of i.transactions)"input"==tC(o,t)?this.composing=2:2==this.composing&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:i}=this.view,e=i.field(oi);for(let t of e.active)1==t.state&&!this.running.some(n=>n.active.source==t.source)&&this.startQuery(t)}startQuery(i){let{state:e}=this.view,t=Xo(e),n=new lB(e,t,i.explicitPos==t),r=new goe(i,n);this.running.push(r),Promise.resolve(i.source(n)).then(o=>{r.context.aborted||(r.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:Lu.of(null)}),tn(this.view.state,o)})}scheduleAccept(){this.running.every(i=>void 0!==i.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(vi).updateSyncTime))}accept(){var i;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(vi);for(let n=0;ns.source==r.active.source);if(o&&1==o.state)if(null==r.done){let s=new qi(r.active.source,0);for(let a of r.updates)s=s.update(a,t);1!=s.state&&e.push(s)}else this.startQuery(o)}e.length&&this.view.dispatch({effects:gB.of(e)})}},{eventHandlers:{blur(i){let e=this.view.state.field(oi,!1);if(e&&e.tooltip&&this.view.state.facet(vi).closeOnBlur){let t=e.open&&JF(this.view,e.open.tooltip);(!t||!t.dom.contains(i.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Lu.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:fg.of(!1)}),20),this.composing=0}}}),yoe="object"==typeof navigator&&/Win/.test(navigator.platform),woe=lo.highest(ce.domEventHandlers({keydown(i,e){let t=e.state.field(oi,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||i.key.length>1||i.ctrlKey&&(!yoe||!i.altKey)||i.metaKey)return!1;let n=t.open.options[t.open.selected],r=t.active.find(s=>s.source==n.source),o=n.completion.commitCharacters||r.result.commitCharacters;return o&&o.indexOf(i.key)>-1&&nC(e,n),!1}})),_B=ce.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Vu={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},na=Be.define({map:(i,e)=>e.mapPos(i,-1,Wi.TrackAfter)??void 0}),aC=new class extends Ys{};aC.startSide=1,aC.endSide=-1;const DB=Wt.define({create:()=>Ct.empty,update(i,e){if(i=i.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);i=i.update({filter:n=>n>=t.from&&n<=t.to})}for(let t of e.effects)t.is(na)&&(i=i.update({add:[aC.range(t.value,t.value+1)]}));return i}}),lC="()[]{}<>";function kB(i){for(let e=0;e<8;e+=2)if(lC.charCodeAt(e)==i)return lC.charAt(e+1);return aw(i<128?i:i+1)}function EB(i,e){return i.languageDataAt("closeBrackets",e)[0]||Vu}const Foe="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Loe=ce.inputHandler.of((i,e,t,n)=>{if((Foe?i.composing:i.compositionStarted)||i.state.readOnly)return!1;let r=i.state.selection.main;if(n.length>2||2==n.length&&1==Bn(gi(n,0))||e!=r.from||t!=r.to)return!1;let o=function Voe(i,e){let t=EB(i,i.selection.main.head),n=t.brackets||Vu.brackets;for(let r of n){let o=kB(gi(r,0));if(e==r)return o==r?Uoe(i,r,n.indexOf(r+r+r)>-1,t):zoe(i,r,o,t.before||Vu.before);if(e==o&&SB(i,i.selection.main.from))return joe(i,0,o)}return null}(i.state,n);return!!o&&(i.dispatch(o),!0)}),Boe=[{key:"Backspace",run:({state:i,dispatch:e})=>{if(i.readOnly)return!1;let n=EB(i,i.selection.main.head).brackets||Vu.brackets,r=null,o=i.changeByRange(s=>{if(s.empty){let a=function Hoe(i,e){let t=i.sliceString(e-2,e);return Bn(gi(t,0))==t.length?t:t.slice(1)}(i.doc,s.head);for(let l of n)if(l==a&&gg(i.doc,s.head)==kB(gi(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:M.cursor(s.head-l.length)}}return{range:r=s}});return r||e(i.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function SB(i,e){let t=!1;return i.field(DB).between(0,i.doc.length,n=>{n==e&&(t=!0)}),t}function gg(i,e){let t=i.sliceString(e,e+2);return t.slice(0,Bn(gi(t,0)))}function zoe(i,e,t,n){let r=null,o=i.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:t,from:s.to}],effects:na.of(s.to+e.length),range:M.range(s.anchor+e.length,s.head+e.length)};let a=gg(i.doc,s.head);return!a||/\s/.test(a)||n.indexOf(a)>-1?{changes:{insert:e+t,from:s.head},effects:na.of(s.head+e.length),range:M.cursor(s.head+e.length)}:{range:r=s}});return r?null:i.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function joe(i,e,t){let n=null,r=i.changeByRange(o=>o.empty&&gg(i.doc,o.head)==t?{changes:{from:o.head,to:o.head+t.length,insert:t},range:M.cursor(o.head+t.length)}:n={range:o});return n?null:i.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Uoe(i,e,t,n){let r=n.stringPrefixes||Vu.stringPrefixes,o=null,s=i.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:na.of(a.to+e.length),range:M.range(a.anchor+e.length,a.head+e.length)};let d,l=a.head,c=gg(i.doc,l);if(c==e){if(MB(i,l))return{changes:{insert:e+e,from:l},effects:na.of(l+e.length),range:M.cursor(l+e.length)};if(SB(i,l)){let h=t&&i.sliceDoc(l,l+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+h.length,insert:h},range:M.cursor(l+h.length)}}}else{if(t&&i.sliceDoc(l-2*e.length,l)==e+e&&(d=TB(i,l-2*e.length,r))>-1&&MB(i,d))return{changes:{insert:e+e+e+e,from:l},effects:na.of(l+e.length),range:M.cursor(l+e.length)};if(i.charCategorizer(l)(c)!=xt.Word&&TB(i,l,r)>-1&&!function $oe(i,e,t,n){let r=Gt(i).resolveInner(e,-1),o=n.reduce((s,a)=>Math.max(s,a.length),0);for(let s=0;s<5;s++){let a=i.sliceDoc(r.from,Math.min(r.to,r.from+t.length+o)),l=a.indexOf(t);if(!l||l>-1&&n.indexOf(a.slice(0,l))>-1){let d=r.firstChild;for(;d&&d.from==r.from&&d.to-d.from>t.length+l;){if(i.sliceDoc(d.to-t.length,d.to)==t)return!1;d=d.firstChild}return!0}let c=r.to==e&&r.parent;if(!c)break;r=c}return!1}(i,l,e,r))return{changes:{insert:e+e,from:l},effects:na.of(l+e.length),range:M.cursor(l+e.length)}}return{range:o=a}});return o?null:i.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function MB(i,e){let t=Gt(i).resolveInner(e+1);return t.parent&&t.from==e}function TB(i,e,t){let n=i.charCategorizer(e);if(n(i.sliceDoc(e-1,e))!=xt.Word)return e;for(let r of t){let o=e-r.length;if(i.sliceDoc(o,e)==r&&n(i.sliceDoc(o-1,o))!=xt.Word)return o}return-1}const AB=[{key:"Ctrl-Space",run:i=>!!i.state.field(oi,!1)&&(i.dispatch({effects:fg.of(!0)}),!0)},{key:"Escape",run:i=>{let e=i.state.field(oi,!1);return!(!e||!e.active.some(t=>0!=t.state)||(i.dispatch({effects:Lu.of(null)}),0))}},{key:"ArrowDown",run:pg(!0)},{key:"ArrowUp",run:pg(!1)},{key:"PageDown",run:pg(!0,"page")},{key:"PageUp",run:pg(!1,"page")},{key:"Enter",run:i=>{let e=i.state.field(oi,!1);return!(i.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampi.facet(vi).defaultKeymap?[AB]:[]));class qoe{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class ra{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=e,o=n.facet(uc).markerFilter;o&&(r=o(r,n));let s=q.set(r.map(a=>a.from==a.to||a.from==a.to-1&&n.doc.lineAt(a.from).to==a.from?q.widget({widget:new Joe(a),diagnostic:a}).range(a.from):q.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity+(a.markClass?" "+a.markClass:"")},diagnostic:a,inclusive:!0}).range(a.from,a.to)),!0);return new ra(s,t,dc(s))}}function dc(i,e=null,t=0){let n=null;return i.between(t,1e9,(r,o,{spec:s})=>{if(!e||s.diagnostic==e)return n=new qoe(r,o,s.diagnostic),!1}),n}function RB(i,e){return i.field(Oi,!1)?e:e.concat(Be.appendConfig.of($B))}const _g=Be.define(),cC=Be.define(),NB=Be.define(),Oi=Wt.define({create:()=>new ra(q.none,null,null),update(i,e){if(e.docChanged&&i.diagnostics.size){let t=i.diagnostics.map(e.changes),n=null,r=i.panel;if(i.selected){let o=e.changes.mapPos(i.selected.from,1);n=dc(t,i.selected.diagnostic,o)||dc(t,null,o)}!t.size&&r&&e.state.facet(uc).autoPanel&&(r=null),i=new ra(t,r,n)}for(let t of e.effects)if(t.is(_g)){let n=e.state.facet(uc).autoPanel?t.value.length?Hu.open:null:i.panel;i=ra.init(t.value,n,e.state)}else t.is(cC)?i=new ra(i.diagnostics,t.value?Hu.open:null,i.selected):t.is(NB)&&(i=new ra(i.diagnostics,i.panel,t.value));return i},provide:i=>[xu.from(i,e=>e.panel),ce.decorations.from(i,e=>e.diagnostics)]}),Yoe=q.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function Koe(i,e,t){let{diagnostics:n}=i.state.field(Oi),r=[],o=2e8,s=0;n.between(e-(t<0?1:0),e+(t>0?1:0),(l,c,{spec:d})=>{e>=l&&e<=c&&(l==c||(e>l||t>0)&&(e({dom:PB(i,r)})}:null}function PB(i,e){return ft("ul",{class:"cm-tooltip-lint"},e.map(t=>VB(i,t,!1)))}const FB=i=>{let e=i.state.field(Oi,!1);return!(!e||!e.panel||(i.dispatch({effects:cC.of(!1)}),0))},Qoe=[{key:"Mod-Shift-m",run:i=>{let e=i.state.field(Oi,!1);(!e||!e.panel)&&i.dispatch({effects:RB(i.state,[cC.of(!0)])});let t=wu(i,Hu.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:i=>{let e=i.state.field(Oi,!1);if(!e)return!1;let t=i.state.selection.main,n=e.diagnostics.iter(t.to+1);return!(!n.value&&(n=e.diagnostics.iter(0),!n.value||n.from==t.from&&n.to==t.to)||(i.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),0))}}],uc=z.define({combine:i=>Object.assign({sources:i.map(e=>e.source).filter(e=>null!=e)},lr(i.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function BB(i){let e=[];if(i)e:for(let{name:t}of i){for(let n=0;no.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function VB(i,e,t){var n;let r=t?BB(e.actions):[];return ft("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},ft("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(i):e.message),null===(n=e.actions)||void 0===n?void 0:n.map((o,s)=>{let a=!1,l=h=>{if(h.preventDefault(),a)return;a=!0;let f=dc(i.state.field(Oi).diagnostics,e);f&&o.apply(i,f.from,f.to)},{name:c}=o,d=r[s]?c.indexOf(r[s]):-1,u=d<0?c:[c.slice(0,d),ft("u",c.slice(d,d+1)),c.slice(d+1)];return ft("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${c}${d<0?"":` (access key "${r[s]})"`}.`},u)}),e.source&&ft("div",{class:"cm-diagnosticSource"},e.source))}class Joe extends Or{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return ft("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class HB{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=VB(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Hu{constructor(e){this.view=e,this.items=[],this.list=ft("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:r=>{if(27==r.keyCode)FB(this.view),this.view.focus();else if(38==r.keyCode||33==r.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==r.keyCode||34==r.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==r.keyCode)this.moveSelection(0);else if(35==r.keyCode)this.moveSelection(this.items.length-1);else if(13==r.keyCode)this.view.focus();else{if(!(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:o}=this.items[this.selectedIndex],s=BB(o.actions);for(let a=0;a{for(let o=0;oFB(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(Oi).selected;if(!e)return-1;for(let t=0;t{let d,c=-1;for(let u=n;un&&(this.items.splice(n,c-n),r=!0)),t&&d.diagnostic==t.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),o=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),n++});n({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:a})=>{let l=a.height/this.list.offsetHeight;s.topa.bottom&&(this.list.scrollTop+=(s.bottom-a.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let n=e;e=n.nextSibling,n.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let n=dc(this.view.state.field(Oi).diagnostics,this.items[e].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:NB.of(n)})}static open(e){return new Hu(e)}}function vg(i){return function bg(i,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(i)}')`}(``,'width="6" height="3"')}const ese=ce.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:vg("#d11")},".cm-lintRange-warning":{backgroundImage:vg("orange")},".cm-lintRange-info":{backgroundImage:vg("#999")},".cm-lintRange-hint":{backgroundImage:vg("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),$B=[Oi,ce.decorations.compute([Oi],i=>{let{selected:e,panel:t}=i.field(Oi);return e&&t&&e.from!=e.to?q.set([Yoe.range(e.from,e.to)]):q.none}),Fte(Koe,{hideOn:function OB(i,e){let t=e.pos,n=e.end||t,r=i.state.facet(uc).hideOn(i,t,n);if(null!=r)return r;let o=i.startState.doc.lineAt(e.pos);return!(!i.effects.some(s=>s.is(_g))&&!i.changes.touchesRange(o.from,Math.max(o.to,n)))}}),ese],ase=[function $te(i={}){return[Xl.of(i),nL(),Ute]}(),function qte(){return Gte}(),function hte(i={}){return[Sp.of(i),YF||(YF=St.fromClass(class{constructor(i){this.view=i,this.decorations=q.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(i.state.facet(Sp)),this.decorations=this.decorator.createDeco(i)}makeDecorator(i){return new tx({regexp:i.specialChars,decoration:(e,t,n)=>{let{doc:r}=t.state,o=gi(e[0],0);if(9==o){let s=r.lineAt(n),a=t.state.tabSize,l=Ul(s.text,a,n-s.from);return q.replace({widget:new _te((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=q.replace({widget:new gte(i,o)}))},boundary:i.replaceTabs?void 0:/[^]/})}update(i){let e=i.state.facet(Sp);i.startState.facet(Sp)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(i.view)):this.decorations=this.decorator.updateDeco(i,this.decorations)}},{decorations:i=>i.decorations}))]}(),function Dne(i={}){return[Fx,u2.of(i),ce.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?h2:"historyRedo"==e.inputType?Lx:null;return!!n&&(e.preventDefault(),n(t))}})]}(),function Uie(i={}){let e=Object.assign(Object.assign({},jie),i),t=new kx(e,!0),n=new kx(e,!1),r=St.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(qo)!=s.state.facet(qo)||s.startState.field(Yo,!1)!=s.state.field(Yo,!1)||Gt(s.startState)!=Gt(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let a=new uo;for(let l of s.viewportLineBlocks){let c=Iu(s.state,l.from,l.to)?n:Tu(s.state,l.from,l.to)?t:null;c&&a.add(l.from,l.from,c)}return a.finish()}}),{domEventHandlers:o}=e;return[r,iL({class:"cm-foldGutter",markers(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||Ct.empty},initialSpacer:()=>new kx(e,!1),domEventHandlers:Object.assign(Object.assign({},o),{click:(s,a,l)=>{if(o.click&&o.click(s,a,l))return!0;let c=Iu(s.state,a.from,a.to);if(c)return s.dispatch({effects:ec.of(c)}),!0;let d=Tu(s.state,a.from,a.to);return!!d&&(s.dispatch({effects:Au.of(d)}),!0)}})}),jL()]}(),function ite(i={}){return[Kl.of(i),nte,rte,ote,HP.of(!0)]}(),function ate(){return[bu,ste]}(),gn.allowMultipleSelections.of(!0),function Mie(){return gn.transactionFilter.of(i=>{if(!i.docChanged||!i.isUserEvent("input.type")&&!i.isUserEvent("input.complete"))return i;let e=i.startState.languageDataAt("indentOnInput",i.startState.selection.main.head);if(!e.length)return i;let t=i.newDoc,{head:n}=i.newSelection.main,r=t.lineAt(n);if(n>r.from+200)return i;let o=t.sliceString(r.from,n);if(!e.some(c=>c.test(o)))return i;let{state:s}=i,a=-1,l=[];for(let{head:c}of s.selection.ranges){let d=s.doc.lineAt(c);if(d.from==a)continue;a=d.from;let u=Wp(s,d.from);if(null==u)continue;let h=/^\s*/.exec(d.text)[0],f=Jl(s,u);h!=f&&l.push({from:d.from,to:d.from+h.length,insert:f})}return l.length?[i,{changes:l,sequential:!0}]:i})}(),function Wie(i,e){let n,t=[qie];return i instanceof qp&&(i.module&&t.push(ce.styleModule.of(i.module)),n=i.themeType),t.push(e?.fallback?WL.of(i):n?Ex.computeN([ce.darkTheme],r=>r.facet(ce.darkTheme)==("dark"==n)?[i]:[]):Ex.of(i)),t}(Yie,{fallback:!0}),function ene(i={}){return[YL.of(i),Jie]}(),function Poe(){return[Loe,DB]}(),function Woe(i={}){return[woe,oi,vi.of(i),voe,Goe,_B]}(),function kte(i){let e=i?.eventFilter||(t=>t.altKey&&0==t.button);return ce.mouseSelectionStyle.of((t,n)=>e(n)?function Dte(i,e){let t=XF(i,e),n=i.state.selection;return t?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(o);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},n=n.map(r.changes)}},get(r,o,s){let a=XF(i,r);if(!a)return n;let l=function xte(i,e,t){let n=Math.min(e.line,t.line),r=Math.max(e.line,t.line),o=[];if(e.off>rx||t.off>rx||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let l=n;l<=r;l++){let c=i.doc.line(l);c.length<=a&&o.push(M.range(c.from+s,c.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let l=n;l<=r;l++){let c=i.doc.line(l),d=xw(c.text,s,i.tabSize,!0);if(d<0)o.push(M.cursor(c.to));else{let u=xw(c.text,a,i.tabSize);o.push(M.range(c.from+d,c.from+u))}}}return o}(i.state,t,a);return l.length?M.create(s?l.concat(n.ranges):l):n}}:null}(t,n):null)}(),function Mte(i={}){let[e,t]=Ete[i.key||"Alt"],n=St.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[n,ce.contentAttributes.of(r=>{var o;return null!==(o=r.plugin(n))&&void 0!==o&&o.isDown?Ste:null})]}(),function bte(){return yte}(),function Mre(i){let e=[Rre,Ore];return i&&e.push(J2.of(i)),e}(),kp.of([...Boe,...Cre,...qre,...Rne,...Vie,...AB,...Qoe])];class wg{constructor(e,t,n,r,o,s,a,l,c,d=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=d,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new wg(e,[],t,n,n,0,[],0,r?new WB(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:o}=this.p;this.reducePos=2e3&&(null===(t=this.p.parser.nodeSet.types[r])||void 0===t||!t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizea;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,t,n,r=4,o=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(t==n)return;if(s.buffer[a-2]>=t)return void(s.buffer[a-2]=n)}}if(o&&this.pos!=n){let s=this.buffer.length;if(s>0&&0!=this.buffer[s-4])for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,r>4&&(r-=4);this.buffer[s]=e,this.buffer[s+1]=t,this.buffer[s+2]=n,this.buffer[s+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{let o=e,{parser:s}=this.p;(r>this.pos||t<=s.maxNode)&&(this.pos=r,s.stateFlag(o,1)||(this.reducePos=r)),this.pushState(o,n),this.shiftContext(t,n),t<=s.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new wg(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new lse(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(!(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let r=[];for(let s,o=0;o1&l&&a==s)||r.push(t[o],s)}t=r}let n=[];for(let r=0;r>19);if(o<0||e.getGoto(this.stack[o],65535&t,!1)<0){let s=this.findForcedReduction();if(null==s)return!1;t=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,o)=>{if(!t.includes(r))return t.push(r),e.allActions(r,s=>{if(!(393216&s))if(65536&s){let a=(s>>19)-o;if(a>1){let l=65535&s,c=this.stack.length-3*a;if(c>=0&&e.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=n(s,o+1);if(null!=a)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class WB{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class lse{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class xg{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new xg(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new xg(this.stack,this.pos,this.index)}}function zu(i,e=Uint16Array){if("string"!=typeof i)return i;let t=null;for(let n=0,r=0;n=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}t?t[r++]=o:t=new e(o)}return t}class Cg{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const GB=new Cg;class cse{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=GB,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,o=this.pos+e;for(;on.to:o>=n.to;){if(r==this.ranges.length-1)return null;let s=this.ranges[++r];o+=s.from-n.to,n=s}return o}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let n,r,t=this.chunkOff+e;if(t>=0&&t=this.chunk2Pos&&na.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=GB,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class hc{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;!function qB(i,e,t,n,r,o){let s=0,a=1<0){let m=i[f];if(l.allows(m)&&(-1==e.token.value||e.token.value==m||use(m,e.token.value,r,o))){e.acceptToken(m);break}}let d=e.next,u=0,h=i[s+2];if(!(e.next<0&&h>u&&65535==i[c+3*h-3])){for(;u>1,m=c+f+(f<<1);if(d=(i[m+1]||65536))){s=i[m+2],e.advance();continue e}u=f+1}}break}s=i[c+3*h-1]}}(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}function YB(i,e,t){for(let r,n=e;65535!=(r=i[n]);n++)if(r==t)return n-e;return-1}function use(i,e,t,n){let r=YB(t,n,e);return r<0||YB(t,n,i)e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(i.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:i.length}}class hse{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?KB(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?KB(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(o instanceof Ke){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+o.length}}}class fse{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new Cg)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:o}=r,s=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let c=0;cu.end+25&&(l=Math.max(u.lookAhead,l)),0!=u.value)){let h=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!d.extend&&(n=u,t>h))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new Cg,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Cg,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:o}=n.p;for(let s=0;s=0&&n.p.parser.dialect.allows(a>>1)){1&a?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let o=0;o4*e.bufferLength?new hse(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let r,o,e=this.stacks,t=this.minStackPos,n=this.stacks=[];if(this.bigReductionCount>300&&1==e.length){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;st)n.push(a);else{if(this.advanceStack(a,n,e))continue;{r||(r=[],o=[]),r.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!n.length){let s=r&&function gse(i){let e=null;for(let t of i){let n=t.p.stoppedAt;(t.pos==t.p.stream.end||null!=n&&t.pos>n)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.scorethis.stoppedAt?r[0]:this.runRecovery(r,o,n);if(s)return Cn&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=1==this.recovering?1:3*this.recovering;if(n.length>s)for(n.sort((a,l)=>l.score-a.score);n.length>s;)n.pop();n.some(a=>a.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let s=0;s500&&c.buffer.length>500){if(!((a.score-c.score||a.buffer.length-c.buffer.length)>0)){n.splice(s--,1);continue e}n.splice(l--,1)}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let s=1;s ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,d=c?e.curContext.hash:0;for(let u=this.fragments.nodeAt(r);u;){let h=this.parser.nodeSet.types[u.type.id]==u.type?o.getGoto(e.state,u.type.id):-1;if(h>-1&&u.length&&(!c||(u.prop(ve.contextHash)||0)==d))return e.useNode(u,h),Cn&&console.log(s+this.stackID(e)+` (via reuse of ${o.getName(u.type.id)})`),!0;if(!(u instanceof Ke)||0==u.children.length||u.positions[0]>0)break;let f=u.children[0];if(!(f instanceof Ke&&0==u.positions[0]))break;u=f}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),Cn&&console.log(s+this.stackID(e)+` (via always-reduce ${o.getName(65535&a)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let c=0;cr?t.push(m):n.push(m)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return XB(e,t),!0}}runRecovery(e,t,n){let r=null,o=!1;for(let s=0;s ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),Cn&&console.log(d+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let u=a.split(),h=d;for(let f=0;u.forceReduce()&&f<10&&(Cn&&console.log(h+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,n));f++)Cn&&(h=this.stackID(u)+" -> ");for(let f of a.recoverByInsert(l))Cn&&console.log(d+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,n);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),Cn&&console.log(d+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),XB(a,n)):(!r||r.scoree.topRules[a][1]),r=[];for(let a=0;a=0)o(d,l,a[c++]);else{let u=a[c+-d];for(let h=-d;h>0;h--)o(a[c++],l,u);c++}}}this.nodeSet=new Pp(t.map((a,l)=>Ti.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:r[l],top:n.indexOf(l)>-1,error:0==l,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=dL;let s=zu(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a"number"==typeof a?new hc(s,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new mse(this,e,t,n);for(let o of this.wrappers)r=o(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let o=r[t+1];;){let s=r[o++],a=1&s,l=r[o++];if(a&&n)return l;for(let c=o+(s>>1);o0}validAction(e,t){return!!this.allActions(e,n=>n==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let o=this.stateSlot(e,1);null==r;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])break;o=po(this.data,o+2)}r=t(po(this.data,o+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=po(this.data,n+2)}if(!(1&this.data[n+2])){let r=this.data[n+1];t.some((o,s)=>1&s&&o==r)||t.push(this.data[n],r)}}return t}configure(e){let t=Object.assign(Object.create(Dg.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let r=e.tokenizers.find(o=>o.from==n);return r?r.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,r)=>{let o=e.specializers.find(a=>a.from==n.external);if(!o)return n;let s=Object.assign(Object.assign({},n),{external:o.to});return t.specializers[r]=ZB(s),s})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let o of e.split(" ")){let s=t.indexOf(o);s>=0&&(n[s]=!0)}let r=null;for(let o=0;oi.external(t,n)<<1|e}return i.get}const _se=CL({String:F.string,Number:F.number,"True False":F.bool,PropertyName:F.propertyName,Null:F.null,",":F.separator,"[ ]":F.squareBracket,"{ }":F.brace}),bse=Dg.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26a0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[_se],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),yse=$p.define({name:"json",parser:bse.configure({props:[FL.add({Object:VL({except:/^\s*\}/}),Array:VL({except:/^\s*\]/})}),HL.add({"Object Array":function Aie(i){let e=i.firstChild,t=i.lastChild;return e&&e.to{class i{get text(){return this._text}set text(t){this._text=t,null!=this.editor&&this.editor.dispatch({changes:{from:0,to:this.editor.state.doc.length,insert:t}})}ngAfterViewInit(){this.editor=new ce({doc:this.text,extensions:[ase,new yie(yse),gn.readOnly.of(!0)],parent:this.codemirrorhost.nativeElement})}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-editor"]],viewQuery:function(n,r){if(1&n&&Et(xse,5),2&n){let o;se(o=ae())&&(r.codemirrorhost=o.first)}},inputs:{text:"text"},outputs:{editor:"editor"},standalone:!0,features:[Oe],decls:2,vars:0,consts:[["codemirrorhost",""],[1,"codemirrorhost"]],template:function(n,r){1&n&&Ae(0,"div",1,0)},styles:[".cm-editor{height:100%}.cm-scroller{overflow:auto}.codemirrorhost{height:100%}\n"],encapsulation:2})}return i})(),Ese=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[VR,Ve,VR,Ve]})}return i})();const Sse=["*"],Ose=new S("MAT_CARD_CONFIG");let fC=(()=>{class i{constructor(t){this.appearance=t?.appearance||"raised"}static#e=this.\u0275fac=function(n){return new(n||i)(b(Ose,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,r){2&n&&ye("mat-mdc-card-outlined","outlined"===r.appearance)("mdc-card--outlined","outlined"===r.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[Oe],ngContentSelectors:Sse,decls:1,vars:0,template:function(n,r){1&n&&(At(),X(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return i})(),mC=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"],standalone:!0})}return i})(),kg=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve,Ls,Ve]})}return i})();const eV=Vs({passive:!0});let Pse=(()=>{class i{constructor(t,n){this._platform=t,this._ngZone=n,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return $d;const n=ro(t),r=this._monitoredElements.get(n);if(r)return r.subject;const o=new Z,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||n.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&n.classList.contains(s)&&(n.classList.remove(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(n.classList.add(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",a,eV),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",a,eV)}}),o}stopMonitoring(t){const n=ro(t),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((t,n)=>this.stopMonitoring(n))}static#e=this.\u0275fac=function(n){return new(n||i)(C(wt),C(U))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Fse=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({})}return i})(),tV=(()=>{class i{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(n){return new(n||i)(b(Ds),b(te))};static#t=this.\u0275dir=R({type:i})}return i})(),sa=(()=>{class i extends tV{static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=kt(i)))(r||i)}})();static#t=this.\u0275dir=R({type:i,features:[me]})}return i})();const Un=new S(""),Bse={provide:Un,useExisting:Je(()=>aa),multi:!0},Hse=new S("");let aa=(()=>{class i extends tV{constructor(t,n,r){super(t,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Vse(){const i=Io()?Io().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(n){return new(n||i)(b(Ds),b(te),b(Hse,8))};static#t=this.\u0275dir=R({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&J("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Ie([Bse]),me]})}return i})();function Zo(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function nV(i){return null!=i&&"number"==typeof i.length}const si=new S(""),Qo=new S(""),zse=/^(?=.{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])?)*$/;class rV{static min(e){return function oV(i){return e=>{if(Zo(e.value)||Zo(i))return null;const t=parseFloat(e.value);return!isNaN(t)&&t{if(Zo(e.value)||Zo(i))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>i?{max:{max:i,actual:e.value}}:null}}(e)}static required(e){return function aV(i){return Zo(i.value)?{required:!0}:null}(e)}static requiredTrue(e){return function lV(i){return!0===i.value?null:{required:!0}}(e)}static email(e){return function cV(i){return Zo(i.value)||zse.test(i.value)?null:{email:!0}}(e)}static minLength(e){return function dV(i){return e=>Zo(e.value)||!nV(e.value)?null:e.value.lengthnV(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}(e)}static pattern(e){return function hV(i){if(!i)return Eg;let e,t;return"string"==typeof i?(t="","^"!==i.charAt(0)&&(t+="^"),t+=i,"$"!==i.charAt(i.length-1)&&(t+="$"),e=new RegExp(t)):(t=i.toString(),e=i),n=>{if(Zo(n.value))return null;const r=n.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(e)}static nullValidator(e){return null}static compose(e){return bV(e)}static composeAsync(e){return vV(e)}}function Eg(i){return null}function fV(i){return null!=i}function mV(i){return tm(i)?Nl(i):i}function pV(i){let e={};return i.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function gV(i,e){return e.map(t=>t(i))}function _V(i){return i.map(e=>function jse(i){return!i.validate}(e)?e:t=>e.validate(t))}function bV(i){if(!i)return null;const e=i.filter(fV);return 0==e.length?null:function(t){return pV(gV(t,e))}}function pC(i){return null!=i?bV(_V(i)):null}function vV(i){if(!i)return null;const e=i.filter(fV);return 0==e.length?null:function(t){return QR(gV(t,e).map(mV)).pipe(Vt(pV))}}function gC(i){return null!=i?vV(_V(i)):null}function yV(i,e){return null===i?[e]:Array.isArray(i)?[...i,e]:[i,e]}function wV(i){return i._rawValidators}function xV(i){return i._rawAsyncValidators}function _C(i){return i?Array.isArray(i)?i:[i]:[]}function Sg(i,e){return Array.isArray(i)?i.includes(e):i===e}function CV(i,e){const t=_C(e);return _C(i).forEach(r=>{Sg(t,r)||t.push(r)}),t}function DV(i,e){return _C(e).filter(t=>!Sg(i,t))}class kV{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=pC(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=gC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Yi extends kV{get formDirective(){return null}get path(){return null}}class $r extends kV{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class EV{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let la=(()=>{class i extends EV{constructor(t){super(t)}static#e=this.\u0275fac=function(n){return new(n||i)(b($r,2))};static#t=this.\u0275dir=R({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ye("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[me]})}return i})();const ju="VALID",Tg="INVALID",fc="PENDING",Uu="DISABLED";class mc{}class MV extends mc{constructor(e,t){super(),this.value=e,this.source=t}}class yC extends mc{constructor(e,t){super(),this.pristine=e,this.source=t}}class wC extends mc{constructor(e,t){super(),this.touched=e,this.source=t}}class Ag extends mc{constructor(e,t){super(),this.status=e,this.source=t}}class Yse extends mc{constructor(e){super(),this.source=e}}class Kse extends mc{constructor(e){super(),this.source=e}}function xC(i){return(Ig(i)?i.validators:i)||null}function CC(i,e){return(Ig(e)?e.asyncValidators:i)||null}function Ig(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}class DC{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new Z,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ju}get invalid(){return this.status===Tg}get pending(){return this.status==fc}get disabled(){return this.status===Uu}get enabled(){return this.status!==Uu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(CV(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(CV(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(DV(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(DV(e,this._rawAsyncValidators))}hasValidator(e){return Sg(this._rawValidators,e)}hasAsyncValidator(e){return Sg(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){const t=!1===this.touched;this.touched=!0;const n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched({...e,sourceControl:n}),t&&!1!==e.emitEvent&&this._events.next(new wC(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&!1!==e.emitEvent&&this._events.next(new wC(!1,n))}markAsDirty(e={}){const t=!0===this.pristine;this.pristine=!1;const n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty({...e,sourceControl:n}),t&&!1!==e.emitEvent&&this._events.next(new yC(!1,n))}markAsPristine(e={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&!1!==e.emitEvent&&this._events.next(new yC(!0,n))}markAsPending(e={}){this.status=fc;const t=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new Ag(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending({...e,sourceControl:t})}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Uu,this.errors=null,this._forEachChild(r=>{r.disable({...e,onlySelf:!0})}),this._updateValue();const n=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new MV(this.value,n)),this._events.next(new Ag(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=ju,this._forEachChild(n=>{n.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t},this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ju||this.status===fc)&&this._runAsyncValidator(n,e.emitEvent)}const t=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new MV(this.value,t)),this._events.next(new Ag(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity({...e,sourceControl:t})}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Uu:ju}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=fc,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const n=mV(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Ag(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new ie,this.statusChanges=new ie}_calculateStatus(){return this._allControlsDisabled()?Uu:this.errors?Tg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fc)?fc:this._anyControlsHaveStatus(Tg)?Tg:ju}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){const n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new yC(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new wC(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Ig(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function Xse(i){return Array.isArray(i)?pC(i):i||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function Zse(i){return Array.isArray(i)?gC(i):i||null}(this._rawAsyncValidators)}}class kC extends DC{constructor(e,t,n){super(xC(t),CC(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){(function AV(i,e,t){i._forEachChild((n,r)=>{if(void 0===t[r])throw new k(1002,"")})})(this,0,e),Object.keys(e).forEach(n=>{(function TV(i,e,t){const n=i.controls;if(!(e?Object.keys(n):n).length)throw new k(1e3,"");if(!n[t])throw new k(1001,"")})(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{const r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>!!n._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((r,o)=>{n=t(n,r,o)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}const pc=new S("CallSetDisabledState",{providedIn:"root",factory:()=>Og}),Og="always";function $u(i,e,t=Og){EC(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||"always"===t)&&e.valueAccessor.setDisabledState?.(i.disabled),function eae(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&IV(i,e)})}(i,e),function iae(i,e){const t=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}(i,e),function tae(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&IV(i,e),"submit"!==i.updateOn&&i.markAsTouched()})}(i,e),function Jse(i,e){if(e.valueAccessor.setDisabledState){const t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}(i,e)}function Ng(i,e,t=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Fg(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Pg(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function EC(i,e){const t=wV(i);null!==e.validator?i.setValidators(yV(t,e.validator)):"function"==typeof t&&i.setValidators([t]);const n=xV(i);null!==e.asyncValidator?i.setAsyncValidators(yV(n,e.asyncValidator)):"function"==typeof n&&i.setAsyncValidators([n]);const r=()=>i.updateValueAndValidity();Pg(e._rawValidators,r),Pg(e._rawAsyncValidators,r)}function Fg(i,e){let t=!1;if(null!==i){if(null!==e.validator){const r=wV(i);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==e.validator);o.length!==r.length&&(t=!0,i.setValidators(o))}}if(null!==e.asyncValidator){const r=xV(i);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==e.asyncValidator);o.length!==r.length&&(t=!0,i.setAsyncValidators(o))}}}const n=()=>{};return Pg(e._rawValidators,n),Pg(e._rawAsyncValidators,n),t}function IV(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function OV(i,e){EC(i,e)}function RV(i,e){i._syncPendingControls(),e.forEach(t=>{const n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}const aae={provide:Yi,useExisting:Je(()=>Gu)},Wu=Promise.resolve();let Gu=(()=>{class i extends Yi{constructor(t,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new ie,this.form=new kC({},pC(t),gC(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Wu.then(()=>{const n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),$u(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Wu.then(()=>{const n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Wu.then(()=>{const n=this._findContainer(t.path),r=new kC({});OV(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Wu.then(()=>{const n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){Wu.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,RV(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#e=this.\u0275fac=function(n){return new(n||i)(b(si,10),b(Qo,10),b(pc,8))};static#t=this.\u0275dir=R({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&J("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ie([aae]),me]})}return i})();function NV(i,e){const t=i.indexOf(e);t>-1&&i.splice(t,1)}function PV(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const FV=class extends DC{constructor(e=null,t,n){super(xC(t),CC(n,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ig(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=PV(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){NV(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){NV(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){PV(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},dae={provide:$r,useExisting:Je(()=>Jo)},VV=Promise.resolve();let Jo=(()=>{class i extends $r{constructor(t,n,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new FV,this._registered=!1,this.name="",this.update=new ie,this._parent=t,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=function TC(i,e){if(!e)return null;let t,n,r;return Array.isArray(e),e.forEach(o=>{o.constructor===aa?t=o:function oae(i){return Object.getPrototypeOf(i.constructor)===sa}(o)?n=o:r=o}),r||n||t||null}(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function MC(i,e){if(!i.hasOwnProperty("model"))return!1;const t=i.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){$u(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){VV.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const n=t.isDisabled.currentValue,r=0!==n&&Le(n);VV.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function Rg(i,e){return[...e.path,i]}(t,this._parent):[t]}static#e=this.\u0275fac=function(n){return new(n||i)(b(Yi,9),b(si,10),b(Qo,10),b(Un,10),b(Di,8),b(pc,8))};static#t=this.\u0275dir=R({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ie([dae]),me,ui]})}return i})();const hae={provide:Un,useExisting:Je(()=>AC),multi:!0};let AC=(()=>{class i extends sa{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=n=>{t(""==n?null:parseFloat(n))}}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=kt(i)))(r||i)}})();static#t=this.\u0275dir=R({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){1&n&&J("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[Ie([hae]),me]})}return i})();const _ae={provide:Yi,useExisting:Je(()=>qu)};let qu=(()=>{class i extends Yi{constructor(t,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ie,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Fg(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const n=this.form.get(t.path);return $u(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){Ng(t.control||null,t,!1),function sae(i,e){const t=i.indexOf(e);t>-1&&i.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this.submitted=!0,RV(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Yse(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1,this.form._events.next(new Kse(this.form))}_updateDomValue(){this.directives.forEach(t=>{const n=t.control,r=this.form.get(t.path);n!==r&&(Ng(n||null,t),(i=>i instanceof FV)(r)&&($u(r,t,this.callSetDisabledState),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const n=this.form.get(t.path);OV(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const n=this.form.get(t.path);n&&function nae(i,e){return Fg(i,e)}(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){EC(this.form,this),this._oldForm&&Fg(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(n){return new(n||i)(b(si,10),b(Qo,10),b(pc,8))};static#t=this.\u0275dir=R({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){1&n&&J("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ie([_ae]),me,ui]})}return i})(),Pae=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({})}return i})(),da=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:pc,useValue:t.callSetDisabledState??Og}]}}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Pae]})}return i})();function ur(...i){const e=zd(i),t=function UK(i,e){return"number"==typeof S0(i)?i.pop():e}(i,1/0),n=i;return n.length?1===n.length?ki(n[0]):vR(t)(Nl(n,e)):$d}class Lae extends Z{constructor(e=1/0,t=1/0,n=P0){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;t||(n.push(e),!r&&n.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let s=0;sthis._resizeSubject.next(t)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new bt(t=>{const n=this._resizeSubject.subscribe(t);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),n.unsubscribe(),this._elementObservables.delete(e)}}).pipe(Lt(t=>t.some(n=>n.target===e)),function Bae(i,e,t){let n,r=!1;return i&&"object"==typeof i?({bufferSize:n=1/0,windowTime:e=1/0,refCount:r=!1,scheduler:t}=i):n=i??1/0,eN({connector:()=>new Lae(n,e,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}({bufferSize:1,refCount:!0}),_t(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Hae=(()=>{class i{constructor(){this._observers=new Map,this._ngZone=O(U)}ngOnDestroy(){for(const[,t]of this._observers)t.destroy();this._observers.clear()}observe(t,n){const r=n?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new Vae(r)),this._observers.get(r).observe(t)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var oe=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(oe||{});const go="*";function _o(i,e){return{type:oe.Trigger,name:i,definitions:e,options:{}}}function $n(i,e=null){return{type:oe.Animate,styles:e,timings:i}}function It(i){return{type:oe.Style,styles:i,offset:null}}function Wn(i,e,t){return{type:oe.State,name:i,styles:e,options:t}}function Dn(i,e,t=null){return{type:oe.Transition,expr:i,animation:e,options:t}}function LC(i=null){return{type:oe.AnimateChild,options:i}}function BC(i,e,t=null){return{type:oe.Query,selector:i,animation:e,options:t}}class Yu{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}}class nH{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(r)})}getPosition(){const e=this.players.reduce((t,n)=>null===t||n.totalTime>t.totalTime?n:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}}const Gae=["notch"],qae=["matFormFieldNotchedOutline",""],Yae=["*"],Kae=["textField"],Xae=["iconPrefixContainer"],Zae=["textPrefixContainer"],Qae=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Jae=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function ele(i,e){1&i&&Ae(0,"span",19)}function tle(i,e){if(1&i&&(E(0,"label",18),X(1,1),pe(2,ele,1,0,"span",19),T()),2&i){const t=ge(2);H("floating",t._shouldLabelFloat())("monitorResize",t._hasOutline())("id",t._labelId),Fe("for",t._control.disableAutomaticLabeling?null:t._control.id),P(2),pt(!t.hideRequiredMarker&&t._control.required?2:-1)}}function ile(i,e){1&i&&pe(0,tle,3,5,"label",18),2&i&&pt(ge()._hasFloatingLabel()?0:-1)}function nle(i,e){1&i&&Ae(0,"div",5)}function rle(i,e){}function ole(i,e){1&i&&pe(0,rle,0,0,"ng-template",11),2&i&&(ge(2),H("ngTemplateOutlet",In(1)))}function sle(i,e){if(1&i&&(E(0,"div",7),pe(1,ole,1,1,null,11),T()),2&i){const t=ge();H("matFormFieldNotchedOutlineOpen",t._shouldLabelFloat()),P(),pt(t._forceDisplayInfixLabel()?-1:1)}}function ale(i,e){1&i&&(E(0,"div",8,2),X(2,2),T())}function lle(i,e){1&i&&(E(0,"div",9,3),X(2,3),T())}function cle(i,e){}function dle(i,e){1&i&&pe(0,cle,0,0,"ng-template",11),2&i&&(ge(),H("ngTemplateOutlet",In(1)))}function ule(i,e){1&i&&(E(0,"div",12),X(1,4),T())}function hle(i,e){1&i&&(E(0,"div",13),X(1,5),T())}function fle(i,e){1&i&&Ae(0,"div",14)}function mle(i,e){1&i&&(E(0,"div",16),X(1,6),T()),2&i&&H("@transitionMessages",ge()._subscriptAnimationState)}function ple(i,e){if(1&i&&(E(0,"mat-hint",20),be(1),T()),2&i){const t=ge(2);H("id",t._hintLabelId),P(),Rs(t.hintLabel)}}function gle(i,e){if(1&i&&(E(0,"div",17),pe(1,ple,2,2,"mat-hint",20),X(2,7),Ae(3,"div",21),X(4,8),T()),2&i){const t=ge();H("@transitionMessages",t._subscriptAnimationState),P(),pt(t.hintLabel?1:-1)}}let es=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,selectors:[["mat-label"]],standalone:!0})}return i})();const _le=new S("MatError");let ble=0,rH=(()=>{class i{constructor(){this.align="start",this.id="mat-mdc-hint-"+ble++}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,r){2&n&&(To("id",r.id),Fe("align",null),ye("mat-mdc-form-field-hint-end","end"===r.align))},inputs:{align:"align",id:"id"},standalone:!0})}return i})();const vle=new S("MatPrefix"),yle=new S("MatSuffix"),oH=new S("FloatingLabelParent");let sH=(()=>{class i{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=O(Hae),this._ngZone=O(U),this._parent=O(oH),this._resizeSubscription=new Ze}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function wle(i){if(null!==i.offsetParent)return i.scrollWidth;const t=i.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);const n=t.scrollWidth;return t.remove(),n}(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#e=this.\u0275fac=function(n){return new(n||i)(b(te))};static#t=this.\u0275dir=R({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,r){2&n&&ye("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}return i})();const aH="mdc-line-ripple--active",Lg="mdc-line-ripple--deactivating";let lH=(()=>{class i{constructor(t,n){this._elementRef=t,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,s=o.contains(Lg);"opacity"===r.propertyName&&s&&o.remove(aH,Lg)},n.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const t=this._elementRef.nativeElement.classList;t.remove(Lg),t.add(aH)}deactivate(){this._elementRef.nativeElement.classList.add(Lg)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(U))};static#t=this.\u0275dir=R({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}return i})(),cH=(()=>{class i{constructor(t,n){this._elementRef=t,this._ngZone=n,this.open=!1}ngAfterViewInit(){const t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){this._notch.nativeElement.style.width=this.open&&t?`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(U))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,r){if(1&n&&Et(Gae,5),2&n){let o;se(o=ae())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,r){2&n&&ye("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Oe],attrs:qae,ngContentSelectors:Yae,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(n,r){1&n&&(At(),Ae(0,"div",1),E(1,"div",2,0),X(3),T(),Ae(4,"div",3))},encapsulation:2,changeDetection:0})}return i})();const xle={transitionMessages:_o("transitionMessages",[Wn("enter",It({opacity:1,transform:"translateY(0%)"})),Dn("void => enter",[It({opacity:0,transform:"translateY(-5px)"}),$n("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let HC=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i})}return i})();const zC=new S("MatFormField"),Cle=new S("MAT_FORM_FIELD_DEFAULT_OPTIONS");let dH=0,gc=(()=>{class i{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=mi(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){const n=this._appearance;this._appearance=t||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,n,r,o,s,a,l,c){this._elementRef=t,this._changeDetectorRef=n,this._dir=o,this._platform=s,this._defaults=a,this._animationMode=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+dH++,this._hintLabelId="mat-mdc-hint-"+dH++,this._subscriptAnimationState="",this._destroyed=new Z,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=O(it),a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=!!a?.hideRequiredMarker,a.color&&(this.color=a.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${t.controlType}`),t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(_t(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),ur(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(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Pv(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(_t(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(t){const n=this._control?this._control.ngControl:null;return n&&n[t]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const n=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;n?t.push(n.id):this._hintLabel&&t.push(this._hintLabelId),r&&t.push(r.id)}else this._errorChildren&&t.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const t=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(t.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const n=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=n?.getBoundingClientRect().width??0,s=r?.getBoundingClientRect().width??0;t.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+s}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const t=this._elementRef.nativeElement;if(t.getRootNode){const n=t.getRootNode();return n&&n!==t}return document.documentElement.contains(t)}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(Di),b(U),b(oo),b(wt),b(Cle,8),b(ri,8),b(xe))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-form-field"]],contentQueries:function(n,r,o){if(1&n&&(gt(o,es,5),gt(o,es,7),gt(o,HC,5),gt(o,vle,5),gt(o,yle,5),gt(o,_le,5),gt(o,rH,5)),2&n){let s;se(s=ae())&&(r._labelChildNonStatic=s.first),se(s=ae())&&(r._labelChildStatic=s.first),se(s=ae())&&(r._formFieldControl=s.first),se(s=ae())&&(r._prefixChildren=s),se(s=ae())&&(r._suffixChildren=s),se(s=ae())&&(r._errorChildren=s),se(s=ae())&&(r._hintChildren=s)}},viewQuery:function(n,r){if(1&n&&(Et(Kae,5),Et(Xae,5),Et(Zae,5),Et(sH,5),Et(cH,5),Et(lH,5)),2&n){let o;se(o=ae())&&(r._textField=o.first),se(o=ae())&&(r._iconPrefixContainer=o.first),se(o=ae())&&(r._textPrefixContainer=o.first),se(o=ae())&&(r._floatingLabel=o.first),se(o=ae())&&(r._notchedOutline=o.first),se(o=ae())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,r){2&n&&ye("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===r._animationMode)("mat-form-field-appearance-fill","fill"==r.appearance)("mat-form-field-appearance-outline","outline"==r.appearance)("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary","accent"!==r.color&&"warn"!==r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[Ie([{provide:zC,useExisting:i},{provide:oH,useExisting:i}]),Oe],ngContentSelectors:Jae,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,r){if(1&n){const o=fi();At(Qae),pe(0,ile,1,1,"ng-template",null,0,Td),E(2,"div",4,1),J("click",function(a){return Ne(o),Pe(r._control.onContainerClick(a))}),pe(4,nle,1,0,"div",5),E(5,"div",6),pe(6,sle,2,2,"div",7)(7,ale,3,0,"div",8)(8,lle,3,0,"div",9),E(9,"div",10),pe(10,dle,1,1,null,11),X(11),T(),pe(12,ule,2,0,"div",12)(13,hle,2,0,"div",13),T(),pe(14,fle,1,0,"div",14),T(),E(15,"div",15),pe(16,mle,2,1,"div",16)(17,gle,5,2,"div",17),T()}if(2&n){let o;P(2),ye("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),P(2),pt(r._hasOutline()||r._control.disabled?-1:4),P(2),pt(r._hasOutline()?6:-1),P(),pt(r._hasIconPrefix?7:-1),P(),pt(r._hasTextPrefix?8:-1),P(2),pt(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),P(2),pt(r._hasTextSuffix?12:-1),P(),pt(r._hasIconSuffix?13:-1),P(),pt(r._hasOutline()?-1:14),P(),ye("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),P(),pt("error"===(o=r._getDisplayedMessages())?16:"hint"===o?17:-1)}},dependencies:[sH,cH,u0,lH,rH],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[xle.transitionMessages]},changeDetection:0})}return i})(),Wr=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve,Ls,B0,Ve]})}return i})();const Ele=new S("MAT_INPUT_VALUE_ACCESSOR"),Sle=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Mle=0,Bg=(()=>{class i{get disabled(){return this._disabled}set disabled(t){this._disabled=mi(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(rV.required)??!1}set required(t){this._required=mi(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&GO().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=mi(t)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,r,o,s,a,l,c,d,u){this._elementRef=t,this._platform=n,this.ngControl=r,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+Mle++,this.focused=!1,this.stateChanges=new Z,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>GO().has(m)),this._iOSKeyupListener=m=>{const p=m.target;!p.value&&0===p.selectionStart&&0===p.selectionEnd&&(p.setSelectionRange(1,1),p.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&d.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Y0(a,r,s,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){const t=this._getPlaceholder();if(t!==this._previousPlaceholder){const n=this._elementRef.nativeElement;this._previousPlaceholder=t,t?n.setAttribute("placeholder",t):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Sle.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,n=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&n&&n.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(wt),b($r,10),b(Gu,8),b(qu,8),b(BR),b(Ele,10),b(Pse),b(U),b(zC,8))};static#t=this.\u0275dir=R({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,r){1&n&&J("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&n&&(To("id",r.id)("disabled",r.disabled)("required",r.required),Fe("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),ye("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[Ie([{provide:HC,useExisting:i}]),ui]})}return i})(),_c=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve,Wr,Wr,Fse,Ve]})}return i})();const Tle=["input"],Ale=["label"],Ile=["*"],Ole=new S("mat-checkbox-default-options",{providedIn:"root",factory:fH});function fH(){return{color:"accent",clickAction:"check-indeterminate"}}var Ri=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(Ri||{});const Rle={provide:Un,useExisting:Je(()=>pH),multi:!0};class Nle{}let Ple=0;const mH=fH();let pH=(()=>{class i{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(t){const n=new Nle;return n.source=this,n.checked=t,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,n,r,o,s,a){this._elementRef=t,this._changeDetectorRef=n,this._ngZone=r,this._animationMode=s,this._options=a,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new ie,this.indeterminateChange=new ie,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Ri.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||mH,this.color=this._options.color||mH.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++Ple}ngOnChanges(t){t.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const n=t!=this._indeterminate;this._indeterminate=t,n&&(this._transitionCheckState(this._indeterminate?Ri.Indeterminate:this.checked?Ri.Checked:Ri.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}validate(t){return this.required&&!0!==t.value?{required:!0}:null}registerOnValidatorChange(t){this._validatorChangeFn=t}_transitionCheckState(t){let n=this._currentCheckState,r=this._getAnimationTargetElement();if(n!==t&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const t=this._options?.clickAction;this.disabled||"noop"===t?!this.disabled&&"noop"===t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Ri.Checked:Ri.Unchecked),this._emitChangeEvent())}_onInteractionEvent(t){t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(t,n){if("NoopAnimations"===this._animationMode)return"";switch(t){case Ri.Init:if(n===Ri.Checked)return this._animationClasses.uncheckedToChecked;if(n==Ri.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Ri.Unchecked:return n===Ri.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Ri.Checked:return n===Ri.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Ri.Indeterminate:return n===Ri.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(t){const n=this._inputElement;n&&(n.nativeElement.indeterminate=t)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(t){t.target&&this._labelElement.nativeElement.contains(t.target)&&t.stopPropagation()}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(Di),b(U),Co("tabindex"),b(ri,8),b(Ole,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-checkbox"]],viewQuery:function(n,r){if(1&n&&(Et(Tle,5),Et(Ale,5),Et(Kd,5)),2&n){let o;se(o=ae())&&(r._inputElement=o.first),se(o=ae())&&(r._labelElement=o.first),se(o=ae())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(n,r){2&n&&(To("id",r.id),Fe("tabindex",null)("aria-label",null)("aria-labelledby",null),Is(r.color?"mat-"+r.color:"mat-accent"),ye("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",Le],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",Le],tabIndex:[2,"tabIndex","tabIndex",t=>null==t?void 0:hm(t)],color:"color",checked:[2,"checked","checked",Le],disabled:[2,"disabled","disabled",Le],indeterminate:[2,"indeterminate","indeterminate",Le]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[Ie([Rle,{provide:si,useExisting:i,multi:!0}]),zi,ui,Oe],ngContentSelectors:Ile,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,r){if(1&n){const o=fi();At(),E(0,"div",3),J("click",function(a){return Ne(o),Pe(r._preventBubblingFromLabel(a))}),E(1,"div",4,0)(3,"div",5),J("click",function(){return Ne(o),Pe(r._onTouchTargetClick())}),T(),E(4,"input",6,1),J("blur",function(){return Ne(o),Pe(r._onBlur())})("click",function(){return Ne(o),Pe(r._onInputClick())})("change",function(a){return Ne(o),Pe(r._onInteractionEvent(a))}),T(),Ae(6,"div",7),E(7,"div",8),ja(),E(8,"svg",9),Ae(9,"path",10),T(),vb(),Ae(10,"div",11),T(),Ae(11,"div",12),T(),E(12,"label",13,2),X(14),T()()}if(2&n){const o=In(2);H("labelPosition",r.labelPosition),P(4),ye("mdc-checkbox--selected",r.checked),H("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.disabled?-1:r.tabIndex),Fe("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("name",r.name)("value",r.value),P(7),H("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),P(),H("for",r.inputId)}},dependencies:[Kd,tQ],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-unselected-icon-color);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color)}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return i})(),Ble=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[pH,Ve,Ve]})}return i})();class jC{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,t,n=!0,r){this._multiple=e,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Z,t&&t.length&&(e?t.forEach(o=>this._markSelected(o)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(n=>this._markSelected(n));const t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(n=>this._unmarkSelected(n));const t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);const t=this.selected,n=new Set(e);e.forEach(o=>this._markSelected(o)),t.filter(o=>!n.has(this._getConcreteValue(o,n))).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();const t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}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(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let n of t)if(this.compareWith(e,n))return n;return e}return e}}let gH=(()=>{class i{constructor(){this._listeners=[]}notify(t,n){for(let r of this._listeners)r(t,n)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(n=>t!==n)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),zle=0;const UC=new S("CdkAccordion");let jle=(()=>{class i{constructor(){this._stateChanges=new Z,this._openCloseAllActions=new Z,this.id="cdk-accordion-"+zle++,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",Le]},exportAs:["cdkAccordion"],standalone:!0,features:[Ie([{provide:UC,useExisting:i}]),zi,ui]})}return i})(),Ule=0,$le=(()=>{class i{get expanded(){return this._expanded}set expanded(t){this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}constructor(t,n,r){this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=r,this._openCloseAllSubscription=Ze.EMPTY,this.closed=new ie,this.opened=new ie,this.destroyed=new ie,this.expandedChange=new ie,this.id="cdk-accordion-child-"+Ule++,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==o&&(this.expanded=!1)}),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=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}static#e=this.\u0275fac=function(n){return new(n||i)(b(UC,12),b(Di),b(gH))};static#t=this.\u0275dir=R({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",Le],disabled:[2,"disabled","disabled",Le]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[Ie([{provide:UC,useValue:void 0}]),zi]})}return i})(),Wle=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({})}return i})();class $C{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Vg extends $C{constructor(e,t,n,r,o){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class Ku extends $C{constructor(e,t,n,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class Gle extends $C{constructor(e){super(),this.element=e instanceof te?e.nativeElement:e}}class WC{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof Vg?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Ku?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Gle?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class qle extends WC{constructor(e,t,n,r,o){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(e){const n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(e.injector||this._defaultInjector||it.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(n);-1!==r&&t.remove(r)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let Hg=(()=>{class i extends WC{constructor(t,n,r){super(),this._componentFactoryResolver=t,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new ie,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);const n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=n.createComponent(o,n.length,t.injector||n.injector,t.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static#e=this.\u0275fac=function(n){return new(n||i)(b(sl),b(Hi),b(xe))};static#t=this.\u0275dir=R({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[me]})}return i})(),Xu=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({})}return i})();const Yle=["body"],Kle=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Xle=["mat-expansion-panel-header","*","mat-action-row"];function Zle(i,e){}const Qle=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Jle=["mat-panel-title","mat-panel-description","*"];function ece(i,e){1&i&&(E(0,"span",1),ja(),E(1,"svg",2),Ae(2,"path",3),T()()),2&i&&H("@indicatorRotate",ge()._getExpandedState())}const GC=new S("MAT_ACCORDION"),_H="225ms cubic-bezier(0.4,0.0,0.2,1)",bH={indicatorRotate:_o("indicatorRotate",[Wn("collapsed, void",It({transform:"rotate(0deg)"})),Wn("expanded",It({transform:"rotate(180deg)"})),Dn("expanded <=> collapsed, void => collapsed",$n(_H))]),bodyExpansion:_o("bodyExpansion",[Wn("collapsed, void",It({height:"0px",visibility:"hidden"})),Wn("expanded",It({height:"*",visibility:""})),Dn("expanded <=> collapsed, void => collapsed",$n(_H))])},vH=new S("MAT_EXPANSION_PANEL");let tce=(()=>{class i{constructor(t,n){this._template=t,this._expansionPanel=n}static#e=this.\u0275fac=function(n){return new(n||i)(b(dn),b(vH,8))};static#t=this.\u0275dir=R({type:i,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0})}return i})(),ice=0;const yH=new S("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let wH=(()=>{class i extends $le{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=t}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}constructor(t,n,r,o,s,a,l){super(t,n,r),this._viewContainerRef=o,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new ie,this.afterCollapse=new ie,this._inputChanges=new Z,this._headerId="mat-expansion-panel-header-"+ice++,this.accordion=t,this._document=s,this._animationsDisabled="NoopAnimations"===a,l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Mr(null),Lt(()=>this.expanded&&!this._portal),Fn(1)).subscribe(()=>{this._portal=new Ku(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,n=this._body.nativeElement;return t===n||n.contains(t)}return!1}_animationStarted(t){!xH(t)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(t){xH(t)||("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}static#e=this.\u0275fac=function(n){return new(n||i)(b(GC,12),b(Di),b(gH),b(Hi),b(xe),b(ri,8),b(yH,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(n,r,o){if(1&n&>(o,tce,5),2&n){let s;se(s=ae())&&(r._lazyContent=s.first)}},viewQuery:function(n,r){if(1&n&&Et(Yle,5),2&n){let o;se(o=ae())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(n,r){2&n&&ye("mat-expanded",r.expanded)("_mat-animation-noopable",r._animationsDisabled)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",Le],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[Ie([{provide:GC,useValue:void 0},{provide:vH,useExisting:i}]),zi,me,ui,Oe],ngContentSelectors:Xle,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,r){if(1&n){const o=fi();At(Kle),X(0),E(1,"div",1,0),J("@bodyExpansion.start",function(a){return Ne(o),Pe(r._animationStarted(a))})("@bodyExpansion.done",function(a){return Ne(o),Pe(r._animationDone(a))}),E(3,"div",2),X(4,1),pe(5,Zle,0,0,"ng-template",3),T(),X(6,2),T()}2&n&&(P(),H("@bodyExpansion",r._getExpandedState())("id",r.id),Fe("aria-labelledby",r._headerId),P(4),H("cdkPortalOutlet",r._portal))},dependencies:[Hg],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){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)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[bH.bodyExpansion]},changeDetection:0})}return i})();function xH(i){return"void"===i.fromState}let nce=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"],standalone:!0})}return i})(),CH=(()=>{class i{constructor(t,n,r,o,s,a,l){this.panel=t,this._element=n,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=Ze.EMPTY,this.tabIndex=0;const c=t.accordion?t.accordion._stateChanges.pipe(Lt(d=>!(!d.hideToggle&&!d.togglePosition))):$d;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=ur(t.opened,t.closed,c,t._inputChanges.pipe(Lt(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Lt(()=>t._containsFocus())).subscribe(()=>r.focusVia(n,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}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(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:ar(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,n){t?this._focusMonitor.focusVia(this._element,t,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static#e=this.\u0275fac=function(n){return new(n||i)(b(wH,1),b(te),b(js),b(Di),b(yH,8),b(ri,8),Co("tabindex"))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(n,r){1&n&&J("click",function(){return r._toggle()})("keydown",function(s){return r._keydown(s)}),2&n&&(Fe("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Wf("height",r._getHeaderHeight()),ye("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after","after"===r._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===r._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===r._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",t=>null==t?0:hm(t)]},standalone:!0,features:[zi,Oe],ngContentSelectors:Jle,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(n,r){1&n&&(At(Qle),E(0,"span",0),X(1),X(2,1),X(3,2),T(),pe(4,ece,3,1,"span",1)),2&n&&(ye("mat-content-hide-toggle",!r._showToggle()),P(4),pt(r._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.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{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color);display:inline-block;display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:none;display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[bH.indicatorRotate]},changeDetection:0})}return i})(),rce=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0})}return i})(),oce=(()=>{class i extends jle{constructor(){super(...arguments),this._ownHeaders=new _s,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(Mr(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new U0(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=kt(i)))(r||i)}})();static#t=this.\u0275dir=R({type:i,selectors:[["mat-accordion"]],contentQueries:function(n,r,o){if(1&n&>(o,CH,5),2&n){let s;se(s=ae())&&(r._headers=s)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,r){2&n&&ye("mat-accordion-multi",r.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",Le],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[Ie([{provide:GC,useExisting:i}]),zi,me]})}return i})(),sce=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve,Wle,Xu]})}return i})();const ace=["addListener","removeListener"],lce=["addEventListener","removeEventListener"],cce=["on","off"];function zg(i,e,t,n){if(je(t)&&(n=t,t=void 0),n)return zg(i,e,t).pipe(V0(n));const[r,o]=function hce(i){return je(i.addEventListener)&&je(i.removeEventListener)}(i)?lce.map(s=>a=>i[s](e,a,t)):function dce(i){return je(i.addListener)&&je(i.removeListener)}(i)?ace.map(DH(i,e)):function uce(i){return je(i.on)&&je(i.off)}(i)?cce.map(DH(i,e)):[];if(!r&&O0(i))return Bl(s=>zg(s,e,t))(ki(i));if(!r)throw new TypeError("Invalid event target");return new bt(s=>{const a=(...l)=>s.next(1o(a)})}function DH(i,e){return t=>n=>i[t](e,n)}const Zu={schedule(i){let e=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:n}=Zu;n&&(e=n.requestAnimationFrame,t=n.cancelAnimationFrame);const r=e(o=>{t=void 0,i(o)});return new Ze(()=>t?.(r))},requestAnimationFrame(...i){const{delegate:e}=Zu;return(e?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:e}=Zu;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0};new class mce extends F0{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}}}(class fce extends N0{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=Zu.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);const{actions:o}=e;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Zu.cancelAnimationFrame(t),e._scheduled=void 0)}});let qC,gce=1;const jg={};function kH(i){return i in jg&&(delete jg[i],!0)}const _ce={setImmediate(i){const e=gce++;return jg[e]=!0,qC||(qC=Promise.resolve()),qC.then(()=>kH(e)&&i()),e},clearImmediate(i){kH(i)}},{setImmediate:bce,clearImmediate:vce}=_ce,Ug={setImmediate(...i){const{delegate:e}=Ug;return(e?.setImmediate||bce)(...i)},clearImmediate(i){const{delegate:e}=Ug;return(e?.clearImmediate||vce)(i)},delegate:void 0},YC=new class wce extends F0{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}}}(class yce extends N0{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=Ug.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);const{actions:o}=e;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Ug.clearImmediate(t),e._scheduled===t&&(e._scheduled=void 0))}});function EH(i=0,e,t=BX){let n=-1;return null!=e&&(YO(e)?t=e:n=e),new bt(r=>{let o=function Cce(i){return i instanceof Date&&!isNaN(i)}(i)?+i-t.now():i;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function SH(i,e=Lm){return function xce(i){return ii((e,t)=>{let n=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const c=r;r=null,t.next(c)}s&&t.complete()},l=()=>{o=null,s&&t.complete()};e.subscribe(qt(t,c=>{n=!0,r=c,o||ki(i(c)).subscribe(o=qt(t,a,l))},()=>{s=!0,(!n||!o||o.closed)&&t.complete()}))})}(()=>EH(i,e))}let KC=(()=>{class i{constructor(t,n,r){this._ngZone=t,this._platform=n,this._scrolled=new Z,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new bt(n=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(SH(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Pn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){const r=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(Lt(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,n){let r=ro(n),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>zg(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(n){return new(n||i)(C(U),C(wt),C(xe,8))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),kce=(()=>{class i{constructor(t,n,r,o){this.elementRef=t,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new Z,this._elementScrolled=new bt(s=>this.ngZone.runOutsideAngular(()=>zg(this.elementRef.nativeElement,"scroll").pipe(_t(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const n=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=r?t.end:t.start),null==t.right&&(t.right=r?t.start:t.end),null!=t.bottom&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),r&&Hd()!=Er.NORMAL?(null!=t.left&&(t.right=n.scrollWidth-n.clientWidth-t.left),Hd()==Er.INVERTED?t.left=t.right:Hd()==Er.NEGATED&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const n=this.elementRef.nativeElement;qO()?n.scrollTo(t):(null!=t.top&&(n.scrollTop=t.top),null!=t.left&&(n.scrollLeft=t.left))}measureScrollOffset(t){const n="left",r="right",o=this.elementRef.nativeElement;if("top"==t)return o.scrollTop;if("bottom"==t)return o.scrollHeight-o.clientHeight-o.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==t?t=s?r:n:"end"==t&&(t=s?n:r),s&&Hd()==Er.INVERTED?t==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&Hd()==Er.NEGATED?t==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:t==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(KC),b(U),b(oo,8))};static#t=this.\u0275dir=R({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return i})(),XC=(()=>{class i{constructor(t,n,r){this._platform=t,this._change=new Z,this._changeListener=o=>{this._change.next(o)},this._document=r,n.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,n=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||n.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(SH(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(n){return new(n||i)(C(wt),C(U),C(xe,8))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Qu=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({})}return i})(),MH=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Wd,Qu,Wd,Qu]})}return i})();const TH=qO();class Mce{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=$t(-this._previousScrollPosition.left),e.style.top=$t(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,n=e.style,r=this._document.body.style,o=n.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),TH&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),TH&&(n.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,n=this._viewportRuler.getViewportSize();return t.scrollHeight>n.height||t.scrollWidth>n.width}}class Tce{constructor(e,t,n,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0).pipe(Lt(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=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class AH{enable(){}disable(){}attach(){}}function ZC(i,e){return e.some(t=>i.bottomt.bottom||i.rightt.right)}function IH(i,e){return e.some(t=>i.topt.bottom||i.leftt.right)}class Ace{constructor(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();ZC(t,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Ice=(()=>{class i{constructor(t,n,r,o){this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new AH,this.close=s=>new Tce(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new Mce(this._viewportRuler,this._document),this.reposition=s=>new Ace(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static#e=this.\u0275fac=function(n){return new(n||i)(C(KC),C(XC),C(U),C(xe))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();class $g{constructor(e){if(this.scrollStrategy=new AH,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class Oce{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let OH=(()=>{class i{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(n){return new(n||i)(C(xe))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Rce=(()=>{class i extends OH{constructor(t,n){super(t),this._ngZone=n,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(n){return new(n||i)(C(xe),C(U,8))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Nce=(()=>{class i extends OH{constructor(t,n,r){super(t),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Sr(o)},this._clickListener=o=>{const s=Sr(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const d=l[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(s)||d.overlayElement.contains(a))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(t){if(super.add(t),!this._isAttached){const n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(n){return new(n||i)(C(xe),C(wt),C(U,8))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Wg=(()=>{class i{constructor(t,n){this._platform=n,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||E0()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new Z,this._outsidePointerEvents=new Z,this._renders=new Z,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=function Yy(i){const e=we(null);try{return i()}finally{we(e)}}(()=>Pv(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),dd(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=$t(this._config.width),e.height=$t(this._config.height),e.minWidth=$t(this._config.minWidth),e.minHeight=$t(this._config.minHeight),e.maxWidth=$t(this._config.maxWidth),e.maxHeight=$t(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,t,n){const r=Bm(t||[]).filter(o=>!!o);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const e=this._renders.pipe(_t(ur(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const RH="cdk-overlay-connected-position-bounding-box",Pce=/([A-Za-z%]+)$/;class Fce{get positions(){return this._preferredPositions}constructor(e,t,n,r,o){this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Z,this._resizeSubscription=Ze.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._validatePositions(),e.hostElement.classList.add(RH),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),d=this._getOverlayFit(c,t,n,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,n)?o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ua(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(RH),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,n){let r,o;if("center"==n.originX)r=e.left+e.width/2;else{const s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==n.originX?s:a}return t.left<0&&(r-=t.left),o="center"==n.originY?e.top+e.height/2:"top"==n.originY?e.top:e.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(e,t,n){let r,o;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,t,n,r){const o=PH(t);let{x:s,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-n.height,m=this._subtractOverflows(o.width,0-s,s+o.width-n.width),p=this._subtractOverflows(o.height,h,f),g=m*p;return{visibleArea:g,isCompletelyWithinViewport:o.width*o.height===g,fitsInViewportVertically:p===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const r=n.bottom-t.y,o=n.right-t.x,s=NH(this._overlayRef.getConfig().minHeight),a=NH(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=s&&s<=r)&&(e.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=PH(t),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-n.top-e.y,0),c=Math.max(o.left-n.left-e.x,0);let d=0,u=0;return d=r.width<=o.width?c||-s:e.xm&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-m/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=n.width-e.x+2*this._viewportMargin,d=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)u=e.x,d=n.right-e.x;else{const f=Math.min(n.right-e.x+n.left,e.x),m=this._lastBoundingBoxSize.width;d=2*f,u=e.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=e.x-m/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=$t(n.height),r.top=$t(n.top),r.bottom=$t(n.bottom),r.width=$t(n.width),r.left=$t(n.left),r.right=$t(n.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=$t(o)),s&&(r.maxWidth=$t(s))}this._lastBoundingBoxSize=n,ua(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ua(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ua(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();ua(n,this._getExactOverlayY(t,e,d)),ua(n,this._getExactOverlayX(t,e,d))}else n.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),n.transform=a.trim(),s.maxHeight&&(r?n.maxHeight=$t(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(r?n.maxWidth=$t(s.maxWidth):o&&(n.maxWidth="")),ua(this._pane.style,n)}_getExactOverlayY(e,t,n){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=$t(o.y),r}_getExactOverlayX(e,t,n){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),s=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=$t(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:IH(e,n),isOriginOutsideView:ZC(e,n),isOverlayClipped:IH(t,n),isOverlayOutsideView:ZC(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Bm(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof te)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function ua(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function NH(i){if("number"!=typeof i&&null!=i){const[e,t]=i.split(Pce);return t&&"px"!==t?null:parseFloat(e)}return i||null}function PH(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const FH="cdk-global-overlay-wrapper";class Bce{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(FH),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=n,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",p="";l?p="flex-start":"center"===d?(p="center",h?m=u:f=u):h?"left"===d||"end"===d?(p="flex-end",f=u):("right"===d||"start"===d)&&(p="flex-start",m=u):"left"===d||"start"===d?(p="flex-start",f=u):("right"===d||"end"===d)&&(p="flex-end",m=u),e.position=this._cssPosition,e.marginLeft=l?"0":f,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":m,t.justifyContent=p,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(FH),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let Vce=(()=>{class i{constructor(t,n,r,o){this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new Bce}flexibleConnectedTo(t){return new Fce(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(n){return new(n||i)(C(XC),C(xe),C(wt),C(Wg))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Hce=0,ai=(()=>{class i{constructor(t,n,r,o,s,a,l,c,d,u,h,f){this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(t){const n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),s=new $g(t);return s.direction=s.direction||this._directionality.value,new Gg(o,n,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(Sn))}position(){return this._positionBuilder}_createPaneElement(t){const n=this._document.createElement("div");return n.id="cdk-overlay-"+Hce++,n.classList.add("cdk-overlay-pane"),t.appendChild(n),n}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(rr)),new qle(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(n){return new(n||i)(C(Ice),C(Wg),C(sl),C(Vce),C(Rce),C(it),C(U),C(xe),C(oo),C(Xy),C(Nce),C(ri,8))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const zce=[{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"}],LH=new S("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const i=O(ai);return()=>i.scrollStrategies.reposition()}});let qg=(()=>{class i{constructor(t){this.elementRef=t}static#e=this.\u0275fac=function(n){return new(n||i)(b(te))};static#t=this.\u0275dir=R({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return i})(),BH=(()=>{class i{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)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}constructor(t,n,r,o,s){this._overlay=t,this._dir=s,this._backdropSubscription=Ze.EMPTY,this._attachSubscription=Ze.EMPTY,this._detachSubscription=Ze.EMPTY,this._positionSubscription=Ze.EMPTY,this._disposeOnNavigation=!1,this._ngZone=O(U),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new ie,this.positionChange=new ie,this.attach=new ie,this.detach=new ie,this.overlayKeydown=new ie,this.overlayOutsideClick=new ie,this._templatePortal=new Ku(n,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,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=zce);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),27===n.keyCode&&!this.disableClose&&!ar(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{const r=this._getOriginElement(),o=Sr(n);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(n)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),n=new $g({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(n.width=this.width),(this.height||0===this.height)&&(n.height=this.height),(this.minWidth||0===this.minWidth)&&(n.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(t){const n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof qg?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof qg?this.origin.elementRef.nativeElement:this.origin instanceof te?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Sce(i,e=!1){return ii((t,n)=>{let r=0;t.subscribe(qt(n,o=>{const s=i(o,r++);(s||e)&&n.next(o),!s&&n.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||i)(b(ai),b(dn),b(Hi),b(LH),b(oo,8))};static#t=this.\u0275dir=R({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Le],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Le],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Le],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Le],push:[2,"cdkConnectedOverlayPush","push",Le],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Le]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[zi,ui]})}return i})();const Uce={provide:LH,deps:[ai],useFactory:function jce(i){return()=>i.scrollStrategies.reposition()}};let Ju=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({providers:[ai,Uce],imports:[Wd,Xu,MH,MH]})}return i})();function QC(i){return new bt(e=>{ki(i()).subscribe(e)})}function Yg(i,e){return ii((t,n)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&n.complete();t.subscribe(qt(n,l=>{r?.unsubscribe();let c=0;const d=o++;ki(i(l,d)).subscribe(r=qt(n,u=>n.next(e?e(l,u,d,c++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}const $ce=["trigger"],Wce=["panel"],Gce=[[["mat-select-trigger"]],"*"],qce=["mat-select-trigger","*"];function Yce(i,e){if(1&i&&(E(0,"span",4),be(1),T()),2&i){const t=ge();P(),Rs(t.placeholder)}}function Kce(i,e){1&i&&X(0)}function Xce(i,e){if(1&i&&(E(0,"span",11),be(1),T()),2&i){const t=ge(2);P(),Rs(t.triggerValue)}}function Zce(i,e){if(1&i&&(E(0,"span",5),pe(1,Kce,1,0)(2,Xce,2,1,"span",11),T()),2&i){const t=ge();P(),pt(t.customTrigger?1:2)}}function Qce(i,e){if(1&i){const t=fi();E(0,"div",12,1),J("@transformPanel.done",function(r){return Ne(t),Pe(ge()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Ne(t),Pe(ge()._handleKeydown(r))}),X(2,1),T()}if(2&i){const t=ge();(function TT(i,e,t){ir(sn,Dr,_l(D(),i,e,t),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",t._getPanelTheme(),""),H("ngClass",t.panelClass)("@transformPanel","showing"),Fe("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const Jce={transformPanelWrap:_o("transformPanelWrap",[Dn("* => void",BC("@transformPanel",[LC()],{optional:!0}))]),transformPanel:_o("transformPanel",[Wn("void",It({opacity:0,transform:"scale(1, 0.8)"})),Dn("void => showing",$n("120ms cubic-bezier(0, 0, 0.2, 1)",It({opacity:1,transform:"scale(1, 1)"}))),Dn("* => void",$n("100ms linear",It({opacity:0})))])};let VH=0;const HH=new S("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const i=O(ai);return()=>i.scrollStrategies.reposition()}}),tde=new S("MAT_SELECT_CONFIG"),ide={provide:HH,deps:[ai],useFactory:function ede(i){return()=>i.scrollStrategies.reposition()}},nde=new S("MatSelectTrigger");class rde{constructor(e,t){this.source=e,this.value=t}}let Kg=(()=>{class i{_scrollOptionIntoView(t){const n=this.options.toArray()[t];if(n){const r=this.panel.nativeElement,o=function QZ(i,e,t){if(t.length){let n=e.toArray(),r=t.toArray(),o=0;for(let s=0;st+n?Math.max(0,i-n+e):t}(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(t){return new rde(this,t)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(rV.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=t}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this._assignValue(t)&&this._onChange(t)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,r,o,s,a,l,c,d,u,h,f,m,p){this._viewportRuler=t,this._changeDetectorRef=n,this._elementRef=s,this._dir=a,this._parentFormField=d,this.ngControl=u,this._liveAnnouncer=m,this._defaultOptions=p,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(g,_)=>g===_,this._uid="mat-select-"+VH++,this._triggerAriaLabelledBy=null,this._destroy=new Z,this.stateChanges=new Z,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+VH++,this._panelDoneAnimatingStream=new Z,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new Z,this.optionSelectionChanges=QC(()=>{const g=this.options;return g?g.changes.pipe(Mr(g),Yg(()=>ur(...g.map(_=>_.onSelectionChange)))):this._initialized.pipe(Yg(()=>this.optionSelectionChanges))}),this.openedChange=new ie,this._openedStream=this.openedChange.pipe(Lt(g=>g),Vt(()=>{})),this._closedStream=this.openedChange.pipe(Lt(g=>!g),Vt(()=>{})),this.selectionChange=new ie,this.valueChange=new ie,this._trackedModal=null,this._skipPredicate=g=>!this.panelOpen&&g.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=p?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._errorStateTracker=new Y0(o,u,c,l,this.stateChanges),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}ngOnInit(){this._selectionModel=new jC(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(fR(),_t(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(_t(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(_t(this._destroy)).subscribe(t=>{t.added.forEach(n=>n.select()),t.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Mr(null),_t(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby(),n=this.ngControl;if(t!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?r.setAttribute("aria-labelledby",t):r.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(void 0!==this._previousControl&&null!==n.disabled&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(t){(t.disabled||t.userAriaDescribedBy)&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){const t=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;const n=`${this.id}-panel`;this._trackedModal&&H0(this._trackedModal,"aria-owns",n),CR(t,"aria-owns",n),this._trackedModal=t}_clearFromModal(){this._trackedModal&&(H0(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(t){this._assignValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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){const t=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const n=t.keyCode,r=40===n||38===n||37===n||39===n,o=13===n||32===n,s=this._keyManager;if(!s.isTyping()&&o&&!ar(t)||(this.multiple||t.altKey)&&r)t.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(t);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(t){const n=this._keyManager,r=t.keyCode,o=40===r||38===r,s=n.isTyping();if(o&&t.altKey)t.preventDefault(),this.close();else if(s||13!==r&&32!==r||!n.activeItem||ar(t))if(!s&&this._multiple&&65===r&&t.ctrlKey){t.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=n.activeItemIndex;n.onKeydown(t),this._multiple&&o&&t.shiftKey&&n.activeItem&&n.activeItemIndex!==a&&n.activeItem._selectViaInteraction()}else t.preventDefault(),n.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Fn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{const n=this._selectOptionByValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(t){const n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,t)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(t){return!!(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t,!0)}_getOverlayWidth(t){return"auto"===this.panelWidth?(t instanceof qg?t.elementRef:t||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const t of this.options)t._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new sZ(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(){const t=ur(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(_t(t)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ur(...this.options.map(n=>n._stateChanges)).pipe(_t(t)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(t,n){const r=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(r!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),n&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),n&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),r!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,t):t.indexOf(n)-t.indexOf(r)),this.stateChanges.next()}}_propagateChanges(t){let n;n=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:t,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let t=-1;for(let n=0;n0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const t=this._parentFormField?.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const t=this._parentFormField?.getLabelId();let n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static#e=this.\u0275fac=function(n){return new(n||i)(b(XC),b(Di),b(U),b(BR),b(te),b(oo,8),b(Gu,8),b(qu,8),b(zC,8),b($r,10),Co("tabindex"),b(HH),b(DZ),b(tde,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-select"]],contentQueries:function(n,r,o){if(1&n&&(gt(o,nde,5),gt(o,Xd,5),gt(o,qR,5)),2&n){let s;se(s=ae())&&(r.customTrigger=s.first),se(s=ae())&&(r.options=s),se(s=ae())&&(r.optionGroups=s)}},viewQuery:function(n,r){if(1&n&&(Et($ce,5),Et(Wce,5),Et(BH,5)),2&n){let o;se(o=ae())&&(r.trigger=o.first),se(o=ae())&&(r.panel=o.first),se(o=ae())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,r){1&n&&J("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&n&&(Fe("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),ye("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Le],disableRipple:[2,"disableRipple","disableRipple",Le],tabIndex:[2,"tabIndex","tabIndex",t=>null==t?0:hm(t)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Le],placeholder:"placeholder",required:[2,"required","required",Le],multiple:[2,"multiple","multiple",Le],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Le],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",hm],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ie([{provide:HC,useExisting:i},{provide:GR,useExisting:i}]),zi,ui,Oe],ngContentSelectors:qce,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,r){if(1&n){const o=fi();At(Gce),E(0,"div",2,0),J("click",function(){return Ne(o),Pe(r.open())}),E(3,"div",3),pe(4,Yce,2,1,"span",4)(5,Zce,3,1,"span",5),T(),E(6,"div",6)(7,"div",7),ja(),E(8,"svg",8),Ae(9,"path",9),T()()()(),pe(10,Qce,3,9,"ng-template",10),J("backdropClick",function(){return Ne(o),Pe(r.close())})("attach",function(){return Ne(o),Pe(r._onAttached())})("detach",function(){return Ne(o),Pe(r.close())})}if(2&n){const o=In(1);P(3),Fe("id",r._valueId),P(),pt(r.empty?4:5),P(6),H("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[qg,BH,l0],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[Jce.transformPanel]},changeDetection:0})}return i})(),ha=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({providers:[ide],imports:[Ls,Ju,YR,Ve,Qu,Wr,YR,Ve]})}return i})(),ode=(()=>{class i{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=mi(t)}get inset(){return this._inset}set inset(t){this._inset=mi(t)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,r){2&n&&(Fe("aria-orientation",r.vertical?"vertical":"horizontal"),ye("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[Oe],decls:0,vars:0,template:function(n,r){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return i})(),zH=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[Ve,Ve]})}return i})();const jH=["*"],UH='@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon,.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon,.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size)}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape);--mat-mdc-focus-indicator-border-radius:var(--mat-list-active-indicator-shape)}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color)}',$H=["unscopedContent"],sde=["text"],ade=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],lde=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],cde=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],dde=["[matListItemTitle]","[matListItemLine]","*","mat-divider","[matListItemAvatar],[matListItemIcon]"];function ude(i,e){1&i&&X(0,4)}function hde(i,e){if(1&i&&(E(0,"div",11),Ae(1,"input",12),E(2,"div",13),ja(),E(3,"svg",14),Ae(4,"path",15),T(),vb(),Ae(5,"div",16),T()()),2&i){const t=ge();ye("mdc-checkbox--disabled",t.disabled),P(),H("checked",t.selected)("disabled",t.disabled)}}function fde(i,e){if(1&i&&(E(0,"div",17),Ae(1,"input",18),E(2,"div",19),Ae(3,"div",20)(4,"div",21),T()()),2&i){const t=ge();ye("mdc-radio--disabled",t.disabled),P(),H("checked",t.selected)("disabled",t.disabled)}}function mde(i,e){}function pde(i,e){if(1&i&&(E(0,"span",4),pe(1,mde,0,0,"ng-template",6),T()),2&i){ge();const t=In(3);P(),H("ngTemplateOutlet",t)}}function gde(i,e){}function _de(i,e){if(1&i&&(E(0,"span",5),pe(1,gde,0,0,"ng-template",6),T()),2&i){ge();const t=In(5);P(),H("ngTemplateOutlet",t)}}function bde(i,e){}function vde(i,e){1&i&&pe(0,bde,0,0,"ng-template",6),2&i&&(ge(),H("ngTemplateOutlet",In(1)))}function yde(i,e){}function wde(i,e){if(1&i&&(E(0,"span",9),pe(1,yde,0,0,"ng-template",6),T()),2&i){ge();const t=In(3);P(),H("ngTemplateOutlet",t)}}function xde(i,e){}function Cde(i,e){if(1&i&&(E(0,"span",9),pe(1,xde,0,0,"ng-template",6),T()),2&i){ge();const t=In(5);P(),H("ngTemplateOutlet",t)}}function Dde(i,e){}function kde(i,e){1&i&&pe(0,Dde,0,0,"ng-template",6),2&i&&(ge(),H("ngTemplateOutlet",In(1)))}const WH=new S("ListOption");let GH=(()=>{class i{constructor(t){this._elementRef=t}static#e=this.\u0275fac=function(n){return new(n||i)(b(te))};static#t=this.\u0275dir=R({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"],standalone:!0})}return i})(),qH=(()=>{class i{constructor(t){this._elementRef=t}static#e=this.\u0275fac=function(n){return new(n||i)(b(te))};static#t=this.\u0275dir=R({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"],standalone:!0})}return i})(),Ede=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"],standalone:!0})}return i})(),YH=(()=>{class i{constructor(t){this._listOption=t}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}static#e=this.\u0275fac=function(n){return new(n||i)(b(WH,8))};static#t=this.\u0275dir=R({type:i,hostVars:4,hostBindings:function(n,r){2&n&&ye("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())},standalone:!0})}return i})(),Sde=(()=>{class i extends YH{static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=kt(i)))(r||i)}})();static#t=this.\u0275dir=R({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],standalone:!0,features:[me]})}return i})(),Mde=(()=>{class i extends YH{static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=kt(i)))(r||i)}})();static#t=this.\u0275dir=R({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],standalone:!0,features:[me]})}return i})();const Tde=new S("MAT_LIST_CONFIG");let bc=(()=>{class i{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=O(Tde,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=mi(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=mi(t)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,hostVars:1,hostBindings:function(n,r){2&n&&Fe("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},standalone:!0})}return i})(),JC=(()=>{class i{set lines(t){this._explicitLines=Ll(t,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(t){this._disableRipple=mi(t)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(t){this._disabled=mi(t)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(t,n,r,o,s,a){this._elementRef=t,this._ngZone=n,this._listBase=r,this._platform=o,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new Ze,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=s||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._noopAnimations="NoopAnimations"===a,r&&!r._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new qd(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(ur(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(t){if(!this._lines||!this._titles||!this._unscopedContent)return;t&&this._checkDomForUnscopedTextContent();const n=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",n<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",n<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===n),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===n),this._hasUnscopedTextContent){const o=0===this._titles.length&&1===n;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let t=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(t+=1),t}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(t=>t.nodeType!==t.COMMENT_NODE).some(t=>!(!t.textContent||!t.textContent.trim()))}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(U),b(bc,8),b(wt),b(Yd,8),b(ri,8))};static#t=this.\u0275dir=R({type:i,contentQueries:function(n,r,o){if(1&n&&(gt(o,Sde,4),gt(o,Mde,4)),2&n){let s;se(s=ae())&&(r._avatars=s),se(s=ae())&&(r._icons=s)}},hostVars:4,hostBindings:function(n,r){2&n&&(Fe("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),ye("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"},standalone:!0})}return i})(),Ade=(()=>{class i extends bc{static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=kt(i)))(r||i)}})();static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],standalone:!0,features:[Ie([{provide:bc,useExisting:i}]),me,Oe],ngContentSelectors:jH,decls:1,vars:0,template:function(n,r){1&n&&(At(),X(0))},styles:[UH],encapsulation:2,changeDetection:0})}return i})(),Ide=(()=>{class i extends JC{get activated(){return this._activated}set activated(t){this._activated=mi(t)}constructor(t,n,r,o,s,a){super(t,n,r,o,s,a),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(U),b(bc,8),b(wt),b(Yd,8),b(ri,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(n,r,o){if(1&n&&(gt(o,qH,5),gt(o,GH,5),gt(o,Ede,5)),2&n){let s;se(s=ae())&&(r._lines=s),se(s=ae())&&(r._titles=s),se(s=ae())&&(r._meta=s)}},viewQuery:function(n,r){if(1&n&&(Et($H,5),Et(sde,5)),2&n){let o;se(o=ae())&&(r._unscopedContent=o.first),se(o=ae())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(n,r){2&n&&(Fe("aria-current",r._getAriaCurrent()),ye("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",0!==r._avatars.length)("mdc-list-item--with-leading-icon",0!==r._icons.length)("mdc-list-item--with-trailing-meta",0!==r._meta.length)("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],standalone:!0,features:[me,Oe],ngContentSelectors:lde,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-mdc-focus-indicator"]],template:function(n,r){if(1&n){const o=fi();At(ade),X(0),E(1,"span",1),X(2,1),X(3,2),E(4,"span",2,0),J("cdkObserveContent",function(){return Ne(o),Pe(r._updateItemLines(!0))}),X(6,3),T()(),X(7,4),X(8,5),Ae(9,"div",3)}},dependencies:[pR],encapsulation:2,changeDetection:0})}return i})();const KH=new S("SelectionList");let XH=(()=>{class i extends JC{get checkboxPosition(){return this.togglePosition}set checkboxPosition(t){this.togglePosition=t}get color(){return this._color||this._selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}get selected(){return this._selectionList.selectedOptions.isSelected(this)}set selected(t){const n=mi(t);n!==this._selected&&(this._setSelected(n),(n||this._selectionList.multiple)&&this._selectionList._reportValueChange())}constructor(t,n,r,o,s,a,l){super(t,n,r,o,a,l),this._selectionList=r,this._changeDetectorRef=s,this.selectedChange=new ie,this.togglePosition="after",this._selected=!1,this._inputsInitialized=!1}ngOnInit(){const t=this._selectionList;t._value&&t._value.some(r=>t.compareWith(this._value,r))&&this._setSelected(!0);const n=this._selected;Promise.resolve().then(()=>{(this._selected||n)&&(this.selected=!0,this._changeDetectorRef.markForCheck())}),this._inputsInitialized=!0}ngOnDestroy(){super.ngOnDestroy(),this.selected&&Promise.resolve().then(()=>{this.selected=!1})}toggle(){this.selected=!this.selected}focus(){this._hostElement.focus()}getLabel(){return(this._titles?.get(0)?._elementRef.nativeElement||this._unscopedContent?.nativeElement)?.textContent||""}_hasCheckboxAt(t){return this._selectionList.multiple&&this._getTogglePosition()===t}_hasRadioAt(t){return!this._selectionList.multiple&&this._getTogglePosition()===t&&!this._selectionList.hideSingleSelectionIndicator}_hasIconsOrAvatarsAt(t){return this._hasProjected("icons",t)||this._hasProjected("avatars",t)}_hasProjected(t,n){return this._getTogglePosition()!==n&&("avatars"===t?0!==this._avatars.length:0!==this._icons.length)}_handleBlur(){this._selectionList._onTouched()}_getTogglePosition(){return this.togglePosition||"after"}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this),this.selectedChange.emit(t),this._changeDetectorRef.markForCheck(),!0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_toggleOnInteraction(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))}_setTabindex(t){this._hostElement.setAttribute("tabindex",t+"")}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(U),b(KH),b(wt),b(Di),b(Yd,8),b(ri,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-list-option"]],contentQueries:function(n,r,o){if(1&n&&(gt(o,qH,5),gt(o,GH,5)),2&n){let s;se(s=ae())&&(r._lines=s),se(s=ae())&&(r._titles=s)}},viewQuery:function(n,r){if(1&n&&Et($H,5),2&n){let o;se(o=ae())&&(r._unscopedContent=o.first)}},hostAttrs:["role","option",1,"mat-mdc-list-item","mat-mdc-list-option","mdc-list-item"],hostVars:25,hostBindings:function(n,r){1&n&&J("blur",function(){return r._handleBlur()})("click",function(){return r._toggleOnInteraction()}),2&n&&(Fe("aria-selected",r.selected),ye("mdc-list-item--selected",r.selected&&!r._selectionList.multiple&&r._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",r._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",r._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",r._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",r._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",r._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",r._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",r._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",r._hasRadioAt("after"))("mat-accent","primary"!==r.color&&"warn"!==r.color)("mat-warn","warn"===r.color)("_mat-animation-noopable",r._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],standalone:!0,features:[Ie([{provide:JC,useExisting:i},{provide:WH,useExisting:i}]),me,Oe],ngContentSelectors:dde,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-mdc-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-circle"]],template:function(n,r){if(1&n){const o=fi();At(cde),pe(0,ude,1,0,"ng-template",null,0,Td)(2,hde,6,4,"ng-template",null,1,Td)(4,fde,5,4,"ng-template",null,2,Td)(6,pde,2,1,"span",4)(7,_de,2,1,"span",5)(8,vde,1,1,null,6),E(9,"span",7),X(10),X(11,1),E(12,"span",8,3),J("cdkObserveContent",function(){return Ne(o),Pe(r._updateItemLines(!0))}),X(14,2),T()(),pe(15,wde,2,1,"span",9)(16,Cde,2,1,"span",9)(17,kde,1,1,null,6),X(18,3),Ae(19,"div",10)}2&n&&(P(6),pt(r._hasCheckboxAt("before")?6:r._hasRadioAt("before")?7:-1),P(2),pt(r._hasIconsOrAvatarsAt("before")?8:-1),P(7),pt(r._hasCheckboxAt("after")?15:r._hasRadioAt("after")?16:-1),P(2),pt(r._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[u0,pR],styles:['.mat-mdc-list-option-with-trailing-avatar.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item,.mat-mdc-list-option-with-trailing-avatar.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end,.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{width:40px;height:40px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{border-radius:50%}.mat-mdc-list-option .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mat-mdc-list-option .mdc-radio[hidden]{display:none}.mat-mdc-list-option .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-list-option .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:""}.mat-mdc-list-option .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%}.mat-mdc-list-option .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%}.mat-mdc-list-option .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mat-mdc-list-option .mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mat-mdc-list-option .mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mat-mdc-list-option .mdc-radio--disabled{cursor:default;pointer-events:none}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background,.mat-mdc-list-option [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mat-mdc-list-option .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__background::before{transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:focus+.mdc-radio__background::before{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox--disabled{cursor:default;pointer-events:none}.mat-mdc-list-option .mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-unselected-icon-color);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mat-mdc-list-option .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mat-mdc-list-option .mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mat-mdc-list-option .mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color)}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mat-mdc-list-option .mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mat-mdc-list-option .mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color)}.cdk-high-contrast-active .mat-mdc-list-option .mdc-checkbox__mixedmark{margin:0 1px}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-list-option._mat-animation-noopable .mdc-checkbox *,.mat-mdc-list-option._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-list-option .mdc-radio{padding:calc((40px - 20px) / 2);padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:black;border-color:var(--mdc-radio-disabled-selected-icon-color, black)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:black;border-color:var(--mdc-radio-disabled-selected-icon-color, black)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:0.38;opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:0.38;opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:black;border-color:var(--mdc-radio-disabled-unselected-icon-color, black)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:0.38;opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-focus-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-focus-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-hover-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-hover-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-pressed-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-pressed-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:#212121;border-color:var(--mdc-radio-unselected-hover-icon-color, #212121)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-radio-unselected-icon-color, rgba(0, 0, 0, 0.54))}.mat-mdc-list-option .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-radio-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54))}.mat-mdc-list-option .mdc-radio .mdc-radio__background::before{top:calc(-1 * (40px - 20px) / 2);top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (40px - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:40px;width:var(--mdc-radio-state-layer-size, 40px);height:40px;height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control{top:calc((40px - 40px) / 2);top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:40px;width:var(--mdc-radio-state-layer-size, 40px);height:40px;height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-list-option .mdc-checkbox__native-control,.mat-mdc-list-option .mdc-radio__native-control{display:none}.cdk-high-contrast-active .mat-mdc-list-option.mdc-list-item--selected::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active .mat-mdc-list-option.mdc-list-item--selected [dir=rtl]::after{right:auto;left:16px}'],encapsulation:2,changeDetection:0})}return i})();const Ode={provide:Un,useExisting:Je(()=>ZH),multi:!0};class Rde{constructor(e,t){this.source=e,this.options=t}}let ZH=(()=>{class i extends bc{get multiple(){return this._multiple}set multiple(t){const n=mi(t);n!==this._multiple&&(this._multiple=n,this.selectedOptions=new jC(this._multiple,this.selectedOptions.selected))}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=mi(t)}constructor(t,n){super(),this._element=t,this._ngZone=n,this._initialized=!1,this._destroyed=new Z,this._onChange=r=>{},this.selectionChange=new ie,this.color="accent",this.compareWith=(r,o)=>r===o,this._multiple=!0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this.selectedOptions=new jC(this._multiple),this._onTouched=()=>{},this._selectionListDisabled=!1,this._handleFocusout=()=>{setTimeout(()=>{this._containsFocus()||this._resetActiveOption()})},this._handleFocusin=r=>{if(this.disabled)return;const o=this._items.toArray().findIndex(s=>s._elementRef.nativeElement.contains(r.target));o>-1?this._setActiveOption(o):this._resetActiveOption()},this._isNonInteractive=!1}ngAfterViewInit(){this._initialized=!0,this._setupRovingTabindex(),this._ngZone.runOutsideAngular(()=>{this._element.nativeElement.addEventListener("focusin",this._handleFocusin),this._element.nativeElement.addEventListener("focusout",this._handleFocusout)}),this._value&&this._setOptionsFromValues(this._value),this._watchForSelectionChange()}ngOnChanges(t){const n=t.disabled,r=t.disableRipple,o=t.hideSingleSelectionIndicator;(r&&!r.firstChange||n&&!n.firstChange||o&&!o.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._keyManager?.destroy(),this._element.nativeElement.removeEventListener("focusin",this._handleFocusin),this._element.nativeElement.removeEventListener("focusout",this._handleFocusout),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new Rde(this,t))}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}get disabled(){return this._selectionListDisabled}set disabled(t){this._selectionListDisabled=mi(t),this._selectionListDisabled&&this._keyManager?.setActiveItem(-1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_watchForSelectionChange(){this.selectedOptions.changed.pipe(_t(this._destroyed)).subscribe(t=>{for(let n of t.added)n.selected=!0;for(let n of t.removed)n.selected=!1;this._containsFocus()||this._resetActiveOption()})}_setOptionsFromValues(t){this.options.forEach(n=>n._setSelected(!1)),t.forEach(n=>{const r=this.options.find(o=>!o.selected&&this.compareWith(o.value,n));r&&r._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_markOptionsForCheck(){this.options&&this.options.forEach(t=>t._markForCheck())}_setAllOptionsSelected(t,n){const r=[];return this.options.forEach(o=>{(!n||!o.disabled)&&o._setSelected(t)&&r.push(o)}),r.length&&this._reportValueChange(),r}get options(){return this._items}_handleKeydown(t){const n=this._keyManager.activeItem;if(13!==t.keyCode&&32!==t.keyCode||this._keyManager.isTyping()||!n||n.disabled)if(65===t.keyCode&&this.multiple&&!this._keyManager.isTyping()&&ar(t,"ctrlKey")){const r=this.options.some(o=>!o.disabled&&!o.selected);t.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(r,!0))}else this._keyManager.onKeydown(t);else t.preventDefault(),n._toggleOnInteraction()}_setupRovingTabindex(){this._keyManager=new U0(this._items).withHomeAndEnd().withTypeAhead().withWrap().skipPredicate(()=>this.disabled),this._resetActiveOption(),this._keyManager.change.subscribe(t=>this._setActiveOption(t)),this._items.changes.pipe(_t(this._destroyed)).subscribe(()=>{const t=this._keyManager.activeItem;(!t||-1===this._items.toArray().indexOf(t))&&this._resetActiveOption()})}_setActiveOption(t){this._items.forEach((n,r)=>n._setTabindex(r===t?0:-1)),this._keyManager.updateActiveItem(t)}_resetActiveOption(){if(this.disabled)return void this._setActiveOption(-1);const t=this._items.find(n=>n.selected&&!n.disabled)||this._items.first;this._setActiveOption(t?this._items.toArray().indexOf(t):-1)}_containsFocus(){const t=Am();return t&&this._element.nativeElement.contains(t)}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(U))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-selection-list"]],contentQueries:function(n,r,o){if(1&n&>(o,XH,5),2&n){let s;se(s=ae())&&(r._items=s)}},hostAttrs:["role","listbox",1,"mat-mdc-selection-list","mat-mdc-list-base","mdc-list"],hostVars:1,hostBindings:function(n,r){1&n&&J("keydown",function(s){return r._handleKeydown(s)}),2&n&&Fe("aria-multiselectable",r.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],standalone:!0,features:[Ie([Ode,{provide:bc,useExisting:i},{provide:KH,useExisting:i}]),me,ui,Oe],ngContentSelectors:jH,decls:1,vars:0,template:function(n,r){1&n&&(At(),X(0))},styles:[UH],encapsulation:2,changeDetection:0})}return i})(),Xg=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({imports:[B0,Ls,Ve,$m,WR,zH]})}return i})();class Zg{constructor(e){this.action=tD.Use,this.constraints=[],this.name=e}clone(){const e=new Zg;return e.action=this.action,e.name=this.name,e.constraints=this.constraints.map(t=>t.clone()),e}toString(){return`(${this.action.toString()}) constraints: [ ${this.constraints.map(e=>e.toString()).join(",")} ]`}}class fa{constructor(e=eD.And){this.constraints=[],this.operator=e}clone(){const e=new fa;return e.operator=this.operator,e.constraints=this.constraints.map(t=>t.clone()),e}get_prefixes(){return this.constraints.flatMap(e=>e.get_prefixes())}get_contexts(){return this.constraints.flatMap(e=>e.get_contexts())}toString(){return`${this.operator} constraint: [ ${this.constraints.map(e=>e.toString()).join(",")} ]`}}class bo{constructor(e){this.value=e}toString(){return`${this.value}`}}class li{constructor(e,t=qn.Eq,n,r=Gn.String){this.contexts=[],this.prefixes=[],this.kind=r,this.operator=t,this.leftOperand=e??new bo(""),this.rightOperand=n}clone(){const e=new li;return e.kind=this.kind,e.leftOperand=this.leftOperand,e.operator=this.operator,e.rightOperand=this.rightOperand,e.contexts=this.contexts,e.label=this.label,e.prefixes=this.prefixes,e}get_prefixes(){return this.prefixes}get_contexts(){return this.contexts}get_label(){return null!=this.label?this.label:this.leftOperand.value}with_context(e){return this.contexts.push(e),this}with_prefix(e){return this.prefixes.push(e),this}with_label(e){return this.label=e,this}toString(){return`Constraint ${this.leftOperand} ${this.operator.toString()} ${null!=this.rightOperand?this.rightOperand.toString():""}`}}var Gn=function(i){return i.String="String",i.Number="Number",i.Value="Value",i}(Gn||{});class ma{constructor(e,t){this.value=e,this.ty=t}toString(){return`${this.value}`}}var eD=function(i){return i.And="And",i.Or="Or",i}(eD||{}),tD=function(i){return i.Use="use",i}(tD||{}),qn=function(i){return i.Eq="eq",i.Neq="neq",i.Gte="gteq",i.Lte="lteq",i.In="isPartOf",i.AnyOf="isAnyOf",i.AllOf="isAllOf",i.NoneOf="isNoneOf",i}(qn||{});class iD{constructor(){this.permissions=[]}clone(){const e=new iD;return e.permissions=this.permissions.map(t=>t.clone()),e}}class eh{constructor(e){this.name=e,this.policy=new iD}clone(){const e=new eh(this.name+" (Copy)");return e.policy=this.policy.clone(),e}}var th=function(i){return i.Prefixed="Prefixed",i.Plain="Plain",i}(th||{});function Nde(i,e){}class Qg{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let QH=(()=>{class i extends WC{constructor(t,n,r,o,s,a,l,c){super(),this._elementRef=t,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._platform=O(wt),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=O(Di),this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){const n=this._ariaLabelledByQueue.indexOf(t);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),n}attachTemplatePortal(t){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,n){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{t.removeEventListener("blur",r),t.removeEventListener("mousedown",r),t.removeAttribute("tabindex")};t.addEventListener("blur",r),t.addEventListener("mousedown",r)})),t.focus(n)}_focusByCssSelector(t,n){let r=this._elementRef.nativeElement.querySelector(t);r&&this._forceFocus(r,n)}_trapFocus(){const t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(n=>{n||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const t=this._config.restoreFocus;let n=null;if("string"==typeof t?n=this._document.querySelector(t):"boolean"==typeof t?n=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(n=t),this._config.restoreFocus&&n&&"function"==typeof n.focus){const r=Am(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,n=Am();return t===n||t.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Am()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(AR),b(xe,8),b(Qg),b($0),b(U),b(Gg),b(js))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(1&n&&Et(Hg,7),2&n){let o;se(o=ae())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){2&n&&Fe("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[me,Oe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){1&n&&pe(0,Nde,0,0,"ng-template",0)},dependencies:[Hg],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return i})();class nD{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new Z,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(n=>{27===n.keyCode&&!this.disableClose&&!ar(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{!1!==t.closeOnOverlayDetachments&&this.close()})}close(e,t){if(this.containerInstance){const n=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(e),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}}const JH=new S("DialogScrollStrategy",{providedIn:"root",factory:()=>{const i=O(ai);return()=>i.scrollStrategies.block()}}),Pde=new S("DialogData"),Fde=new S("DefaultDialogConfig");let Bde=0,ez=(()=>{class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,n,r,o,s,a){this._overlay=t,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z,this._afterOpenedAtThisLevel=new Z,this._ariaHiddenElements=new Map,this.afterAllClosed=QC(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Mr(void 0))),this._scrollStrategy=a}open(t,n){(n={...this._defaultOptions||new Qg,...n}).id=n.id||"cdk-dialog-"+Bde++,n.id&&this.getDialogById(n.id);const o=this._getOverlayConfig(n),s=this._overlay.create(o),a=new nD(s,n),l=this._attachContainer(s,a,n);return a.containerInstance=l,this._attachDialogContent(t,a,l,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){rD(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){rD(this._openDialogsAtThisLevel,t=>{!1===t.config.closeOnDestroy&&this._removeOpenDialog(t,!1)}),rD(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){const n=new $g({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(n.backdropClass=t.backdropClass),n}_attachContainer(t,n,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:Qg,useValue:r},{provide:nD,useValue:n},{provide:Gg,useValue:t}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=QH;const l=new Vg(a,r.viewContainerRef,it.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return t.attach(l).instance}_attachDialogContent(t,n,r,o){if(t instanceof dn){const s=this._createInjector(o,n,r,void 0);let a={$implicit:o.data,dialogRef:n};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new Ku(t,null,a,s))}else{const s=this._createInjector(o,n,r,this._injector),a=r.attachComponentPortal(new Vg(t,o.viewContainerRef,s,o.componentFactoryResolver));n.componentRef=a,n.componentInstance=a.instance}}_createInjector(t,n,r,o){const s=t.injector||t.viewContainerRef?.injector,a=[{provide:Pde,useValue:t.data},{provide:nD,useValue:n}];return t.providers&&("function"==typeof t.providers?a.push(...t.providers(n,t,r)):a.push(...t.providers)),t.direction&&(!s||!s.get(oo,null,{optional:!0}))&&a.push({provide:oo,useValue:{value:t.direction,change:Pn()}}),it.create({parent:s||o,providers:a})}_removeOpenDialog(t,n){const r=this.openDialogs.indexOf(t);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const n=t.parentElement.children;for(let r=n.length-1;r>-1;r--){const o=n[r];o!==t&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(n){return new(n||i)(C(ai),C(it),C(Fde,8),C(i,12),C(Wg),C(JH))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function rD(i,e){let t=i.length;for(;t--;)e(i[t])}let Vde=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({providers:[ez],imports:[Ju,Xu,PR,Xu]})}return i})();function Hde(i,e){}class oD{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const sD="mdc-dialog--open",tz="mdc-dialog--opening",iz="mdc-dialog--closing";let nz=(()=>{class i extends QH{constructor(t,n,r,o,s,a,l,c,d){super(t,n,r,o,s,a,l,d),this._animationMode=c,this._animationStateChanged=new ie,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?oz(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?oz(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._isDestroyed=!1,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(rz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(tz,sD)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(sD),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(sD),this._animationsEnabled?(this._hostElement.style.setProperty(rz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(iz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(tz,iz)}_waitForAnimationToComplete(t,n){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._isDestroyed||(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t}))}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer),this._isDestroyed=!0}attachComponentPortal(t){const n=super.attachComponentPortal(t);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(AR),b(xe,8),b(oD),b($0),b(U),b(Gg),b(ri,8),b(js))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,r){2&n&&(To("id",r._config.id),Fe("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),ye("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[me,Oe],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,r){1&n&&(E(0,"div",0)(1,"div",1),pe(2,Hde,0,0,"ng-template",2),T()())},dependencies:[Hg],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return i})();const rz="--mat-dialog-transition-duration";function oz(i){return null==i?null:"number"==typeof i?i:i.endsWith("ms")?Ll(i.substring(0,i.length-2)):i.endsWith("s")?1e3*Ll(i.substring(0,i.length-1)):"0"===i?0:null}var Jg=function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i}(Jg||{});class ih{constructor(e,t,n){this._ref=e,this._containerInstance=n,this._afterOpened=new Z,this._beforeClosed=new Z,this._state=Jg.OPEN,this.disableClose=t.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Lt(r=>"opened"===r.state),Fn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Lt(r=>"closed"===r.state),Fn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),ur(this.backdropClick(),this.keydownEvents().pipe(Lt(r=>27===r.keyCode&&!this.disableClose&&!ar(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),sz(this,"keydown"===r.type?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Lt(t=>"closing"===t.state),Fn(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=Jg.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(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=Jg.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function sz(i,e,t){return i._closeInteractionType=e,i.close(t)}const aD=new S("MatMdcDialogData"),Ude=new S("mat-mdc-dialog-default-options"),az=new S("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const i=O(ai);return()=>i.scrollStrategies.block()}});let Wde=0,e_=(()=>{class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,n,r,o,s,a,l,c){this._overlay=t,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z,this._afterOpenedAtThisLevel=new Z,this.dialogConfigClass=oD,this.afterAllClosed=QC(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Mr(void 0))),this._dialog=n.get(ez),this._dialogRefConstructor=ih,this._dialogContainerType=nz,this._dialogDataToken=aD}open(t,n){let r;(n={...this._defaultOptions||new oD,...n}).id=n.id||"mat-mdc-dialog-"+Wde++,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(t,{...n,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Qg,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,n,l),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let n=t.length;for(;n--;)t[n].close()}static#e=this.\u0275fac=function(n){return new(n||i)(C(ai),C(it),C(Xy,8),C(Ude,8),C(az),C(i,12),C(Wg),C(ri,8))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Gde=0,lD=(()=>{class i{constructor(t,n,r){this.dialogRef=t,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=cz(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const n=t._matDialogClose||t._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(t){sz(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(n){return new(n||i)(b(ih,8),b(te),b(e_))};static#t=this.\u0275dir=R({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,r){1&n&&J("click",function(s){return r._onButtonClick(s)}),2&n&&Fe("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[ui]})}return i})(),lz=(()=>{class i{constructor(t,n,r){this._dialogRef=t,this._elementRef=n,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=cz(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static#e=this.\u0275fac=function(n){return new(n||i)(b(ih,8),b(te),b(e_))};static#t=this.\u0275dir=R({type:i,standalone:!0})}return i})(),cD=(()=>{class i extends lz{constructor(){super(...arguments),this.id="mat-mdc-dialog-title-"+Gde++}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=kt(i)))(r||i)}})();static#t=this.\u0275dir=R({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,r){2&n&&To("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[me]})}return i})(),dD=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=R({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[I1([kce])]})}return i})(),uD=(()=>{class i extends lz{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=kt(i)))(r||i)}})();static#t=this.\u0275dir=R({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,r){2&n&&ye("mat-mdc-dialog-actions-align-start","start"===r.align)("mat-mdc-dialog-actions-align-center","center"===r.align)("mat-mdc-dialog-actions-align-end","end"===r.align)},inputs:{align:"align"},standalone:!0,features:[me]})}return i})();function cz(i,e){let t=i.nativeElement.parentElement;for(;t&&!t.classList.contains("mat-mdc-dialog-container");)t=t.parentElement;return t?e.find(n=>n.id===t.id):null}let hD=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({providers:[e_],imports:[Vde,Ju,Xu,Ve,Ve]})}return i})();function uz(i,e){return e?t=>Vm(e.pipe(Fn(1),function qde(){return ii((i,e)=>{i.subscribe(qt(e,fh))})}()),t.pipe(uz(i))):Bl((t,n)=>ki(i(t,n)).pipe(Fn(1),function Yde(i){return Vt(()=>i)}(t)))}function hz(i,e=Lm){const t=EH(i,e);return uz(()=>t)}const Kde=["mat-menu-item",""],Xde=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Zde=["mat-icon, [matMenuItemIcon]","*"];function Qde(i,e){1&i&&(ja(),E(0,"svg",2),Ae(1,"polygon",3),T())}const Jde=["*"];function eue(i,e){if(1&i){const t=fi();E(0,"div",0),J("keydown",function(r){return Ne(t),Pe(ge()._handleKeydown(r))})("click",function(){return Ne(t),Pe(ge().closed.emit("click"))})("@transformMenu.start",function(r){return Ne(t),Pe(ge()._onAnimationStart(r))})("@transformMenu.done",function(r){return Ne(t),Pe(ge()._onAnimationDone(r))}),E(1,"div",1),X(2),T()()}if(2&i){const t=ge();Is(t._classList),H("id",t.panelId)("@transformMenu",t._panelAnimationState),Fe("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const fD=new S("MAT_MENU_PANEL");let t_=(()=>{class i{constructor(t,n,r,o,s){this._elementRef=t,this._document=n,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new Z,this._focused=new Z,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement.cloneNode(!0),n=t.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",$n("120ms cubic-bezier(0, 0, 0.2, 1)",It({opacity:1,transform:"scale(1)"}))),Dn("* => void",$n("100ms 25ms linear",It({opacity:0})))]),fadeInItems:_o("fadeInItems",[Wn("showing",It({opacity:1})),Dn("void => *",[It({opacity:0}),$n("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let iue=0;const nue=new S("mat-menu-default-options",{providedIn:"root",factory:function rue(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let nh=(()=>{class i{get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}set panelClass(t){const n=this._previousPanelClass,r={...this._classList};n&&n.length&&n.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}get classList(){return this.panelClass}set classList(t){this.panelClass=t}constructor(t,n,r,o){this._elementRef=t,this._changeDetectorRef=o,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new _s,this._classList={},this._panelAnimationState="void",this._animationDone=new Z,this.closed=new ie,this.close=this.closed,this.panelId="mat-menu-panel-"+iue++,this._injector=O(it),this.overlayPanelClass=r.overlayPanelClass||"",this._xPosition=r.xPosition,this._yPosition=r.yPosition,this.backdropClass=r.backdropClass,this.overlapTrigger=r.overlapTrigger,this.hasBackdrop=r.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new U0(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Mr(this._directDescendantItems),Yg(t=>ur(...t.map(n=>n._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const r=t.toArray(),o=Math.max(0,Math.min(r.length-1,n.activeItemIndex||0));r[o]&&!r[o].disabled?n.setActiveItem(o):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Mr(this._directDescendantItems),Yg(n=>ur(...n.map(r=>r._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const n=t.keyCode,r=this._keyManager;switch(n){case 27:ar(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===n||40===n)&&r.setFocusOrigin("keyboard"),void r.onKeydown(t)}t.stopPropagation()}focusFirstItem(t="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=dd(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(t).setFirstItemActive(),!r.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const n=Math.min(this._baseElevation+t,24),r=`${this._elevationPrefix}${n}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!o||o===this._previousElevation){const s={...this._classList};this._previousElevation&&(s[this._previousElevation]=!1),s[r]=!0,this._previousElevation=r,this._classList=s}}setPositionClasses(t=this.xPosition,n=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===t,"mat-menu-after":"after"===t,"mat-menu-above":"above"===n,"mat-menu-below":"below"===n},this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Mr(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(n){return new(n||i)(b(te),b(U),b(nue),b(Di))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-menu"]],contentQueries:function(n,r,o){if(1&n&&(gt(o,tue,5),gt(o,t_,5),gt(o,t_,4)),2&n){let s;se(s=ae())&&(r.lazyContent=s.first),se(s=ae())&&(r._allItems=s),se(s=ae())&&(r.items=s)}},viewQuery:function(n,r){if(1&n&&Et(dn,5),2&n){let o;se(o=ae())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(n,r){2&n&&Fe("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",Le],hasBackdrop:[2,"hasBackdrop","hasBackdrop",t=>null==t?null:Le(t)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Ie([{provide:fD,useExisting:i}]),zi,Oe],ngContentSelectors:Jde,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(n,r){1&n&&(At(),pe(0,eue,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.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{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[i_.transformMenu,i_.fadeInItems]},changeDetection:0})}return i})();const fz=new S("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const i=O(ai);return()=>i.scrollStrategies.reposition()}}),sue={provide:fz,deps:[ai],useFactory:function oue(i){return()=>i.scrollStrategies.reposition()}},mz=Vs({passive:!0});let aue=(()=>{class i{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(n=>{this._destroyMenu(n),("click"===n||"tab"===n)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(t,n,r,o,s,a,l,c,d){this._overlay=t,this._element=n,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ze.EMPTY,this._hoverSubscription=Ze.EMPTY,this._menuCloseSubscription=Ze.EMPTY,this._changeDetectorRef=O(Di),this._handleTouchStart=u=>{G0(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ie,this.onMenuOpen=this.menuOpened,this.menuClosed=new ie,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof nh?s:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,mz)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,mz),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const t=this.menu;if(this._menuOpen||!t)return;const n=this._createOverlay(t),r=n.getConfig(),o=r.positionStrategy;this._setPosition(t,o),r.hasBackdrop=null==t.hasBackdrop?!this.triggersSubmenu():t.hasBackdrop,n.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof nh&&(t._startAnimation(),t._directDescendantItems.changes.pipe(_t(t.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof nh?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Lt(r=>"void"===r.toState),Fn(1),_t(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let n=0,r=t.parentMenu;for(;r;)n++,r=r.parentMenu;t.setElevation(n)}}_setIsMenuOpen(t){t!==this._menuOpen&&(this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t),this._changeDetectorRef.markForCheck())}_createOverlay(t){if(!this._overlayRef){const n=this._getOverlayConfig(t);this._subscribeToPositions(t,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new $g({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,n){t.setPositionClasses&&n.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",s="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>t.setPositionClasses(o,s)):t.setPositionClasses(o,s)})}_setPosition(t,n){let[r,o]="before"===t.xPosition?["end","start"]:["start","end"],[s,a]="above"===t.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[d,u]=[r,o],h=0;if(this.triggersSubmenu()){if(u=r="before"===t.xPosition?"start":"end",o=d="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const f=this._parentMaterialMenu.items.first;this._parentInnerPadding=f?f._getHostElement().offsetTop:0}h="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");n.withPositions([{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:h},{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:h},{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:-h},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:-h}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return ur(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Pn(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Lt(s=>s!==this._menuItemInstance),Lt(()=>this._menuOpen)):Pn(),n)}_handleMousedown(t){W0(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const n=t.keyCode;(13===n||32===n)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===n&&"ltr"===this.dir||37===n&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Lt(t=>t===this._menuItemInstance&&!t.disabled),hz(0,YC)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof nh&&this.menu._isAnimating?this.menu._animationDone.pipe(Fn(1),hz(0,YC),_t(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new Ku(t.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(n){return new(n||i)(b(ai),b(te),b(Hi),b(fz),b(fD,8),b(t_,10),b(oo,8),b(js),b(U))};static#t=this.\u0275dir=R({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,r){1&n&&J("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),2&n&&Fe("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.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"],standalone:!0})}return i})(),mD=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({providers:[sue],imports:[Ls,$m,Ve,Ju,Qu,Ve]})}return i})();function lue(i,e){if(1&i){const t=fi();E(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),be(3,"Right Operand Value"),T(),E(4,"input",3),mn("ngModelChange",function(r){Ne(t);const o=ge();return On(o.value.value,r)||(o.value.value=r),Pe(r)}),T()(),E(5,"mat-form-field",2)(6,"mat-label"),be(7,"Right Operand Value Type"),T(),E(8,"input",3),mn("ngModelChange",function(r){Ne(t);const o=ge();return On(o.value.ty,r)||(o.value.ty=r),Pe(r)}),T()()()}if(2&i){const t=ge();P(4),fn("ngModel",t.value.value),H("disabled",t.disabled),P(4),fn("ngModel",t.value.ty),H("disabled",t.disabled)}}let cue=(()=>{class i{constructor(){this.disabled=!1}ngOnInit(){this.constraint.kind===Gn.Value&&(null==this.constraint.rightOperand&&(this.constraint.rightOperand=new ma),this.value=this.constraint.rightOperand)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-value-expression"]],inputs:{constraint:"constraint",disabled:"disabled"},standalone:!0,features:[Oe],decls:1,vars:1,consts:[["class","w-full",4,"ngIf"],[1,"w-full"],["appearance","outline",1,"w-full"],["matInput","",3,"ngModelChange","ngModel","disabled"]],template:function(n,r){1&n&&pe(0,lue,9,4,"div",0),2&n&&H("ngIf",r.value)},dependencies:[Xg,mD,Po,ao,da,aa,la,Jo,Wr,gc,es,ha,_c,Bg,c0],encapsulation:2})}return i})();const n_="inForceDate",pz="dateExpression",gz="https://w3id.org/tractusx/edc/v0.0.1",_z="xsd:datetime",bz=()=>new li(new bo("BusinessPartnerNumber"),qn.Eq,"",Gn.String).with_context(gz),vz=()=>new li(new bo("BusinessPartnerGroup"),qn.In,"").with_context(gz),yz=()=>{const i=new fa;return i.constraints.push(new li(new bo(n_),qn.Gte,new ma("2023-01-01T00:00:01Z",_z),Gn.Value).with_prefix("xsd")),i.constraints.push(new li(new bo(n_),qn.Lte,new ma("2024-01-01T00:00:01Z",_z),Gn.Value).with_prefix("xsd")),i},wz=()=>{const i=new fa;return i.constraints.push(new li(new bo(n_),qn.Gte,new ma("contractAgreement+0s",pz),Gn.Value)),i.constraints.push(new li(new bo(n_),qn.Lte,new ma("contractAgreement+100d",pz),Gn.Value)),i},hue=[{name:"Membership",value:"active",label:"Membership"},{name:"Dismantler",value:"active",label:"Dismantler"},...["Pcf","Traceability","Quality","CircularEconomy","DemandCapacity","Puris","BusinessPartner","BehavioralTwin"].map(i=>({name:"FrameworkAgreement",value:`${i}:`,label:i}))],xz=()=>hue.map(i=>new li(new bo(i.name),qn.Eq,i.value).with_context("https://w3id.org/tractusx/policy/v1.0.0").with_label(i.label)),fue={edc:"https://w3id.org/edc/v0.0.1/ns/",tx:"https://w3id.org/tractusx/v0.0.1/ns/",xsd:"http://www.w3.org/2001/XMLSchema#",odrl:"http://www.w3.org/ns/odrl/2/"};let vc=(()=>{class i{logicalOperators(){return this.values(eD)}operators(){return this.values(qn)}valueKinds(){return this.values(Gn)}actions(){return this.values(tD)}supportedOutput(){return this.values(th)}values(t){return Object.values(t).filter(n=>"string"==typeof n)}constraintTemplates(){const n=xz().map(r=>({name:r.get_label()+" credential",multiple:!1,factory:()=>r}));return[{name:"Atomic Constraint",multiple:!1,factory:()=>new li(new bo(""),qn.Eq,"")},{name:"Logical Constraint",multiple:!0,factory:()=>new fa},{name:"BPN Constraint",multiple:!1,factory:bz},{name:"BPN Group Constraint",multiple:!1,factory:vz},{name:"In Force Constraint (Duration)",multiple:!0,factory:wz},{name:"In Force Constraint (Fixed)",multiple:!0,factory:yz},...n]}namespacesFor(t){const n={};return t.policy.permissions.flatMap(r=>r.constraints).map(r=>r.get_prefixes()).flat().forEach(r=>{n[r]=fue[r]??`https://<${r}-namespace-here>`}),n}contextsFor(t){const n=t.policy.permissions.flatMap(r=>r.constraints).flatMap(r=>r.get_contexts());return Array.from(new Set(n))}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function mue(i,e){if(1&i&&(E(0,"mat-option",10),be(1),T()),2&i){const t=e.$implicit;H("value",t),P(),nr(" ",t," ")}}function pue(i,e){if(1&i&&(E(0,"mat-option",10),be(1),T()),2&i){const t=e.$implicit;H("value",t),P(),nr(" ",t," ")}}function gue(i,e){if(1&i){const t=fi();E(0,"mat-form-field",11)(1,"mat-label"),be(2,"Right Operand"),T(),E(3,"input",3),mn("ngModelChange",function(r){Ne(t);const o=ge();return On(o.constraint.rightOperand,r)||(o.constraint.rightOperand=r),Pe(r)}),T()()}if(2&i){const t=ge();P(3),fn("ngModel",t.constraint.rightOperand),H("disabled",t.disabled)}}function _ue(i,e){if(1&i){const t=fi();E(0,"mat-form-field",11)(1,"mat-label"),be(2,"Right Operand"),T(),E(3,"input",12),mn("ngModelChange",function(r){Ne(t);const o=ge();return On(o.constraint.rightOperand,r)||(o.constraint.rightOperand=r),Pe(r)}),T()()}if(2&i){const t=ge();P(3),fn("ngModel",t.constraint.rightOperand),H("disabled",t.disabled)}}function bue(i,e){1&i&&Ae(0,"app-value-expression",13),2&i&&H("constraint",ge().constraint)}let Cz=(()=>{class i{constructor(t){this.disabled=!1,this.operators=t.operators(),this.types=t.valueKinds()}onKindChange(t){switch(t){case Gn.Number:this.constraint.rightOperand=0;break;case Gn.String:this.constraint.rightOperand="";break;case Gn.Value:this.constraint.rightOperand=new ma("","")}}static#e=this.\u0275fac=function(n){return new(n||i)(b(vc))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-atomic-constraint"]],inputs:{constraint:"constraint",disabled:"disabled"},standalone:!0,features:[Oe],decls:20,vars:12,consts:[[1,"flex","flex-col"],[1,"flex","flex-row","gap-x-1"],["appearance","outline",1,"w-3/5"],["matInput","",3,"ngModelChange","ngModel","disabled"],["appearance","outline"],[3,"ngModelChange","ngModel","disabled"],[3,"value",4,"ngFor","ngForOf"],[1,"w-full",3,"ngSwitch"],["appearance","outline","class","w-full",4,"ngSwitchCase"],["class","w-full",3,"constraint",4,"ngSwitchCase"],[3,"value"],["appearance","outline",1,"w-full"],["matInput","","type","number",3,"ngModelChange","ngModel","disabled"],[1,"w-full",3,"constraint"]],template:function(n,r){1&n&&(E(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),be(4,"Left Operand (value)"),T(),E(5,"input",3),mn("ngModelChange",function(s){return On(r.constraint.leftOperand.value,s)||(r.constraint.leftOperand.value=s),s}),T()()(),E(6,"mat-form-field",4)(7,"mat-label"),be(8,"Operator"),T(),E(9,"mat-select",5),mn("ngModelChange",function(s){return On(r.constraint.operator,s)||(r.constraint.operator=s),s}),pe(10,mue,2,2,"mat-option",6),T()(),E(11,"mat-form-field",4)(12,"mat-label"),be(13,"Right Operand Kind"),T(),E(14,"mat-select",5),mn("ngModelChange",function(s){return On(r.constraint.kind,s)||(r.constraint.kind=s),s}),J("ngModelChange",function(s){return r.onKindChange(s)}),pe(15,pue,2,2,"mat-option",6),T()(),E(16,"div",7),pe(17,gue,4,2,"mat-form-field",8)(18,_ue,4,2,"mat-form-field",8)(19,bue,1,1,"app-value-expression",9),T()()),2&n&&(P(5),fn("ngModel",r.constraint.leftOperand.value),H("disabled",r.disabled),P(4),fn("ngModel",r.constraint.operator),H("disabled",r.disabled),P(),H("ngForOf",r.operators),P(4),fn("ngModel",r.constraint.kind),H("disabled",r.disabled),P(),H("ngForOf",r.types),P(),H("ngSwitch",r.constraint.kind),P(),H("ngSwitchCase","String"),P(),H("ngSwitchCase","Number"),P(),H("ngSwitchCase","Value"))},dependencies:[Xg,mD,Po,ao,da,aa,AC,la,Jo,Wr,gc,es,ha,Kg,Xd,_c,Bg,Fs,Dm,_O,cue],encapsulation:2})}return i})(),vue=(()=>{class i{constructor(t,n){this.dialogRef=t,this.data=n,this.constraint=n.clone(),this.operators=Object.values(qn).filter(r=>"string"==typeof r)}cancel(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||i)(b(ih),b(aD))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-constraint-dialog"]],standalone:!0,features:[Oe],decls:10,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"pt-2"],[1,"pt-2",3,"constraint"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(n,r){1&n&&(E(0,"h1",0),be(1,"Edit Constraint"),T(),E(2,"div",1)(3,"div",2),Ae(4,"app-atomic-constraint",3),T()(),E(5,"div",4)(6,"button",5),J("click",function(){return r.cancel()}),be(7,"Cancel"),T(),E(8,"button",6),be(9,"Save"),T()()),2&n&&(P(4),H("constraint",r.constraint),P(4),H("mat-dialog-close",r.constraint))},dependencies:[hD,lD,cD,uD,dD,Wr,da,ao,sw,_c,ha,Cz],encapsulation:2})}return i})();function yue(i,e){if(1&i){const t=fi();E(0,"button",6),J("click",function(){const r=Ne(t).$implicit;return Pe(ge().addConstraint(r.factory()))}),E(1,"span",7),be(2),T()()}if(2&i){const t=e.$implicit;P(2),Rs(t.name)}}function wue(i,e){if(1&i){const t=fi();E(0,"mat-list-item")(1,"div",1)(2,"span",8),be(3),T(),E(4,"div")(5,"button",9),J("click",function(){const r=Ne(t).$implicit;return Pe(ge().editConstraint(r))}),E(6,"mat-icon"),be(7,"edit"),T()(),E(8,"button",10),J("click",function(){const r=Ne(t).$implicit;return Pe(ge().removeConstraint(r))}),E(9,"mat-icon"),be(10,"delete"),T()()()()()}if(2&i){const t=e.$implicit;P(3),nr(" ",t.toString(),"")}}let Dz=(()=>{class i{constructor(){this.constraints=[],this.constraintRemove=new ie,this.constraintAdd=new ie,this.constraintEdit=new ie}addConstraint(t){this.container.constraints.push(t),this.constraintAdd.emit(t),this.editConstraint(t)}removeConstraint(t){this.container.constraints=this.container.constraints.filter(n=>n!=t),this.constraintRemove.emit(t)}editConstraint(t){this.constraintEdit.emit(t)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-constraint-list"]],inputs:{container:"container",constraints:"constraints"},outputs:{constraintRemove:"constraintRemove",constraintAdd:"constraintAdd",constraintEdit:"constraintEdit"},standalone:!0,features:[Oe],decls:13,vars:3,consts:[["menu","matMenu"],[1,"flex","flex-row","justify-between","items-center"],["mat-icon-button","","color","primary","matTooltip","Add constraint",3,"matMenuTriggerFor"],["xPosition","before",1,"constraints-menu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"text-ellipsis","overflow-hidden"],[1,"w-4/5","text-ellipsis","overflow-hidden"],["mat-icon-button","","color","primary","matTooltip","Edit constraint",3,"click"],["mat-icon-button","","color","primary","matTooltip","Delete constraint",3,"click"]],template:function(n,r){if(1&n&&(E(0,"mat-list")(1,"mat-list-item")(2,"div",1)(3,"span"),be(4,"Constraints"),T(),E(5,"button",2)(6,"mat-icon"),be(7,"add"),T()(),E(8,"mat-menu",3,0),pe(10,yue,3,1,"button",4),T()()(),Ae(11,"mat-divider"),pe(12,wue,11,1,"mat-list-item",5),T()),2&n){const o=In(9);P(5),H("matMenuTriggerFor",o),P(5),H("ngForOf",r.constraints),P(2),H("ngForOf",r.container.constraints)}},dependencies:[Xg,Ade,Ide,ode,mD,nh,t_,aue,Po,kN,Fs,ao,SN],encapsulation:2})}return i})();function xue(i,e){if(1&i&&(E(0,"mat-option",13),be(1),T()),2&i){const t=e.$implicit;H("value",t),P(),nr(" ",t," ")}}let Cue=(()=>{class i{constructor(t,n,r){this.dialogRef=n,this.data=r,this.currentConstraint=new li,this.constraint=r.constraint.clone(),this.logicalOperators=t.logicalOperators(),this.operators=t.operators(),this.constraints=r.constraints;const o=this.constraint.constraints.filter(s=>s instanceof li).map(s=>s);o.length>0&&(this.currentConstraint=o[0])}onConstraintAdd(t){t instanceof li&&(this.currentConstraint=t)}onConstraintRemove(t){t instanceof li&&0==this.constraint.constraints.length&&(this.currentConstraint=new li)}onConstraintEdit(t){this.editConstraint(t)}isEditorDisabled(){return 0==this.constraint.constraints.length}editConstraint(t){t instanceof li&&(this.currentConstraint=t)}cancel(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||i)(b(vc),b(ih),b(aD))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-logical-dialog"]],standalone:!0,features:[Oe],decls:19,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex","flex-col","pt-2"],["appearance","outline"],[3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"flex","flex-row"],[1,"w-3/5",3,"constraintRemove","constraintAdd","constraintEdit","container","constraints"],[1,"w-2/5"],[3,"constraint","disabled"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],[3,"value"]],template:function(n,r){1&n&&(E(0,"h1",0),be(1,"Edit Logical Constraint"),T(),E(2,"div",1)(3,"div",2)(4,"mat-form-field",3)(5,"mat-label"),be(6,"Operator"),T(),E(7,"mat-select",4),mn("ngModelChange",function(s){return On(r.constraint.operator,s)||(r.constraint.operator=s),s}),pe(8,xue,2,2,"mat-option",5),T()(),E(9,"div",6)(10,"app-constraint-list",7),J("constraintRemove",function(s){return r.onConstraintRemove(s)})("constraintAdd",function(s){return r.onConstraintAdd(s)})("constraintEdit",function(s){return r.onConstraintEdit(s)}),T(),E(11,"mat-card",8)(12,"mat-card-content"),Ae(13,"app-atomic-constraint",9),T()()()()(),E(14,"div",10)(15,"button",11),J("click",function(){return r.cancel()}),be(16,"Cancel"),T(),E(17,"button",12),be(18,"Save"),T()()),2&n&&(P(7),fn("ngModel",r.constraint.operator),P(),H("ngForOf",r.logicalOperators),P(2),H("container",r.constraint)("constraints",r.constraints),P(3),H("constraint",r.currentConstraint)("disabled",r.isEditorDisabled()),P(4),H("mat-dialog-close",r.constraint))},dependencies:[hD,lD,cD,uD,dD,Wr,gc,es,da,la,Jo,ao,sw,_c,ha,Kg,Xd,Fs,Po,kg,fC,mC,Dz,Cz],encapsulation:2})}return i})();const Due=["tooltip"],Ez=new S("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const i=O(ai);return()=>i.scrollStrategies.reposition({scrollThrottle:20})}}),Eue={provide:Ez,deps:[ai],useFactory:function kue(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}},Mue=new S("mat-tooltip-default-options",{providedIn:"root",factory:function Sue(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Sz="tooltip-panel",Mz=Vs({passive:!0});let Tz=(()=>{class i{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=mi(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){this._disabled=mi(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=Ll(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=Ll(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,n,r,o,s,a,l,c,d,u,h,f){this._overlay=t,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=u,this._defaultOptions=h,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Rue,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Z,this._injector=O(it),this._scrollStrategy=d,this._document=f,h&&(this._showDelay=h.showDelay,this._hideDelay=h.hideDelay,h.position&&(this.position=h.position),h.positionAtOrigin&&(this.positionAtOrigin=h.positionAtOrigin),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(_t(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(_t(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,r])=>{t.removeEventListener(n,r,Mz)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(n);this._detach(),this._portal=this._portal||new Vg(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(_t(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){const n=this._tooltipInstance;n&&(n.isVisible()?n.hide(t):(n._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof te)return this._overlayRef;this._detach()}const n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&t||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(_t(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Sz}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(_t(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(_t(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(_t(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!ar(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const n=t.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();n.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(t){const r=!this._dir||"ltr"==this._dir.value;return"top"===t.originY?t.offsetY=-8:"bottom"===t.originY?t.offsetY=8:"start"===t.originX?t.offsetX=r?-8:8:"end"===t.originX&&(t.offsetX=r?8:-8),t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,n=this.position;let r;"above"==n||"below"==n?r={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?r={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,n=this.position;let r;"above"==n?r={overlayX:"center",overlayY:"bottom"}:"below"==n?r={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?r={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),dd(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,n){return"above"===this.position||"below"===this.position?"top"===n?n="bottom":"bottom"===n&&(n="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:n}}_updateCurrentPositionClass(t){const{overlayY:n,originX:r,originY:o}=t;let s;if(s="center"===n?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===n&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${Sz}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{let n;this._setupPointerExitEventsIfNeeded(),void 0!==t.x&&void 0!==t.y&&(n=t),this.show(void 0,n)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{const n=t.targetTouches?.[0],r=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",n=>{const r=n.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",n],["touchcancel",n])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([n,r])=>{this._elementRef.nativeElement.addEventListener(n,r,Mz)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const n=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;n!==r&&!r.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const n=this._elementRef.nativeElement,r=n.style;("on"===t||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!n.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(n){return new(n||i)(b(ai),b(te),b(KC),b(Hi),b(U),b(wt),b(oZ),b(js),b(Ez),b(oo),b(Mue,8),b(xe))};static#t=this.\u0275dir=R({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,r){2&n&&ye("mat-mdc-tooltip-disabled",r.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"],standalone:!0})}return i})(),Rue=(()=>{class i{constructor(t,n,r){this._changeDetectorRef=t,this._elementRef=n,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Z,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===r}show(t){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}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:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>24&&t.width>=200}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const n=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(n.classList.remove(t?o:r),n.classList.add(t?r:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(n);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static#e=this.\u0275fac=function(n){return new(n||i)(b(Di),b(te),b(ri,8))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(n,r){if(1&n&&Et(Due,7),2&n){let o;se(o=ae())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,r){1&n&&J("mouseleave",function(s){return r._handleMouseLeave(s)}),2&n&&Wf("zoom",r.isVisible()?1:null)},standalone:!0,features:[Oe],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(n,r){if(1&n){const o=fi();E(0,"div",1,0),J("animationend",function(a){return Ne(o),Pe(r._handleAnimationEnd(a))}),E(2,"div",2),be(3),T()()}2&n&&(ye("mdc-tooltip--multiline",r._isMultiline),H("ngClass",r.tooltipClass),P(3),Rs(r.message))},dependencies:[l0],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{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);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return i})(),gD=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({providers:[Eue],imports:[PR,Ls,Ju,Ve,Ve,Qu]})}return i})();function Nue(i,e){if(1&i&&(E(0,"mat-option",7),be(1),T()),2&i){const t=e.$implicit;H("value",t),P(),nr(" ",t," ")}}let Pue=(()=>{class i{constructor(t,n){this.dialog=t,this.permissionChange=new ie,this.constraints=[],this.actions=n.actions(),this.constraints=n.constraintTemplates()}onConstraintChange(t){this.permissionChange.emit()}onConstraintEdit(t){this.editConstraint(t)}editConstraint(t){const n=r=>{const o=this.permission.constraints.indexOf(t);null!=r&&-1!=o&&(this.permission.constraints[o]=r,this.permissionChange.emit())};t instanceof li?this.dialog.open(vue,{data:t,minWidth:"400px"}).afterClosed().subscribe(n):t instanceof fa&&this.dialog.open(Cue,{data:{constraint:t,constraints:this.constraints.filter(o=>!o.multiple)},minWidth:"600px"}).afterClosed().subscribe(n)}static#e=this.\u0275fac=function(n){return new(n||i)(b(e_),b(vc))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-permission"]],inputs:{permission:"permission",constraints:"constraints"},outputs:{permissionChange:"permissionChange"},standalone:!0,features:[Oe],decls:13,vars:5,consts:[[1,"grow"],[1,"flex","flex-col"],["appearance","outline"],["matInput","","placeholder","Permission name",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"constraintRemove","constraintAdd","constraintEdit","container","constraints"],[3,"value"]],template:function(n,r){1&n&&(E(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"mat-form-field",2)(4,"mat-label"),be(5,"Name"),T(),E(6,"input",3),mn("ngModelChange",function(s){return On(r.permission.name,s)||(r.permission.name=s),s}),T()(),E(7,"mat-form-field",2)(8,"mat-label"),be(9,"Action"),T(),E(10,"mat-select",4),mn("ngModelChange",function(s){return On(r.permission.action,s)||(r.permission.action=s),s}),pe(11,Nue,2,2,"mat-option",5),T()(),E(12,"app-constraint-list",6),J("constraintRemove",function(s){return r.onConstraintChange(s)})("constraintAdd",function(s){return r.onConstraintChange(s)})("constraintEdit",function(s){return r.onConstraintEdit(s)}),T()()()()),2&n&&(P(6),fn("ngModel",r.permission.name),P(4),fn("ngModel",r.permission.action),P(),H("ngForOf",r.actions),P(),H("container",r.permission)("constraints",r.constraints))},dependencies:[kg,fC,mC,Wr,gc,es,ha,Kg,Xd,Fs,da,aa,la,Jo,_c,Bg,Po,ao,hD,gD,Dz],encapsulation:2})}return i})();function Fue(i,e){if(1&i&&(E(0,"mat-list-option",12),be(1),T()),2&i){const t=e.$implicit;H("value",t),P(),nr(" ",t.name," ")}}function Lue(i,e){if(1&i){const t=fi();E(0,"app-permission",13),J("permissionChange",function(){return Ne(t),Pe(ge().onPermissionChange())}),T()}2&i&&H("permission",ge().currentPermission)}let Bue=(()=>{class i{constructor(){this.policyChange=new ie,this.selectedPermissions=[],this.panelOpenState=!0}get policyConfig(){return this._policyConfig}set policyConfig(t){this._policyConfig=t,this.currentPermission=t.policy.permissions.length>0?t.policy.permissions[0]:void 0}addPermission(){this.currentPermission=new Zg("New Permission"),this.policyConfig.policy.permissions.push(this.currentPermission),this.policyChange.emit(this.policyConfig)}onPermissionChange(){this.policyChange.emit(this.policyConfig)}onPermissionSelectionChange(t){null!=t&&t.length>0&&(this.currentPermission=t[0])}removePermission(){this.currentPermission&&(this.policyConfig.policy.permissions=this.policyConfig.policy.permissions.filter(t=>t!=this.currentPermission),this.currentPermission=this.policyConfig.policy.permissions[0],this.policyChange.emit(this.policyConfig))}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-policy-builder"]],inputs:{policyConfig:"policyConfig"},outputs:{policyChange:"policyChange"},standalone:!0,features:[Oe],decls:22,vars:5,consts:[["input",""],["shoes",""],[1,"policy-builder-container"],[1,"w-full"],["matInput","","placeholder","My Policy",3,"ngModelChange","ngModel"],["expanded","panelOpenState",3,"opened","closed"],[1,"flex","flex-row","justify-between"],[1,"w-1/5",3,"ngModelChange","multiple","ngModel"],["selected","permission === currentPermission",3,"value",4,"ngFor","ngForOf"],["class","grow w-4/5",3,"permission","permissionChange",4,"ngIf"],["mat-button","","color","primary","matTooltip","Remove selected permission",3,"click"],["mat-button","","color","primary","matTooltip","Add permission",3,"click"],["selected","permission === currentPermission",3,"value"],[1,"grow","w-4/5",3,"permissionChange","permission"]],template:function(n,r){if(1&n){const o=fi();E(0,"div",2)(1,"div")(2,"mat-form-field",3)(3,"mat-label"),be(4,"Policy Name"),T(),E(5,"input",4,0),mn("ngModelChange",function(a){return Ne(o),On(r.policyConfig.name,a)||(r.policyConfig.name=a),Pe(a)}),T()()(),E(7,"mat-accordion",3)(8,"mat-expansion-panel",5),J("opened",function(){return Ne(o),Pe(r.panelOpenState=!0)})("closed",function(){return Ne(o),Pe(r.panelOpenState=!1)}),E(9,"mat-expansion-panel-header")(10,"mat-panel-title"),be(11," Permission "),T()(),E(12,"div",6)(13,"mat-selection-list",7,1),J("ngModelChange",function(a){return Ne(o),Pe(r.onPermissionSelectionChange(a))}),pe(15,Fue,2,2,"mat-list-option",8),T(),pe(16,Lue,1,1,"app-permission",9),T(),E(17,"mat-action-row")(18,"button",10),J("click",function(){return Ne(o),Pe(r.removePermission())}),be(19," Remove "),T(),E(20,"button",11),J("click",function(){return Ne(o),Pe(r.addPermission())}),be(21,"Add"),T()()()()()}2&n&&(P(5),fn("ngModel",r.policyConfig.name),P(8),H("multiple",!1)("ngModel",r.selectedPermissions),P(2),H("ngForOf",r.policyConfig.policy.permissions),P(),H("ngIf",r.currentPermission))},dependencies:[ao,sw,Ble,Wr,gc,es,_c,Bg,Po,sce,oce,wH,nce,CH,rce,ha,Xg,ZH,XH,zH,Fs,c0,kg,Pue,da,aa,la,Jo,gD,Tz],styles:[".policy-builder-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]})}return i})();const Vue=["http://www.w3.org/ns/odrl.jsonld"],Hue={"@vocab":"https://w3id.org/edc/v0.0.1/ns/"},Az={"@type":"Set"},jue=Object.assign({"@context":{},"@type":"PolicyDefinition","@id":"{{POLICY_ID}}",policy:{}},{policy:{...Az,permission:[]}});class Uue{constructor(e){this.policyService=e}toJsonLd(e){const t=e.policy.permissions.map(this.mapPermission.bind(this)),n=this.policyService.namespacesFor(e),r=this.policyService.contextsFor(e),o=[...Vue,...r,Object.assign(Hue,n)];return Object.assign(jue,{"@context":o,policy:{...Az,permission:t}})}mapPermission(e){return{action:e.action.toString(),constraint:e.constraints.map(this.mapConstraint.bind(this))}}mapConstraint(e){if(e instanceof li)return{leftOperand:e.leftOperand.toString(),operator:e.operator.toString(),rightOperand:this.mapRightOperand(e)};if(e instanceof fa){const t={};return t[e.operator.toString().toLowerCase()]=e.constraints.map(this.mapConstraint.bind(this)),t}return{}}mapRightOperand(e){return e.rightOperand instanceof ma?{"@value":e.rightOperand.value,"@type":e.rightOperand.ty}:e.rightOperand}}let Iz=(()=>{class i{constructor(t){this.policyService=t,this.formatters=new Map,this.formatters.set(th.Plain,new Uue(t))}toJsonLd(t,n=th.Prefixed){const r=this.formatters.get(n);if(null!=r)return r.toJsonLd(t);throw new Error("Formatter not found")}formatPolicy(t){return JSON.stringify(t,null,2)}static#e=this.\u0275fac=function(n){return new(n||i)(C(vc))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Oz=(()=>{class i{constructor(){this.configurations=[],this.configurations=[rh("Business Partner Number Policy",bz(),"Bpn permission"),rh("Business Partner Group Policy",vz(),"Business Partner Group permission"),rh("InForce Policy (Fixed)",yz()),rh("InForce Policy (Duration)",wz()),...xz().map(i=>rh(`${i.get_label()} Policy`,i))]}loadConfigurations(){return this.configurations}store(t){this.configurations.push(t)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})();function rh(i,e,t="Permission"){const n=new eh(i),r=new Zg;return r.name=t,r.constraints.push(e),n.policy.permissions.push(r),n}function Kue(i,e){if(1&i&&(E(0,"mat-option",12),be(1),T()),2&i){const t=e.$implicit;H("value",t),P(),nr(" ",t.name," ")}}let Rz=(()=>{class i{constructor(t,n,r){this.formatService=t,this.store=n,this.policyService=r,this.configurations=[],this.configurations=n.loadConfigurations(),this.currentFormat=th.Plain,0==this.configurations.length&&n.store(new eh("Policy Template")),this.policyConfig=this.configurations[0],this.outputFormats=r.supportedOutput(),this.updateJsonText(this.policyConfig,this.currentFormat)}addPolicy(){this.policyConfig=new eh("New Policy"),this.store.store(this.policyConfig)}copyPolicy(){this.policyConfig=this.policyConfig.clone(),this.store.store(this.policyConfig)}onConfigSelectionChange(t){this.policyConfig=t,this.updateJsonText(t,this.currentFormat)}onConfigChange(t){this.updateJsonText(t,this.currentFormat)}updateJsonText(t,n){const r=this.formatService.toJsonLd(t,n);this.text=this.formatService.formatPolicy(r)}static#e=this.\u0275fac=function(n){return new(n||i)(b(Iz),b(Oz),b(vc))};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-policy-editor"]],standalone:!0,features:[Oe],decls:18,vars:4,consts:[[1,"policy-editor-container"],[1,"policy-editor-container","flex","justify-center"],["appearance","outline"],[3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","matTooltip","Create new policy",3,"click"],["mat-icon-button","","color","primary","matTooltip","Copy the selected policy",3,"click"],[1,"flex","flex-row","policy-split-container"],[1,"policy-card-container","w-3/5"],[3,"policyChange","policyConfig"],[1,"policy-card-container","w-2/5"],[1,"policy-editor",3,"text"],[3,"value"]],template:function(n,r){1&n&&(E(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),be(4,"Select policy"),T(),E(5,"mat-select",3),J("ngModelChange",function(s){return r.onConfigSelectionChange(s)}),pe(6,Kue,2,2,"mat-option",4),T()(),E(7,"button",5),J("click",function(){return r.addPolicy()}),E(8,"mat-icon"),be(9,"add"),T()(),E(10,"button",6),J("click",function(){return r.copyPolicy()}),E(11,"mat-icon"),be(12,"content_copy"),T()()(),E(13,"div",7)(14,"div",8)(15,"app-policy-builder",9),J("policyChange",function(s){return r.onConfigChange(s)}),T()(),E(16,"div",10),Ae(17,"app-editor",11),T()()()),2&n&&(P(5),H("ngModel",r.policyConfig),P(),H("ngForOf",r.configurations),P(9),H("policyConfig",r.policyConfig),P(2),H("text",r.text))},dependencies:[Cse,Ese,kg,Bue,Wr,gc,es,ha,Kg,Xd,Po,kN,ao,SN,da,la,Jo,Fs,gD,Tz],styles:[".policy-editor[_ngcontent-%COMP%], .policy-editor-card[_ngcontent-%COMP%]{height:100%;width:100%}.policy-editor-container[_ngcontent-%COMP%]{width:90%;margin:20px auto auto}.policy-card-container[_ngcontent-%COMP%]{height:100%;border-radius:4px;border:1px solid rgba(0,0,0,.2)}.policy-split-container[_ngcontent-%COMP%]{column-gap:5px}"]})}return i})(),Xue=(()=>{class i{constructor(){this.title="edc-policy-playground"}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=Ee({type:i,selectors:[["app-root"]],decls:2,vars:0,template:function(n,r){1&n&&Ae(0,"app-header")(1,"app-policy-editor")},dependencies:[MN,Rz],encapsulation:2})}return i})();function Nz(i){return new k(3e3,!1)}function is(i){switch(i.length){case 0:return new Yu;case 1:return i[0];default:return new nH(i)}}function Pz(i,e,t=new Map,n=new Map){const r=[],o=[];let s=-1,a=null;if(e.forEach(l=>{const c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,f)=>{let m=f,p=h;if("offset"!==f)switch(m=i.normalizePropertyName(m,r),p){case"!":p=t.get(f);break;case go:p=n.get(f);break;default:p=i.normalizeStyleValue(f,m,p,r)}u.set(m,p)}),d||o.push(u),a=u,s=c}),r.length)throw function vhe(i){return new k(3502,!1)}();return o}function _D(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&bD(t,"start",i)));break;case"done":i.onDone(()=>n(t&&bD(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&bD(t,"destroy",i)))}}function bD(i,e,t){const o=vD(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t.totalTime??i.totalTime,!!t.disabled),s=i._data;return null!=s&&(o._data=s),o}function vD(i,e,t,n,r="",o=0,s){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function kn(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function Fz(i){const e=i.indexOf(":");return[i.substring(1,e),i.slice(e+1)]}const Ihe=typeof document>"u"?null:document.documentElement;function yD(i){const e=i.parentNode||i.host||null;return e===Ihe?null:e}let pa=null,Lz=!1;function Bz(i,e){for(;e;){if(e===i)return!0;e=yD(e)}return!1}function Vz(i,e,t){if(t)return Array.from(i.querySelectorAll(e));const n=i.querySelector(e);return n?[n]:[]}let wD=(()=>{class i{validateStyleProperty(t){return function Rhe(i){pa||(pa=function Nhe(){return typeof document<"u"?document.body:null}()||{},Lz=!!pa.style&&"WebkitAppearance"in pa.style);let e=!0;return pa.style&&!function Ohe(i){return"ebkit"==i.substring(1,6)}(i)&&(e=i in pa.style,!e&&Lz&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in pa.style)),e}(t)}containsElement(t,n){return Bz(t,n)}getParentElement(t){return yD(t)}query(t,n,r){return Vz(t,n,r)}computeStyle(t,n,r){return r||""}animate(t,n,r,o,s,a=[],l){return new Yu(r,o)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})();class xD{static#e=this.NOOP=new wD}class CD{}const Fhe=1e3,DD="ng-enter",r_="ng-leave",o_="ng-trigger",s_=".ng-trigger",zz="ng-animating",kD=".ng-animating";function vo(i){if("number"==typeof i)return i;const e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ED(parseFloat(e[1]),e[2])}function ED(i,e){return"s"===e?i*Fhe:i}function a_(i,e,t){return i.hasOwnProperty("duration")?i:function Bhe(i,e,t){let r,o=0,s="";if("string"==typeof i){const a=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(Nz()),{duration:0,delay:0,easing:""};r=ED(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=ED(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=i;if(!t){let a=!1,l=e.length;r<0&&(e.push(function Zue(){return new k(3100,!1)}()),a=!0),o<0&&(e.push(function Que(){return new k(3101,!1)}()),a=!0),a&&e.splice(l,0,Nz())}return{duration:r,delay:o,easing:s}}(i,e,t)}function Gr(i,e,t){e.forEach((n,r)=>{const o=MD(r);t&&!t.has(r)&&t.set(r,i.style[o]),i.style[o]=n})}function ga(i,e){e.forEach((t,n)=>{const r=MD(n);i.style[r]=""})}function oh(i){return Array.isArray(i)?1==i.length?i[0]:function zae(i,e=null){return{type:oe.Sequence,steps:i,options:e}}(i):i}const SD=new RegExp("{{\\s*(.+?)\\s*}}","g");function Uz(i){let e=[];if("string"==typeof i){let t;for(;t=SD.exec(i);)e.push(t[1]);SD.lastIndex=0}return e}function sh(i,e,t){const n=`${i}`,r=n.replace(SD,(o,s)=>{let a=e[s];return null==a&&(t.push(function ehe(i){return new k(3003,!1)}()),a=""),a.toString()});return r==n?i:r}const zhe=/-+([a-z0-9])/g;function MD(i){return i.replace(zhe,(...e)=>e[1].toUpperCase())}function En(i,e,t){switch(e.type){case oe.Trigger:return i.visitTrigger(e,t);case oe.State:return i.visitState(e,t);case oe.Transition:return i.visitTransition(e,t);case oe.Sequence:return i.visitSequence(e,t);case oe.Group:return i.visitGroup(e,t);case oe.Animate:return i.visitAnimate(e,t);case oe.Keyframes:return i.visitKeyframes(e,t);case oe.Style:return i.visitStyle(e,t);case oe.Reference:return i.visitReference(e,t);case oe.AnimateChild:return i.visitAnimateChild(e,t);case oe.AnimateRef:return i.visitAnimateRef(e,t);case oe.Query:return i.visitQuery(e,t);case oe.Stagger:return i.visitStagger(e,t);default:throw function the(i){return new k(3004,!1)}()}}function TD(i,e){return window.getComputedStyle(i)[e]}const $he=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"]);class $z extends CD{normalizePropertyName(e,t){return MD(e)}normalizeStyleValue(e,t,n,r){let o="";const s=n.toString().trim();if($he.has(t)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function ihe(i,e){return new k(3005,!1)}())}return s+o}}const l_="*";const c_=new Set(["true","1"]),d_=new Set(["false","0"]);function Wz(i,e){const t=c_.has(i)||d_.has(i),n=c_.has(e)||d_.has(e);return(r,o)=>{let s=i==l_||i==r,a=e==l_||e==o;return!s&&t&&"boolean"==typeof r&&(s=r?c_.has(i):d_.has(i)),!a&&n&&"boolean"==typeof o&&(a=o?c_.has(e):d_.has(e)),s&&a}}const Yhe=new RegExp("s*:selfs*,?","g");function AD(i,e,t,n){return new Khe(i).build(e,t,n)}class Khe{constructor(e){this._driver=e}build(e,t,n){const r=new Qhe(t);return this._resetContextStyleTimingState(r),En(this,oh(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const o=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push(function nhe(){return new k(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==oe.State){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,t))}),l.name=c}else if(a.type==oe.Transition){const l=this.visitTransition(a,t);n+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(function rhe(){return new k(3007,!1)}())}),{type:oe.Trigger,name:e.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Uz(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&t.errors.push(function ohe(i,e){return new k(3008,!1)}(0,o.values()))}return{type:oe.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=En(this,oh(e.animation),t),r=function Whe(i,e){const t=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(n=>function Ghe(i,e,t){if(":"==i[0]){const l=function qhe(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}(i,t);if("function"==typeof l)return void e.push(l);i=l}const n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return t.push(function mhe(i){return new k(3015,!1)}()),e;const r=n[1],o=n[2],s=n[3];e.push(Wz(r,s)),"<"==o[0]&&(r!=l_||s!=l_)&&e.push(Wz(s,r))}(n,t,e)):t.push(i),t}(e.expr,t.errors);return{type:oe.Transition,matchers:r,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:_a(e.options)}}visitSequence(e,t){return{type:oe.Sequence,steps:e.steps.map(n=>En(this,n,t)),options:_a(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const o=e.steps.map(s=>{t.currentTime=n;const a=En(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:oe.Group,steps:o,options:_a(e.options)}}visitAnimate(e,t){const n=function efe(i,e){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return ID(a_(i,e).duration,0,"");const t=i;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=ID(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=a_(t,e);return ID(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;let r,o=e.styles?e.styles:It({});if(o.type==oe.Keyframes)r=this.visitKeyframes(o,t);else{let s=e.styles,a=!1;if(!s){a=!0;const c={};n.easing&&(c.easing=n.easing),s=It(c)}t.currentTime+=n.duration+n.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:oe.Animate,timings:n,style:r,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)"string"==typeof a?a===go?n.push(a):t.errors.push(new k(3002,!1)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:oe.Style,styles:n,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push(function ahe(i,e,t,n,r){return new k(3010,!1)}()),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:r}),t.options&&function Hhe(i,e,t){const n=e.params||{},r=Uz(i);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||t.push(function Jue(i){return new k(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const n={type:oe.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function lhe(){return new k(3011,!1)}()),n;let o=0;const s=[];let a=!1,l=!1,c=0;const d=e.steps.map(_=>{const v=this._makeStyleAst(_,t);let y=null!=v.offset?v.offset:function Jhe(i){if("string"==typeof i)return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){const n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(v.styles),w=0;return null!=y&&(o++,w=v.offset=y),l=l||w<0||w>1,a=a||w0&&o{const y=h>0?v==f?1:h*v:s[v],w=y*g;t.currentTime=m+p.delay+w,p.duration=w,this._validateStyleAst(_,t),_.offset=y,n.styles.push(_)}),n}visitReference(e,t){return{type:oe.Reference,animation:En(this,oh(e.animation),t),options:_a(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:oe.AnimateChild,options:_a(e.options)}}visitAnimateRef(e,t){return{type:oe.AnimateRef,animation:this.visitReference(e.animation,t),options:_a(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[o,s]=function Xhe(i){const e=!!i.split(/\s*,\s*/).find(t=>":self"==t);return e&&(i=i.replace(Yhe,"")),i=i.replace(/@\*/g,s_).replace(/@\w+/g,t=>s_+"-"+t.slice(1)).replace(/:animating/g,kD),[i,e]}(e.selector);t.currentQuerySelector=n.length?n+" "+o:o,kn(t.collectedStyles,t.currentQuerySelector,new Map);const a=En(this,oh(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:oe.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:_a(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function hhe(){return new k(3013,!1)}());const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:a_(e.timings,t.errors,!0);return{type:oe.Stagger,animation:En(this,oh(e.animation),t),timings:n,options:null}}}class Qhe{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function _a(i){return i?(i={...i}).params&&(i.params=function Zhe(i){return i?{...i}:null}(i.params)):i={},i}function ID(i,e,t){return{duration:i,delay:e,easing:t}}function OD(i,e,t,n,r,o,s=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class u_{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const nfe=new RegExp(":enter","g"),ofe=new RegExp(":leave","g");function RD(i,e,t,n,r,o=new Map,s=new Map,a,l,c=[]){return(new sfe).buildKeyframes(i,e,t,n,r,o,s,a,l,c)}class sfe{buildKeyframes(e,t,n,r,o,s,a,l,c,d=[]){c=c||new u_;const u=new ND(e,t,c,r,o,d,[]);u.options=l;const h=l.delay?vo(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),En(this,n,u);const f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&a.size){let m;for(let p=f.length-1;p>=0;p--){const g=f[p];if(g.element===t){m=g;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,l)}return f.length?f.map(m=>m.buildKeyframes()):[OD(t,[],[],[],0,h,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.get(t.element);if(n){const r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(const r of e){const o=r?.delay;if(o){const s="number"==typeof o?o:vo(sh(o,r?.params??{},t.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,t,n){let o=t.currentTimeline.currentTime;const s=null!=n.duration?vo(n.duration):null,a=null!=n.delay?vo(n.delay):null;return 0!==s&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,t){t.updateOptions(e.options,!0),En(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const o=e.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){r.previousNode.type==oe.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=h_);const s=vo(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>En(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const o=e.options&&e.options.delay?vo(e.options.delay):0;e.steps.forEach(s=>{const a=t.createSubContext(e.options);o&&a.delayNextStep(o),En(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return a_(t.params?sh(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const o=e.style;o.type==oe.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,o=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?vo(r.delay):0;o&&(t.previousNode.type===oe.Style||0==n&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=h_);let s=n;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;const u=t.createSubContext(e.options,c);o&&u.delayNextStep(o),c===t.element&&(l=u.currentTimeline),En(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const d=t.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;En(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const h_={};class ND{constructor(e,t,n,r,o,s,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=h_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new f_(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=vo(n.duration)),null!=n.delay&&(r.delay=vo(n.delay));const o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=sh(o[a],s,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(r=>{n[r]=t[r]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,o=new ND(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=h_,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},o=new afe(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(nfe,"."+this._enterClassName)).replace(ofe,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&0==a.length&&s.push(function fhe(i){return new k(3014,!1)}()),a}}class f_{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new f_(this._driver,e,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+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||go),this._currentKeyframe.set(t,go);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},s=function lfe(i,e){const t=new Map;let n;return i.forEach(r=>{if("*"===r){n??=e.keys();for(let o of n)t.set(o,go)}else for(let[o,s]of r)t.set(o,s)}),t}(e,this._globalTimelineStyles);for(let[a,l]of s){const c=sh(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??go),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{const r=this._styleSummary.get(n);(!r||t.time>r.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{"!"===d?e.add(u):d===go&&t.add(u)}),n||c.set("offset",l/this.duration),r.push(c)});const o=[...e.values()],s=[...t.values()];if(n){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return OD(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class afe extends f_{constructor(e,t,n,r,o,s,a=!1){super(e,t,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=n+t,a=t/s,l=new Map(e[0]);l.set("offset",0),o.push(l);const c=new Map(e[0]);c.set("offset",Yz(a)),o.push(c);const d=e.length-1;for(let u=1;u<=d;u++){let h=new Map(e[u]);const f=h.get("offset");h.set("offset",Yz((t+f*n)/s)),o.push(h)}n=s,t=0,r="",e=o}return OD(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function Yz(i,e=3){const t=Math.pow(10,e-1);return Math.round(i*t)/t}function Kz(i,e,t,n,r,o,s,a,l,c,d,u,h){return{type:0,element:i,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const PD={};class Xz{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function cfe(i,e,t,n,r){return i.some(o=>o(e,t,n,r))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){let r=this._stateStyles.get("*");return void 0!==e&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,n):new Map}build(e,t,n,r,o,s,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||PD,m=this.buildStyles(n,a&&a.params||PD,u),p=l&&l.params||PD,g=this.buildStyles(r,p,u),_=new Set,v=new Map,y=new Map,w="void"===r,x={params:Zz(p,h),delay:this.ast.options?.delay},A=d?[]:RD(e,t,this.ast.animation,o,s,m,g,x,c,u);let I=0;return A.forEach(W=>{I=Math.max(W.duration+W.delay,I)}),u.length?Kz(t,this._triggerName,n,r,w,m,g,[],[],v,y,I,u):(A.forEach(W=>{const de=W.element,_e=kn(v,de,new Set);W.preStyleProps.forEach(le=>_e.add(le));const Ce=kn(y,de,new Set);W.postStyleProps.forEach(le=>Ce.add(le)),de!==t&&_.add(de)}),Kz(t,this._triggerName,n,r,w,m,g,A,[..._.values()],v,y,I))}}function Zz(i,e){const t={...e};return Object.entries(i).forEach(([n,r])=>{null!=r&&(t[n]=r)}),t}class dfe{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){const n=new Map,r=Zz(e,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=sh(s,r,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),n.set(a,s)})}),n}}class hfe{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new dfe(r.style,r.options&&r.options.params||{},n))}),Qz(this.states,"true","1"),Qz(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Xz(e,r,this.states))}),this.fallbackTransition=function ffe(i,e,t){return new Xz(i,{type:oe.Transition,animation:{type:oe.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(s=>s.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Qz(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}const mfe=new u_;class pfe{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const n=[],o=AD(this._driver,t,n,[]);if(n.length)throw function yhe(i){return new k(3503,!1)}();this._animations.set(e,o)}_buildPlayer(e,t,n){const r=e.element,o=Pz(this._normalizer,e.keyframes,t,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const r=[],o=this._animations.get(e);let s;const a=new Map;if(o?(s=RD(this._driver,t,o,DD,r_,new Map,new Map,n,mfe,r),s.forEach(d=>{const u=kn(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function whe(){return new k(3300,!1)}()),s=[]),r.length)throw function xhe(i){return new k(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,go))})});const c=is(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function Che(i){return new k(3301,!1)}();return t}listen(e,t,n,r){const o=vD(t,"","","");return _D(this._getPlayer(e),n,o,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[0]||{});const o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const Jz="ng-animate-queued",FD="ng-animate-disabled",yfe=[],ej={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wfe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hr="__ng_removed";class LD{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=function kfe(i){return i??null}(n?e.value:e),n){const{value:o,...s}=e;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const n=this.options.params;Object.keys(t).forEach(r=>{null==n[r]&&(n[r]=t[r])})}}}const ah="void",BD=new LD(ah);class xfe{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Yn(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.has(t))throw function Dhe(i,e){return new k(3302,!1)}();if(null==n||0==n.length)throw function khe(i){return new k(3303,!1)}();if(!function Efe(i){return"start"==i||"done"==i}(n))throw function Ehe(i,e){return new k(3400,!1)}();const o=kn(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};o.push(s);const a=kn(this._engine.statesByElement,e,new Map);return a.has(t)||(Yn(e,o_),Yn(e,o_+"-"+t),a.set(t,BD)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function She(i){return new k(3401,!1)}();return t}trigger(e,t,n,r=!0){const o=this._getTrigger(t),s=new VD(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Yn(e,o_),Yn(e,o_+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const c=new LD(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=BD),c.value!==ah&&l.value===c.value){if(!function Tfe(i,e){const t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let r=0;r{ga(e,g),Gr(e,_)})}return}const h=kn(this._engine.playersByElement,e,[]);h.forEach(p=>{p.namespaceId==this.id&&p.triggerName==t&&p.queued&&p.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),m=!1;if(!f){if(!r)return;f=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:m}),m||(Yn(e,Jz),s.onStart(()=>{yc(e,Jz)})),s.onDone(()=>{let p=this.players.indexOf(s);p>=0&&this.players.splice(p,1);const g=this._engine.playersByElement.get(e);if(g){let _=g.indexOf(s);_>=0&&g.splice(_,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,s_,!0);n.forEach(r=>{if(r[hr])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,n,r){const o=this._engine.statesByElement.get(e),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const d=this.trigger(e,c,ah,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),n&&is(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const r=new Set;t.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=n.get(s)||BD,d=new LD(ah),u=new VD(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{const o=e[hr];(!o||o===ej)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Yn(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){const l=vD(o,n.triggerName,n.fromState.value,n.toState.value);l._data=e,_D(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((n,r)=>{const o=n.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class Cfe{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){const n=new xfe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return r.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(e,t,n,r){if(m_(t)){const o=this._fetchNamespace(e);if(o)return o.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!m_(t))return;const o=t[hr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Yn(e,FD)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),yc(e,FD))}removeNode(e,t,n){if(m_(t)){const r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,r,o){this.collectedLeaveElements.push(t),t[hr]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,n,r,o){return m_(t)?this._fetchNamespace(e).listen(t,n,r,o):()=>{}}_buildInstruction(e,t,n,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,s_,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,kD,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return is(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[hr];if(t&&t.setForRemoval){if(e[hr]=ej,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(FD)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],t.length?is(t).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw function Mhe(i){return new k(3402,!1)}()}_flushAnimations(e,t){const n=new u_,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(V=>{d.add(V);const j=this.driver.query(V,".ng-animate-queued",!0);for(let G=0;G{const G=DD+p++;m.set(j,G),V.forEach(ue=>Yn(ue,G))});const g=[],_=new Set,v=new Set;for(let V=0;V_.add(ue)):v.add(j))}const y=new Map,w=nj(h,Array.from(_));w.forEach((V,j)=>{const G=r_+p++;y.set(j,G),V.forEach(ue=>Yn(ue,G))}),e.push(()=>{f.forEach((V,j)=>{const G=m.get(j);V.forEach(ue=>yc(ue,G))}),w.forEach((V,j)=>{const G=y.get(j);V.forEach(ue=>yc(ue,G))}),g.forEach(V=>{this.processLeaveNode(V)})});const x=[],A=[];for(let V=this._namespaceList.length-1;V>=0;V--)this._namespaceList[V].drainQueuedTransitions(t).forEach(G=>{const ue=G.player,Te=G.element;if(x.push(ue),this.collectedEnterElements.length){const Pi=Te[hr];if(Pi&&Pi.setForMove){if(Pi.previousTriggersValues&&Pi.previousTriggersValues.has(G.triggerName)){const va=Pi.previousTriggersValues.get(G.triggerName),Kn=this.statesByElement.get(G.element);if(Kn&&Kn.has(G.triggerName)){const __=Kn.get(G.triggerName);__.value=va,Kn.set(G.triggerName,__)}}return void ue.destroy()}}const Tt=!u||!this.driver.containsElement(u,Te),Dt=y.get(Te),Ni=m.get(Te),Xe=this._buildInstruction(G,n,Ni,Dt,Tt);if(Xe.errors&&Xe.errors.length)return void A.push(Xe);if(Tt)return ue.onStart(()=>ga(Te,Xe.fromStyles)),ue.onDestroy(()=>Gr(Te,Xe.toStyles)),void r.push(ue);if(G.isFallbackTransition)return ue.onStart(()=>ga(Te,Xe.fromStyles)),ue.onDestroy(()=>Gr(Te,Xe.toStyles)),void r.push(ue);const ba=[];Xe.timelines.forEach(Pi=>{Pi.stretchStartingKeyframe=!0,this.disabledNodes.has(Pi.element)||ba.push(Pi)}),Xe.timelines=ba,n.append(Te,Xe.timelines),s.push({instruction:Xe,player:ue,element:Te}),Xe.queriedElements.forEach(Pi=>kn(a,Pi,[]).push(ue)),Xe.preStyleProps.forEach((Pi,va)=>{if(Pi.size){let Kn=l.get(va);Kn||l.set(va,Kn=new Set),Pi.forEach((__,jD)=>Kn.add(jD))}}),Xe.postStyleProps.forEach((Pi,va)=>{let Kn=c.get(va);Kn||c.set(va,Kn=new Set),Pi.forEach((__,jD)=>Kn.add(jD))})});if(A.length){const V=[];A.forEach(j=>{V.push(function The(i,e){return new k(3505,!1)}())}),x.forEach(j=>j.destroy()),this.reportError(V)}const I=new Map,W=new Map;s.forEach(V=>{const j=V.element;n.has(j)&&(W.set(j,j),this._beforeAnimationBuild(V.player.namespaceId,V.instruction,I))}),r.forEach(V=>{const j=V.element;this._getPreviousPlayers(j,!1,V.namespaceId,V.triggerName,null).forEach(ue=>{kn(I,j,[]).push(ue),ue.destroy()})});const de=g.filter(V=>oj(V,l,c)),_e=new Map;ij(_e,this.driver,v,c,go).forEach(V=>{oj(V,l,c)&&de.push(V)});const le=new Map;f.forEach((V,j)=>{ij(le,this.driver,new Set(V),l,"!")}),de.forEach(V=>{const j=_e.get(V),G=le.get(V);_e.set(V,new Map([...j?.entries()??[],...G?.entries()??[]]))});const Ye=[],He=[],mt={};s.forEach(V=>{const{element:j,player:G,instruction:ue}=V;if(n.has(j)){if(d.has(j))return G.onDestroy(()=>Gr(j,ue.toStyles)),G.disabled=!0,G.overrideTotalTime(ue.totalTime),void r.push(G);let Te=mt;if(W.size>1){let Dt=j;const Ni=[];for(;Dt=Dt.parentNode;){const Xe=W.get(Dt);if(Xe){Te=Xe;break}Ni.push(Dt)}Ni.forEach(Xe=>W.set(Xe,Te))}const Tt=this._buildAnimation(G.namespaceId,ue,I,o,le,_e);if(G.setRealPlayer(Tt),Te===mt)Ye.push(G);else{const Dt=this.playersByElement.get(Te);Dt&&Dt.length&&(G.parentPlayer=is(Dt)),r.push(G)}}else ga(j,ue.fromStyles),G.onDestroy(()=>Gr(j,ue.toStyles)),He.push(G),d.has(j)&&r.push(G)}),He.forEach(V=>{const j=o.get(V.element);if(j&&j.length){const G=is(j);V.setRealPlayer(G)}}),r.forEach(V=>{V.parentPlayer?V.syncPlayerEvents(V.parentPlayer):V.destroy()});for(let V=0;V!Tt.destroyed);Te.length?Sfe(this,j,Te):this.processLeaveNode(j)}return g.length=0,Ye.forEach(V=>{this.players.push(V),V.onDone(()=>{V.destroy();const j=this.players.indexOf(V);this.players.splice(j,1)}),V.play()}),Ye}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,o){let s=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!o||o==ah;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,t,n){const o=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,d=c!==o,u=kn(n,c,[]);this._getPreviousPlayers(c,d,s,a,t.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}ga(o,t.fromStyles)}_buildAnimation(e,t,n,r,o,s){const a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,h=t.timelines.map(m=>{const p=m.element;d.add(p);const g=p[hr];if(g&&g.removedBeforeQueried)return new Yu(m.duration,m.delay);const _=p!==l,v=function Mfe(i){const e=[];return rj(i,e),e}((n.get(p)||yfe).map(I=>I.getRealPlayer())).filter(I=>!!I.element&&I.element===p),y=o.get(p),w=s.get(p),x=Pz(this._normalizer,m.keyframes,y,w),A=this._buildPlayer(m,x,v);if(m.subTimeline&&r&&u.add(p),_){const I=new VD(e,a,p);I.setRealPlayer(A),c.push(I)}return A});c.forEach(m=>{kn(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function Dfe(i,e,t){let n=i.get(e);if(n){if(n.length){const r=n.indexOf(t);n.splice(r,1)}0==n.length&&i.delete(e)}return n}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>Yn(m,zz));const f=is(h);return f.onDestroy(()=>{d.forEach(m=>yc(m,zz)),Gr(l,t.toStyles)}),u.forEach(m=>{kn(r,m,[]).push(f)}),f}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Yu(e.duration,e.delay)}}class VD{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Yu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(r=>_D(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){kn(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function m_(i){return i&&1===i.nodeType}function tj(i,e){const t=i.style.display;return i.style.display=e??"none",t}function ij(i,e,t,n,r){const o=[];t.forEach(l=>o.push(tj(l)));const s=[];n.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const h=e.computeStyle(c,u,r);d.set(u,h),(!h||0==h.length)&&(c[hr]=wfe,s.push(c))}),i.set(c,d)});let a=0;return t.forEach(l=>tj(l,o[a++])),s}function nj(i,e){const t=new Map;if(i.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return e.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function Yn(i,e){i.classList?.add(e)}function yc(i,e){i.classList?.remove(e)}function Sfe(i,e,t){is(t).onDone(()=>i.processLeaveNode(e))}function rj(i,e){for(let t=0;tr.add(o)):e.set(i,n),t.delete(i),!0}class lh{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Cfe(e.body,t,n),this._timelineEngine=new pfe(e.body,t,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,n,r,o){const s=e+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],d=AD(this._driver,o,l,[]);if(l.length)throw function bhe(i,e){return new k(3404,!1)}();a=function ufe(i,e,t){return new hfe(i,e,t)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[o,s]=Fz(n);this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,o){if("@"==n.charAt(0)){const[s,a]=Fz(n);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(e,t,n,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}class ch{static#e=this.initialStylesByElement=new WeakMap;constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let r=ch.initialStylesByElement.get(e);r||ch.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Gr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Gr(this._element,this._initialStyles),this._endStyles&&(Gr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ch.initialStylesByElement.delete(this._element),this._startStyles&&(ga(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ga(this._element,this._endStyles),this._endStyles=null),Gr(this._element,this._initialStyles),this._state=3)}}function HD(i){let e=null;return i.forEach((t,n)=>{(function Ife(i){return"display"===i||"position"===i})(n)&&(e=e||new Map,e.set(n,t))}),e}class sj{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&e.set(r,this._finished?n:TD(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}}class aj{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Bz(e,t)}getParentElement(e){return yD(e)}query(e,t,n){return Vz(e,t,n)}computeStyle(e,t,n){return TD(e,t)}animate(e,t,n,r,o,s=[]){const l={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,d=s.filter(f=>f instanceof sj);(function jhe(i,e){return 0===i||0===e})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,p)=>c.set(p,m))});let u=function Vhe(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}(t).map(f=>new Map(f));u=function Uhe(i,e,t){if(t.size&&e.length){let n=e[0],r=[];if(t.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;os.set(a,TD(i,a)))}}return e}(e,u,c);const h=function Afe(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=HD(e[0]),e.length>1&&(n=HD(e[e.length-1]))):e instanceof Map&&(t=HD(e)),t||n?new ch(i,t,n):null}(e,u);return new sj(e,u,l,h)}}const lj="@.disabled";class cj{constructor(e,t,n,r){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,r=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&t==lj?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Ofe extends cj{constructor(e,t,n,r,o){super(t,n,r,o),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==lj?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const r=function Rfe(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(e);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function Nfe(i){const e=i.indexOf(".");return[i.substring(0,e),i.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(e,t,n)}}class Pfe{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,o)=>{const s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(e,t){const r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){const c=this._rendererCache;let d=c.get(r);return d||(d=new cj("",r,this.engine,()=>c.delete(r)),c.set(r,d)),d}const o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,e,c.name,c)};return t.data.animation.forEach(a),new Ofe(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&et(n));const r=this._animationCallbacksBuffer;0==r.length&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,n])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const dj=[{provide:CD,useFactory:function Lfe(){return new $z}},{provide:lh,useClass:(()=>{class i extends lh{constructor(t,n,r){super(t,n,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||i)(C(xe),C(xD),C(CD))};static#t=this.\u0275prov=L({token:i,factory:i.\u0275fac})}return i})()},{provide:Tf,useFactory:function Bfe(i,e,t){return new Pfe(i,e,t)},deps:[y0,lh,U]}],zD=[{provide:xD,useFactory:()=>new aj},{provide:ri,useValue:"BrowserAnimations"},...dj],uj=[{provide:xD,useClass:wD},{provide:ri,useValue:"NoopAnimations"},...dj];let Vfe=(()=>{class i{static withConfig(t){return{ngModule:i,providers:t.disableAnimations?uj:zD}}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i});static#i=this.\u0275inj=De({providers:zD,imports:[jO]})}return i})(),Hfe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Se({type:i,bootstrap:[Xue]});static#i=this.\u0275inj=De({providers:[vc,Iz,Oz],imports:[jO,Vfe,MN,Rz]})}return i})();NK().bootstrapModule(Hfe).catch(i=>console.error(i))}},b_=>{b_(b_.s=536)}]); \ No newline at end of file diff --git a/policy-playground/styles.aeceac3b110acea5.css b/policy-playground/styles.aeceac3b110acea5.css new file mode 100644 index 00000000..078c400a --- /dev/null +++ b/policy-playground/styles.aeceac3b110acea5.css @@ -0,0 +1 @@ +.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active .mat-ripple-element,.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-app-background{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-theme-loaded-marker{display:none}html{--mat-ripple-color:rgba(0, 0, 0, .1)}html{--mat-option-selected-state-label-text-color:#3f51b5;--mat-option-label-text-color:rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color:rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color:rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color:rgba(0, 0, 0, .04)}.mat-accent{--mat-option-selected-state-label-text-color:#ff4081;--mat-option-label-text-color:rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color:rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color:rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color:rgba(0, 0, 0, .04)}.mat-warn{--mat-option-selected-state-label-text-color:#f44336;--mat-option-label-text-color:rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color:rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color:rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color:rgba(0, 0, 0, .04)}html{--mat-optgroup-label-text-color:rgba(0, 0, 0, .87)}.mat-primary{--mat-full-pseudo-checkbox-selected-icon-color:#3f51b5;--mat-full-pseudo-checkbox-selected-checkmark-color:#fafafa;--mat-full-pseudo-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color:#fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color:#b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color:#b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color:#3f51b5;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color:#b0b0b0}html,.mat-accent{--mat-full-pseudo-checkbox-selected-icon-color:#ff4081;--mat-full-pseudo-checkbox-selected-checkmark-color:#fafafa;--mat-full-pseudo-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color:#fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color:#b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color:#b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color:#ff4081;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color:#b0b0b0}.mat-warn{--mat-full-pseudo-checkbox-selected-icon-color:#f44336;--mat-full-pseudo-checkbox-selected-checkmark-color:#fafafa;--mat-full-pseudo-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color:#fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color:#b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color:#b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color:#f44336;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color:#b0b0b0}html{--mat-app-background-color:#fafafa;--mat-app-text-color:rgba(0, 0, 0, .87)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:0 4px 5px -2px #0003,0 7px 10px 1px #00000024,0 2px 16px 1px #0000001f}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:0 5px 6px -3px #0003,0 9px 12px 1px #00000024,0 3px 16px 2px #0000001f}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:0 6px 6px -3px #0003,0 10px 14px 1px #00000024,0 4px 18px 3px #0000001f}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:0 6px 7px -4px #0003,0 11px 15px 1px #00000024,0 4px 20px 3px #0000001f}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:0 7px 9px -4px #0003,0 14px 21px 2px #00000024,0 5px 26px 4px #0000001f}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:0 8px 9px -5px #0003,0 15px 22px 2px #00000024,0 6px 28px 5px #0000001f}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:0 8px 11px -5px #0003,0 17px 26px 2px #00000024,0 6px 32px 5px #0000001f}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:0 9px 11px -5px #0003,0 18px 28px 2px #00000024,0 7px 34px 6px #0000001f}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:0 9px 12px -6px #0003,0 19px 29px 2px #00000024,0 7px 36px 6px #0000001f}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:0 10px 13px -6px #0003,0 20px 31px 3px #00000024,0 8px 38px 7px #0000001f}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:0 10px 13px -6px #0003,0 21px 33px 3px #00000024,0 8px 40px 7px #0000001f}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:0 10px 14px -6px #0003,0 22px 35px 3px #00000024,0 8px 42px 7px #0000001f}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:0 11px 14px -7px #0003,0 23px 36px 3px #00000024,0 9px 44px 8px #0000001f}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}html{--mat-option-label-text-font:Roboto, sans-serif;--mat-option-label-text-line-height:24px;--mat-option-label-text-size:16px;--mat-option-label-text-tracking:.03125em;--mat-option-label-text-weight:400}html{--mat-optgroup-label-text-font:Roboto, sans-serif;--mat-optgroup-label-text-line-height:24px;--mat-optgroup-label-text-size:16px;--mat-optgroup-label-text-tracking:.03125em;--mat-optgroup-label-text-weight:400}html{--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}html{--mdc-elevated-card-container-color:white;--mdc-elevated-card-container-elevation:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-outlined-card-container-color:white;--mdc-outlined-card-outline-color:rgba(0, 0, 0, .12);--mdc-outlined-card-container-elevation:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-subtitle-text-color:rgba(0, 0, 0, .54)}html{--mat-card-title-text-font:Roboto, sans-serif;--mat-card-title-text-line-height:32px;--mat-card-title-text-size:20px;--mat-card-title-text-tracking:.0125em;--mat-card-title-text-weight:500;--mat-card-subtitle-text-font:Roboto, sans-serif;--mat-card-subtitle-text-line-height:22px;--mat-card-subtitle-text-size:14px;--mat-card-subtitle-text-tracking:.0071428571em;--mat-card-subtitle-text-weight:500}html{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color:#3f51b5;--mdc-linear-progress-track-color:rgba(63, 81, 181, .25)}.mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color:#ff4081;--mdc-linear-progress-track-color:rgba(255, 64, 129, .25)}.mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color:#f44336;--mdc-linear-progress-track-color:rgba(244, 67, 54, .25)}html{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}html{--mdc-plain-tooltip-container-color:#616161;--mdc-plain-tooltip-supporting-text-color:#fff}html{--mdc-plain-tooltip-supporting-text-font:Roboto, sans-serif;--mdc-plain-tooltip-supporting-text-size:12px;--mdc-plain-tooltip-supporting-text-weight:400;--mdc-plain-tooltip-supporting-text-tracking:.0333333333em}html{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}html{--mdc-filled-text-field-caret-color:#3f51b5;--mdc-filled-text-field-focus-active-indicator-color:#3f51b5;--mdc-filled-text-field-focus-label-text-color:rgba(63, 81, 181, .87);--mdc-filled-text-field-container-color:whitesmoke;--mdc-filled-text-field-disabled-container-color:#fafafa;--mdc-filled-text-field-label-text-color:rgba(0, 0, 0, .6);--mdc-filled-text-field-hover-label-text-color:rgba(0, 0, 0, .6);--mdc-filled-text-field-disabled-label-text-color:rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-color:rgba(0, 0, 0, .87);--mdc-filled-text-field-disabled-input-text-color:rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-placeholder-color:rgba(0, 0, 0, .6);--mdc-filled-text-field-error-hover-label-text-color:#f44336;--mdc-filled-text-field-error-focus-label-text-color:#f44336;--mdc-filled-text-field-error-label-text-color:#f44336;--mdc-filled-text-field-error-caret-color:#f44336;--mdc-filled-text-field-active-indicator-color:rgba(0, 0, 0, .42);--mdc-filled-text-field-disabled-active-indicator-color:rgba(0, 0, 0, .06);--mdc-filled-text-field-hover-active-indicator-color:rgba(0, 0, 0, .87);--mdc-filled-text-field-error-active-indicator-color:#f44336;--mdc-filled-text-field-error-focus-active-indicator-color:#f44336;--mdc-filled-text-field-error-hover-active-indicator-color:#f44336;--mdc-outlined-text-field-caret-color:#3f51b5;--mdc-outlined-text-field-focus-outline-color:#3f51b5;--mdc-outlined-text-field-focus-label-text-color:rgba(63, 81, 181, .87);--mdc-outlined-text-field-label-text-color:rgba(0, 0, 0, .6);--mdc-outlined-text-field-hover-label-text-color:rgba(0, 0, 0, .6);--mdc-outlined-text-field-disabled-label-text-color:rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-color:rgba(0, 0, 0, .87);--mdc-outlined-text-field-disabled-input-text-color:rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-placeholder-color:rgba(0, 0, 0, .6);--mdc-outlined-text-field-error-caret-color:#f44336;--mdc-outlined-text-field-error-focus-label-text-color:#f44336;--mdc-outlined-text-field-error-label-text-color:#f44336;--mdc-outlined-text-field-error-hover-label-text-color:#f44336;--mdc-outlined-text-field-outline-color:rgba(0, 0, 0, .38);--mdc-outlined-text-field-disabled-outline-color:rgba(0, 0, 0, .06);--mdc-outlined-text-field-hover-outline-color:rgba(0, 0, 0, .87);--mdc-outlined-text-field-error-focus-outline-color:#f44336;--mdc-outlined-text-field-error-hover-outline-color:#f44336;--mdc-outlined-text-field-error-outline-color:#f44336;--mat-form-field-focus-select-arrow-color:rgba(63, 81, 181, .87);--mat-form-field-disabled-input-text-placeholder-color:rgba(0, 0, 0, .38);--mat-form-field-state-layer-color:rgba(0, 0, 0, .87);--mat-form-field-error-text-color:#f44336;--mat-form-field-select-option-text-color:inherit;--mat-form-field-select-disabled-option-text-color:GrayText;--mat-form-field-leading-icon-color:unset;--mat-form-field-disabled-leading-icon-color:unset;--mat-form-field-trailing-icon-color:unset;--mat-form-field-disabled-trailing-icon-color:unset;--mat-form-field-error-focus-trailing-icon-color:unset;--mat-form-field-error-hover-trailing-icon-color:unset;--mat-form-field-error-trailing-icon-color:unset;--mat-form-field-enabled-select-arrow-color:rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color:rgba(0, 0, 0, .38);--mat-form-field-hover-state-layer-opacity:.04;--mat-form-field-focus-state-layer-opacity:.08}.mat-mdc-form-field.mat-accent{--mdc-filled-text-field-caret-color:#ff4081;--mdc-filled-text-field-focus-active-indicator-color:#ff4081;--mdc-filled-text-field-focus-label-text-color:rgba(255, 64, 129, .87);--mdc-outlined-text-field-caret-color:#ff4081;--mdc-outlined-text-field-focus-outline-color:#ff4081;--mdc-outlined-text-field-focus-label-text-color:rgba(255, 64, 129, .87);--mat-form-field-focus-select-arrow-color:rgba(255, 64, 129, .87)}.mat-mdc-form-field.mat-warn{--mdc-filled-text-field-caret-color:#f44336;--mdc-filled-text-field-focus-active-indicator-color:#f44336;--mdc-filled-text-field-focus-label-text-color:rgba(244, 67, 54, .87);--mdc-outlined-text-field-caret-color:#f44336;--mdc-outlined-text-field-focus-outline-color:#f44336;--mdc-outlined-text-field-focus-label-text-color:rgba(244, 67, 54, .87);--mat-form-field-focus-select-arrow-color:rgba(244, 67, 54, .87)}html{--mat-form-field-container-height:56px;--mat-form-field-filled-label-display:block;--mat-form-field-container-vertical-padding:16px;--mat-form-field-filled-with-label-container-padding-top:24px;--mat-form-field-filled-with-label-container-padding-bottom:8px}html{--mdc-filled-text-field-label-text-font:Roboto, sans-serif;--mdc-filled-text-field-label-text-size:16px;--mdc-filled-text-field-label-text-tracking:.03125em;--mdc-filled-text-field-label-text-weight:400;--mdc-outlined-text-field-label-text-font:Roboto, sans-serif;--mdc-outlined-text-field-label-text-size:16px;--mdc-outlined-text-field-label-text-tracking:.03125em;--mdc-outlined-text-field-label-text-weight:400;--mat-form-field-container-text-font:Roboto, sans-serif;--mat-form-field-container-text-line-height:24px;--mat-form-field-container-text-size:16px;--mat-form-field-container-text-tracking:.03125em;--mat-form-field-container-text-weight:400;--mat-form-field-outlined-label-text-populated-size:16px;--mat-form-field-subscript-text-font:Roboto, sans-serif;--mat-form-field-subscript-text-line-height:20px;--mat-form-field-subscript-text-size:12px;--mat-form-field-subscript-text-tracking:.0333333333em;--mat-form-field-subscript-text-weight:400}html{--mat-select-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-select-panel-background-color:white;--mat-select-enabled-trigger-text-color:rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color:rgba(0, 0, 0, .38);--mat-select-placeholder-text-color:rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color:rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color:rgba(0, 0, 0, .38);--mat-select-focused-arrow-color:rgba(63, 81, 181, .87);--mat-select-invalid-arrow-color:rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color:white;--mat-select-enabled-trigger-text-color:rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color:rgba(0, 0, 0, .38);--mat-select-placeholder-text-color:rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color:rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color:rgba(0, 0, 0, .38);--mat-select-focused-arrow-color:rgba(255, 64, 129, .87);--mat-select-invalid-arrow-color:rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color:white;--mat-select-enabled-trigger-text-color:rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color:rgba(0, 0, 0, .38);--mat-select-placeholder-text-color:rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color:rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color:rgba(0, 0, 0, .38);--mat-select-focused-arrow-color:rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color:rgba(244, 67, 54, .87)}html{--mat-select-arrow-transform:translateY(-8px)}html{--mat-select-trigger-text-font:Roboto, sans-serif;--mat-select-trigger-text-line-height:24px;--mat-select-trigger-text-size:16px;--mat-select-trigger-text-tracking:.03125em;--mat-select-trigger-text-weight:400}html{--mat-autocomplete-container-shape:4px;--mat-autocomplete-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-autocomplete-background-color:white}html{--mdc-dialog-container-shape:4px;--mat-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-dialog-container-max-width:80vw;--mat-dialog-container-small-max-width:80vw;--mat-dialog-container-min-width:0;--mat-dialog-actions-alignment:start;--mat-dialog-actions-padding:8px;--mat-dialog-content-padding:20px 24px;--mat-dialog-with-actions-content-padding:20px 24px;--mat-dialog-headline-padding:0 24px 9px}html{--mdc-dialog-container-color:white;--mdc-dialog-subhead-color:rgba(0, 0, 0, .87);--mdc-dialog-supporting-text-color:rgba(0, 0, 0, .6)}html{--mdc-dialog-subhead-font:Roboto, sans-serif;--mdc-dialog-subhead-line-height:32px;--mdc-dialog-subhead-size:20px;--mdc-dialog-subhead-weight:500;--mdc-dialog-subhead-tracking:.0125em;--mdc-dialog-supporting-text-font:Roboto, sans-serif;--mdc-dialog-supporting-text-line-height:24px;--mdc-dialog-supporting-text-size:16px;--mdc-dialog-supporting-text-weight:400;--mdc-dialog-supporting-text-tracking:.03125em}.mat-mdc-standard-chip{--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px;--mdc-chip-outline-width:0;--mdc-chip-outline-color:transparent;--mdc-chip-disabled-outline-color:transparent;--mdc-chip-focus-outline-color:transparent;--mdc-chip-hover-state-layer-opacity:.04;--mdc-chip-with-avatar-disabled-avatar-opacity:1;--mdc-chip-flat-selected-outline-width:0;--mdc-chip-selected-hover-state-layer-opacity:.04;--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity:1;--mdc-chip-with-icon-disabled-icon-opacity:1;--mat-chip-disabled-container-opacity:.4;--mat-chip-trailing-action-opacity:.54;--mat-chip-trailing-action-focus-opacity:1;--mat-chip-trailing-action-state-layer-color:transparent;--mat-chip-selected-trailing-action-state-layer-color:transparent;--mat-chip-trailing-action-hover-state-layer-opacity:0;--mat-chip-trailing-action-focus-state-layer-opacity:0}.mat-mdc-standard-chip{--mdc-chip-disabled-label-text-color:#212121;--mdc-chip-elevated-container-color:#e0e0e0;--mdc-chip-elevated-selected-container-color:#e0e0e0;--mdc-chip-elevated-disabled-container-color:#e0e0e0;--mdc-chip-flat-disabled-selected-container-color:#e0e0e0;--mdc-chip-focus-state-layer-color:black;--mdc-chip-hover-state-layer-color:black;--mdc-chip-selected-hover-state-layer-color:black;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-selected-focus-state-layer-color:black;--mdc-chip-selected-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:#212121;--mdc-chip-selected-label-text-color:#212121;--mdc-chip-with-icon-icon-color:#212121;--mdc-chip-with-icon-disabled-icon-color:#212121;--mdc-chip-with-icon-selected-icon-color:#212121;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:#212121;--mdc-chip-with-trailing-icon-trailing-icon-color:#212121;--mat-chip-selected-disabled-trailing-icon-color:#212121;--mat-chip-selected-trailing-icon-color:#212121}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mdc-chip-disabled-label-text-color:white;--mdc-chip-elevated-container-color:#3f51b5;--mdc-chip-elevated-selected-container-color:#3f51b5;--mdc-chip-elevated-disabled-container-color:#3f51b5;--mdc-chip-flat-disabled-selected-container-color:#3f51b5;--mdc-chip-focus-state-layer-color:black;--mdc-chip-hover-state-layer-color:black;--mdc-chip-selected-hover-state-layer-color:black;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-selected-focus-state-layer-color:black;--mdc-chip-selected-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:white;--mdc-chip-selected-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white;--mat-chip-selected-disabled-trailing-icon-color:white;--mat-chip-selected-trailing-icon-color:white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mdc-chip-disabled-label-text-color:white;--mdc-chip-elevated-container-color:#ff4081;--mdc-chip-elevated-selected-container-color:#ff4081;--mdc-chip-elevated-disabled-container-color:#ff4081;--mdc-chip-flat-disabled-selected-container-color:#ff4081;--mdc-chip-focus-state-layer-color:black;--mdc-chip-hover-state-layer-color:black;--mdc-chip-selected-hover-state-layer-color:black;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-selected-focus-state-layer-color:black;--mdc-chip-selected-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:white;--mdc-chip-selected-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white;--mat-chip-selected-disabled-trailing-icon-color:white;--mat-chip-selected-trailing-icon-color:white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mdc-chip-disabled-label-text-color:white;--mdc-chip-elevated-container-color:#f44336;--mdc-chip-elevated-selected-container-color:#f44336;--mdc-chip-elevated-disabled-container-color:#f44336;--mdc-chip-flat-disabled-selected-container-color:#f44336;--mdc-chip-focus-state-layer-color:black;--mdc-chip-hover-state-layer-color:black;--mdc-chip-selected-hover-state-layer-color:black;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-selected-focus-state-layer-color:black;--mdc-chip-selected-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:white;--mdc-chip-selected-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white;--mat-chip-selected-disabled-trailing-icon-color:white;--mat-chip-selected-trailing-icon-color:white}.mat-mdc-chip.mat-mdc-standard-chip{--mdc-chip-container-height:32px}.mat-mdc-standard-chip{--mdc-chip-label-text-font:Roboto, sans-serif;--mdc-chip-label-text-line-height:20px;--mdc-chip-label-text-size:14px;--mdc-chip-label-text-tracking:.0178571429em;--mdc-chip-label-text-weight:400}html{--mdc-switch-disabled-selected-icon-opacity:.38;--mdc-switch-disabled-track-opacity:.12;--mdc-switch-disabled-unselected-icon-opacity:.38;--mdc-switch-handle-height:20px;--mdc-switch-handle-shape:10px;--mdc-switch-handle-width:20px;--mdc-switch-selected-icon-size:18px;--mdc-switch-track-height:14px;--mdc-switch-track-shape:7px;--mdc-switch-track-width:36px;--mdc-switch-unselected-icon-size:18px;--mdc-switch-selected-focus-state-layer-opacity:.12;--mdc-switch-selected-hover-state-layer-opacity:.04;--mdc-switch-selected-pressed-state-layer-opacity:.1;--mdc-switch-unselected-focus-state-layer-opacity:.12;--mdc-switch-unselected-hover-state-layer-opacity:.04;--mdc-switch-unselected-pressed-state-layer-opacity:.1}html .mat-mdc-slide-toggle{--mat-switch-disabled-selected-handle-opacity:.38;--mat-switch-disabled-unselected-handle-opacity:.38;--mat-switch-unselected-handle-size:20px;--mat-switch-selected-handle-size:20px;--mat-switch-pressed-handle-size:20px;--mat-switch-with-icon-handle-size:20px;--mat-switch-selected-handle-horizontal-margin:0;--mat-switch-selected-with-icon-handle-horizontal-margin:0;--mat-switch-selected-pressed-handle-horizontal-margin:0;--mat-switch-unselected-handle-horizontal-margin:0;--mat-switch-unselected-with-icon-handle-horizontal-margin:0;--mat-switch-unselected-pressed-handle-horizontal-margin:0;--mat-switch-visible-track-opacity:1;--mat-switch-hidden-track-opacity:1;--mat-switch-visible-track-transition:transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-switch-hidden-track-transition:transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-switch-track-outline-width:1px;--mat-switch-track-outline-color:transparent;--mat-switch-selected-track-outline-width:1px;--mat-switch-selected-track-outline-color:transparent;--mat-switch-disabled-unselected-track-outline-width:1px;--mat-switch-disabled-unselected-track-outline-color:transparent}html{--mdc-switch-selected-focus-state-layer-color:#3949ab;--mdc-switch-selected-handle-color:#3949ab;--mdc-switch-selected-hover-state-layer-color:#3949ab;--mdc-switch-selected-pressed-state-layer-color:#3949ab;--mdc-switch-selected-focus-handle-color:#1a237e;--mdc-switch-selected-hover-handle-color:#1a237e;--mdc-switch-selected-pressed-handle-color:#1a237e;--mdc-switch-selected-focus-track-color:#7986cb;--mdc-switch-selected-hover-track-color:#7986cb;--mdc-switch-selected-pressed-track-color:#7986cb;--mdc-switch-selected-track-color:#7986cb;--mdc-switch-disabled-selected-handle-color:#424242;--mdc-switch-disabled-selected-icon-color:#fff;--mdc-switch-disabled-selected-track-color:#424242;--mdc-switch-disabled-unselected-handle-color:#424242;--mdc-switch-disabled-unselected-icon-color:#fff;--mdc-switch-disabled-unselected-track-color:#424242;--mdc-switch-handle-surface-color:var(--mdc-theme-surface, #fff);--mdc-switch-handle-elevation-shadow:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-handle-shadow-color:black;--mdc-switch-disabled-handle-elevation-shadow:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-switch-selected-icon-color:#fff;--mdc-switch-unselected-focus-handle-color:#212121;--mdc-switch-unselected-focus-state-layer-color:#424242;--mdc-switch-unselected-focus-track-color:#e0e0e0;--mdc-switch-unselected-handle-color:#616161;--mdc-switch-unselected-hover-handle-color:#212121;--mdc-switch-unselected-hover-state-layer-color:#424242;--mdc-switch-unselected-hover-track-color:#e0e0e0;--mdc-switch-unselected-icon-color:#fff;--mdc-switch-unselected-pressed-handle-color:#212121;--mdc-switch-unselected-pressed-state-layer-color:#424242;--mdc-switch-unselected-pressed-track-color:#e0e0e0;--mdc-switch-unselected-track-color:#e0e0e0;--mdc-switch-disabled-label-text-color: rgba(0, 0, 0, .38)}html .mat-mdc-slide-toggle{--mat-switch-label-text-color:rgba(0, 0, 0, .87)}html .mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color:#d81b60;--mdc-switch-selected-handle-color:#d81b60;--mdc-switch-selected-hover-state-layer-color:#d81b60;--mdc-switch-selected-pressed-state-layer-color:#d81b60;--mdc-switch-selected-focus-handle-color:#880e4f;--mdc-switch-selected-hover-handle-color:#880e4f;--mdc-switch-selected-pressed-handle-color:#880e4f;--mdc-switch-selected-focus-track-color:#f06292;--mdc-switch-selected-hover-track-color:#f06292;--mdc-switch-selected-pressed-track-color:#f06292;--mdc-switch-selected-track-color:#f06292}html .mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color:#e53935;--mdc-switch-selected-handle-color:#e53935;--mdc-switch-selected-hover-state-layer-color:#e53935;--mdc-switch-selected-pressed-state-layer-color:#e53935;--mdc-switch-selected-focus-handle-color:#b71c1c;--mdc-switch-selected-hover-handle-color:#b71c1c;--mdc-switch-selected-pressed-handle-color:#b71c1c;--mdc-switch-selected-focus-track-color:#e57373;--mdc-switch-selected-hover-track-color:#e57373;--mdc-switch-selected-pressed-track-color:#e57373;--mdc-switch-selected-track-color:#e57373}html{--mdc-switch-state-layer-size:40px}html .mat-mdc-slide-toggle{--mat-switch-label-text-font:Roboto, sans-serif;--mat-switch-label-text-line-height:20px;--mat-switch-label-text-size:14px;--mat-switch-label-text-tracking:.0178571429em;--mat-switch-label-text-weight:400}html{--mdc-radio-disabled-selected-icon-opacity:.38;--mdc-radio-disabled-unselected-icon-opacity:.38;--mdc-radio-state-layer-size:40px}.mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color:black;--mdc-radio-disabled-unselected-icon-color:black;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#3f51b5;--mdc-radio-selected-hover-icon-color:#3f51b5;--mdc-radio-selected-icon-color:#3f51b5;--mdc-radio-selected-pressed-icon-color:#3f51b5;--mat-radio-ripple-color:black;--mat-radio-checked-ripple-color:#3f51b5;--mat-radio-disabled-label-color:rgba(0, 0, 0, .38);--mat-radio-label-text-color:rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-accent{--mdc-radio-disabled-selected-icon-color:black;--mdc-radio-disabled-unselected-icon-color:black;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#ff4081;--mdc-radio-selected-hover-icon-color:#ff4081;--mdc-radio-selected-icon-color:#ff4081;--mdc-radio-selected-pressed-icon-color:#ff4081;--mat-radio-ripple-color:black;--mat-radio-checked-ripple-color:#ff4081;--mat-radio-disabled-label-color:rgba(0, 0, 0, .38);--mat-radio-label-text-color:rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-warn{--mdc-radio-disabled-selected-icon-color:black;--mdc-radio-disabled-unselected-icon-color:black;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#f44336;--mdc-radio-selected-hover-icon-color:#f44336;--mdc-radio-selected-icon-color:#f44336;--mdc-radio-selected-pressed-icon-color:#f44336;--mat-radio-ripple-color:black;--mat-radio-checked-ripple-color:#f44336;--mat-radio-disabled-label-color:rgba(0, 0, 0, .38);--mat-radio-label-text-color:rgba(0, 0, 0, .87)}html{--mdc-radio-state-layer-size:40px;--mat-radio-touch-target-display:block}html{--mat-radio-label-text-font:Roboto, sans-serif;--mat-radio-label-text-line-height:20px;--mat-radio-label-text-size:14px;--mat-radio-label-text-tracking:.0178571429em;--mat-radio-label-text-weight:400}html{--mat-slider-value-indicator-width:auto;--mat-slider-value-indicator-height:32px;--mat-slider-value-indicator-caret-display:block;--mat-slider-value-indicator-border-radius:4px;--mat-slider-value-indicator-padding:0 12px;--mat-slider-value-indicator-text-transform:none;--mat-slider-value-indicator-container-transform:translateX(-50%);--mdc-slider-active-track-height:6px;--mdc-slider-active-track-shape:9999px;--mdc-slider-handle-height:20px;--mdc-slider-handle-shape:50%;--mdc-slider-handle-width:20px;--mdc-slider-inactive-track-height:4px;--mdc-slider-inactive-track-shape:9999px;--mdc-slider-with-overlap-handle-outline-width:1px;--mdc-slider-with-tick-marks-active-container-opacity:.6;--mdc-slider-with-tick-marks-container-shape:50%;--mdc-slider-with-tick-marks-container-size:2px;--mdc-slider-with-tick-marks-inactive-container-opacity:.6}html{--mdc-slider-handle-color:#3f51b5;--mdc-slider-focus-handle-color:#3f51b5;--mdc-slider-hover-handle-color:#3f51b5;--mdc-slider-active-track-color:#3f51b5;--mdc-slider-inactive-track-color:#3f51b5;--mdc-slider-with-tick-marks-inactive-container-color:#3f51b5;--mdc-slider-with-tick-marks-active-container-color:white;--mdc-slider-disabled-active-track-color:#000;--mdc-slider-disabled-handle-color:#000;--mdc-slider-disabled-inactive-track-color:#000;--mdc-slider-label-container-color:#000;--mdc-slider-label-label-text-color:#fff;--mdc-slider-with-overlap-handle-outline-color:#fff;--mdc-slider-with-tick-marks-disabled-container-color:#000;--mdc-slider-handle-elevation:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-ripple-color:#3f51b5;--mat-slider-hover-state-layer-color:rgba(63, 81, 181, .05);--mat-slider-focus-state-layer-color:rgba(63, 81, 181, .2);--mat-slider-value-indicator-opacity:.6}html .mat-accent{--mat-slider-ripple-color:#ff4081;--mat-slider-hover-state-layer-color:rgba(255, 64, 129, .05);--mat-slider-focus-state-layer-color:rgba(255, 64, 129, .2);--mdc-slider-handle-color:#ff4081;--mdc-slider-focus-handle-color:#ff4081;--mdc-slider-hover-handle-color:#ff4081;--mdc-slider-active-track-color:#ff4081;--mdc-slider-inactive-track-color:#ff4081;--mdc-slider-with-tick-marks-inactive-container-color:#ff4081;--mdc-slider-with-tick-marks-active-container-color:white}html .mat-warn{--mat-slider-ripple-color:#f44336;--mat-slider-hover-state-layer-color:rgba(244, 67, 54, .05);--mat-slider-focus-state-layer-color:rgba(244, 67, 54, .2);--mdc-slider-handle-color:#f44336;--mdc-slider-focus-handle-color:#f44336;--mdc-slider-hover-handle-color:#f44336;--mdc-slider-active-track-color:#f44336;--mdc-slider-inactive-track-color:#f44336;--mdc-slider-with-tick-marks-inactive-container-color:#f44336;--mdc-slider-with-tick-marks-active-container-color:white}html{--mdc-slider-label-label-text-font:Roboto, sans-serif;--mdc-slider-label-label-text-size:14px;--mdc-slider-label-label-text-line-height:22px;--mdc-slider-label-label-text-tracking:.0071428571em;--mdc-slider-label-label-text-weight:500}html{--mat-menu-container-shape:4px;--mat-menu-divider-bottom-spacing:0;--mat-menu-divider-top-spacing:0;--mat-menu-item-spacing:16px;--mat-menu-item-icon-size:24px;--mat-menu-item-leading-spacing:16px;--mat-menu-item-trailing-spacing:16px;--mat-menu-item-with-icon-leading-spacing:16px;--mat-menu-item-with-icon-trailing-spacing:16px}html{--mat-menu-item-label-text-color:rgba(0, 0, 0, .87);--mat-menu-item-icon-color:rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color:rgba(0, 0, 0, .04);--mat-menu-item-focus-state-layer-color:rgba(0, 0, 0, .04);--mat-menu-container-color:white;--mat-menu-divider-color:rgba(0, 0, 0, .12)}html{--mat-menu-item-label-text-font:Roboto, sans-serif;--mat-menu-item-label-text-size:16px;--mat-menu-item-label-text-tracking:.03125em;--mat-menu-item-label-text-line-height:24px;--mat-menu-item-label-text-weight:400}html{--mdc-list-list-item-container-shape:0;--mdc-list-list-item-leading-avatar-shape:50%;--mdc-list-list-item-container-color:transparent;--mdc-list-list-item-selected-container-color:transparent;--mdc-list-list-item-leading-avatar-color:transparent;--mdc-list-list-item-leading-icon-size:24px;--mdc-list-list-item-leading-avatar-size:40px;--mdc-list-list-item-trailing-icon-size:24px;--mdc-list-list-item-disabled-state-layer-color:transparent;--mdc-list-list-item-disabled-state-layer-opacity:0;--mdc-list-list-item-disabled-label-text-opacity:.38;--mdc-list-list-item-disabled-leading-icon-opacity:.38;--mdc-list-list-item-disabled-trailing-icon-opacity:.38;--mat-list-active-indicator-color:transparent;--mat-list-active-indicator-shape:4px}html{--mdc-list-list-item-label-text-color:rgba(0, 0, 0, .87);--mdc-list-list-item-supporting-text-color:rgba(0, 0, 0, .54);--mdc-list-list-item-leading-icon-color:rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-supporting-text-color:rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-icon-color:rgba(0, 0, 0, .38);--mdc-list-list-item-selected-trailing-icon-color:rgba(0, 0, 0, .38);--mdc-list-list-item-disabled-label-text-color:black;--mdc-list-list-item-disabled-leading-icon-color:black;--mdc-list-list-item-disabled-trailing-icon-color:black;--mdc-list-list-item-hover-label-text-color:rgba(0, 0, 0, .87);--mdc-list-list-item-hover-leading-icon-color:rgba(0, 0, 0, .38);--mdc-list-list-item-hover-trailing-icon-color:rgba(0, 0, 0, .38);--mdc-list-list-item-focus-label-text-color:rgba(0, 0, 0, .87);--mdc-list-list-item-hover-state-layer-color:black;--mdc-list-list-item-hover-state-layer-opacity:.04;--mdc-list-list-item-focus-state-layer-color:black;--mdc-list-list-item-focus-state-layer-opacity:.12}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:black;--mdc-radio-disabled-unselected-icon-color:black;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#3f51b5;--mdc-radio-selected-hover-icon-color:#3f51b5;--mdc-radio-selected-icon-color:#3f51b5;--mdc-radio-selected-pressed-icon-color:#3f51b5}.mat-accent .mdc-list-item__start,.mat-accent .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:black;--mdc-radio-disabled-unselected-icon-color:black;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#ff4081;--mdc-radio-selected-hover-icon-color:#ff4081;--mdc-radio-selected-icon-color:#ff4081;--mdc-radio-selected-pressed-icon-color:#ff4081}.mat-warn .mdc-list-item__start,.mat-warn .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:black;--mdc-radio-disabled-unselected-icon-color:black;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#f44336;--mdc-radio-selected-hover-icon-color:#f44336;--mdc-radio-selected-icon-color:#f44336;--mdc-radio-selected-pressed-icon-color:#f44336}.mat-mdc-list-option{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:white;--mdc-checkbox-selected-focus-icon-color:#3f51b5;--mdc-checkbox-selected-hover-icon-color:#3f51b5;--mdc-checkbox-selected-icon-color:#3f51b5;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#3f51b5;--mdc-checkbox-selected-hover-state-layer-color:#3f51b5;--mdc-checkbox-selected-pressed-state-layer-color:#3f51b5;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}.mat-mdc-list-option.mat-accent{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:white;--mdc-checkbox-selected-focus-icon-color:#ff4081;--mdc-checkbox-selected-hover-icon-color:#ff4081;--mdc-checkbox-selected-icon-color:#ff4081;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#ff4081;--mdc-checkbox-selected-hover-state-layer-color:#ff4081;--mdc-checkbox-selected-pressed-state-layer-color:#ff4081;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}.mat-mdc-list-option.mat-warn{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:white;--mdc-checkbox-selected-focus-icon-color:#f44336;--mdc-checkbox-selected-hover-icon-color:#f44336;--mdc-checkbox-selected-icon-color:#f44336;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#f44336;--mdc-checkbox-selected-hover-state-layer-color:#f44336;--mdc-checkbox-selected-pressed-state-layer-color:#f44336;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start{color:#3f51b5}.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}html{--mdc-list-list-item-one-line-container-height:48px;--mdc-list-list-item-two-line-container-height:64px;--mdc-list-list-item-three-line-container-height:88px;--mat-list-list-item-leading-icon-start-space:16px;--mat-list-list-item-leading-icon-end-space:32px}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-state-layer-size:40px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}html{--mdc-list-list-item-label-text-font:Roboto, sans-serif;--mdc-list-list-item-label-text-line-height:24px;--mdc-list-list-item-label-text-size:16px;--mdc-list-list-item-label-text-tracking:.03125em;--mdc-list-list-item-label-text-weight:400;--mdc-list-list-item-supporting-text-font:Roboto, sans-serif;--mdc-list-list-item-supporting-text-line-height:20px;--mdc-list-list-item-supporting-text-size:14px;--mdc-list-list-item-supporting-text-tracking:.0178571429em;--mdc-list-list-item-supporting-text-weight:400;--mdc-list-list-item-trailing-supporting-text-font:Roboto, sans-serif;--mdc-list-list-item-trailing-supporting-text-line-height:20px;--mdc-list-list-item-trailing-supporting-text-size:12px;--mdc-list-list-item-trailing-supporting-text-tracking:.0333333333em;--mdc-list-list-item-trailing-supporting-text-weight:400}.mdc-list-group__subheader{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em}html{--mat-paginator-container-text-color:rgba(0, 0, 0, .87);--mat-paginator-container-background-color:white;--mat-paginator-enabled-icon-color:rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color:rgba(0, 0, 0, .12)}html{--mat-paginator-container-size:56px;--mat-paginator-form-field-container-height:40px;--mat-paginator-form-field-container-vertical-padding:8px}html{--mat-paginator-container-text-font:Roboto, sans-serif;--mat-paginator-container-text-line-height:20px;--mat-paginator-container-text-size:12px;--mat-paginator-container-text-tracking:.0333333333em;--mat-paginator-container-text-weight:400;--mat-paginator-select-trigger-text-size:12px}html{--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px;--mat-tab-header-divider-color:transparent;--mat-tab-header-divider-height:0}.mat-mdc-tab-group,.mat-mdc-tab-nav-bar{--mdc-tab-indicator-active-indicator-color:#3f51b5;--mat-tab-header-disabled-ripple-color:rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color:black;--mat-tab-header-inactive-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color:#3f51b5;--mat-tab-header-active-ripple-color:#3f51b5;--mat-tab-header-inactive-ripple-color:#3f51b5;--mat-tab-header-inactive-focus-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color:#3f51b5;--mat-tab-header-active-hover-label-text-color:#3f51b5;--mat-tab-header-active-focus-indicator-color:#3f51b5;--mat-tab-header-active-hover-indicator-color:#3f51b5}.mat-mdc-tab-group.mat-accent,.mat-mdc-tab-nav-bar.mat-accent{--mdc-tab-indicator-active-indicator-color:#ff4081;--mat-tab-header-disabled-ripple-color:rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color:black;--mat-tab-header-inactive-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color:#ff4081;--mat-tab-header-active-ripple-color:#ff4081;--mat-tab-header-inactive-ripple-color:#ff4081;--mat-tab-header-inactive-focus-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color:#ff4081;--mat-tab-header-active-hover-label-text-color:#ff4081;--mat-tab-header-active-focus-indicator-color:#ff4081;--mat-tab-header-active-hover-indicator-color:#ff4081}.mat-mdc-tab-group.mat-warn,.mat-mdc-tab-nav-bar.mat-warn{--mdc-tab-indicator-active-indicator-color:#f44336;--mat-tab-header-disabled-ripple-color:rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color:black;--mat-tab-header-inactive-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color:#f44336;--mat-tab-header-active-ripple-color:#f44336;--mat-tab-header-inactive-ripple-color:#f44336;--mat-tab-header-inactive-focus-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color:#f44336;--mat-tab-header-active-hover-label-text-color:#f44336;--mat-tab-header-active-focus-indicator-color:#f44336;--mat-tab-header-active-hover-indicator-color:#f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-header-with-background-background-color:#3f51b5;--mat-tab-header-with-background-foreground-color:white}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-header-with-background-background-color:#ff4081;--mat-tab-header-with-background-foreground-color:white}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-header-with-background-background-color:#f44336;--mat-tab-header-with-background-foreground-color:white}.mat-mdc-tab-header{--mdc-secondary-navigation-tab-container-height:48px}.mat-mdc-tab-header{--mat-tab-header-label-text-font:Roboto, sans-serif;--mat-tab-header-label-text-size:14px;--mat-tab-header-label-text-tracking:.0892857143em;--mat-tab-header-label-text-line-height:36px;--mat-tab-header-label-text-weight:500}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:.16;--mdc-checkbox-selected-hover-state-layer-opacity:.04;--mdc-checkbox-selected-pressed-state-layer-opacity:.16;--mdc-checkbox-unselected-focus-state-layer-opacity:.16;--mdc-checkbox-unselected-hover-state-layer-opacity:.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:.16}html{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:white;--mdc-checkbox-selected-focus-icon-color:#ff4081;--mdc-checkbox-selected-hover-icon-color:#ff4081;--mdc-checkbox-selected-icon-color:#ff4081;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#ff4081;--mdc-checkbox-selected-hover-state-layer-color:#ff4081;--mdc-checkbox-selected-pressed-state-layer-color:#ff4081;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black;--mat-checkbox-disabled-label-color:rgba(0, 0, 0, .38);--mat-checkbox-label-text-color:rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:white;--mdc-checkbox-selected-focus-icon-color:#3f51b5;--mdc-checkbox-selected-hover-icon-color:#3f51b5;--mdc-checkbox-selected-icon-color:#3f51b5;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#3f51b5;--mdc-checkbox-selected-hover-state-layer-color:#3f51b5;--mdc-checkbox-selected-pressed-state-layer-color:#3f51b5;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}.mat-mdc-checkbox.mat-warn{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:white;--mdc-checkbox-selected-focus-icon-color:#f44336;--mdc-checkbox-selected-hover-icon-color:#f44336;--mdc-checkbox-selected-icon-color:#f44336;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#f44336;--mdc-checkbox-selected-hover-state-layer-color:#f44336;--mdc-checkbox-selected-pressed-state-layer-color:#f44336;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}html{--mdc-checkbox-state-layer-size:40px;--mat-checkbox-touch-target-display:block}html{--mat-checkbox-label-text-font:Roboto, sans-serif;--mat-checkbox-label-text-line-height:20px;--mat-checkbox-label-text-size:14px;--mat-checkbox-label-text-tracking:.0178571429em;--mat-checkbox-label-text-weight:400}html{--mdc-text-button-container-shape:4px;--mdc-text-button-keep-touch-target:false;--mdc-filled-button-container-shape:4px;--mdc-filled-button-keep-touch-target:false;--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false;--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px;--mat-text-button-horizontal-padding:8px;--mat-text-button-with-icon-horizontal-padding:8px;--mat-text-button-icon-spacing:8px;--mat-text-button-icon-offset:0;--mat-filled-button-horizontal-padding:16px;--mat-filled-button-icon-spacing:8px;--mat-filled-button-icon-offset:-4px;--mat-protected-button-horizontal-padding:16px;--mat-protected-button-icon-spacing:8px;--mat-protected-button-icon-offset:-4px;--mat-outlined-button-horizontal-padding:15px;--mat-outlined-button-icon-spacing:8px;--mat-outlined-button-icon-offset:-4px}html{--mdc-text-button-label-text-color:black;--mdc-text-button-disabled-label-text-color:rgba(0, 0, 0, .38);--mat-text-button-state-layer-color:black;--mat-text-button-disabled-state-layer-color:black;--mat-text-button-ripple-color:rgba(0, 0, 0, .1);--mat-text-button-hover-state-layer-opacity:.04;--mat-text-button-focus-state-layer-opacity:.12;--mat-text-button-pressed-state-layer-opacity:.12;--mdc-filled-button-container-color:white;--mdc-filled-button-label-text-color:black;--mdc-filled-button-disabled-container-color:rgba(0, 0, 0, .12);--mdc-filled-button-disabled-label-text-color:rgba(0, 0, 0, .38);--mat-filled-button-state-layer-color:black;--mat-filled-button-disabled-state-layer-color:black;--mat-filled-button-ripple-color:rgba(0, 0, 0, .1);--mat-filled-button-hover-state-layer-opacity:.04;--mat-filled-button-focus-state-layer-opacity:.12;--mat-filled-button-pressed-state-layer-opacity:.12;--mdc-protected-button-container-color:white;--mdc-protected-button-label-text-color:black;--mdc-protected-button-disabled-container-color:rgba(0, 0, 0, .12);--mdc-protected-button-disabled-label-text-color:rgba(0, 0, 0, .38);--mdc-protected-button-container-elevation-shadow:0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mdc-protected-button-disabled-container-elevation-shadow:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-protected-button-focus-container-elevation-shadow:0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-hover-container-elevation-shadow:0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-pressed-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-protected-button-container-shadow-color:#000;--mat-protected-button-state-layer-color:black;--mat-protected-button-disabled-state-layer-color:black;--mat-protected-button-ripple-color:rgba(0, 0, 0, .1);--mat-protected-button-hover-state-layer-opacity:.04;--mat-protected-button-focus-state-layer-opacity:.12;--mat-protected-button-pressed-state-layer-opacity:.12;--mdc-outlined-button-disabled-outline-color:rgba(0, 0, 0, .12);--mdc-outlined-button-disabled-label-text-color:rgba(0, 0, 0, .38);--mdc-outlined-button-label-text-color:black;--mdc-outlined-button-outline-color:rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color:black;--mat-outlined-button-disabled-state-layer-color:black;--mat-outlined-button-ripple-color:rgba(0, 0, 0, .1);--mat-outlined-button-hover-state-layer-opacity:.04;--mat-outlined-button-focus-state-layer-opacity:.12;--mat-outlined-button-pressed-state-layer-opacity:.12}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color:#3f51b5;--mat-text-button-state-layer-color:#3f51b5;--mat-text-button-ripple-color:rgba(63, 81, 181, .1)}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color:#ff4081;--mat-text-button-state-layer-color:#ff4081;--mat-text-button-ripple-color:rgba(255, 64, 129, .1)}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color:#f44336;--mat-text-button-state-layer-color:#f44336;--mat-text-button-ripple-color:rgba(244, 67, 54, .1)}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color:#3f51b5;--mdc-filled-button-label-text-color:white;--mat-filled-button-state-layer-color:white;--mat-filled-button-ripple-color:rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color:#ff4081;--mdc-filled-button-label-text-color:white;--mat-filled-button-state-layer-color:white;--mat-filled-button-ripple-color:rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color:#f44336;--mdc-filled-button-label-text-color:white;--mat-filled-button-state-layer-color:white;--mat-filled-button-ripple-color:rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color:#3f51b5;--mdc-protected-button-label-text-color:white;--mat-protected-button-state-layer-color:white;--mat-protected-button-ripple-color:rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color:#ff4081;--mdc-protected-button-label-text-color:white;--mat-protected-button-state-layer-color:white;--mat-protected-button-ripple-color:rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color:#f44336;--mdc-protected-button-label-text-color:white;--mat-protected-button-state-layer-color:white;--mat-protected-button-ripple-color:rgba(255, 255, 255, .1)}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color:#3f51b5;--mdc-outlined-button-outline-color:rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color:#3f51b5;--mat-outlined-button-ripple-color:rgba(63, 81, 181, .1)}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color:#ff4081;--mdc-outlined-button-outline-color:rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color:#ff4081;--mat-outlined-button-ripple-color:rgba(255, 64, 129, .1)}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color:#f44336;--mdc-outlined-button-outline-color:rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color:#f44336;--mat-outlined-button-ripple-color:rgba(244, 67, 54, .1)}html{--mdc-text-button-container-height:36px;--mdc-filled-button-container-height:36px;--mdc-outlined-button-container-height:36px;--mdc-protected-button-container-height:36px;--mat-text-button-touch-target-display:block;--mat-filled-button-touch-target-display:block;--mat-protected-button-touch-target-display:block;--mat-outlined-button-touch-target-display:block}html{--mdc-text-button-label-text-font:Roboto, sans-serif;--mdc-text-button-label-text-size:14px;--mdc-text-button-label-text-tracking:.0892857143em;--mdc-text-button-label-text-weight:500;--mdc-text-button-label-text-transform:none;--mdc-filled-button-label-text-font:Roboto, sans-serif;--mdc-filled-button-label-text-size:14px;--mdc-filled-button-label-text-tracking:.0892857143em;--mdc-filled-button-label-text-weight:500;--mdc-filled-button-label-text-transform:none;--mdc-outlined-button-label-text-font:Roboto, sans-serif;--mdc-outlined-button-label-text-size:14px;--mdc-outlined-button-label-text-tracking:.0892857143em;--mdc-outlined-button-label-text-weight:500;--mdc-outlined-button-label-text-transform:none;--mdc-protected-button-label-text-font:Roboto, sans-serif;--mdc-protected-button-label-text-size:14px;--mdc-protected-button-label-text-tracking:.0892857143em;--mdc-protected-button-label-text-weight:500;--mdc-protected-button-label-text-transform:none}html{--mdc-icon-button-icon-size:24px}html{--mdc-icon-button-icon-color:inherit;--mdc-icon-button-disabled-icon-color:rgba(0, 0, 0, .38);--mat-icon-button-state-layer-color:black;--mat-icon-button-disabled-state-layer-color:black;--mat-icon-button-ripple-color:rgba(0, 0, 0, .1);--mat-icon-button-hover-state-layer-opacity:.04;--mat-icon-button-focus-state-layer-opacity:.12;--mat-icon-button-pressed-state-layer-opacity:.12}html .mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color:#3f51b5;--mat-icon-button-state-layer-color:#3f51b5;--mat-icon-button-ripple-color:rgba(63, 81, 181, .1)}html .mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color:#ff4081;--mat-icon-button-state-layer-color:#ff4081;--mat-icon-button-ripple-color:rgba(255, 64, 129, .1)}html .mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color:#f44336;--mat-icon-button-state-layer-color:#f44336;--mat-icon-button-ripple-color:rgba(244, 67, 54, .1)}html{--mat-icon-button-touch-target-display:block}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size:48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}html{--mdc-fab-container-shape:50%;--mdc-fab-icon-size:24px;--mdc-fab-small-container-shape:50%;--mdc-fab-small-icon-size:24px;--mdc-extended-fab-container-height:48px;--mdc-extended-fab-container-shape:24px}html{--mdc-fab-container-color:white;--mdc-fab-container-elevation-shadow:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-focus-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-hover-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-pressed-container-elevation-shadow:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-container-shadow-color:#000;--mat-fab-foreground-color:black;--mat-fab-state-layer-color:black;--mat-fab-disabled-state-layer-color:black;--mat-fab-ripple-color:rgba(0, 0, 0, .1);--mat-fab-hover-state-layer-opacity:.04;--mat-fab-focus-state-layer-opacity:.12;--mat-fab-pressed-state-layer-opacity:.12;--mat-fab-disabled-state-container-color:rgba(0, 0, 0, .12);--mat-fab-disabled-state-foreground-color:rgba(0, 0, 0, .38);--mdc-fab-small-container-color:white;--mdc-fab-small-container-elevation-shadow:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-small-focus-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-hover-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-pressed-container-elevation-shadow:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-small-container-shadow-color:#000;--mat-fab-small-foreground-color:black;--mat-fab-small-state-layer-color:black;--mat-fab-small-disabled-state-layer-color:black;--mat-fab-small-ripple-color:rgba(0, 0, 0, .1);--mat-fab-small-hover-state-layer-opacity:.04;--mat-fab-small-focus-state-layer-opacity:.12;--mat-fab-small-pressed-state-layer-opacity:.12;--mat-fab-small-disabled-state-container-color:rgba(0, 0, 0, .12);--mat-fab-small-disabled-state-foreground-color:rgba(0, 0, 0, .38);--mdc-extended-fab-container-elevation-shadow:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-extended-fab-focus-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-hover-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-pressed-container-elevation-shadow:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-extended-fab-container-shadow-color:#000}html .mat-mdc-fab.mat-primary{--mdc-fab-container-color:#3f51b5;--mat-fab-foreground-color:white;--mat-fab-state-layer-color:white;--mat-fab-ripple-color:rgba(255, 255, 255, .1)}html .mat-mdc-fab.mat-accent{--mdc-fab-container-color:#ff4081;--mat-fab-foreground-color:white;--mat-fab-state-layer-color:white;--mat-fab-ripple-color:rgba(255, 255, 255, .1)}html .mat-mdc-fab.mat-warn{--mdc-fab-container-color:#f44336;--mat-fab-foreground-color:white;--mat-fab-state-layer-color:white;--mat-fab-ripple-color:rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-primary{--mdc-fab-small-container-color:#3f51b5;--mat-fab-small-foreground-color:white;--mat-fab-small-state-layer-color:white;--mat-fab-small-ripple-color:rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-accent{--mdc-fab-small-container-color:#ff4081;--mat-fab-small-foreground-color:white;--mat-fab-small-state-layer-color:white;--mat-fab-small-ripple-color:rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-warn{--mdc-fab-small-container-color:#f44336;--mat-fab-small-foreground-color:white;--mat-fab-small-state-layer-color:white;--mat-fab-small-ripple-color:rgba(255, 255, 255, .1)}html{--mat-fab-touch-target-display:block;--mat-fab-small-touch-target-display:block}html{--mdc-extended-fab-label-text-font:Roboto, sans-serif;--mdc-extended-fab-label-text-size:14px;--mdc-extended-fab-label-text-tracking:.0892857143em;--mdc-extended-fab-label-text-weight:500}html{--mdc-snackbar-container-shape:4px}html{--mdc-snackbar-container-color:#333333;--mdc-snackbar-supporting-text-color:rgba(255, 255, 255, .87);--mat-snack-bar-button-color:#ff4081}html{--mdc-snackbar-supporting-text-font:Roboto, sans-serif;--mdc-snackbar-supporting-text-line-height:20px;--mdc-snackbar-supporting-text-size:14px;--mdc-snackbar-supporting-text-weight:400}html{--mat-table-row-item-outline-width:1px}html{--mat-table-background-color:white;--mat-table-header-headline-color:rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color:rgba(0, 0, 0, .87);--mat-table-row-item-outline-color:rgba(0, 0, 0, .12)}html{--mat-table-header-container-height:56px;--mat-table-footer-container-height:52px;--mat-table-row-item-container-height:52px}html{--mat-table-header-headline-font:Roboto, sans-serif;--mat-table-header-headline-line-height:22px;--mat-table-header-headline-size:14px;--mat-table-header-headline-weight:500;--mat-table-header-headline-tracking:.0071428571em;--mat-table-row-item-label-text-font:Roboto, sans-serif;--mat-table-row-item-label-text-line-height:20px;--mat-table-row-item-label-text-size:14px;--mat-table-row-item-label-text-weight:400;--mat-table-row-item-label-text-tracking:.0178571429em;--mat-table-footer-supporting-text-font:Roboto, sans-serif;--mat-table-footer-supporting-text-line-height:20px;--mat-table-footer-supporting-text-size:14px;--mat-table-footer-supporting-text-weight:400;--mat-table-footer-supporting-text-tracking:.0178571429em}html{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}html{--mdc-circular-progress-active-indicator-color:#3f51b5}html .mat-accent{--mdc-circular-progress-active-indicator-color:#ff4081}html .mat-warn{--mdc-circular-progress-active-indicator-color:#f44336}html{--mat-badge-container-shape:50%;--mat-badge-container-size:unset;--mat-badge-small-size-container-size:unset;--mat-badge-large-size-container-size:unset;--mat-badge-legacy-container-size:22px;--mat-badge-legacy-small-size-container-size:16px;--mat-badge-legacy-large-size-container-size:28px;--mat-badge-container-offset:-11px 0;--mat-badge-small-size-container-offset:-8px 0;--mat-badge-large-size-container-offset:-14px 0;--mat-badge-container-overlap-offset:-11px;--mat-badge-small-size-container-overlap-offset:-8px;--mat-badge-large-size-container-overlap-offset:-14px;--mat-badge-container-padding:0;--mat-badge-small-size-container-padding:0;--mat-badge-large-size-container-padding:0}html{--mat-badge-background-color:#3f51b5;--mat-badge-text-color:white;--mat-badge-disabled-state-background-color:#b9b9b9;--mat-badge-disabled-state-text-color:rgba(0, 0, 0, .38)}.mat-badge-accent{--mat-badge-background-color:#ff4081;--mat-badge-text-color:white}.mat-badge-warn{--mat-badge-background-color:#f44336;--mat-badge-text-color:white}html{--mat-badge-text-font:Roboto, sans-serif;--mat-badge-text-size:12px;--mat-badge-text-weight:600;--mat-badge-small-size-text-size:9px;--mat-badge-large-size-text-size:24px}html{--mat-bottom-sheet-container-shape:4px}html{--mat-bottom-sheet-container-text-color:rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color:white}html{--mat-bottom-sheet-container-text-font:Roboto, sans-serif;--mat-bottom-sheet-container-text-line-height:20px;--mat-bottom-sheet-container-text-size:14px;--mat-bottom-sheet-container-text-tracking:.0178571429em;--mat-bottom-sheet-container-text-weight:400}html{--mat-legacy-button-toggle-height:36px;--mat-legacy-button-toggle-shape:2px;--mat-legacy-button-toggle-focus-state-layer-opacity:1;--mat-standard-button-toggle-shape:4px;--mat-standard-button-toggle-hover-state-layer-opacity:.04;--mat-standard-button-toggle-focus-state-layer-opacity:.12}html{--mat-legacy-button-toggle-text-color:rgba(0, 0, 0, .38);--mat-legacy-button-toggle-state-layer-color:rgba(0, 0, 0, .12);--mat-legacy-button-toggle-selected-state-text-color:rgba(0, 0, 0, .54);--mat-legacy-button-toggle-selected-state-background-color:#e0e0e0;--mat-legacy-button-toggle-disabled-state-text-color:rgba(0, 0, 0, .26);--mat-legacy-button-toggle-disabled-state-background-color:#eeeeee;--mat-legacy-button-toggle-disabled-selected-state-background-color:#bdbdbd;--mat-standard-button-toggle-text-color:rgba(0, 0, 0, .87);--mat-standard-button-toggle-background-color:white;--mat-standard-button-toggle-state-layer-color:black;--mat-standard-button-toggle-selected-state-background-color:#e0e0e0;--mat-standard-button-toggle-selected-state-text-color:rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-state-text-color:rgba(0, 0, 0, .26);--mat-standard-button-toggle-disabled-state-background-color:white;--mat-standard-button-toggle-disabled-selected-state-text-color:rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-selected-state-background-color:#bdbdbd;--mat-standard-button-toggle-divider-color:#e0e0e0}html{--mat-standard-button-toggle-height:48px}html{--mat-legacy-button-toggle-label-text-font:Roboto, sans-serif;--mat-legacy-button-toggle-label-text-line-height:24px;--mat-legacy-button-toggle-label-text-size:16px;--mat-legacy-button-toggle-label-text-tracking:.03125em;--mat-legacy-button-toggle-label-text-weight:400;--mat-standard-button-toggle-label-text-font:Roboto, sans-serif;--mat-standard-button-toggle-label-text-line-height:24px;--mat-standard-button-toggle-label-text-size:16px;--mat-standard-button-toggle-label-text-tracking:.03125em;--mat-standard-button-toggle-label-text-weight:400}html{--mat-datepicker-calendar-container-shape:4px;--mat-datepicker-calendar-container-touch-shape:4px;--mat-datepicker-calendar-container-elevation-shadow:0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-datepicker-calendar-date-selected-state-text-color:white;--mat-datepicker-calendar-date-selected-state-background-color:#3f51b5;--mat-datepicker-calendar-date-selected-disabled-state-background-color:rgba(63, 81, 181, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color:white;--mat-datepicker-calendar-date-focus-state-background-color:rgba(63, 81, 181, .3);--mat-datepicker-calendar-date-hover-state-background-color:rgba(63, 81, 181, .3);--mat-datepicker-toggle-active-state-icon-color:#3f51b5;--mat-datepicker-calendar-date-in-range-state-background-color:rgba(63, 81, 181, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color:rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color:#a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color:#46a35e;--mat-datepicker-toggle-icon-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color:black;--mat-datepicker-calendar-period-button-icon-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color:rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color:rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-today-disabled-state-outline-color:rgba(0, 0, 0, .18);--mat-datepicker-calendar-date-text-color:rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color:transparent;--mat-datepicker-calendar-date-disabled-state-text-color:rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-preview-state-outline-color:rgba(0, 0, 0, .24);--mat-datepicker-range-input-separator-color:rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color:rgba(0, 0, 0, .38);--mat-datepicker-range-input-disabled-state-text-color:rgba(0, 0, 0, .38);--mat-datepicker-calendar-container-background-color:white;--mat-datepicker-calendar-container-text-color:rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent{--mat-datepicker-calendar-date-selected-state-text-color:white;--mat-datepicker-calendar-date-selected-state-background-color:#ff4081;--mat-datepicker-calendar-date-selected-disabled-state-background-color:rgba(255, 64, 129, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color:white;--mat-datepicker-calendar-date-focus-state-background-color:rgba(255, 64, 129, .3);--mat-datepicker-calendar-date-hover-state-background-color:rgba(255, 64, 129, .3);--mat-datepicker-calendar-date-in-range-state-background-color:rgba(255, 64, 129, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color:rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color:#a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color:#46a35e}.mat-datepicker-content.mat-warn{--mat-datepicker-calendar-date-selected-state-text-color:white;--mat-datepicker-calendar-date-selected-state-background-color:#f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color:rgba(244, 67, 54, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color:white;--mat-datepicker-calendar-date-focus-state-background-color:rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-hover-state-background-color:rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-in-range-state-background-color:rgba(244, 67, 54, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color:rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color:#a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color:#46a35e}.mat-datepicker-toggle-active.mat-accent{--mat-datepicker-toggle-active-state-icon-color:#ff4081}.mat-datepicker-toggle-active.mat-warn{--mat-datepicker-toggle-active-state-icon-color:#f44336}.mat-calendar-controls{--mat-icon-button-touch-target-display:none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size:40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}html{--mat-datepicker-calendar-text-font:Roboto, sans-serif;--mat-datepicker-calendar-text-size:13px;--mat-datepicker-calendar-body-label-text-size:14px;--mat-datepicker-calendar-body-label-text-weight:500;--mat-datepicker-calendar-period-button-text-size:14px;--mat-datepicker-calendar-period-button-text-weight:500;--mat-datepicker-calendar-header-text-size:11px;--mat-datepicker-calendar-header-text-weight:400}html{--mat-divider-width:1px}html{--mat-divider-color:rgba(0, 0, 0, .12)}html{--mat-expansion-container-shape:4px;--mat-expansion-legacy-header-indicator-display:inline-block;--mat-expansion-header-indicator-display:none}html{--mat-expansion-container-background-color:white;--mat-expansion-container-text-color:rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color:rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color:rgba(0, 0, 0, .04);--mat-expansion-header-focus-state-layer-color:rgba(0, 0, 0, .04);--mat-expansion-header-disabled-state-text-color:rgba(0, 0, 0, .26);--mat-expansion-header-text-color:rgba(0, 0, 0, .87);--mat-expansion-header-description-color:rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color:rgba(0, 0, 0, .54)}html{--mat-expansion-header-collapsed-state-height:48px;--mat-expansion-header-expanded-state-height:64px}html{--mat-expansion-header-text-font:Roboto, sans-serif;--mat-expansion-header-text-size:14px;--mat-expansion-header-text-weight:500;--mat-expansion-header-text-line-height:inherit;--mat-expansion-header-text-tracking:inherit;--mat-expansion-container-text-font:Roboto, sans-serif;--mat-expansion-container-text-line-height:20px;--mat-expansion-container-text-size:14px;--mat-expansion-container-text-tracking:.0178571429em;--mat-expansion-container-text-weight:400}html{--mat-grid-list-tile-header-primary-text-size:14px;--mat-grid-list-tile-header-secondary-text-size:12px;--mat-grid-list-tile-footer-primary-text-size:14px;--mat-grid-list-tile-footer-secondary-text-size:12px}html{--mat-icon-color:inherit}.mat-icon.mat-primary{--mat-icon-color:#3f51b5}.mat-icon.mat-accent{--mat-icon-color:#ff4081}.mat-icon.mat-warn{--mat-icon-color:#f44336}html{--mat-sidenav-container-shape:0;--mat-sidenav-container-elevation-shadow:0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width:auto}html{--mat-sidenav-container-divider-color:rgba(0, 0, 0, .12);--mat-sidenav-container-background-color:white;--mat-sidenav-container-text-color:rgba(0, 0, 0, .87);--mat-sidenav-content-background-color:#fafafa;--mat-sidenav-content-text-color:rgba(0, 0, 0, .87);--mat-sidenav-scrim-color:rgba(0, 0, 0, .6)}html{--mat-stepper-header-icon-foreground-color:white;--mat-stepper-header-selected-state-icon-background-color:#3f51b5;--mat-stepper-header-selected-state-icon-foreground-color:white;--mat-stepper-header-done-state-icon-background-color:#3f51b5;--mat-stepper-header-done-state-icon-foreground-color:white;--mat-stepper-header-edit-state-icon-background-color:#3f51b5;--mat-stepper-header-edit-state-icon-foreground-color:white;--mat-stepper-container-color:white;--mat-stepper-line-color:rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color:rgba(0, 0, 0, .04);--mat-stepper-header-focus-state-layer-color:rgba(0, 0, 0, .04);--mat-stepper-header-label-text-color:rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color:rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color:rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color:#f44336;--mat-stepper-header-icon-background-color:rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color:#f44336;--mat-stepper-header-error-state-icon-background-color:transparent}html .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color:white;--mat-stepper-header-selected-state-icon-background-color:#ff4081;--mat-stepper-header-selected-state-icon-foreground-color:white;--mat-stepper-header-done-state-icon-background-color:#ff4081;--mat-stepper-header-done-state-icon-foreground-color:white;--mat-stepper-header-edit-state-icon-background-color:#ff4081;--mat-stepper-header-edit-state-icon-foreground-color:white}html .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color:white;--mat-stepper-header-selected-state-icon-background-color:#f44336;--mat-stepper-header-selected-state-icon-foreground-color:white;--mat-stepper-header-done-state-icon-background-color:#f44336;--mat-stepper-header-done-state-icon-foreground-color:white;--mat-stepper-header-edit-state-icon-background-color:#f44336;--mat-stepper-header-edit-state-icon-foreground-color:white}html{--mat-stepper-header-height:72px}html{--mat-stepper-container-text-font:Roboto, sans-serif;--mat-stepper-header-label-text-font:Roboto, sans-serif;--mat-stepper-header-label-text-size:14px;--mat-stepper-header-label-text-weight:400;--mat-stepper-header-error-state-label-text-size:16px;--mat-stepper-header-selected-state-label-text-size:16px;--mat-stepper-header-selected-state-label-text-weight:400}html{--mat-sort-arrow-color:#757575}html{--mat-toolbar-container-background-color:whitesmoke;--mat-toolbar-container-text-color:rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary{--mat-toolbar-container-background-color:#3f51b5;--mat-toolbar-container-text-color:white}.mat-toolbar.mat-accent{--mat-toolbar-container-background-color:#ff4081;--mat-toolbar-container-text-color:white}.mat-toolbar.mat-warn{--mat-toolbar-container-background-color:#f44336;--mat-toolbar-container-text-color:white}html{--mat-toolbar-standard-height:64px;--mat-toolbar-mobile-height:56px}html{--mat-toolbar-title-text-font:Roboto, sans-serif;--mat-toolbar-title-text-line-height:32px;--mat-toolbar-title-text-size:20px;--mat-toolbar-title-text-tracking:.0125em;--mat-toolbar-title-text-weight:500}html{--mat-tree-container-background-color:white;--mat-tree-node-text-color:rgba(0, 0, 0, .87)}html{--mat-tree-node-min-height:48px}html{--mat-tree-node-text-font:Roboto, sans-serif;--mat-tree-node-text-size:14px;--mat-tree-node-text-weight:400}.mat-h1,.mat-headline-5,.mat-typography .mat-h1,.mat-typography .mat-headline-5,.mat-typography h1{font:400 24px/32px Roboto,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-headline-6,.mat-typography .mat-h2,.mat-typography .mat-headline-6,.mat-typography h2{font:500 20px/32px Roboto,sans-serif;letter-spacing:.0125em;margin:0 0 16px}.mat-h3,.mat-subtitle-1,.mat-typography .mat-h3,.mat-typography .mat-subtitle-1,.mat-typography h3{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em;margin:0 0 16px}.mat-h4,.mat-body-1,.mat-typography .mat-h4,.mat-typography .mat-body-1,.mat-typography h4{font:400 16px/24px Roboto,sans-serif;letter-spacing:.03125em;margin:0 0 16px}.mat-h5,.mat-typography .mat-h5,.mat-typography h5{font:400 11.62px/20px Roboto,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography .mat-h6,.mat-typography h6{font:400 9.38px/20px Roboto,sans-serif;margin:0 0 12px}.mat-body-strong,.mat-subtitle-2,.mat-typography .mat-body-strong,.mat-typography .mat-subtitle-2{font:500 14px/22px Roboto,sans-serif;letter-spacing:.0071428571em}.mat-body,.mat-body-2,.mat-typography .mat-body,.mat-typography .mat-body-2,.mat-typography{font:400 14px/20px Roboto,sans-serif;letter-spacing:.0178571429em}.mat-body p,.mat-body-2 p,.mat-typography .mat-body p,.mat-typography .mat-body-2 p,.mat-typography p{margin:0 0 12px}.mat-small,.mat-caption,.mat-typography .mat-small,.mat-typography .mat-caption{font:400 12px/20px Roboto,sans-serif;letter-spacing:.0333333333em}.mat-headline-1,.mat-typography .mat-headline-1{font:300 96px/96px Roboto,sans-serif;letter-spacing:-.015625em;margin:0 0 56px}.mat-headline-2,.mat-typography .mat-headline-2{font:300 60px/60px Roboto,sans-serif;letter-spacing:-.0083333333em;margin:0 0 64px}.mat-headline-3,.mat-typography .mat-headline-3{font:400 48px/50px Roboto,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-headline-4,.mat-typography .mat-headline-4{font:400 34px/40px Roboto,sans-serif;letter-spacing:.0073529412em;margin:0 0 64px}html,body{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.w-full{width:100%}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.items-center{align-items:center}.justify-stretch{justify-content:stretch}.justify-center{justify-content:center}.justify-right{justify-content:right}.grow{flex-grow:1}.overflow-y-auto{overflow-y:auto}.w-3\/5{width:60%}.w-1\/5{width:20%}.w-4\/5{width:80%}.w-2\/5{width:40%}.mt-2{margin-top:.5rem}.pt-2{padding-top:.5rem}.text-ellipsis{text-overflow:ellipsis}.overflow-hidden{overflow:hidden}.constraints-menu{max-height:300px;overflow:scroll}.gap-x-1{column-gap:4px}